/* ─────────────────────────────────────────────────────────────────
   Al-Aqaneem General Trading & Contracting Co.
   Royal Kuwaiti family-enterprise website · EN / AR · responsive.
   Palette: deep regal navy + champagne gold + warm ivory.
   ───────────────────────────────────────────────────────────────── */
@import url('https://fonts.bunny.net/css?family=cormorant-garamond:400,500,600,700,400i,500i,600i|outfit:300,400,500,600,700|reem-kufi:400,500,600,700|ibm-plex-sans-arabic:400,500,600,700|jetbrains-mono:400,500&display=swap');

:root {
  --navy:        #0E1B2E;
  --navy-deep:   #0A1424;
  --navy-soft:   #1B2A45;
  --gold:        #C9A961;
  --gold-bright: #E5C58C;
  --gold-deep:   #8E7330;
  --ivory:       #F8F4EC;
  --ivory-deep:  #EFE9DA;
  --paper:       #FAF6EC;
  --sand:        #E8DDC8;
  --ink:         #14181D;
  --ink2:        #4A5560;
  --ink3:        #97A19C;
  --rule:        rgba(14,27,46,0.10);
  --rule-on-dark:rgba(229,197,140,0.18);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-display-ar: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --font-body-ar:    'IBM Plex Sans Arabic', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
[lang="ar"] body, html[lang="ar"] body, [dir="rtl"] body { font-family: var(--font-body-ar); }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Display type ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { font-family: var(--font-display-ar); font-weight: 600; letter-spacing: -0.01em; line-height: 1.18; }
h1 { font-size: clamp(38px, 6vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
[dir="rtl"] .kicker { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.06em; font-weight: 600; font-size: 12px; }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

/* ── Top navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background-color 280ms ease, backdrop-filter 280ms ease, padding 280ms ease, box-shadow 280ms ease;
}
.nav.scrolled {
  background: rgba(248,244,236,0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--rule);
}
.nav-row {
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  line-height: 0;
}
.brand:hover { text-decoration: none; }

/* Brand logo — uses two image variants:
   - logo.png       (black + gold) for use over light cream surfaces (scrolled nav)
   - logo-light.png (cream + gold) for use over dark surfaces (hero overlay, footer) */
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  transition: height 240ms ease, opacity 240ms ease, transform 240ms ease;
  filter: drop-shadow(0 4px 14px rgba(14,27,46,0.20));
}
.brand:hover .brand-logo { transform: translateY(-1px); }

/* Show the right variant per surface — toggle by opacity so the layout doesn't jump */
.brand-logo-dark { display: none; }
.brand-logo-light { display: block; }
.nav.scrolled .brand-logo-light { display: none; }
.nav.scrolled .brand-logo-dark  { display: block; }

/* Compact when scrolled */
.nav.scrolled .brand-logo { height: 52px; filter: none; }

/* Footer always uses the light variant (cream on navy) */
.brand-footer .brand-logo { height: 80px; }

.nav-links {
  display: flex; gap: 6px; align-items: center;
  margin-left: auto;
}
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
.nav-link {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
}
[dir="rtl"] .nav-link { font-size: 15px; font-weight: 600; }
.nav.dark-on-photo .nav-link { color: rgba(255,250,238,0.92); }
.nav-link:hover { color: var(--gold-deep); text-decoration: none; }
.nav.dark-on-photo .nav-link:hover { color: var(--gold-bright); }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 0;
  border: 0.5px solid var(--rule);
  border-radius: 99px;
  background: rgba(255,250,238,0.5);
  margin-inline-start: 14px;
  padding: 3px;
}
.nav.dark-on-photo .lang-toggle { border-color: rgba(229,197,140,0.40); background: rgba(20,24,29,0.30); }
.lang-toggle a {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--ink2);
  border-radius: 99px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav.dark-on-photo .lang-toggle a { color: rgba(255,250,238,0.65); }
.lang-toggle a.on {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 2px 8px rgba(201,169,97,0.35);
}
.lang-toggle a:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  border: 0.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  align-items: center; justify-content: center;
  margin-inline-start: 8px;
}
.nav.dark-on-photo .nav-toggle { color: #FFF8E5; border-color: rgba(229,197,140,0.40); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #FFF8E5;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  background: url('images/hero-kuwait.png') center/cover no-repeat #0A1424;
  z-index: 0;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(10,20,36,0.78) 0%, rgba(10,20,36,0.55) 35%, rgba(10,20,36,0.20) 70%, rgba(10,20,36,0.55) 100%),
    linear-gradient(180deg, rgba(10,20,36,0.45) 0%, transparent 35%, transparent 60%, rgba(10,20,36,0.85) 100%);
}
[dir="rtl"] .hero-photo::after {
  background:
    linear-gradient(250deg, rgba(10,20,36,0.78) 0%, rgba(10,20,36,0.55) 35%, rgba(10,20,36,0.20) 70%, rgba(10,20,36,0.55) 100%),
    linear-gradient(180deg, rgba(10,20,36,0.45) 0%, transparent 35%, transparent 60%, rgba(10,20,36,0.85) 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 60% at 30% 30%, rgba(229,197,140,0.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 70%, rgba(229,197,140,0.06), transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 140px 0 80px;
  max-width: 760px;
}
.hero h1 {
  color: #FFF8E5;
  margin: 18px 0 18px;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}
[dir="rtl"] .hero h1 em { font-style: normal; font-weight: 700; }
.hero p.lede {
  color: rgba(255,250,238,0.88);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  border: 0; cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
  text-decoration: none;
}
[dir="rtl"] .btn { font-family: var(--font-body-ar); font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: linear-gradient(135deg, #E5C58C 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: var(--navy-deep);
  box-shadow: 0 6px 22px rgba(201,169,97,0.40), inset 0 1px 0 rgba(255,250,238,0.40);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.outline {
  background: transparent;
  color: rgba(255,250,238,0.94);
  border: 0.5px solid rgba(229,197,140,0.50);
}
.btn.outline:hover { background: rgba(229,197,140,0.10); }
.btn.dark {
  background: var(--navy);
  color: #FFF8E5;
}
.btn.dark:hover { background: var(--navy-soft); }
.btn.lg { padding: 16px 26px; font-size: 15px; }

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(10,20,36,0.6));
  padding: 24px 0;
  border-top: 0.5px solid rgba(229,197,140,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.hero-stat .v {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--gold-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}
[dir="rtl"] .hero-stat .v { font-family: var(--font-display-ar); font-style: normal; font-weight: 700; }
.hero-stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,250,238,0.65);
  margin-top: 6px;
}
[dir="rtl"] .hero-stat .l { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.04em; font-size: 11px; font-weight: 500; }

/* ── Sections ── */
section { padding: 100px 0; position: relative; }
.section-title { margin: 8px 0 14px; }
.section-title em { font-style: italic; color: var(--gold-deep); font-weight: 500; }
[dir="rtl"] .section-title em { font-style: normal; color: var(--gold-deep); font-weight: 700; }
.section-lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink2);
  max-width: 640px;
  line-height: 1.65;
}

/* About */
.about {
  background: var(--paper);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(14,24,29,0.16), 0 0 0 0.5px var(--rule);
  aspect-ratio: 4/5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .corner {
  position: absolute; bottom: -1px; right: -1px;
  background: var(--navy);
  color: var(--gold-bright);
  padding: 14px 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  border-top-left-radius: 16px;
}
[dir="rtl"] .about-photo .corner { right: auto; left: -1px; border-top-left-radius: 0; border-top-right-radius: 16px; font-family: var(--font-display-ar); font-style: normal; font-weight: 700; }
.about-photo .corner small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,250,238,0.65);
  font-style: normal;
  margin-top: 2px;
}
.about-paragraphs p {
  font-size: 16px; line-height: 1.75; color: var(--ink2);
  margin: 0 0 16px;
}
[dir="rtl"] .about-paragraphs p { font-size: 17px; }
.about-paragraphs p strong { color: var(--ink); font-weight: 600; }
.about-pillars { margin-top: 28px; display: grid; gap: 14px; }
.pillar { display: flex; align-items: flex-start; gap: 14px; }
.pillar .icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(201,169,97,0.12);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar .t { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.pillar .d { color: var(--ink2); font-size: 14.5px; line-height: 1.55; }

/* Sectors */
.sectors {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%);
}
.sectors-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 56px;
}
.sectors-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.sector-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card, #FFFCF4);
  box-shadow: 0 1px 3px rgba(20,17,13,0.04), 0 0 0 0.5px var(--rule);
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14,24,29,0.12), 0 0 0 0.5px var(--rule); }
.sector-card.with-photo { color: #FFF8E5; }
.sector-card .photo {
  height: 320px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative;
}
.sector-card .photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,36,0.10) 0%, transparent 30%, transparent 50%, rgba(10,20,36,0.85) 100%);
}
.sector-card .body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 24px 26px 26px;
}
.sector-card .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 500;
  margin-bottom: 8px;
}
.sector-card .t {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  color: rgba(255,250,238,0.96);
  margin: 0 0 6px;
}
[dir="rtl"] .sector-card .t { font-family: var(--font-display-ar); font-style: normal; font-weight: 700; }
.sector-card .t em { font-style: normal; color: var(--gold-bright); }
.sector-card .d {
  font-size: 14px; line-height: 1.55;
  color: rgba(255,250,238,0.78);
  max-width: 460px;
}
[dir="rtl"] .sector-card .d { font-size: 15px; }
.sector-card .arrow {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0.5px solid rgba(229,197,140,0.40);
  background: rgba(20,17,13,0.30);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
}
[dir="rtl"] .sector-card .arrow { right: auto; left: 22px; transform: scaleX(-1); }

/* Quote / heritage */
.quote {
  background: var(--navy);
  color: #FFF8E5;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '“';
  position: absolute;
  top: -20px; left: 6vw;
  font-family: var(--font-display);
  font-size: 320px;
  color: rgba(229,197,140,0.10);
  line-height: 1;
}
[dir="rtl"] .quote::before { content: '"'; left: auto; right: 6vw; color: rgba(229,197,140,0.10); }
.quote-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.4;
  color: rgba(255,250,238,0.96);
  margin: 14px 0 22px;
  letter-spacing: -0.01em;
}
[dir="rtl"] .quote blockquote { font-family: var(--font-display-ar); font-style: normal; font-weight: 500; line-height: 1.55; }
.quote blockquote em { font-style: normal; color: var(--gold-bright); }
.quote .signature {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(229,197,140,0.78);
}
[dir="rtl"] .quote .signature { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.04em; font-size: 13px; font-weight: 500; }

/* Portfolio */
.portfolio { background: var(--ivory); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 16px; overflow: hidden;
  background: #2A2620;
  box-shadow: 0 1px 3px rgba(20,17,13,0.04), 0 0 0 0.5px var(--rule);
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(.16,1,.3,1); }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,20,36,0.85) 100%);
}
.portfolio-item .meta {
  position: absolute; bottom: 22px; left: 24px; right: 24px;
  z-index: 2;
  color: #FFF8E5;
}
.portfolio-item .ref {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.portfolio-item .name {
  font-family: var(--font-display);
  font-style: italic; font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
}
[dir="rtl"] .portfolio-item .name { font-family: var(--font-display-ar); font-style: normal; font-weight: 700; }
.portfolio-item .place {
  font-size: 13px;
  color: rgba(255,250,238,0.78);
  margin-top: 2px;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: #FFF8E5;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(229,197,140,0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(229,197,140,0.08), transparent 70%);
  pointer-events: none;
}
/* Contact head — centered intro + dual CTA row */
.contact-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  position: relative; z-index: 2;
}
.contact-head .kicker { justify-content: center; }
.contact-head .kicker::before { display: none; }
.contact-head h2 { color: rgba(255,250,238,0.96); }
.contact-head h2 em { color: var(--gold-bright); }
.contact-head .lede {
  color: rgba(255,250,238,0.75);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 14px auto 28px;
}
.contact-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* Three contact cards — Office · Phone · Email */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative; z-index: 2;
}
.contact-card {
  background: rgba(229,197,140,0.04);
  border: 0.5px solid rgba(229,197,140,0.18);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.contact-card:hover {
  border-color: rgba(229,197,140,0.36);
  background: rgba(229,197,140,0.07);
  transform: translateY(-3px);
}
.contact-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(229,197,140,0.12);
  border: 0.5px solid rgba(229,197,140,0.32);
  color: var(--gold-bright);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(229,197,140,0.78);
  margin-bottom: 12px;
  font-weight: 600;
}
[dir="rtl"] .contact-card .label { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.04em; font-size: 12px; }

/* P.O. Box line under email — readable in both scripts */
.contact-card .po-box {
  margin-top: 10px;
  color: rgba(229,197,140,0.62);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1.5;
}
[dir="rtl"] .contact-card .po-box {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(229,197,140,0.75);
  font-weight: 500;
}
.contact-card .v {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.4;
  color: rgba(255,250,238,0.96);
  letter-spacing: -0.01em;
  display: block;
}
[dir="rtl"] .contact-card .v { font-family: var(--font-display-ar); font-style: normal; font-weight: 600; font-size: 20px; }
.contact-card .v.mono {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 17px;
  letter-spacing: 0.05em;
}
.contact-card a.v { text-decoration: none; }
.contact-card a.v:hover { color: var(--gold-bright); }

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,250,238,0.65);
  padding: 56px 0 32px;
  border-top: 0.5px solid rgba(229,197,140,0.16);
}
.footer-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
/* footer brand colors are set globally in .brand-text rules above */
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(229,197,140,0.72);
  font-weight: 600;
  margin-bottom: 16px;
}
[dir="rtl"] .footer-col h4 { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.04em; font-size: 13px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col li { font-size: 14.5px; }
[dir="rtl"] .footer-col li { font-size: 15.5px; }
.footer-col li a { color: rgba(255,250,238,0.78); }
.footer-col li a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 0.5px solid rgba(229,197,140,0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: rgba(255,250,238,0.45);
}
[dir="rtl"] .footer-bottom { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.02em; font-size: 12.5px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { gap: 40px; }
  .sectors-grid { gap: 14px; }
  .sector-card .photo { height: 280px; }
}

@media (max-width: 960px) {
  .nav-links .nav-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; flex-direction: column; gap: 4px; align-items: stretch; position: absolute; top: 100%; left: 12px; right: 12px; padding: 18px; border-radius: 14px; background: rgba(248,244,236,0.98); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 0.5px solid var(--rule); box-shadow: 0 18px 36px rgba(14,24,29,0.12); }
  .nav-links.open .nav-link { display: block; padding: 12px 14px; color: var(--ink); }
  .nav.dark-on-photo .nav-links.open .nav-link { color: var(--ink); }
  .nav-links.open .lang-toggle { align-self: flex-start; margin: 6px 0 0; }
  [dir="rtl"] .nav-links.open .lang-toggle { align-self: flex-end; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { aspect-ratio: 16/10; max-height: 460px; }
  .sectors-grid { grid-template-columns: 1fr; }
  .sector-card .photo { height: 300px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; gap: 14px; }
  .footer-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-row > div:first-child p { max-width: none; }
  section { padding: 72px 0; }
  .sectors-header { margin-bottom: 36px; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero-content { padding: 120px 0 130px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 44px); letter-spacing: -0.025em; }
  .hero h1 br { display: none; }
  [dir="rtl"] .hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .hero p.lede { font-size: 14.5px; }
  [dir="rtl"] .hero p.lede { font-size: 15.5px; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats { padding: 14px 0; }
  .hero-stat .v { font-size: 22px; }
  .hero-stat .l { font-size: 9px; letter-spacing: 0.14em; word-spacing: -1px; }
  [dir="rtl"] .hero-stat .l { font-size: 10.5px; letter-spacing: 0.02em; }
  h2 { font-size: clamp(26px, 6vw, 36px); }
  .section-title br { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-cta .btn { justify-content: center; }
  .contact-card { padding: 22px; }
  .brand-logo { height: 46px; }
  .nav.scrolled .brand-logo { height: 40px; }
  .brand-footer .brand-logo { height: 60px; }
  .brand-mark { width: 38px; height: 38px; font-size: 18px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .sector-card .photo { height: 240px; }
  .sector-card .body { padding: 20px 22px 22px; }
  .sector-card .t { font-size: 22px; }
  [dir="rtl"] .sector-card .t { font-size: 24px; }
  .about-photo .corner { padding: 12px 14px; font-size: 18px; }
  .quote blockquote { font-size: clamp(20px, 5vw, 26px); line-height: 1.45; }
  [dir="rtl"] .quote blockquote { line-height: 1.6; }
  .quote::before { font-size: 220px; top: -10px; }
  section { padding: 60px 0; }
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 10px 0; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .hero-content { padding: 108px 0 120px; }
  .btn.lg { padding: 14px 20px; font-size: 14px; }
  .hero-stat .v { font-size: 20px; }
  .contact-card { padding: 20px 18px; }
  .contact-card .v { font-size: 17px; }
  .contact-card .v.mono { font-size: 15.5px; letter-spacing: 0.03em; }
  .nav-row { gap: 12px; }
  .footer { padding: 44px 0 24px; }
  .footer-row { gap: 28px; }
}

/* Very small phones / older devices */
@media (max-width: 340px) {
  .hero-stats-row { grid-template-columns: 1fr; }
  .hero-content { padding: 96px 0 240px; }
}

/* Safer line breaks for long emails / phones */
.contact-card a.v, .footer-col a { overflow-wrap: anywhere; word-break: break-word; }

/* Phone numbers: force strict LTR rendering inside any RTL context.
   Western digits + bdo with bidi-override is the most robust combo across browsers. */
.phone-num, bdo[dir="ltr"].phone-num {
  unicode-bidi: bidi-override;
  direction: ltr;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Language visibility ── */
.lang-en { display: block; }
.lang-ar { display: none; }
[dir="rtl"] .lang-en { display: none; }
[dir="rtl"] .lang-ar { display: block; }
.inline-en { display: inline; }
.inline-ar { display: none; }
[dir="rtl"] .inline-en { display: none; }
[dir="rtl"] .inline-ar { display: inline; }
