/* ==========================================================================
   variables.css — BookTicketsHub Design Tokens
   Single source of truth for color, type, spacing, radius, shadow, motion.
   Everything downstream references these custom properties.
   ========================================================================== */

:root {
  /* ---------- Brand: Navy (primary) ---------- */
  --navy-950: #05152A;
  --navy-900: #071B33;
  --navy-800: #0A2A4A;   /* hero / footer surface */
  --navy-700: #0E3560;
  --navy-600: #123A63;
  --navy-500: #1B4B7A;
  --primary: var(--navy-800);
  --primary-hover: var(--navy-700);

  /* ---------- Brand: Indigo (secondary / CTA) ----------
     Rebrand note (Aug 2026): this used to be a green scale and every
     --green-* token below was the site's default CTA/link/icon/focus
     color — buttons, form focus rings, nav active state, footer social
     hover, hero accent text, trust icons, the FAQ chevron, all of it.
     That made a flight-booking site read as a plant/eco brand. Fixing it
     by repointing the *values* of these tokens (indigo now, not green)
     rather than renaming them everywhere: dozens of CSS rules and several
     inline `var(--green-600)` styles in the PHP views reference these
     names directly, and re-valuing in one place is the low-risk way to
     recolor the whole site without hunting every call site. Token names
     are kept as --green-* for that reason; a follow-up rename to
     --brand-*/--indigo-* is a nice-to-have, not a functional issue.
     A couple of genuinely success-semantic spots (payment-success alert,
     booking-confirmed heading, the confirmation reference badge) also
     read these tokens and will now render in the new indigo instead of
     true green — an intentional single-brand-color choice, flag it if
     you'd rather those stay green. ---------- */
  --green-800: #3730A3;   /* indigo-800 */
  --green-700: #4338CA;   /* indigo-700 — hover */
  --green-600: #4F46E5;   /* indigo-600 — primary CTA */
  --green-500: #6366F1;   /* indigo-500 */
  --green-100: #E0E7FF;   /* indigo-100 */
  --green-50:  #EEF2FF;   /* indigo-50 */
  --secondary: var(--green-600);
  --secondary-hover: var(--green-700);

  /* ---------- Accent: Gold (rare, premium highlight — headline accents,
     hero kicker glow. Not a button color; keep usage sparse.) ---------- */
  --gold: #F0B429;
  --gold-dark: #C9962B;

  /* ---------- Neutrals / ink ---------- */
  --ink-900: #0F172A;
  --text: #1F2937;
  --text-muted: #64748B;
  --text-soft: #94A3B8;
  --text-invert: #FFFFFF;
  --text-invert-soft: rgba(255,255,255,.72);

  /* ---------- Surfaces & borders ---------- */
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5F9;
  --light: #F5F7FA;
  --border: #E5E7EB;
  --border-strong: #D8DFE8;
  --border-soft: #EEF1F5;

  /* ---------- Accents ---------- */
  --amber: #C9A227;
  --blue: #2563EB;
  --purple: #7C3AED;
  --purple-50: #F3E8FF;
  --danger: #DC2626;
  --danger-50: #FEF2F2;
  --info-50: #EFF6FF;

  /* ---------- Focus ---------- */
  --focus-ring: 0 0 0 3px rgba(79,70,229,.30);
  --focus-ring-navy: 0 0 0 3px rgba(10,42,74,.20);

  /* ---------- Typography ---------- */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.05rem, 1.3rem + 2.8vw, 3.15rem);
  --fs-h1: clamp(1.6rem, 1.15rem + 1.7vw, 2.25rem);
  --fs-h2: clamp(1.35rem, 1.1rem + 1.05vw, 1.8rem);
  --fs-h3: clamp(1.12rem, 1rem + .5vw, 1.32rem);
  --fs-h4: 1.06rem;
  --fs-lg: 1.05rem;
  --fs-base: 1rem;      /* 16px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-xs: 0.785rem;    /* ~12.5px */
  --fs-2xs: 0.7rem;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-base: 1.6;

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

  --tracking-wide: .06em;
  --tracking-wider: .12em;

  /* ---------- Spacing scale (8pt) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-28: 112px;

  /* ---------- Radius ---------- */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-full: 999px;

  /* ---------- Shadows (soft, layered) ---------- */
  --sh-xs: 0 1px 2px rgba(15,23,42,.05);
  --sh-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 6px rgba(15,23,42,.05);
  --sh-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --sh-card: 0 1px 3px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --sh-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 10px rgba(15,23,42,.05);
  --sh-pop: 0 18px 44px rgba(10,42,74,.16), 0 6px 14px rgba(10,42,74,.08);
  --sh-nav: 0 1px 0 rgba(15,23,42,.05), 0 6px 24px rgba(10,42,74,.06);
  --sh-inset: inset 0 0 0 1px var(--border);
  --sh-action: 0 8px 20px rgba(79,70,229,.28);   /* was --sh-green; primary-button shadow */

  /* ---------- Motion ---------- */
  --t-fast: .15s;
  --t: .25s;
  --t-slow: .4s;
  --ease: cubic-bezier(.2,.7,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* ---------- Layout ---------- */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --z-nav: 100;
  --z-drawer: 200;
  --z-pop: 300;
}
