:root {
  --red-ochre: #8B3A2F;
  --red-ochre-light: #a04a3d;
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,0.15);
  --night: #0A1628;
  --night-light: #0f1f38;
  --night-mid: #132640;
  --white-clay: #F5F0E6;
  --teal: #2A6B6B;
  --burnt: #D4722A;
  --ironbark: #5C4033;
  --sandstone: #B8A088;
  --text: #F5F0E6;
  --text-dim: rgba(245,240,230,0.5);
  --text-mid: rgba(245,240,230,0.7);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Source Serif 4', serif;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-heading); background: var(--night); color: var(--text); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
  background: rgba(10,22,40,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-dim);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-wordmark {
  font-size: 20px; font-weight: 800; letter-spacing: 6px; color: var(--text);
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--text-mid); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.3px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--red-ochre) !important; color: var(--white-clay) !important;
  padding: 9px 18px; border-radius: 6px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-ochre-light) !important; }
.lang-toggle {
  display: flex; gap: 1px; background: rgba(245,240,230,0.06); border-radius: 5px;
  border: 1px solid var(--gold-dim); overflow: hidden; margin-left: 8px; flex-shrink: 0;
}
.lang-btn {
  padding: 6px 12px; border: none; background: transparent;
  color: var(--text-dim); cursor: pointer; font-size: 12px; font-family: var(--font-heading);
  transition: all 0.2s;
}
.lang-btn.active { background: var(--gold); color: var(--night); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 40px 80px;
  background: radial-gradient(ellipse at 30% 40%, var(--night-light) 0%, var(--night) 70%);
  position: relative; overflow: hidden;
}
.hero-circles {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0.04; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }

/* Page hero (non-homepage) */
.page-hero {
  padding: 140px 40px 80px; text-align: left;
  background: radial-gradient(ellipse at 20% 40%, var(--night-light) 0%, var(--night) 70%);
  border-bottom: 1px solid var(--gold-dim);
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }

/* ── TYPOGRAPHY ── */
.label {
  font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; font-weight: 600;
}
.label-ar { font-family: var(--font-arabic); direction: rtl; }
.title {
  font-family: var(--font-serif); font-size: 48px; font-weight: 700;
  line-height: 1.2; margin-bottom: 20px;
}
.title-hero {
  font-family: var(--font-heading); font-size: 88px; font-weight: 800;
  letter-spacing: 18px; margin-bottom: 16px;
}
.subtitle {
  font-family: var(--font-serif); font-size: 24px; line-height: 1.5;
  color: var(--text-mid); margin-bottom: 20px;
}
.tagline {
  font-family: var(--font-serif); font-size: 26px; font-style: italic;
  color: var(--red-ochre); margin-bottom: 12px;
}
.heritage {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  color: var(--gold); letter-spacing: 0.5px;
}
.body-text { font-size: 16px; line-height: 1.75; color: var(--text-mid); max-width: 800px; }
.body-text strong { color: var(--text); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; transition: all 0.2s; font-family: var(--font-heading);
}
.btn-primary { background: var(--red-ochre); color: var(--white-clay); }
.btn-primary:hover { background: var(--red-ochre-light); }
.btn-secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.btn-secondary:hover { background: rgba(201,168,76,0.08); }
.btn-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ── SECTIONS ── */
section { padding: 100px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-warm { background: var(--white-clay); color: #333; }
.section-warm .label { color: var(--red-ochre); }
.section-warm .title { color: var(--night); }
.section-warm .body-text { color: #555; }
.section-warm .body-text strong { color: #222; }
.section-ochre { background: var(--red-ochre); }
.section-border { border-top: 1px solid var(--gold-dim); }

/* ── GRID CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 36px 28px; border-radius: 12px;
  border: 1px solid var(--gold-dim); background: rgba(201,168,76,0.02);
  transition: border-color 0.3s, transform 0.2s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px;
}
.card-icon-ochre { background: rgba(139,58,47,0.15); color: var(--red-ochre); }
.card-icon-gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.card-icon-teal { background: rgba(42,107,107,0.15); color: var(--teal); }
.card-icon-burnt { background: rgba(212,114,42,0.15); color: var(--burnt); }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.card-title-ar { font-family: var(--font-arabic); font-size: 13px; color: var(--gold); direction: rtl; margin-bottom: 10px; }
.card-desc { font-size: 14px; line-height: 1.65; color: var(--text-mid); }
.card-arrow { margin-top: 16px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 1px; }

/* Warm-bg cards */
.section-warm .card { background: #fff; border-color: #e8e2d6; }
.section-warm .card:hover { border-color: var(--red-ochre); }
.section-warm .card-title { color: var(--night); }
.section-warm .card-desc { color: #555; }

/* ── STATS ── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0; }
.stat { text-align: center; padding: 32px 16px; }
.stat-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--gold);
}
.stat-label { font-size: 13px; color: var(--text-mid); margin-top: 6px; }
.stat-label-ar { font-family: var(--font-arabic); font-size: 12px; color: var(--text-dim); direction: rtl; }

/* ── PILLARS ── */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.pillar { padding: 36px; border-radius: 12px; }
.pillar-ochre { background: rgba(139,58,47,0.08); border: 1px solid rgba(139,58,47,0.2); }
.pillar-teal { background: rgba(42,107,107,0.08); border: 1px solid rgba(42,107,107,0.2); }
.pillar h3 { font-size: 20px; margin-bottom: 16px; }
.pillar-ochre h3 { color: var(--red-ochre); }
.pillar-teal h3 { color: var(--teal); }
.pillar-item {
  font-size: 14px; line-height: 1.7; color: var(--text-mid);
  margin-bottom: 8px; padding-left: 16px; position: relative;
}
.pillar-item::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
}
.pillar-ochre .pillar-item::before { background: var(--red-ochre); }
.pillar-teal .pillar-item::before { background: var(--teal); }

/* ── CONTENT BLOCKS (service pages) ── */
.content-section { margin-bottom: 48px; }
.content-section h2 {
  font-family: var(--font-serif); font-size: 28px; font-weight: 700;
  margin-bottom: 16px; color: var(--text);
}
.content-section h2-ar {
  font-family: var(--font-arabic); font-size: 20px; color: var(--gold);
  direction: rtl; margin-bottom: 16px;
}
.content-section p { font-size: 15px; line-height: 1.75; color: var(--text-mid); margin-bottom: 16px; }
.content-section p strong { color: var(--text); }
.content-section ul { list-style: none; margin: 16px 0; }
.content-section ul li {
  padding: 8px 0 8px 20px; position: relative;
  font-size: 15px; line-height: 1.6; color: var(--text-mid);
}
.content-section ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.content-section ul li strong { color: var(--text); }

/* ── QUOTE ── */
.quote-block {
  font-family: var(--font-serif); font-size: 24px; font-style: italic;
  color: var(--red-ochre); line-height: 1.5; padding-left: 28px;
  border-left: 3px solid var(--gold); margin: 40px 0; max-width: 750px;
}
.section-warm .quote-block { color: var(--red-ochre); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--red-ochre); padding: 80px 40px; text-align: center;
}
.cta-banner .title { color: var(--white-clay); font-size: 36px; }
.cta-banner .body-text { color: rgba(245,240,230,0.75); margin: 0 auto 32px; }
.cta-banner .btn-primary { background: var(--gold); color: var(--night); }
.cta-banner .btn-primary:hover { background: #d4b55a; }

/* ── FOOTER ── */
footer {
  background: var(--night); padding: 48px 40px;
  border-top: 1px solid var(--gold-dim); text-align: center;
}
.footer-wordmark { font-size: 16px; font-weight: 800; letter-spacing: 6px; margin-bottom: 6px; }
.footer-tagline {
  font-family: var(--font-serif); font-size: 13px; font-style: italic;
  color: var(--red-ochre); margin-bottom: 4px;
}
.footer-tagline-ar {
  font-family: var(--font-arabic); font-size: 12px; color: var(--red-ochre);
  direction: rtl; margin-bottom: 16px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { font-size: 11px; color: var(--text-dim); line-height: 1.8; }
.footer-domains { margin-top: 12px; }
.footer-domains a { color: var(--gold); text-decoration: none; font-size: 12px; margin: 0 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 64px 20px; }
  .nav-inner { padding: 12px 16px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(10,22,40,0.98);
    padding: 20px; gap: 14px; border-bottom: 1px solid var(--gold-dim);
  }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .title-hero { font-size: 44px; letter-spacing: 8px; }
  .title { font-size: 30px; }
  .tagline { font-size: 20px; }
  .subtitle { font-size: 18px; }
  .heritage { font-size: 14px; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 34px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 20px 48px; }
  .page-hero .title { font-size: 28px; }
  .quote-block { font-size: 20px; }
  .content-section h2 { font-size: 24px; }
  .hero-circles { display: none; }
}
@media (max-width: 400px) {
  .title-hero { font-size: 34px; letter-spacing: 5px; }
  .title { font-size: 24px; }
}

/* ── LANGUAGE TOGGLE SYSTEM ── */
.t-ar { display: block; font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 0.75em; color: var(--gold); margin-top: 6px; direction: rtl; text-align: right; font-style: normal; font-weight: 500; }
html[lang="ar"] { direction: rtl; }
html[lang="ar"] .t-ar { display: none; }
html[lang="ar"] .t-en { display: block; font-size: 0.75em; color: var(--gold); margin-top: 6px; direction: ltr; text-align: left; font-style: normal; font-weight: 500; }
html[lang="en"] .t-en { display: none; }
html[lang="ar"] .title, html[lang="ar"] .subtitle, html[lang="ar"] .body-text,
html[lang="ar"] .card-title, html[lang="ar"] .card-desc, html[lang="ar"] .label,
html[lang="ar"] .pillar-item, html[lang="ar"] .content-section p,
html[lang="ar"] .content-section h2, html[lang="ar"] .content-section li,
html[lang="ar"] .stat-label, html[lang="ar"] .tagline, html[lang="ar"] .heritage,
html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl; text-align: right;
}
html[lang="ar"] .nav-wordmark, html[lang="ar"] .title-hero, html[lang="ar"] .footer-wordmark,
html[lang="ar"] .stat-num { font-family: 'Plus Jakarta Sans', sans-serif; direction: ltr; }
html[lang="ar"] .card-title-ar { display: none; }
