/* ==========================================================================
   NATIVEZ — design tokens
   Single source for color, type, space, motion. Never hard-code these values
   in section CSS; reference the variables.
   ========================================================================== */

:root {
  /* ---------- Color: surfaces (ink) ---------- */
  --c-ink-900: #0B111A;   /* deepest: footer, alternating bands */
  --c-ink-800: #0E1520;   /* page background */
  --c-ink-700: #111A26;   /* cards / raised surfaces */
  --c-ink-600: #16212F;   /* hover surface, chips */
  --c-ink-500: #1C2736;   /* borders, dividers */
  --c-ink-400: #2A384B;   /* strong border / faint numerals */

  --c-bg: var(--c-ink-800);
  --c-bg-deep: var(--c-ink-900);
  --c-surface: var(--c-ink-700);
  --c-surface-2: var(--c-ink-600);
  --c-border: var(--c-ink-500);
  --c-border-strong: var(--c-ink-400);

  /* ---------- Color: brand ---------- */
  --c-lime: #C8DC3C;           /* primary accent */
  --c-lime-hover: #D6E85A;
  --c-lime-12: rgba(200, 220, 60, 0.12);
  --c-lime-20: rgba(200, 220, 60, 0.20);
  --c-lime-grid: rgba(200, 220, 60, 0.14); /* grid-pattern lines */
  --c-yellow: #EDE96B;         /* soft yellow (billboard) */
  --c-orange: #E33B1E;         /* ONE moment only: #contact */
  --c-orange-deep: #C93016;

  /* ---------- Color: text ---------- */
  --c-text: #F4F5F1;           /* primary off-white */
  --c-text-2: #B4BDC9;         /* secondary body on dark */
  --c-text-muted: #8E9AAB;     /* muted / captions */
  --c-text-faint: #6D7A8C;     /* meta, legal */
  --c-on-lime: #0B111A;        /* text on lime / yellow */

  /* ---------- Color: team stripes ---------- */
  --c-team-lime: #C8DC3C;
  --c-team-teal: #7FD6C2;
  --c-team-violet: #7C7FE8;
  --c-team-coral: #F07A4F;

  /* ---------- Type: families ---------- */
  --ff-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-arabic: "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", sans-serif;

  /* Archivo is a variable font with a width axis — used for display only */
  --fs-stretch-display: 112%;
  --fs-stretch-head: 104%;

  /* ---------- Type: fluid scale (375px -> 1440px) ---------- */
  --fs-display: clamp(3.25rem, 1.55rem + 7.2vw, 8.5rem);   /* 52 -> 136 */
  --fs-h1:      clamp(2.75rem, 1.75rem + 4.3vw, 5.5rem);   /* 44 -> 88  */
  --fs-h2:      clamp(2.125rem, 1.45rem + 2.9vw, 4rem);    /* 34 -> 64  */
  --fs-h3:      clamp(1.375rem, 1.17rem + 0.85vw, 1.875rem); /* 22 -> 30 */
  --fs-lead:    clamp(1.125rem, 1rem + 0.55vw, 1.4375rem); /* 18 -> 23  */
  --fs-body:    clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);  /* 16 -> 17  */
  --fs-small:   0.875rem;                                  /* 14 */
  --fs-eyebrow: 0.75rem;                                   /* 12 */
  --fs-num:     clamp(3.5rem, 2.6rem + 3.6vw, 6rem);       /* faint numerals */

  --lh-tight: 0.95;
  --lh-head: 1.05;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  --ls-display: -0.035em;
  --ls-head: -0.025em;
  --ls-eyebrow: 0.18em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  /* ---------- Space ---------- */
  --space-1: 0.25rem;   /* 4  */
  --space-2: 0.5rem;    /* 8  */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */
  --space-10: 8rem;     /* 128 */

  /* semantic rhythm */
  --sec-pad: clamp(5rem, 3rem + 8vw, 10rem);       /* section top/bottom */
  --head-gap: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); /* .sec__head -> content */
  --grid-gap: clamp(1rem, 0.6rem + 1.4vw, 1.5rem); /* card grids */
  --card-pad: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);

  /* ---------- Layout ---------- */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.25rem, 0.5rem + 3.2vw, 3rem);
  --nav-h: 76px;
  --measure: 62ch;

  /* ---------- Radii ---------- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* ---------- Rules / borders ---------- */
  --rule: 1px solid var(--c-border);
  --rule-lime: 3px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 800ms;
  --stagger: 90ms;

  /* ---------- Z-index ---------- */
  --z-below: -1;
  --z-base: 1;
  --z-raised: 10;
  --z-nav: 100;
  --z-menu: 90;
  --z-overlay: 200;
}

/* Breakpoints (for reference; CSS vars can't be used in media queries):
   desktop > 1024px · tablet <= 1024px · mobile <= 720px */
@media (max-width: 720px) {
  :root {
    --nav-h: 64px;
  }
}

/* ---------- Arabic (html[lang="ar"]) ----------
   Arabic glyphs run taller: display/h1/h2 step down ~15%, leading opens up,
   and tracking is always 0 (never negative on Arabic). */
html[lang="ar"] {
  --fs-display: clamp(2.75rem, 1.3rem + 6.2vw, 7rem);      /* 44 -> 112 */
  --fs-h1:      clamp(2.375rem, 1.6rem + 3.6vw, 4.625rem); /* 38 -> 74  */
  --fs-h2:      clamp(1.875rem, 1.35rem + 2.4vw, 3.375rem); /* 30 -> 54 */
  --lh-tight: 1.15;
  --lh-head: 1.15;
  --lh-snug: 1.4;
  --lh-body: 1.75;
  --ls-display: 0;
  --ls-head: 0;
  --ls-eyebrow: 0;
}
