/* ============================================================
   BAQARISH & PARTNERS — stylesheet
   Luxury · corporate · minimal.  Black/charcoal + champagne gold.
   Edit the tokens below to retune the whole identity.
   ============================================================ */

:root {
  /* ---- Palette ---- */
  --ink:        #0C0C0E;   /* near-black, primary dark            */
  --charcoal:   #15151A;   /* section dark                        */
  --charcoal-2: #1E1E24;   /* raised dark surfaces (cards)        */
  --gold:       #C6A35A;   /* champagne gold accent               */
  --gold-soft:  #E2CB94;   /* lighter gold for highlights/hover   */
  --gold-deep:  #A8843F;
  --paper:      #F6F4EF;   /* page background (off-white)         */
  --paper-2:    #EEEBE2;   /* alt light surface                   */
  --stone:      #66635C;   /* muted body text on light            */
  --white:      #FFFFFF;

  --line:        rgba(12,12,14,.12);     /* hairline on light     */
  --line-soft:   rgba(255,255,255,.14);  /* hairline on dark      */
  --line-softer: rgba(255,255,255,.07);

  /* ---- Hero photo (realistic KAFD / Riyadh skyline) ----
     Swap for your own licensed photo any time — just this one line: */
  --hero-photo: url('images/kafd-riyadh.jpg');

  /* ---- Type ---- */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  /* ---- Rhythm ---- */
  --maxw: 1200px;
  --gut:  clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; max-width: 100%; }
button { font: inherit; }
a, button, summary, [role="tab"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 1000;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; border-radius: 3px; font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  display: inline-block;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
}
.section--dark .eyebrow,
.hero .eyebrow { color: var(--gold-soft); }

.section { padding-block: clamp(72px, 11vw, 132px); }
.section--dark  { background: var(--ink);     color: var(--white); }
.section--soft  { background: var(--paper-2); }

.section-head { max-width: 64ch; margin-bottom: clamp(2.6rem, 5vw, 3.8rem); }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.95rem, 4.4vw, 3rem);
  line-height: 1.12; letter-spacing: -.012em;
  margin: 1rem 0 0;
}
.section-intro { margin: 1.2rem 0 0; color: var(--stone); max-width: 56ch; }
.section--dark .section-intro { color: rgba(255,255,255,.66); }

.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; max-width: none; flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px; transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { gap: .85rem; color: var(--gold-deep); }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 15px 30px; border: 1px solid transparent; border-radius: 2px;
  font-weight: 600; font-size: .92rem; letter-spacing: .03em; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn--sm { padding: 9px 18px; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover {
  background: var(--gold-soft); transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(198,163,90,.7);
}
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-soft); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

/* ---- Reveal-on-scroll (staggered via --i) ---- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.site-header.is-solid {
  background: rgba(12,12,14,.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); color: var(--white);
}

.brand { display: inline-flex; align-items: center; }
.brand__logo {
  height: clamp(30px, 3.4vw, 38px); width: auto; display: block;
  filter: invert(1);          /* near-black logo artwork -> white on dark surfaces */
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative; font-size: .85rem; font-weight: 500; letter-spacing: .03em;
  color: rgba(255,255,255,.78); padding: 6px 0; transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-current::after { width: 100%; }
.nav__link.is-current { color: #fff; }
.nav__cta { margin-left: .4rem; }
.nav__cta::after { display: none; }

/* Hamburger */
.menu-toggle {
  display: none; width: 44px; height: 40px; padding: 10px;
  background: none; border: 1px solid var(--line-soft); border-radius: 3px; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__skyline { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo {
  /* Oversized so the scroll-driven zoom/pan never reveals an edge. */
  position: absolute; inset: -12%; z-index: 1;
  background-image: var(--hero-photo);
  background-size: cover; background-position: center 55%;
  transform-origin: 50% 55%;
  transform: scale(1.12);     /* JS replaces this with scroll-driven zoom-out */
  will-change: transform;
}

/* Skyline layer fills */
.sky-layer rect, .sky-layer polygon { will-change: transform; }
.sky-layer--far  rect { fill: #1C1A22; }
.sky-layer--mid  rect { fill: #141319; }
.sky-layer--near rect, .sky-layer--near polygon { fill: #08080A; }
.sky-layer--near .crown { fill: #0B0A0C; }
.antenna { stroke: #08080A; stroke-width: 3; }
.windows rect { fill: var(--gold-soft); opacity: .7; }
.windows rect:nth-child(3n)  { opacity: .35; }
.windows rect:nth-child(4n)  { fill: var(--gold); opacity: .85; }

.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.55) 42%, rgba(8,8,10,.15) 100%),
    linear-gradient(0deg, rgba(8,8,10,.85) 0%, rgba(8,8,10,0) 45%);
}

.hero__content { position: relative; z-index: 3; padding-block: 150px 120px; }
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.7rem, 6.6vw, 5.4rem); line-height: 1.02;
  letter-spacing: -.018em; margin: 1.6rem 0 0; max-width: 17ch;
}
.hero__title em { font-style: italic; color: var(--gold-soft); }
.hero__lead {
  margin: 1.7rem 0 0; max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

/* Hero stats strip */
.hero__meta {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(0deg, rgba(8,8,10,.6), transparent);
}
.hero__meta-inner {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem);
  padding-block: 20px; font-size: .82rem; letter-spacing: .03em;
  color: rgba(255,255,255,.65);
}
.hero__meta b { color: var(--gold-soft); font-weight: 600; font-family: var(--display); margin-right: .35rem; }

/* Scroll cue */
.hero__scroll {
  position: absolute; bottom: 84px; right: var(--gut); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.hero__scroll-line {
  width: 1px; height: 46px; background: linear-gradient(var(--gold-soft), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--gold-soft); animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.about__lead p {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.5; margin: 0;
}
.about__body p { color: var(--stone); margin: 0; }
.about__body p + p { margin-top: 1.2rem; }

/* Stats row */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem);
}
.stat__num {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.stat__num--text { color: var(--gold-deep); }
.stat__label { display: block; margin-top: .6rem; font-size: .82rem; letter-spacing: .04em; color: var(--stone); }

/* ============================================================
   SERVICES (cards grid)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--charcoal-2);
  border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 2rem 1.7rem 1.7rem; overflow: hidden; cursor: default;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* gold accent line that grows on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .4s var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(198,163,90,.5);
  box-shadow: 0 26px 50px -28px rgba(0,0,0,.8);
}
.card:hover::before, .card:focus-within::before { width: 100%; }

.card__num {
  font-family: var(--display); font-size: .9rem; color: var(--gold);
  position: absolute; top: 1.4rem; right: 1.5rem; opacity: .7;
}
.card__icon {
  display: inline-flex; width: 46px; height: 46px; margin-bottom: 1.3rem;
  color: var(--gold); transition: transform .35s var(--ease), color .35s var(--ease);
}
.card__icon svg { width: 100%; height: 100%; }
.card:hover .card__icon { transform: translateY(-2px) scale(1.06); color: var(--gold-soft); }

.card__title {
  font-family: var(--display); font-weight: 500; font-size: 1.22rem;
  line-height: 1.22; margin: 0 0 .7rem; color: var(--white);
}
.card__desc { margin: 0 0 1.1rem; color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.55; }

.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.4rem; padding: 0; }
.card__tags li {
  font-size: .7rem; letter-spacing: .04em; color: rgba(255,255,255,.62);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 10px;
}

.card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-soft); opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), gap .3s var(--ease);
}
.card__cta svg { width: 16px; height: 16px; }
.card:hover .card__cta, .card:focus-within .card__cta { opacity: 1; transform: none; }
.card:hover .card__cta { gap: .7rem; }

/* ============================================================
   PEOPLE (founder + global strategic advisors)
   Reuses .cards / .card and the reveal system; only new pieces below.
   ============================================================ */
.founder {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.founder__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.08;
  margin: .7rem 0 1.2rem;
}
.founder__bio { margin: 0; color: var(--stone); }

.founder__quote {
  margin: 0; border-left: 2px solid var(--gold);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}
.founder__quote blockquote {
  margin: 0; font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.45; color: var(--ink);
}
.founder__quote figcaption { margin-top: 1.4rem; font-size: .84rem; letter-spacing: .03em; color: var(--stone); }
.founder__quote figcaption b { color: var(--ink); font-weight: 600; }

.people__advisors-head { margin: 0 0 clamp(1.6rem, 3vw, 2.2rem); }
.people__sub-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.14;
  letter-spacing: -.01em; margin: .8rem 0 0;
}
/* Person cards omit num/icon/cta; a small role label sits at the top */
.people__advisors .card__role {
  display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: .8rem;
}

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   GLOBAL OFFICES
   ============================================================ */
.offices__layout {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.offices__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offices__list li { border-bottom: 1px solid var(--line); }

.office-row {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: .6rem 1rem; padding: 20px 6px;
  transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.office-row:hover, .office-row.is-active { padding-left: 18px; }
.office-row.is-active { background: linear-gradient(90deg, rgba(198,163,90,.08), transparent); }

.office-row__city {
  grid-column: 1; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400; line-height: 1.1; transition: color .25s var(--ease);
}
.office-row:hover .office-row__city,
.office-row.is-active .office-row__city { color: var(--gold-deep); }
.office-row__country { grid-column: 1; grid-row: 2; font-size: .82rem; color: var(--stone); }
.office-row__badge {
  grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center;
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); border-radius: 3px; padding: 3px 8px;
}
.office-row__badge--muted { background: transparent; color: var(--stone); border: 1px solid var(--line); }
.office-row__badge--int  { background: transparent; color: var(--gold-deep); border: 1px solid rgba(168,132,63,.5); }
.office-row__time {
  grid-column: 3; grid-row: 1 / span 2; align-self: center; justify-self: end;
  min-width: 76px; text-align: right; font-variant-numeric: tabular-nums;
  font-size: .92rem; color: var(--ink); letter-spacing: .02em;
}

/* Detail panel */
.office-card {
  background: var(--ink); color: var(--white); border-radius: 6px;
  padding: clamp(1.8rem, 3vw, 2.6rem); position: sticky; top: calc(var(--header-h) + 20px);
  overflow: hidden;
}
.office-card__role {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
}
.office-card__city {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05; margin: .6rem 0 .2rem;
}
.office-card__country { margin: 0 0 1.6rem; color: rgba(255,255,255,.6); }

.office-card__meta { margin: 0; display: grid; gap: 1.1rem; }
.office-card__meta dt {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: .25rem;
}
.office-card__meta dd { margin: 0; color: rgba(255,255,255,.9); font-size: .96rem; }
#od-time { color: var(--gold-soft); font-variant-numeric: tabular-nums; }

/* Globe motif */
.office-globe { width: 100%; height: auto; margin-top: 1.8rem; opacity: .9; }
.globe-lines ellipse, .globe-lines line { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.globe-nodes circle { fill: rgba(255,255,255,.3); transition: fill .3s var(--ease), r .3s var(--ease); }
.globe-nodes circle.is-active { fill: var(--gold-soft); }
.globe-nodes circle.is-active { animation: nodePulse 1.8s ease-out infinite; }
@keyframes nodePulse {
  0%   { filter: drop-shadow(0 0 0 rgba(226,203,148,.7)); }
  70%  { filter: drop-shadow(0 0 9px rgba(226,203,148,.9)); }
  100% { filter: drop-shadow(0 0 0 rgba(226,203,148,0)); }
}

/* ============================================================
   INSIGHTS (article cards)
   ============================================================ */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.article {
  background: var(--white); border: 1px solid var(--line); border-radius: 5px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.article:hover {
  transform: translateY(-6px);
  border-color: rgba(198,163,90,.45);
  box-shadow: 0 26px 50px -30px rgba(12,12,14,.4);
}
.article__link { display: block; height: 100%; }

.article__thumb {
  position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 1rem;
  background-size: cover; transition: transform .5s var(--ease);
  overflow: hidden;
}
/* Distinct gradient + line motif per category (stand-ins for photography) */
.article__thumb--a { background: radial-gradient(120% 120% at 80% 0%, #20303A, #0C0C0E); }
.article__thumb--b { background: radial-gradient(120% 120% at 80% 0%, #2A2418, #0C0C0E); }
.article__thumb--c { background: radial-gradient(120% 120% at 80% 0%, #241E2E, #0C0C0E); }
.article__thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(198,163,90,.10) 0 1px, transparent 1px 26px);
}
.article:hover .article__thumb { transform: scale(1.04); }
.article__cat {
  position: relative; z-index: 1; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); background: var(--gold); padding: 5px 11px; border-radius: 3px;
}

.article__body { padding: 1.5rem 1.5rem 1.8rem; }
.article__meta { margin: 0 0 .7rem; font-size: .76rem; letter-spacing: .04em; color: var(--stone); }
.article__title {
  font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.28;
  margin: 0 0 .7rem; transition: color .25s var(--ease);
}
.article:hover .article__title { color: var(--gold-deep); }
.article__excerpt { margin: 0; font-size: .92rem; color: var(--stone); }

/* ============================================================
   CONTACT (form + details + map)
   ============================================================ */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.4rem, 6vw, 5rem); align-items: start;
}
.contact__intro { margin: 1.3rem 0 2.2rem; color: rgba(255,255,255,.7); max-width: 46ch; }

.contact__details { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.3rem; }
.contact__label {
  display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: .3rem; font-weight: 600;
}
.contact__value { color: rgba(255,255,255,.9); font-size: 1rem; }
a.contact__value:hover { color: var(--gold-soft); }

.contact__map {
  border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden;
  height: 240px;
}
.contact__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(.4) contrast(1.05) brightness(.92);
}

/* Form */
.contact__form-wrap {
  background: var(--charcoal-2); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.6rem);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field label {
  display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: .5rem; font-weight: 600;
}
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); color: #fff;
  border: 1px solid var(--line-soft); border-radius: 3px;
  padding: 13px 14px; font-family: var(--body); font-size: .95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23C6A35A' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px rgba(198,163,90,.18);
}
.field.has-error input, .field.has-error textarea { border-color: #E4736B; }
.field__error { display: block; min-height: 0; font-size: .78rem; color: #E8867E; margin-top: .35rem; }

.field--check {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .85rem; color: rgba(255,255,255,.7); text-transform: none; letter-spacing: 0;
}
.field--check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.field--check span { font-weight: 400; }

.form__status {
  margin: 1.2rem 0 0; padding: 14px 16px; border-radius: 4px;
  font-size: .92rem; background: rgba(198,163,90,.14);
  border: 1px solid rgba(198,163,90,.4); color: var(--gold-soft);
}
.form__status.is-error { background: rgba(228,115,107,.12); border-color: rgba(228,115,107,.5); color: #F0A29B; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--white); padding-block: clamp(60px, 9vw, 96px) 40px; }
.footer__top {
  display: grid; grid-template-columns: 1.3fr 1.7fr; gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem; border-bottom: 1px solid var(--line-soft);
}
.footer__tag { margin: 1.2rem 0 0; max-width: 34ch; color: rgba(255,255,255,.6); font-size: .95rem; }
.footer__brand .brand__logo { height: 46px; }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col h4 {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 1.1rem; font-weight: 600;
}
.footer__col a { display: block; color: rgba(255,255,255,.72); font-size: .92rem; margin-bottom: .7rem; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--gold-soft); }

.footer__bottom {
  margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer__legal { display: flex; gap: 1.4rem; }
.footer__legal a { color: rgba(255,255,255,.65); }
.footer__legal a:hover { color: var(--gold-soft); }
.footer__top-link { color: var(--gold-soft) !important; }
.footer__credit {
  margin: 1.6rem 0 0; max-width: 80ch;
  font-size: .72rem; line-height: 1.55; color: rgba(255,255,255,.38);
}
.footer__credit a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--gold-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  /* Mobile nav — full-height, fully opaque drawer */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 1.5rem;
    background: var(--ink); overflow-y: auto;
    padding: 2.4rem var(--gut) 3rem; border-top: 1px solid var(--line-soft);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { font-size: 1.05rem; }
  .nav__cta { margin-left: 0; }
  .menu-toggle { display: block; }

  /* Tighter, better-centred hero on phones (parallax is off here for smoothness) */
  .hero__content { padding-block: 116px 92px; }
  .hero__title { margin-top: 1.1rem; }
  .hero__photo { inset: -6%; transform: scale(1.06); }

  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .articles { grid-template-columns: 1fr; }
  .offices__layout { grid-template-columns: 1fr; }
  .office-card { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .hero__scroll { display: none; }
  .section-head--row { align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   LANGUAGE SWITCHER  (EN / العربية)
   ============================================================ */
.lang-switch {
  display: inline-flex; align-items: center; gap: .55rem; margin-left: 1rem;
}
.lang-switch__btn {
  background: none; border: 0; cursor: pointer; padding: 4px 2px;
  font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.6); transition: color .25s var(--ease);
}
.lang-switch__btn[lang="ar"] { font-family: "Tajawal", var(--body); letter-spacing: 0; }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { color: var(--gold-soft); }
.lang-switch__sep { width: 1px; height: 14px; background: var(--line-soft); }

@media (max-width: 860px) {
  /* In the mobile drawer the switcher sits on its own line, set apart by a rule */
  .lang-switch {
    margin: .4rem 0 0; padding-top: 1.4rem;
    border-top: 1px solid var(--line-soft); width: 100%;
  }
  .lang-switch__btn { font-size: 1rem; }
}

/* ============================================================
   BILINGUAL — Arabic typography + full RTL mirroring
   The design system is preserved: only the two font tokens are
   re-pointed and physical offsets are flipped under [dir="rtl"].
   ============================================================ */
html[dir="rtl"] {
  --display: "Amiri", "Times New Roman", serif;
  --body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Arabic is cursive/joined — tracking would break the glyph connections */
html[dir="rtl"] * { letter-spacing: normal !important; }
/* A touch more leading keeps Arabic headings elegant and un-clipped (sizes unchanged) */
html[dir="rtl"] .hero__title { line-height: 1.18; }
html[dir="rtl"] .section-title { line-height: 1.28; }
html[dir="rtl"] .card__title,
html[dir="rtl"] .article__title,
html[dir="rtl"] .people__sub-title,
html[dir="rtl"] .founder__name,
html[dir="rtl"] .office-card__city { line-height: 1.3; }
html[dir="rtl"] .founder__quote blockquote { line-height: 1.75; font-style: normal; }
html[dir="rtl"] .hero__lead,
html[dir="rtl"] .about__lead p { line-height: 1.7; }

/* Keep Latin/numeric data (email, phone, live clock) left-to-right inside RTL */
html[dir="rtl"] .office-row__time,
html[dir="rtl"] #od-time,
html[dir="rtl"] #od-phone,
html[dir="rtl"] a.contact__value[href^="tel"],
html[dir="rtl"] a.contact__value[href^="mailto"] { direction: ltr; }

/* ---- Directional mirroring ---- */
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 1rem; }
html[dir="rtl"] .skip-link { left: auto; right: 16px; }
html[dir="rtl"] .nav__cta { margin-left: 0; margin-right: .4rem; }
html[dir="rtl"] .nav__link::after { left: auto; right: 0; }
html[dir="rtl"] .hero__meta b { margin-right: 0; margin-left: .35rem; }
html[dir="rtl"] .hero__scroll { right: auto; left: var(--gut); }
html[dir="rtl"] .hero__overlay {
  background:
    linear-gradient(270deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.55) 42%, rgba(8,8,10,.15) 100%),
    linear-gradient(0deg, rgba(8,8,10,.85) 0%, rgba(8,8,10,0) 45%);
}
html[dir="rtl"] .card__num { right: auto; left: 1.5rem; }
html[dir="rtl"] .card::before { left: auto; right: 0; }
html[dir="rtl"] .founder__quote {
  border-left: 0; padding-left: 0;
  border-right: 2px solid var(--gold); padding-right: clamp(1.2rem, 3vw, 2rem);
}
html[dir="rtl"] .office-row {
  text-align: right;
  transition: padding-right .3s var(--ease), background .3s var(--ease);
}
html[dir="rtl"] .office-row:hover,
html[dir="rtl"] .office-row.is-active { padding-left: 6px; padding-right: 18px; }
html[dir="rtl"] .office-row.is-active {
  background: linear-gradient(270deg, rgba(198,163,90,.08), transparent);
}
html[dir="rtl"] .office-row__time { text-align: left; }
/* Flip only the directional "arrow" glyphs — brand & practice icons stay as-is */
html[dir="rtl"] .card__cta svg,
html[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
/* Select chevron moves to the left in RTL */
html[dir="rtl"] .field select {
  background-position: left 14px center;
  padding-left: 38px; padding-right: 14px;
}
