/* ==========================================================================
   SANAD — public site
   Design system: Trust & Authority · Minimal/Swiss (ui-ux-pro-max), on the
   Bureau's own logo colours. One stylesheet for LTR and RTL: layout uses
   logical properties (inline/block) so Arabic mirrors automatically.
   ========================================================================== */

:root {
  /* Brand (sampled from the logo) */
  --navy-950: #0f2236;
  --navy-900: #142c42;
  --navy-800: #16304a;
  --navy-700: #20415e;   /* logo navy */
  --navy-600: #2c5b80;
  --sky-500: #75b7f8;    /* logo sky — on dark surfaces only (2.2:1 on white) */
  --sky-200: #c9e2fc;
  --sky-100: #e8f2fd;
  --accent-ink: #1c64a8; /* links/eyebrows on light surfaces (5.4:1) */

  /* Neutrals */
  --ink: #142233;
  --text: #1f2f40;
  --muted: #52667a;      /* 5.9:1 on white */
  --line: #dce6ef;
  --line-strong: #c3d2df;
  --tint: #f3f7fb;
  --surface: #ffffff;

  /* Feedback */
  --success: #1e7a4f;
  --success-bg: #e9f6ef;
  --danger: #b42318;
  --danger-bg: #fef3f2;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --lh-body: 1.65;

  /* Space & shape */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(20 44 66 / .06), 0 1px 3px rgb(20 44 66 / .05);
  --shadow: 0 10px 30px -12px rgb(20 44 66 / .22);
  --shadow-lg: 0 24px 60px -24px rgb(20 44 66 / .35);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
  --t: 260ms;

  --header-h: 84px;
}

:lang(ar) {
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-head: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --lh-body: 1.85;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
[hidden] { display: none !important; }
html, body { overflow-x: clip; } /* safety net; `clip` keeps position: sticky working */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
h3, h4 { font-family: var(--font-body); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sky-200); color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--sky-500); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200;
  background: var(--navy-700); color: #fff; padding: .75rem 1.1rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 1rem;
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: .9rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--sky-500); }

.h-display { font-size: clamp(2.35rem, 5.2vw, 4rem); }
.h-1 { font-size: clamp(2rem, 4vw, 3rem); }
.h-2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.h-3 { font-family: var(--font-body); font-size: 1.2rem; font-weight: 600; line-height: 1.4; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.on-dark .lead { color: #cfe0f1; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 1rem; }
.section-head.center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.media-wide { grid-template-columns: 1.1fr .9fr; }
  .split.reverse > :first-child { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-700); --btn-fg: #fff; --btn-bd: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover { --btn-bg: var(--navy-800); color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon-arrow { transform: scaleX(-1) translateX(3px); }
.btn-sky { --btn-bg: var(--sky-500); --btn-fg: var(--navy-900); --btn-bd: var(--sky-500); }
.btn-sky:hover { --btn-bg: #8fc5fa; --btn-bd: #8fc5fa; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--tint); --btn-bd: var(--navy-700); }
.on-dark .btn-ghost { --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .45); }
.on-dark .btn-ghost:hover { --btn-bg: rgb(255 255 255 / .1); --btn-bd: #fff; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--accent-ink);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgb(20 44 66 / .35); }
.site-header > .container { max-width: 1400px; }
.site-header .brand-sub { display: none; } /* full name lives in the drawer and footer */
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height var(--t) var(--ease); }
.site-header.is-scrolled .header-inner { height: 70px; }
.brand { display: flex; align-items: center; gap: .8rem; flex: none; text-decoration: none; }
.brand-mark { height: 40px; width: auto; transition: height var(--t) var(--ease); }
.site-header.is-scrolled .brand-mark { height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: .2em; color: var(--navy-700); }
.brand-sub { font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
:lang(ar) .brand-name { letter-spacing: 0; font-size: 1.05rem; }
:lang(ar) .brand-sub { font-size: .78rem; }
.lang-short { display: none; }
@media (max-width: 560px) {
  .header-inner { gap: .75rem; }
  .header-actions { gap: .4rem; }
  .brand { gap: .6rem; }
  .brand-sub, .lang-full { display: none; }
  .lang-short { display: inline; }
  .brand-mark, .site-header.is-scrolled .brand-mark { height: 30px; }
}
@media (max-width: 380px) {
  .brand-mark, .site-header.is-scrolled .brand-mark { height: 24px; }
  .brand-name { font-size: .95rem; letter-spacing: .14em; }
  .lang-switch { padding-inline: .5rem; }
}

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; }
.main-nav a {
  position: relative; display: block; padding: .5rem .6rem;
  color: var(--navy-700); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: .6rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--sky-500); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform var(--t) var(--ease);
}
[dir="rtl"] .main-nav a::after { --origin: right; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding-inline: .7rem;
  color: var(--navy-700); font-size: .9rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-sm);
}
.lang-switch:hover { background: var(--tint); color: var(--navy-700); }
.lang-switch .icon { width: 18px; height: 18px; }
.header-cta { padding-inline: 1.1rem; min-height: 44px; font-size: .875rem; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 46px; height: 46px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--navy-700); cursor: pointer;
}

@media (max-width: 1340px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(15 34 54 / .55); opacity: 0; transition: opacity var(--t) var(--ease); }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 380px);
  display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg);
  transform: translateX(var(--drawer-from, 100%)); transition: transform 320ms var(--ease);
}
[dir="rtl"] .drawer-panel { --drawer-from: -100%; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head .brand-mark { height: 30px; }
.drawer nav { padding: .75rem 1.25rem; overflow-y: auto; flex: 1; }
.drawer nav ul { list-style: none; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  border-bottom: 1px solid var(--line); color: var(--navy-700); font-weight: 500; text-decoration: none;
}
.drawer nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .75rem; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* Mobile: photo full-bleed under an even overlay so text contrast never depends on the photo */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgb(15 34 54 / .9), rgb(15 34 54 / .82));
}

/* Mirror a photo whose subject would otherwise sit under the text in that language
   (only photos without text, logos or handedness cues). */
[dir="ltr"] .media-flip-ltr, [dir="rtl"] .media-flip-rtl { transform: scaleX(-1); }
.hero-inner { padding-block: clamp(5rem, 12vw, 9rem) clamp(5rem, 11vw, 8.5rem); max-width: 760px; }
.hero h1 { color: #fff; }
.hero .lead { margin-top: 1.5rem; color: #d3e3f2; }
.hero .btn-row { margin-top: 2.5rem; }
.hero-helix { position: absolute; inset-inline-end: -40px; bottom: -30px; width: min(48vw, 560px); opacity: .22; z-index: -1; pointer-events: none; }
[dir="rtl"] .hero-helix { transform: scaleX(-1); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); isolation: isolate; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgb(15 34 54 / .9), rgb(15 34 54 / .82));
}
.page-hero-inner { padding-block: clamp(4rem, 9vw, 6.5rem); max-width: 640px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { margin-top: 1.25rem; color: #d3e3f2; }

/* Desktop: split hero — solid navy behind the text, the photo fills the far side and
   fades in. Text contrast stays on solid navy; people in the photo stay visible. */
@media (min-width: 960px) {
  .hero-media, .page-hero-media { inset-inline-start: 30%; }
  .hero::before, .page-hero::before {
    background:
      radial-gradient(50% 70% at var(--glow-x, 88%) 12%, rgb(117 183 248 / .18), transparent 60%),
      linear-gradient(var(--hero-angle, 90deg), rgb(15 34 54 / .97) 0%, rgb(15 34 54 / .95) 44%, rgb(20 44 66 / .62) 60%, rgb(32 65 94 / .18) 82%, rgb(32 65 94 / .08) 100%);
  }
  [dir="rtl"] .hero::before, [dir="rtl"] .page-hero::before { --hero-angle: 270deg; --glow-x: 12%; }
}

.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; list-style: none; font-size: .875rem; color: #a9c2d9; }
.breadcrumb a { color: #d3e3f2; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .5rem; opacity: .6; }

/* ---------- Capability strip ---------- */
.caps { background: #fff; border-bottom: 1px solid var(--line); }
.caps .grid { padding-block: clamp(2rem, 4vw, 2.75rem); }
.cap { display: flex; gap: 1rem; align-items: flex-start; }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px; background: var(--sky-100); color: var(--navy-700);
}
.icon-badge .icon { width: 24px; height: 24px; }
.cap h3 { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.cap p { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.home-caps { position: relative; z-index: 2; margin-top: -3rem; }
.home-caps .container > .grid {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
}
@media (max-width: 720px) { .home-caps { margin-top: -2rem; } }

/* ---------- Media frames ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.media-frame.tall img { aspect-ratio: 4 / 5; }
.media-frame.wide img { aspect-ratio: 16 / 10; }
.media-stack { position: relative; padding-bottom: 3rem; padding-inline-end: 3rem; }
.media-stack .media-frame.inset {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 46%;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.media-stack .media-frame.inset img { aspect-ratio: 1; }
.media-accent { position: absolute; inset-inline-start: -18px; top: -18px; width: 120px; height: 120px; border-radius: 18px; background: var(--sky-100); z-index: -1; }

/* ---------- Check list ---------- */
.check-list { list-style: none; display: grid; gap: .85rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: var(--accent-ink); margin-top: .15rem; }
.on-dark .check-list .icon { color: var(--sky-500); }
.on-dark .check-list li { color: #e1ecf7; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .icon-badge { margin-bottom: 1.25rem; }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: 1rem; }
.card-line { border-top: 3px solid var(--navy-700); }

.service-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.service-card .icon-badge { margin: 0; }

.statement {
  border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); background: var(--tint); border: 1px solid var(--line);
}
.statement h3 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 1rem; }
.statement p { font-size: 1.05rem; }
.statement.dark { background: var(--navy-700); border-color: var(--navy-700); }
.statement.dark h3 { color: #fff; }
.statement.dark p { color: #d3e3f2; }

/* ---------- Timeline (market entry) ---------- */
.timeline-wrap { position: relative; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; list-style: none; counter-reset: stage; }
.timeline-track { position: absolute; top: 23px; inset-inline: 8%; height: 2px; background: var(--line); }
.timeline-progress { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-700), var(--sky-500)); transform-origin: var(--origin, left); transform: scaleX(1); }
[dir="rtl"] .timeline-progress { --origin: right; background: linear-gradient(270deg, var(--navy-700), var(--sky-500)); }
.timeline li { position: relative; text-align: center; padding-inline: .25rem; }
.timeline .dot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: #fff; border: 2px solid var(--sky-500); color: var(--navy-700); font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--tint);
}
.section:not(.section-tint) .timeline .dot { box-shadow: 0 0 0 6px #fff; }
.timeline h3 { font-size: .98rem; font-weight: 600; margin-bottom: .35rem; line-height: 1.4; }
.timeline p { font-size: .85rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-track { top: 24px; bottom: 24px; inset-inline-start: 23px; inset-inline-end: auto; width: 2px; height: auto; }
  .timeline-progress { transform-origin: top; background: linear-gradient(180deg, var(--navy-700), var(--sky-500)); }
  [dir="rtl"] .timeline-progress { background: linear-gradient(180deg, var(--navy-700), var(--sky-500)); }
  .timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; text-align: start; padding-block-end: 1.75rem; }
  .timeline .dot { margin: 0; }
}

/* Detailed stages (market entry page) */
.stages { list-style: none; display: grid; gap: 1rem; }
.stage {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: start;
  padding: clamp(1.5rem, 3vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.stage:hover { border-color: var(--sky-500); box-shadow: var(--shadow); }
.stage-num {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 14px;
  background: var(--navy-700); color: #fff; font-weight: 700; font-size: 1.5rem; line-height: 1;
}
.stage-num small { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-500); margin-bottom: .3rem; }
:lang(ar) .stage-num small { letter-spacing: 0; font-size: .72rem; }
.stage h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.stage p { color: var(--muted); }

/* ---------- Dark band (partnerships) ---------- */
.band { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; isolation: isolate; }
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--hero-angle, 100deg), rgb(15 34 54 / .96) 20%, rgb(32 65 94 / .82) 100%); }
[dir="rtl"] .band::before { --hero-angle: 260deg; }
.band h2 { color: #fff; }
.band .check-list { margin-top: 2rem; }

.glass-card {
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); backdrop-filter: blur(6px);
}
.glass-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.glass-card p { color: #c6d8ea; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.steps li {
  counter-increment: step; position: relative; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.35rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); flex: none; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--sky-100); color: var(--navy-700); font-weight: 700; font-size: .95rem;
}

/* ---------- Person card ---------- */
.person-card { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.person-card .name { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.person-card .role { color: var(--muted); font-size: .95rem; }
.contact-lines { list-style: none; display: grid; gap: .6rem; }
.contact-lines a, .contact-lines > li > span { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-700); font-weight: 500; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--accent-ink); text-decoration: underline; }
.contact-lines .icon { width: 18px; height: 18px; color: var(--accent-ink); }
.on-dark .contact-lines a, .on-dark .contact-lines > li > span { color: #e1ecf7; }
.on-dark .contact-lines a:hover { color: #fff; }
.on-dark .contact-lines .icon { color: var(--sky-500); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Infrastructure figures ---------- */
.figure-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.figure-card .media-frame { border-radius: 0; }
.figure-card .body { padding: clamp(1.5rem, 3vw, 2rem); }
.figure-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.figure-card p { color: var(--muted); }

/* ---------- News ---------- */
.news-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.news-card .thumb { overflow: hidden; aspect-ratio: 16 / 10; background: var(--tint); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { display: flex; flex-direction: column; gap: .65rem; padding: 1.5rem; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .8rem; color: var(--muted); }
.tag { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--sky-100); color: var(--navy-700); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:lang(ar) .tag { letter-spacing: 0; font-size: .8rem; }
.news-card h3 { font-size: 1.1rem; line-height: 1.45; }
.news-card p { color: var(--muted); font-size: .93rem; }
.news-card .link-arrow { margin-top: auto; padding-top: .5rem; }

.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.5rem; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose p { font-size: 1.075rem; margin-bottom: 1.35rem; color: var(--text); }
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg);
  background: linear-gradient(var(--hero-angle, 110deg), var(--navy-800), var(--navy-600)); color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
[dir="rtl"] .cta-band { --hero-angle: 250deg; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgb(117 183 248 / .35), transparent 65%); z-index: -1; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #d3e3f2; margin-top: .75rem; max-width: 56ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: .45rem; }
.field label, .field .label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; background: #fff; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 2.5rem; }
[dir="rtl"] .select { background-position: 20px 50%, 15px 50%; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgb(28 100 168 / .15); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.help { font-size: .82rem; color: var(--muted); }
.error { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--danger); font-weight: 500; }
.error .icon { width: 16px; height: 16px; }

.file-drop {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--tint); cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.file-drop:hover, .file-drop.is-dragging { border-color: var(--accent-ink); background: var(--sky-100); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop input:focus-visible + .file-drop-ui { outline: 3px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
.file-drop-ui { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.file-drop .icon-badge { width: 42px; height: 42px; background: #fff; }
.file-drop .file-name { display: block; font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-drop .file-choose { font-weight: 600; color: var(--accent-ink); }
.file-drop.has-file .file-name { color: var(--ink); font-weight: 500; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--navy-700); flex: none; }
/* Honeypot: hidden by clipping, not off-screen positioning — a far-left offset
   makes RTL pages scroll sideways (overflow to the left is scrollable in RTL). */
.hp { position: absolute !important; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.alert { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 1.5rem; }
.alert .icon { width: 22px; height: 22px; margin-top: .1rem; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #b7e2c9; }
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f7c9c4; }

.form-split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .form-split { grid-template-columns: .8fr 1.2fr; } .form-split .sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- Contact ---------- */
.contact-cards .card { display: flex; flex-direction: column; gap: .5rem; }
.contact-cards .card h3 { margin-bottom: .25rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--tint); aspect-ratio: 16 / 9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; color: inherit; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.social-links .icon { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9c2d9; padding-top: clamp(3.5rem, 7vw, 5rem); font-size: .93rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8aa6c1; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
:lang(ar) .site-footer h2 { letter-spacing: 0; font-size: .95rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #c7d8e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .social-links a { color: #c7d8e9; border-color: rgb(255 255 255 / .25); }
.site-footer .social-links a:hover { background: var(--sky-500); color: var(--navy-900); border-color: var(--sky-500); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .85rem; color: #8aa6c1; }

/* ---------- WhatsApp ---------- */
.wa-fab {
  position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / .4);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.wa-fab:hover { color: #fff; transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px -8px rgb(0 0 0 / .45); }
.wa-fab .icon { width: 28px; height: 28px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; animation: wa-ping 2.8s var(--ease) infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; list-style: none; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--navy-700); font-weight: 600;
}
.pagination a:hover { border-color: var(--navy-700); background: var(--tint); }
.pagination [aria-current="page"] span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.pagination .disabled span { color: var(--line-strong); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }

/* ---------- Motion ---------- */
/* Content is visible by default; .motion-ok (set by JS only when the visitor
   allows motion) hides reveal targets until GSAP brings them in. */
.motion-ok [data-reveal], .motion-ok [data-stagger] > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wa-fab::before { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-fab, .drawer, .btn { display: none !important; }
  .hero, .page-hero, .band { background: none !important; color: #000; }
  .hero h1, .page-hero h1, .band h2 { color: #000; }
}
