/* ============================================================
   Shenzhen Globelink Trading — Design System
   Implements DESIGN.md tokens. Brand: Navy/Sky/White, Space Grotesk.
   Feel: Sequel cinematic gallery, recoloured navy + sky.
   ============================================================ */

/* Self-hosted fonts — no third-party CDN.
   Outfit (variable 500–800) for headlines; Poppins (300/400/500) for body. */
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family:'Poppins'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/poppins-300.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/poppins-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/poppins-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/poppins-400-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Brand colours */
  --color-navy: #00132F;
  --color-sky: #FF8A4A;
  --color-white: #FFFFFF;

  /* Surfaces */
  --surface-canvas: #00132F;
  --surface-elevated: #0A2547;
  --surface-raised: #10325C;
  --surface-inverted: #FFFFFF;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #9DB0C6;
  --text-muted: #8CA0BC;
  --text-on-accent: #00132F;
  --text-on-inverted: #00132F;

  /* Accent */
  --accent: #FF8A4A;
  --accent-hover: #FFA24C;
  --accent-press: #F0563B;

  /* Borders */
  --border-hairline: rgba(255, 138, 74, 0.18);
  --border-ghost: rgba(255, 255, 255, 0.5);

  /* Typography */
  --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Type scale */
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 18px;
  --text-subheading: 22px;
  --text-heading: 32px;
  --text-heading-lg: 58px;
  --text-display: 128px;

  /* Spacing */
  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-28: 28px; --s-32: 32px;
  --s-40: 40px; --s-64: 64px; --s-80: 80px; --s-96: 96px;

  /* Layout */
  --page-max-width: 1280px;
  --section-gap: 96px;
  --card-padding: 19px;
  --element-gap: 16px;
  --body-measure: 560px;

  /* Radius */
  --radius-lg: 10px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xl: rgba(0,0,0,0.45) 0 10px 30px 0, rgba(255,138,74,0.10) 0 1px 0 0 inset;
  --shadow-lg: rgba(0,0,0,0.25) 0 4px 20px 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--text-body);
  line-height: 1.4;
  letter-spacing: -0.36px;
  color: var(--text-primary);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--s-24);
}
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: var(--s-64); }
.measure { max-width: var(--body-measure); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: var(--s-24); }

/* ---------- Typography ---------- */
/* Headline family (Outfit) — body stays Poppins via body{} */
.display, .h-lg, .h, .subheading, .stat__num, .logo__word { font-family: var(--font-display); }
/* Sub-page hero headlines: lighter weight to match the homepage hero treatment */
.hero .h-lg, .page-intro .h-lg { font-weight: 600; letter-spacing: -0.03em; }
.display {
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h-lg {
  font-weight: var(--fw-bold);
  font-size: clamp(34px, 5.2vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.h {
  font-weight: var(--fw-medium);
  font-size: clamp(26px, 3.4vw, var(--text-heading));
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.subheading {
  font-weight: var(--fw-medium);
  font-size: var(--text-subheading);
  line-height: 1.4;
  letter-spacing: -0.44px;
}
.body { font-size: var(--text-body); color: var(--text-secondary); line-height: 1.5; }
.body-sm { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: 1.5; letter-spacing: -0.28px; }
.muted { color: var(--text-muted); }
.eyebrow {
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  border-radius: var(--radius-full);
  padding: 16px 24px;
  font-weight: var(--fw-medium);
  font-size: 15px;
  letter-spacing: -0.30px;
  border: none;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--color-white); border: 1px solid var(--border-ghost); }
.btn-ghost:hover { border-color: var(--color-white); background: rgba(255,255,255,0.04); }

.btn-inverted { background: var(--color-navy); color: var(--color-white); }
.btn-inverted:hover { background: var(--surface-raised); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-16); }
.btn-row.center { justify-content: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 19, 47, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav__inner {
  max-width: var(--page-max-width);
  margin-inline: auto;
  height: 64px;
  padding-inline: var(--s-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__word { font-weight: var(--fw-medium); font-size: 20px; letter-spacing: -0.02em; }
.logo__bars { display: inline-flex; gap: 3px; align-items: flex-end; }
.logo__bars span { width: 2px; height: 14px; background: var(--accent); border-radius: 1px; }
.logo__bars span:nth-child(2) { height: 10px; }
.logo__bars span:nth-child(3) { height: 16px; }
.logo__mark { order: -1; width: 28px; height: 28px; flex: 0 0 auto; display: block; }

.nav__links { display: flex; align-items: center; gap: var(--s-24); }
.nav__links a {
  font-size: 14px;
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  transition: color .15s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-white); }
.nav__right { display: flex; align-items: center; gap: var(--s-16); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  width: 42px; height: 42px;
  color: var(--color-white);
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(72vh, 580px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--surface-canvas);
}
.hero--short { min-height: min(52vh, 440px); }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Cinematic navy backdrop with sky glow + route lines (placeholder imagery) */
.cine {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(255,138,74,0.28), rgba(255,138,74,0) 55%),
    radial-gradient(90% 70% at 20% 90%, rgba(16,50,92,0.9), rgba(0,19,47,0) 60%),
    linear-gradient(180deg, #001026 0%, #00132F 60%, #001735 100%);
}
.cine::after {
  /* faint grain */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
/* Photographic hero layer — image with on-brand navy/sky tint for text legibility.
   Falls back to navy canvas if the image file is missing. */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--surface-canvas);
  background-size: cover;
  background-position: center;
}
/* Hero imagery — real CC photos downloaded locally (self-hosted, not hotlinked, so no
   third-party dependency). Swap to your own files by replacing these images/ files.
   On-brand SVG scenes (hero-port.svg / hero-routes.svg) remain as fallbacks. */
.hero-img--sunset   { background-image: url("../images/port-sunset.jpg"), url("../images/hero-port.svg"); background-position: center; }
.hero-img--terminal { background-image: url("../images/team-port.jpg"), url("../images/hero-port.svg"); background-position: center; }
.hero-img--aerial   { background-image: url("../images/global-network.jpg"), url("../images/hero-routes.svg"); background-position: center; }
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(255,138,74,0.16), transparent 55%),
    linear-gradient(180deg, rgba(0,19,47,0.30) 0%, rgba(0,19,47,0.50) 55%, rgba(0,19,47,0.88) 100%);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,19,47,0.10) 0%, rgba(0,19,47,0.55) 70%, rgba(0,19,47,0.92) 100%);
}

/* Photographic card media */
.card__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--surface-canvas);
  background-size: cover;
  background-position: center;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: var(--s-40) var(--s-24) var(--s-64);
}
.hero__content .display, .hero__content .h-lg { max-width: 16ch; }
.hero p.lede { margin-top: var(--s-24); max-width: 52ch; color: var(--text-secondary); font-size: var(--text-body); line-height: 1.5; }
.hero .btn-row { margin-top: var(--s-32); }

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-24);
  padding-block: var(--s-40);
}
.stat { text-align: center; }
.stat__num { font-weight: var(--fw-bold); font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.stat__num .accent-text { color: var(--accent); }
.stat__label { margin-top: var(--s-8); color: var(--text-muted); font-size: var(--text-body-sm); }

/* ---------- Section header ---------- */
.section-head { margin-bottom: var(--s-40); }
.section-head .eyebrow { display: block; margin-bottom: var(--s-16); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--s-24); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Editorial image card */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-28);
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
  isolation: isolate;
}
.card__media { position: absolute; inset: 0; z-index: -2; }
.card__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,19,47,0) 30%, rgba(0,19,47,0.85) 100%);
}
.card h3 { font-weight: var(--fw-medium); font-size: var(--text-subheading); letter-spacing: -0.44px; }
.card p { margin-top: var(--s-12); color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.5; }
.card .badge { position: absolute; top: var(--s-16); left: var(--s-16); z-index: 1; }

/* Card media variants (placeholder cinematic fills) */
.media-a { background: radial-gradient(120% 100% at 80% 10%, rgba(255,138,74,0.30), transparent 55%), linear-gradient(160deg, #08203f, #00132f); }
.media-b { background: radial-gradient(120% 100% at 15% 15%, rgba(255,138,74,0.24), transparent 55%), linear-gradient(160deg, #0b2748, #00132f); }
.media-c { background: radial-gradient(130% 100% at 60% 90%, rgba(255,138,74,0.22), transparent 55%), linear-gradient(200deg, #0a2547, #00132f); }
.media-d { background: radial-gradient(120% 100% at 50% 0%, rgba(255,138,74,0.20), transparent 60%), linear-gradient(180deg, #0c2a4e, #00132f); }

/* Icon tile — neutral by default; accent shows on the stroke + on hover only (see hover rules below) */
.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border-hairline);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-20);
}
.icon-tile svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; }

/* Feature block (non-image) */
.feature {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-32);
  height: 100%;
}
.feature h3 { font-weight: var(--fw-medium); font-size: var(--text-subheading); letter-spacing: -0.44px; }
.feature p { margin-top: var(--s-12); color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.5; }
.feature ul { margin-top: var(--s-20); }
.feature ul li {
  position: relative;
  padding-left: 26px;
  margin-top: var(--s-12);
  color: var(--text-secondary);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}
.feature ul li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Badges ---------- */
/* Neutral surface by default — the accent budget on any given card goes to the CTA, not the taxonomy tag */
.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0,19,47,0.55);
  box-shadow: rgba(255,255,255,0.10) 0 1px 0 inset;
  border-radius: var(--radius-full);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

/* ---------- Inverted (white) panel ---------- */
.panel-inverted {
  background: var(--surface-inverted);
  color: var(--text-on-inverted);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
}
.panel-inverted .eyebrow { color: var(--accent-press); }
.panel-inverted .body { color: #33506e; }
.panel-inverted .h-lg { color: var(--color-navy); }

/* ---------- Region columns ---------- */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.region {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-28);
}
.region h3 { font-size: var(--text-subheading); font-weight: var(--fw-medium); letter-spacing: -0.44px; margin-bottom: var(--s-16); }
.region ul li { color: var(--text-secondary); font-size: var(--text-body-sm); padding-block: 6px; border-bottom: 1px solid var(--border-hairline); }
.region ul li:last-child { border-bottom: none; }

/* ---------- Forms ---------- */
.form-wrap {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.field { margin-bottom: var(--s-24); }
.field label { display: block; font-size: var(--text-body-sm); color: var(--text-secondary); margin-bottom: var(--s-8); }
.field label .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  background: var(--surface-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,138,74,0.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { margin-top: var(--s-16); color: var(--text-muted); font-size: var(--text-body-sm); }
.form-success {
  display: none;
  background: rgba(255,138,74,0.10);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-24);
  color: var(--color-white);
}

/* ---------- Contact methods ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
.contact-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--s-28);
}
.contact-card .icon-tile { margin-bottom: var(--s-16); }
.contact-card h3 { font-size: var(--text-subheading); font-weight: var(--fw-medium); letter-spacing: -0.44px; }
.contact-card a, .contact-card p { display: block; margin-top: var(--s-8); color: var(--text-secondary); font-size: var(--text-body-sm); }
.contact-card a:hover { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h-lg { max-width: 18ch; margin-inline: auto; }
.cta-band .body { margin-top: var(--s-16); margin-inline: auto; }
.cta-band .btn-row { margin-top: var(--s-32); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
  padding-block: var(--s-64) var(--s-40);
  margin-top: var(--s-96);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-40);
}
.footer h4 { font-size: var(--text-body-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: var(--s-16); }
.footer a, .footer p { color: var(--text-secondary); font-size: var(--text-body-sm); line-height: 1.7; display: block; }
.footer a:hover { color: var(--accent); }
.footer__brand .body-sm { margin-top: var(--s-16); max-width: 34ch; color: var(--text-muted); }
.footer__bottom {
  margin-top: var(--s-40);
  padding-top: var(--s-24);
  border-top: 1px solid var(--border-hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-16);
  color: var(--text-muted); font-size: var(--text-body-sm);
}

/* ---------- Page intro (sub-pages) ---------- */
.page-intro { padding-block: var(--s-80) var(--s-40); }
.page-intro .display, .page-intro .h-lg { max-width: 18ch; }
.page-intro .body { margin-top: var(--s-24); max-width: 54ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --section-gap: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border-hairline);
    padding: var(--s-12) var(--s-24) var(--s-24);
  }
  .nav.open .nav__links a { padding-block: var(--s-12); width: 100%; border-bottom: 1px solid var(--border-hairline); }
  .grid-2, .grid-3, .regions, .contact-grid, .trust__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .regions, .contact-grid, .trust__grid { grid-template-columns: 1fr; }
  .trust__grid { gap: var(--s-32); }
  .nav__right .btn { padding: 12px 18px; font-size: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ============================================================
   Motion layer — cinematic heroes, scroll reveals, hover life
   ============================================================ */

/* --- Hero: static photo / gradient backdrop (no ambient zoom — restraint pass) --- */
.hero__photo, .cine {
  transform: scale(1.04);
  transform-origin: 60% 40%;
}

/* --- Hero: subtle static shipping-lane texture (no drift — restraint pass) --- */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,138,74,0.05) 46px 47px);
  pointer-events: none;
}

/* --- Hero: single static glow (one accent moment, not layered/animated) --- */
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -15%;
  right: -8%;
  width: 48vmax;
  height: 48vmax;
  background: radial-gradient(circle, rgba(255,138,74,0.14), transparent 60%);
  filter: blur(24px);
  pointer-events: none;
}

/* --- Hero content: staggered entrance --- */
.hero__content > * {
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.10s; }
.hero__content > *:nth-child(2) { animation-delay: 0.22s; }
.hero__content > *:nth-child(3) { animation-delay: 0.34s; }
.hero__content > *:nth-child(4) { animation-delay: 0.46s; }
.hero__content > *:nth-child(5) { animation-delay: 0.58s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero primary CTA: static shadow — glow now only appears on hover (see .btn-primary:hover), not as an ambient loop */

/* --- Scroll reveal (applied via JS) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Card & feature hover life --- */
.card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.card__media, .card__photo, .card__scrim { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover { transform: translateY(-6px); }
.card:hover .card__media, .card:hover .card__photo { transform: scale(1.07); }

.feature {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, background .3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(255,138,74,0.42);
}
.feature:hover .icon-tile {
  transform: translateY(-2px) scale(1.06);
  background: rgba(255,138,74,0.2);
}
.icon-tile { transition: transform .3s ease, background .3s ease; }

.contact-card, .region {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
}
.contact-card:hover, .region:hover {
  transform: translateY(-4px);
  border-color: rgba(255,138,74,0.42);
}

/* --- Stat numbers: tabular while counting --- */
.stat__num { font-variant-numeric: tabular-nums; }

/* ============================================================
   Donor-adapted block — from third-party "hero-with-video".
   Structural donor only (per CLAUDE.md): skeleton kept; skin =
   DESIGN.md tokens; words = COPY.md. Stock image, hosted video,
   newsletter email and theme toggle intentionally dropped.
   ============================================================ */
.media-hero { padding-block: var(--s-80) var(--s-40); }
.media-hero__head { max-width: 760px; margin-inline: auto; text-align: center; }
.media-hero__head .display { max-width: none; margin-inline: auto; }
.media-hero__head .lede { margin: var(--s-24) auto 0; max-width: 54ch; color: var(--text-secondary); font-size: var(--text-body); line-height: 1.5; }
.media-hero__head .btn-row { justify-content: center; margin-top: var(--s-32); }

.media-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--surface-elevated);
  margin-top: var(--s-40);
  isolation: isolate;
}
.media-showcase__scene {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../images/port-sunset.jpg'), url('../images/hero-port.svg');
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.media-showcase__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,19,47,0) 40%, rgba(0,19,47,0.85) 100%);
}
.media-showcase__caption {
  position: absolute; left: var(--s-28); right: var(--s-28); bottom: var(--s-28);
  color: var(--color-white);
}
.media-showcase__caption h2 {
  font-weight: var(--fw-medium); font-size: var(--text-subheading);
  letter-spacing: -0.44px; max-width: 28ch;
}
.media-showcase .badge { position: absolute; top: var(--s-16); left: var(--s-16); z-index: 1; }

/* ============================================================
   Hero entrance — staggered fade-up. Adapted from the third-party
   "AnimatedHero" component (structural donor, per CLAUDE.md): its
   framer-motion stagger is reproduced with CSS keyframes — no React,
   Tailwind, or lucide. Disabled under prefers-reduced-motion below.
   ============================================================ */
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__content > *, .media-hero__head > *, .page-intro > * {
  animation: heroRise 0.6s cubic-bezier(.16,.84,.44,1) both;
}
.hero__content > *:nth-child(1), .media-hero__head > *:nth-child(1), .page-intro > *:nth-child(1) { animation-delay: .05s; }
.hero__content > *:nth-child(2), .media-hero__head > *:nth-child(2), .page-intro > *:nth-child(2) { animation-delay: .18s; }
.hero__content > *:nth-child(3), .media-hero__head > *:nth-child(3), .page-intro > *:nth-child(3) { animation-delay: .31s; }
.hero__content > *:nth-child(4), .media-hero__head > *:nth-child(4), .page-intro > *:nth-child(4) { animation-delay: .44s; }

/* ---------- Language switcher ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border-hairline); border-radius: var(--radius-full); padding: 3px; }
.lang-switch a { font-size: 12px; font-weight: var(--fw-medium); color: var(--text-secondary); padding: 4px 9px; border-radius: var(--radius-full); line-height: 1; letter-spacing: 0; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--text-on-accent); }
.lang-switch a:hover:not([aria-current="true"]) { color: var(--color-white); }

/* ---------- RTL (Arabic) ---------- */
[lang="ar"] body, [dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; }
[dir="rtl"] .display, [dir="rtl"] .h-lg, [dir="rtl"] .h, [dir="rtl"] .subheading { font-family: inherit; }
[dir="rtl"] .hero__content, [dir="rtl"] .media-hero__head, [dir="rtl"] .page-intro,
[dir="rtl"] .section-head:not(.center), [dir="rtl"] .feature, [dir="rtl"] .region,
[dir="rtl"] .contact-card, [dir="rtl"] .card, [dir="rtl"] .footer__grid > div { text-align: right; }
[dir="rtl"] .eyebrow, [dir="rtl"] .badge { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .btn .arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .feature ul li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .feature ul li::before { left: auto; right: 0; }
[dir="rtl"] .field label, [dir="rtl"] .form-note { text-align: right; }

/* ============================================================
   Visual polish pass (frontend-design): hover micro-interactions,
   scroll-reveal. (The duplicate hero glow/grain overlay that used
   to live here was removed in the restraint pass — one hero glow,
   defined once, is enough.) Reduced-motion safe below.
   ============================================================ */

/* Card & tile hover micro-interactions */
.feature, .contact-card, .region { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.feature:hover, .contact-card:hover, .region:hover { transform: translateY(-4px); border-color: rgba(255,138,74,0.45); box-shadow: 0 14px 34px rgba(0,0,0,.34); }
.icon-tile { transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.feature:hover .icon-tile, .contact-card:hover .icon-tile { background: rgba(255,138,74,0.18); border-color: rgba(255,138,74,0.5); transform: scale(1.06); }
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: rgba(0,0,0,0.55) 0 20px 44px 0, rgba(255,138,74,0.12) 0 1px 0 0 inset; }
.stat { transition: transform .25s ease; }
.stat:hover { transform: translateY(-3px); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,138,74,0.35); }

/* Scroll reveal — JS adds .reveal then .is-visible on intersect (progressive enhancement) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.trust__grid > .reveal:nth-child(2) { transition-delay: .06s; }
.trust__grid > .reveal:nth-child(3) { transition-delay: .12s; }
.trust__grid > .reveal:nth-child(4) { transition-delay: .18s; }

/* ============================================================
   RESTRAINT PASS (impeccable critique, dual-agent review vs. a
   Stripe-level benchmark). Superseded the "agency redesign" era:
   removed the floating glass pill nav, the mesh-glow + fixed grain
   body wash, and the decorative double-bezel card rings — all
   flagged as AI-template tells that contradicted this file's own
   earlier design rules (shadows never on nav; negative space, not
   colour bands). Kept: the single, once-defined hero glow (above),
   generous macro whitespace, button-in-button arrow chip, and the
   scroll-reveal system — none of those were flagged as problems.
   ============================================================ */
:root {
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);          /* iOS drawer curve */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);    /* strong ease-out: UI feedback */
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1); /* on-screen movement */
}

/* Plain sticky bar nav — one definition, centered contained content, no floating pill */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 19, 47, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: none;
}
.nav__inner {
  width: min(1160px, 100% - 44px);
  margin-inline: auto;
  height: 64px;
  padding: 0 4px 0 0;
  justify-content: space-between;
  gap: var(--s-24);
}

/* Eyebrow — kept as a single small pill; the fix for overuse is frequency (HTML), not this rule */
.eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(255,138,74,0.10); border: 1px solid rgba(255,138,74,0.24);
  font-size: 10px; letter-spacing: 0.2em;
}
.panel-inverted .eyebrow { background: rgba(240,86,59,0.10); border-color: rgba(240,86,59,0.28); }

/* Editorial display — see "Calmer type scale" below for the final, smaller sizes */
.display { font-size: clamp(44px, 7vw, 94px); letter-spacing: -0.04em; line-height: 1.03; }

/* Button-in-button trailing icon (kept — not flagged; a legible, tasteful detail, not decorative noise) */
.btn { transition: transform 160ms var(--ease-out-quint), background-color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: var(--radius-full); background: rgba(0,0,0,0.14); margin-inline-start: 4px;
  transition: transform 200ms var(--ease-out-quint), background-color 200ms ease;
}
.btn-ghost .arrow, .btn-inverted .arrow, .nav .arrow { background: rgba(255,255,255,0.12); }
.btn:hover .arrow { transform: translate(3px, -1px) scale(1.08); }

/* Cards — plain single surface, one hairline border, one soft shadow on hover. No concentric bezel ring, no glass-gradient fill. */
.feature, .contact-card, .region {
  border-radius: 16px; border: 1px solid var(--border-hairline); padding: 30px;
  background: var(--surface-elevated);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover, .contact-card:hover, .region:hover {
  transform: translateY(-3px); border-color: rgba(255,138,74,0.35);
  box-shadow: 0 14px 32px rgba(0,0,0,.32);
}
.card { border-radius: 16px; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: rgba(0,0,0,0.5) 0 18px 38px 0; }
.form-wrap { border-radius: 18px; }
.panel-inverted { border-radius: 20px; }
.icon-tile { border-radius: 12px; }

/* Macro whitespace — let it breathe (not flagged; kept) */
.section { padding-block: 120px; }
.section--tight { padding-block: 84px; }

/* Scroll reveal — kept; transform/opacity/filter only, reduced-motion safe below */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .8s var(--ease-lux), transform .8s var(--ease-lux), filter .8s var(--ease-lux); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ============================================================
   Nav link/type refinements (kept from the ui-ux-pro-max pass —
   the nav sizing itself now lives in the single rule above, so
   there's no longer a second competing width rule in the cascade).
   ============================================================ */
.nav__links { gap: 28px; }
.nav__links a { font-size: 13px; letter-spacing: 0.01em; white-space: nowrap; padding-block: 10px; }
.logo__word { font-size: 19px; }
.nav__right { gap: 12px; }
.nav .btn-primary { font-size: 14px; padding: 12px 8px 12px 20px; }

/* Chic type — lighter, more refined weights & measure */
.h-lg { font-weight: 600; letter-spacing: -0.03em; }
.hero__content .display { font-size: clamp(42px, 6vw, 82px); letter-spacing: -0.035em; line-height: 1.05; }

/* Hero polish — refined lede measure, rhythm, contrast */
.hero p.lede { font-size: 17px; line-height: 1.65; color: #B4C3D6; max-width: 46ch; margin-top: 22px; }
.hero__content .eyebrow { margin-bottom: 2px; }
.hero .btn-row { margin-top: 34px; gap: 14px; }

/* ============================================================
   Calmer type scale (user: fonts too big / overwhelming across
   all pages) + eyebrow sizing. Overrides the agency scale.
   ============================================================ */
.display, .hero__content .display { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; line-height: 1.1; }
.h-lg { font-size: clamp(25px, 3.2vw, 40px); }
.h { font-size: clamp(20px, 2.3vw, 26px); }
.subheading { font-size: 19px; }
.stat__num { font-size: clamp(26px, 3vw, 36px); }
.eyebrow { font-size: 11px; letter-spacing: 0.16em; padding: 6px 13px; }

/* ============================================================
   SMOOTH & PREMIUM PASS (emil-design-eng). Physics-grade motion
   + the invisible details that compound: strong easing tokens,
   working stagger, seamless hero blend, gradient hairline nav
   signature, selection/focus styling. No ambient loops — every
   move is user-initiated or scroll-triggered (keeps D-29 intact).
   ============================================================ */

/* Scroll reveal — snappier, stronger curve, working per-item stagger.
   main.js sets data-reveal + --reveal-delay on grid children; this
   consumes it (it previously did nothing). */
.reveal, [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .6s var(--ease-out-quint), transform .6s var(--ease-out-quint), filter .6s var(--ease-out-quint);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.is-visible, [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Nav — quiet futuristic signature: a 1px sunset gradient hairline instead of a flat border */
.nav { border-bottom: none; }
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,138,74,0.45) 35%, rgba(240,86,59,0.45) 65%, transparent 100%);
  pointer-events: none;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px;
  background: var(--accent); transition: right 250ms var(--ease-out-quint);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }

/* Inset rounded hero card (inspiration: Freight / Silverlight refs) —
   the hero sits as a framed cinematic panel, not edge-to-edge */
.hero {
  margin: 10px clamp(10px, 1.4vw, 18px) 0;
  border-radius: 22px;
  overflow: hidden;
}

/* Hero melts into the page instead of hard-cutting at the section edge */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--surface-canvas));
  pointer-events: none;
}

/* Card media zoom rides a stronger curve (was default ease) */
.card__media, .card__photo { transition: transform .6s var(--ease-in-out-strong); }

/* Primary CTA — soft sunset glow on hover only (never ambient) */
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,138,74,0.38), 0 2px 8px rgba(240,86,59,0.25); }

/* Invisible details that compound */
::selection { background: rgba(255,138,74,0.9); color: var(--color-navy); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 2px; }

/* Hover lifts are pointer-device only — taps shouldn't trigger stuck hover states */
@media (hover: none), (pointer: coarse) {
  .feature:hover, .contact-card:hover, .region:hover, .card:hover, .stat:hover, .btn-primary:hover { transform: none; }
}

/* ============================================================
   VIDEO HERO + FLOATING PILL NAV PASS (ui-ux-pro-max, D-32).
   (a) Cinematic hero videos — each page carries its own full-bleed
   looping film behind the headline; the photo layer stays beneath
   as instant first paint + no-JS/reduced-motion fallback.
   (b) Nav rebuilt to the approved mockup: detached glass pill
   floating over the hero (logo · EN/FR/ع switch · CTA · round
   hamburger). Page links live in a dropdown panel at every width.
   ============================================================ */

/* --- Floating pill nav --- */
.nav {
  position: fixed;
  top: clamp(10px, 1.6vw, 18px);
  left: 0; right: 0;
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none;
  pointer-events: none; /* wrapper spans the page; only the pill is interactive */
}
.nav::after { display: none; } /* gradient hairline belonged to the docked bar */
.nav__inner {
  pointer-events: auto;
  position: relative;
  width: min(1240px, 100% - 28px);
  height: 66px;
  padding: 0 10px 0 20px;
  background: rgba(13, 26, 44, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 14px 44px rgba(0, 6, 18, 0.38), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Links move out of the bar into a glass dropdown (all widths) */
.nav__links {
  display: flex;
  position: absolute;
  top: calc(100% + 12px);
  right: 6px;
  left: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 250px;
  padding: 10px;
  background: rgba(8, 19, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 24px 60px rgba(0, 6, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 220ms var(--ease-out-quint), transform 220ms var(--ease-out-quint), visibility 0s 220ms;
}
.nav.open .nav__links {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 260ms var(--ease-out-quint), transform 260ms var(--ease-out-quint);
}
.nav__links a {
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--text-secondary);
  transition: background-color 160ms ease, color 160ms ease;
}
.nav__links a::after { display: none; } /* underline animation belonged to the inline row */
.nav__links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--color-white); }
.nav__links a[aria-current="page"] { color: var(--accent); background: rgba(255, 138, 74, 0.08); }

/* Round glass hamburger — always visible, morphs on open */
.nav__toggle {
  display: inline-flex;
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 200ms ease, transform 300ms var(--ease-out-quint);
}
.nav__toggle:hover { background: rgba(255, 255, 255, 0.13); }
.nav__toggle svg { transition: transform 300ms var(--ease-out-quint); }
.nav.open .nav__toggle svg { transform: rotate(90deg); }

/* Language switch — pill-in-pill, active language filled (mockup) */
.lang-switch { background: rgba(0, 8, 20, 0.35); border-color: rgba(255, 255, 255, 0.10); padding: 4px; }
.lang-switch a { padding: 7px 12px; font-size: 12.5px; }

/* Mobile: lang switch relocates into the dropdown (cloned by main.js) */
.nav__links .lang-switch { display: none; margin: 8px 6px 4px; align-self: flex-start; }

/* --- Full-bleed cinematic hero (mockup restores edge-to-edge; nav floats over it) --- */
.hero { margin: 0; border-radius: 0; min-height: min(92vh, 860px); }
.hero--short { min-height: min(62vh, 560px); }
.hero__content { padding-top: 140px; }
.media-hero { padding-top: 150px; } /* demo page clears the fixed pill */
.page-intro { padding-top: 150px; } /* any remaining intro pages clear the fixed pill */

/* --- Hero video layer --- */
.hero--video .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero--video .hero__video.is-ready { opacity: 1; }
/* On-brand navy/sunset cast over the film so white type + the glass pill stay legible */
.hero--video .hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(255, 138, 74, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 19, 47, 0.42) 0%, rgba(0, 19, 47, 0.28) 45%, rgba(0, 19, 47, 0.72) 100%);
  pointer-events: none;
}

/* --- RTL --- */
[dir="rtl"] .nav__inner { padding: 0 20px 0 10px; }
[dir="rtl"] .nav__links { right: auto; left: 6px; transform-origin: top left; }
[dir="rtl"] .nav__links a { text-align: right; }

/* --- Small screens --- */
@media (max-width: 860px) {
  .nav__links {
    position: absolute; /* stays a dropdown panel — overrides the old docked sheet */
    top: calc(100% + 12px);
    left: auto; right: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .nav.open .nav__links a { border-bottom: none; width: auto; padding: 12px 16px; }
  [dir="rtl"] .nav__links { right: auto; left: 6px; }
}
@media (max-width: 640px) {
  .nav__inner { height: 60px; padding-inline: 6px 6px; }
  .nav__inner { padding-inline-start: 16px; }
  .logo__word { font-size: 17px; }
  .logo__mark { width: 24px; height: 24px; }
  .nav__right { gap: 8px; }
  .nav .btn-primary { font-size: 13px; padding: 10px 6px 10px 14px; }
  .nav .btn-primary .arrow { width: 22px; height: 22px; }
  .nav__toggle { width: 42px; height: 42px; }
  .nav__right > .lang-switch { display: none; }      /* moves into the menu… */
  .nav__links .lang-switch { display: inline-flex; } /* …cloned there by main.js */
  .nav__links { left: 14px; right: 14px; width: auto; }
  [dir="rtl"] .nav__links { left: 14px; right: 14px; }
  .hero__content { padding-top: 110px; }
}

/* ============================================================
   NAV FIX (user request): page links visible in the bar on
   desktop — no dropdown. The glass dropdown panel + hamburger
   remain mobile-only (≤860px).
   ============================================================ */
@media (min-width: 861px) {
  .nav__links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__links a {
    font-size: 13.5px;
    padding: 10px 2px;
    border-radius: 0;
    color: var(--text-secondary);
    background: transparent;
    white-space: nowrap;
  }
  .nav__links a:hover, .nav__links a[aria-current="page"] { background: transparent; color: var(--color-white); }
  .nav__links a::after { display: block; } /* restore the animated underline */
  .nav__toggle { display: none; }
  .nav__links .lang-switch { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__content > * { opacity: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero--video .hero__video { display: none; } /* gradient hero instead of motion */
}

/* ============================================================
   BOOK-A-CALL MODAL — branded shell around the inline Cal.com
   booker. Injected by main.js on every page; opens from every
   "Schedule a call" CTA (EN/FR/AR). Visitors pick a slot and
   confirm without leaving the site — no WhatsApp round-trip.
   ============================================================ */
.sched-lock { overflow: hidden; }
.sched-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(10px, 2.5vw, 28px);
  background: rgba(0, 6, 18, 0.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .28s var(--ease-out-quint);
}
.sched-overlay.is-open { opacity: 1; }
.sched-modal {
  /* Sized to the booker's natural footprint; Cal drives the iframe height itself. */
  width: 100%; max-width: 780px; display: flex; flex-direction: column;
  max-height: 94vh;
  background: linear-gradient(180deg, var(--surface-elevated) 0%, #071a34 100%);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,4,14,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
  color: var(--color-white);
  transform: translateY(14px) scale(.985); opacity: 0;
  transition: transform .34s var(--ease-out-quint), opacity .34s var(--ease-out-quint);
}
.sched-overlay.is-open .sched-modal { transform: none; opacity: 1; }

.sched-head {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(120% 160% at 10% 0%, rgba(255,138,74,0.12), transparent 62%);
  flex: 0 0 auto;
}
.sched-avatars { display: inline-flex; flex: 0 0 auto; }
.sched-avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-inline-start: -10px;
  border: 2px solid #0a2140; background: linear-gradient(150deg, #FFC862, #F0563B);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #00132F;
}
.sched-avatars span:first-child { margin-inline-start: 0; }
.sched-headtext { flex: 1 1 auto; min-width: 0; }
.sched-headtext h2 { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.sched-headtext p { margin-top: 4px; color: var(--text-secondary); font-size: 13px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sched-headtext svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.sched-close {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-white); cursor: pointer; transition: background .2s ease;
}
.sched-close:hover { background: rgba(255,255,255,0.15); }
.sched-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

.sched-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* Cal.com inline embed — Cal sets the iframe height, so the container just
   reserves room for the booker and takes over scrolling when space is tight. */
.sched-cal { flex: 1 1 auto; min-height: 560px; width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
.sched-cal > * { width: 100%; }

/* Placeholder shown over the embed until Cal reports the booker is painted */
.sched-loading {
  position: absolute; inset: 0; z-index: 2; display: flex; gap: 12px;
  align-items: center; justify-content: center;
  background: var(--surface-elevated); color: var(--text-secondary); font-size: 14px;
  transition: opacity .3s ease;
}
.sched-spinner {
  width: 17px; height: 17px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,0.18); border-top-color: var(--accent);
  animation: sched-spin .8s linear infinite;
}
@keyframes sched-spin { to { transform: rotate(360deg); } }
.sched-overlay.cal-ready .sched-loading { opacity: 0; pointer-events: none; }

.sched-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.08); flex: 0 0 auto;
  font-size: 13px; color: var(--text-secondary);
}
.sched-foot a { color: var(--accent); text-decoration: none; }
.sched-foot a:hover { text-decoration: underline; }
.sched-alt { display: inline-flex; align-items: center; gap: 8px; }
.sched-alt svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

@media (max-width: 760px) {
  .sched-overlay { padding: 0; align-items: stretch; }
  /* Sheet hugs the booker rather than stretching, so Cal's own mobile layout
     never leaves a band of empty space under the calendar. */
  .sched-modal { max-width: none; max-height: 100dvh; height: auto; margin: auto 0; border-radius: 0; border: 0; }
  .sched-head { padding: 14px 16px; gap: 12px; }
  .sched-headtext h2 { font-size: 17px; }
  .sched-avatars span { width: 32px; height: 32px; font-size: 12px; }
  .sched-cal { min-height: 0; } /* full-screen sheet already gives it the room */
  .sched-foot { padding: 10px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sched-overlay, .sched-modal { transition: none; }
  .sched-spinner { animation: none; }
}
