@import "./tokens.css";

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.15rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: var(--sticky-h);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--charcoal); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.display { font-size: clamp(2.75rem, 6.6vw, 4.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
:root[lang="ar"] .display { line-height: 1.25; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-color: var(--line-brass); }
img, svg { max-width: 100%; display: block; }
.italic { font-style: italic; }
.accent { color: var(--brass); }
.serif { font-family: var(--display); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.container-wide { max-width: var(--maxw-wide); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3rem, 6.5vw, 6rem); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.section--forest { background: var(--forest); color: var(--parchment); }
.section--charcoal { background: var(--charcoal); color: var(--parchment); }
.section--ivory2 { background: var(--ivory-2); }
.section--sage { background: linear-gradient(180deg, #e8ede6, #dfe7de); }
.section--forest h1,.section--forest h2,.section--forest h3,
.section--charcoal h1,.section--charcoal h2,.section--charcoal h3 { color: var(--parchment); }

.eyebrow { display: inline-flex; align-items: center; gap: 0.7ch; font-family: var(--body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow-ink); margin-bottom: 0.9rem; }
:root[lang="ar"] .eyebrow { letter-spacing: 0.04em; font-size: 0.9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brass); display: inline-block; }
.section--forest .eyebrow, .section--charcoal .eyebrow { color: var(--brass-soft); }
.section--forest .eyebrow::before, .section--charcoal .eyebrow::before { background: var(--brass-soft); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.section--forest .lead, .section--charcoal .lead { color: rgba(247,243,234,0.82); }
.max-prose { max-width: 62ch; }
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }
.rule { width: 56px; height: 2px; background: var(--brass); border: none; margin: 1.2rem 0; }
.rule.center { margin-inline: auto; }

/* ---------- Buttons (calm, authoritative — no flashy sales colour) ---------- */
.btn {
  --bg: var(--forest); --fg: var(--parchment);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.7rem; border-radius: var(--r-pill);
  font-family: var(--body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid transparent; background: var(--bg); color: var(--fg);
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
:root[lang="ar"] .btn { font-family: var(--arabic); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ivory { --bg: var(--ivory); --fg: var(--forest); border-color: var(--line-brass); }
.btn--ghost { --bg: transparent; --fg: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { --bg: var(--forest); --fg: var(--parchment); }
.btn--on-dark { --bg: var(--parchment); --fg: var(--forest); }
.btn--on-dark-ghost { --bg: transparent; --fg: var(--parchment); border-color: rgba(247,243,234,0.5); }
.btn--on-dark-ghost:hover { --bg: rgba(247,243,234,0.12); }
.btn--brass { --bg: transparent; --fg: var(--charcoal); border-color: var(--brass); }
.btn--brass:hover { --bg: var(--brass); --fg: var(--forest-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 200; min-height: 72px; color: var(--parchment); transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease); }
.site-header.on-light { color: var(--charcoal); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.95rem; }
.site-header.is-solid { background: color-mix(in srgb, var(--ivory) 93%, transparent); backdrop-filter: saturate(150%) blur(12px); box-shadow: var(--shadow-sm); color: var(--charcoal); }
.site-header .brand__ar { color: var(--brass); }
.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; text-decoration: none; color: inherit; }
.brand__word { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.4vw + 1rem, 1.6rem); letter-spacing: 0.004em; line-height: 1; }
.brand__full { display: none; }
.brand__compact { display: inline; }
@media (min-width: 520px) { .brand__full { display: inline; } .brand__compact { display: none; } }
:root[lang="ar"] .brand__word { font-family: var(--arabic); font-weight: 700; }
.brand__ar { font-family: var(--naskh); font-size: 1rem; color: var(--brass); opacity: 0.9; }
.site-header.is-solid .brand__ar { color: var(--brass); }
.header-right { display: flex; align-items: center; gap: 0.85rem; }
.nav-desktop { display: none; align-items: center; gap: clamp(1.1rem, 1.9vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-desktop a { text-decoration: none; color: inherit; font-weight: 600; font-size: 0.98rem; position: relative; padding-block: 0.3rem; }
.nav-desktop a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--brass); transition: width 0.3s var(--ease); }
.nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { width: 100%; }

/* language toggle — always visible, never inside hamburger */
.lang { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--body); font-weight: 600; font-size: 0.82rem; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 0.32rem 0.7rem; text-decoration: none; color: inherit; white-space: nowrap; }
.lang svg { width: 15px; height: 15px; }
.lang:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 1.5px solid currentColor; border-radius: 50%; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

.nav-panel { position: fixed; inset: 0; z-index: 300; background: var(--forest); color: var(--parchment); display: flex; flex-direction: column; padding: 1.3rem var(--gut) 2.5rem; transform: translateY(-100%); transition: transform 0.45s var(--ease); overflow-y: auto; }
.nav-panel.is-open { transform: translateY(0); }
.nav-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.nav-panel__mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-family: var(--naskh); font-size: 44vw; color: rgba(179,146,90,0.06); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; gap: 0.1rem; }
.nav-panel a { display: block; text-decoration: none; color: var(--parchment); font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 8vw, 2.6rem); padding-block: 0.3rem; border-bottom: 1px solid var(--line-parchment); }
:root[lang="ar"] .nav-panel a { font-family: var(--arabic); }
@media (min-width: 1160px) {
  .nav-desktop, .header-cta { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92svh, 840px); display: flex; align-items: center; padding-block: clamp(7.2rem, 11vw, 9rem) clamp(3.5rem, 7vw, 6rem); overflow: hidden; background: linear-gradient(165deg, var(--ivory) 0%, var(--ivory-2) 100%); }
.hero__geo { position: absolute; inset: 0; background: url("/images/art/geo.svg"); background-size: 300px; opacity: 0.05; }
.hero__mark { position: absolute; z-index: 0; inset-block-start: 50%; inset-inline-end: -4%; transform: translateY(-50%); font-family: var(--naskh); font-size: clamp(14rem, 40vw, 34rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.4px rgba(23,56,46,0.14); pointer-events: none; user-select: none; opacity: 0; animation: fadeIn 1.1s var(--ease-out) 0.15s forwards; direction: rtl; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; width: 100%; }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: minmax(0,1.05fr) minmax(380px,0.95fr); } }
.hero__title { font-size: clamp(2.55rem, 5vw, 4.45rem); max-width: 12.5ch; font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
:root[lang="ar"] .hero__title { line-height: 1.25; letter-spacing: 0; }
.hero__title .l { display: block; opacity: 0; transform: translateY(20px); animation: lineIn 0.8s var(--ease-out) forwards; }
.hero__title .l1 { animation-delay: 0.2s; } .hero__title .l2 { animation-delay: 0.36s; }
.hero__sub { opacity: 0; animation: fadeIn 0.8s ease 0.6s forwards; }
.hero__ctas { opacity: 0; animation: fadeIn 0.8s ease 0.78s forwards; margin-top: 1.5rem; }
.hero__note { margin-top: 0.9rem; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink-soft); opacity: 0; animation: fadeIn 0.8s ease 0.95s forwards; }
.hero__visual { opacity: 0; animation: fadeIn 1s ease 0.4s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* Sakoon intelligence loop */
.intelligence-loop { aspect-ratio: 5/4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: linear-gradient(145deg,#22483b,var(--forest-deep)); }
.intelligence-loop svg { width: 100%; height: 100%; display: block; }
.loop-orbit { fill: none; stroke: rgba(247,243,234,.13); stroke-width: 26; }
.loop-flow { fill: none; stroke: url(#loopLine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 20 12; animation: loopDash 8s linear infinite; }
.loop-nodes circle:not(.loop-pulse) { fill: #dcbb74; stroke: #17382e; stroke-width: 3; }
.loop-nodes text { font: 700 8px Manrope,sans-serif; fill: #17382e; }
.loop-pulse { fill: none; stroke: rgba(220,187,116,.6); animation: nodePulse 4.9s ease-out infinite; animation-delay: calc(var(--i) * .7s); transform-box: fill-box; transform-origin: center; }
.loop-input path,.loop-output path { stroke: rgba(220,187,116,.75); stroke-width: 2; stroke-linecap: round; }
.loop-kicker,.loop-label,.loop-sub { font-family: Manrope,sans-serif; letter-spacing: 2px; fill: rgba(247,243,234,.62); }
.loop-kicker { font-size: 10px; fill: #dcbb74; }
.loop-title { font: 600 30px 'Cormorant Garamond',serif; fill: #f7f3ea; letter-spacing: 1px; }
.loop-sub { font-size: 7px; }
.loop-label { font-size: 8px; }
@keyframes loopDash { to { stroke-dashoffset: -64; } }
@keyframes nodePulse { 0%,68% { opacity:0; transform:scale(.55); } 78% { opacity:.8; } 100% { opacity:0; transform:scale(1.45); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--forest); color: var(--parchment); overflow: hidden; border-block: 1px solid rgba(179,146,90,0.25); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; padding-block: 0.9rem; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.35rem); padding-inline: 1.6rem; }
:root[lang="ar"] .marquee__item { font-family: var(--arabic); }
.marquee__item.ar { font-family: var(--naskh); color: var(--brass-soft); }
.marquee__sep { color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }
:root[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--parchment); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.3rem, 2.6vw, 1.8rem); box-shadow: var(--shadow-sm); }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.section--forest .card, .section--charcoal .card { background: rgba(247,243,234,0.05); border-color: rgba(179,146,90,0.22); color: var(--parchment); }
.section--forest .card p, .section--charcoal .card p { color: rgba(247,243,234,0.8); }
.card__k { font-family: var(--display); font-size: 1.05rem; color: var(--brass); display: inline-block; margin-bottom: 0.4rem; font-weight: 600; }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* icon tile */
.ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brass) 16%, transparent); color: var(--brass); margin-bottom: 0.9rem; }
.ico svg { width: 22px; height: 22px; }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse .split__media { order: 2; } }
.split__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img, .split__media svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Methodology flow / stepper ---------- */
.flow { display: flex; gap: 0.5rem; align-items: stretch; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.4rem; scrollbar-width: thin; }
.flow::-webkit-scrollbar { height: 5px; }
.flow::-webkit-scrollbar-thumb { background: var(--line-brass); border-radius: 999px; }
.flow__step { flex: 1 0 128px; scroll-snap-align: start; background: rgba(247,243,234,0.05); border: 1px solid rgba(179,146,90,0.25); border-radius: var(--r-md); padding: 1.1rem 0.95rem; position: relative; }
.flow__step::before { content: ""; position: absolute; inset-inline-start: 0.95rem; top: 0.95rem; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.section--ivory2 .flow__step, body .flow--light .flow__step { background: var(--parchment); border-color: var(--line); }
.flow__n { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--brass); line-height: 1; padding-inline-start: 1rem; }
.flow__name { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.45rem 0 0; color: inherit; }
:root[lang="ar"] .flow__name { letter-spacing: 0; font-size: 0.98rem; }
.flow__arrow { align-self: center; color: var(--brass); flex: 0 0 auto; }
:root[dir="rtl"] .flow__arrow svg { transform: scaleX(-1); }
@media (min-width: 900px) { .flow { overflow: visible; flex-wrap: nowrap; } }

/* Four-part initiative approach: fitted grid, never overflow the hero card. */
.approach-flow .flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; overflow: visible; }
.approach-flow .flow__step { min-width: 0; width: 100%; }
.approach-flow .flow__arrow { display: none; }
@media (min-width: 700px) { .approach-flow .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* saffron accents: card hover + active tab underglow + numerals */
.card--link:hover { border-color: var(--saffron); }
.card__k { color: var(--brass); }
.tab-btn[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--saffron); }
.acc summary::after { color: var(--saffron); }
.flow--light .flow__n { color: var(--brass); }

/* ---------- Tabs ---------- */
.tabs__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.tab-btn { font-family: var(--body); font-weight: 600; font-size: 0.9rem; padding: 0.6rem 1.15rem; border-radius: var(--r-pill); border: 1px solid var(--line-brass); background: transparent; color: var(--forest); cursor: pointer; }
:root[lang="ar"] .tab-btn { font-family: var(--arabic); }
.tab-btn[aria-selected="true"] { background: var(--forest); color: var(--parchment); border-color: var(--forest); }
.tab-panel[hidden] { display: none; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--parchment); overflow: hidden; }
.acc + .acc { margin-top: 0.7rem; }
.acc summary { list-style: none; cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 600; font-family: var(--display); font-size: 1.15rem; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
:root[lang="ar"] .acc summary { font-family: var(--arabic); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.acc[open] summary::after { content: "–"; }
.acc__body { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }

/* ---------- Stats ---------- */
.stat-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { text-align: center; padding: 1.5rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--parchment); }
.section--forest .stat, .section--charcoal .stat { background: rgba(247,243,234,0.05); border-color: rgba(179,146,90,0.22); }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--forest); line-height: 1; }
.section--forest .stat__num, .section--charcoal .stat__num { color: var(--brass-soft); }
.stat__label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.35rem; }
.section--forest .stat__label, .section--charcoal .stat__label { color: rgba(247,243,234,0.75); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.4rem; }
.fset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.3rem 1.5rem; background: var(--parchment); }
.fset > legend { font-family: var(--display); font-weight: 600; font-size: 1.2rem; padding-inline: 0.5rem; color: var(--forest); }
:root[lang="ar"] .fset > legend { font-family: var(--arabic); }
.fset__step { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.8rem; }
.fgrid { display: grid; gap: 1rem; }
@media (min-width: 620px) { .fgrid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field .req { color: var(--saffron); font-weight: 800; }
.form-required-note { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.9rem; }
.field input, .field select, .field textarea { font-family: var(--body); font-size: 1rem; padding: 0.8rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; }
:root[lang="ar"] .field input, :root[lang="ar"] .field select, :root[lang="ar"] .field textarea { font-family: var(--arabic); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(179,146,90,0.22); }
.field textarea { min-height: 120px; resize: vertical; }
.form__error { display: none; color: #a23b2f; font-weight: 600; font-size: 0.9rem; }
.form__error.show { display: block; }
.form__ok { display: none; }
.form__ok.show { display: block; background: color-mix(in srgb, var(--sage) 40%, transparent); border: 1px solid var(--sage-deep); border-radius: var(--r-md); padding: 1rem 1.2rem; color: var(--forest-deep); font-weight: 600; }

/* ---------- 3-step form wizard ---------- */
.wizard__progress { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.3rem; }
.wizard__dot { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.82rem; color: var(--ink-soft); }
.wizard__dot .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ivory-2); border: 1.5px solid var(--line-brass); color: var(--charcoal-soft); font-family: var(--display); }
.wizard__dot.active .n { background: var(--forest); color: var(--parchment); border-color: var(--forest); }
.wizard__dot.done .n { background: var(--saffron); color: #fff; border-color: var(--saffron); }
.wizard__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 12px; }
.wizard__bar.done { background: var(--saffron); }
.wizard-step[hidden] { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.2rem; }
.wizard__label { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--forest); margin-bottom: 0.9rem; }
:root[lang="ar"] .wizard__label { font-family: var(--arabic); }

/* ---------- Route selector (Work With Us) ---------- */
.routes { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .routes { grid-template-columns: repeat(3, 1fr); } }
.route { background: var(--parchment); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.route__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); margin-bottom: 0.6rem; }
.route h3 { margin-bottom: 0.3rem; }
.route p { color: var(--ink-soft); flex: 1; }
.route .btn { margin-top: 1rem; }

.confidentiality { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--r-lg); background: var(--forest); color: rgba(247,243,234,0.78); box-shadow: var(--shadow-sm); }
.confidentiality h2 { color: var(--parchment); margin-bottom: 0; }
.confidentiality .eyebrow { color: var(--brass-soft); }
.confidentiality .lead { color: var(--parchment); margin-bottom: 0.8rem; }
@media (min-width: 760px) { .confidentiality { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }

/* ---------- Notice / chips ---------- */
.notice { background: color-mix(in srgb, var(--sage) 34%, transparent); border: 1px solid var(--line-brass); border-radius: var(--r-md); padding: 0.9rem 1.15rem; font-size: 0.92rem; color: var(--charcoal-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--forest); background: color-mix(in srgb, var(--sage) 30%, transparent); border: 1px solid var(--line-brass); padding: 0.35rem 0.8rem; border-radius: var(--r-pill); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 150; display: flex; justify-content: center; padding: 0.55rem var(--gut) calc(0.55rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--forest) 96%, transparent); backdrop-filter: blur(8px); border-top: 1px solid rgba(179,146,90,0.35); box-shadow: 0 -10px 30px rgba(15,39,31,0.22); }
.sticky-cta .btn { flex: 0 1 520px; min-width: 0; min-height: 48px; padding-inline: 1rem; font-size: 0.92rem; white-space: nowrap; text-align: center; }
.sticky-cta .btn--primary { background: var(--parchment); color: var(--forest); border: none; }
.sticky-cta .btn--secondary { background: transparent; color: var(--parchment); border: 1.5px solid rgba(247,243,234,0.55); }
@media (min-width: 700px) { .sticky-cta { display: none; } }

/* Mobile: hero CTAs stack full-width and centred for symmetry */
@media (max-width: 640px) {
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .hero__ctas .btn { width: 100%; }
  /* Centre the hero "front writing" on mobile */
  .hero__grid > div:first-child { text-align: center; }
  .hero__grid .eyebrow { justify-content: center; }
  .hero__grid .lead { margin-inline: auto; }
  .hero__note { text-align: center; }
  .hero__title { max-width: none; font-size: clamp(2.45rem, 12vw, 3.45rem); }
  .hero__visual { margin-inline: auto; width: 100%; max-width: 520px; }
}

/* Mobile header: symmetric — menu (start) · centred brand · language (end) */
@media (max-width: 1159px) {
  .site-header nav[aria-label="Primary"] { display: none; }
  .site-header__inner { position: relative; justify-content: space-between; }
  .brand { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); }
  :root[dir="rtl"] .brand { transform: translate(50%, -50%); }
  .header-right { gap: 0; }
  .site-header { background: color-mix(in srgb, var(--ivory) 96%, transparent); color: var(--charcoal); box-shadow: var(--shadow-sm); }
}

@media (max-width: 420px) {
  .brand__word { font-size: clamp(1.05rem, 5.2vw, 1.3rem); }
  .brand__ar { display: none; }
  .lang { padding: .3rem .55rem; font-size: .78rem; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--forest-deep); color: rgba(247,243,234,0.78); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; overflow: hidden; }
.site-footer__mark { position: absolute; inset-inline-start: 50%; inset-block-start: 40%; transform: translate(-50%, -50%); font-family: var(--naskh); font-size: clamp(12rem, 36vw, 30rem); color: transparent; -webkit-text-stroke: 1px rgba(179,146,90,0.12); line-height: 1; pointer-events: none; direction: rtl; }
.footer-grid { position: relative; z-index: 1; display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand__name { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--parchment); }
:root[lang="ar"] .footer-brand__name { font-family: var(--arabic); }
.footer-col h4 { color: var(--brass-soft); font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.9rem; }
:root[lang="ar"] .footer-col h4 { font-family: var(--arabic); letter-spacing: 0.04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--parchment); text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid var(--line-parchment); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; font-size: 0.8rem; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--forest); color: var(--parchment); padding: 0.75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 0; }
.skip-link:focus { inset-inline-start: 0; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .l, .hero__sub, .hero__ctas, .hero__note, .hero__mark, .hero__visual { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee__track { animation: none !important; }
  .loop-flow, .loop-pulse { animation: none !important; }
}
