/* ============================================================
   SPARK Logistics — Design tokens & language scaffolding
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300..900;1,300..900&family=Noto+Sans+Arabic:wght@300..900&display=swap");

:root {
  /* Brand */
  --color-primary: #0f3e75;
  --color-primary-deep: #0a2b52;
  --color-navy: #071c33;
  --color-navy-2: #0a2745;
  --color-secondary: #82ba40;
  --color-secondary-dark: #6d9e33;

  /* Surfaces & text */
  --color-white: #ffffff;
  --color-off-white: #f7f9fb;
  --color-light-gray: #eef2f5;
  --color-text: #16283b;
  --color-text-muted: #4c6076;
  --color-text-inverse: #ffffff;
  --color-text-inverse-muted: rgba(255, 255, 255, 0.72);
  --color-line: rgba(15, 62, 117, 0.14);
  --color-line-strong: #c9d4de;
  --color-line-inverse: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-en: "Montserrat", "Segoe UI", sans-serif;
  --font-ar: "Noto Sans Arabic", "Segoe UI", sans-serif;
  --font-body: var(--font-en);

  --fs-eyebrow: 0.8125rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 0.96rem + 0.5vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h2: clamp(1.9rem, 1.45rem + 2.2vw, 3.125rem);
  --fs-display: clamp(2.35rem, 1.5rem + 4vw, 4.25rem);
  --fs-mega: clamp(3.4rem, 2rem + 7vw, 7rem);
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.65;

  /* Layout */
  --container: 82.5rem;               /* 1320px */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 6vw + 2rem, 8.5rem);
  --header-h: 5.5rem;                 /* 88px */
  --header-h-scrolled: 4.25rem;       /* 68px */

  /* Radii & lines */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.375rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  --dur-fast: 240ms;
  --dur-med: 480ms;
  --dur-slow: 800ms;

  /* Elevation (used sparingly) */
  --shadow-header: 0 10px 30px -12px rgba(7, 28, 51, 0.18);
  --shadow-sm: 0 2px 10px -4px rgba(7, 28, 51, 0.1);
  --shadow-md: 0 14px 34px -14px rgba(7, 28, 51, 0.22);

  /* Hero split state (animated by GSAP on desktop) */
  --hero-split-a: 50%;
  --hero-split-b: 50%;

  /* Z-index scale */
  --z-video: 0;
  --z-content: 2;
  --z-header: 90;
  --z-overlay: 95;
  --z-toast: 100;
  --z-preloader: 110;
}

html {
  direction: ltr;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

html[lang="ar"] body {
  letter-spacing: 0 !important; /* Arabic must never keep latin tracking */
}
