/* =========================================================================
   Tripper Ticket — Design Tokens
   Single source of truth. Every component consumes these. No hardcoded values.
   Maps 1:1 to DesignSystem.md and Brand.md.
   ========================================================================= */
:root {

  /* --- Color: Brand ----------------------------------------------------- */
  --tt-color-primary:        #0F62FE; /* Trust / technology */
  --tt-color-primary-hover:  #0B4FD1;
  --tt-color-primary-active:  #093FAA;
  --tt-color-secondary:      #22C55E; /* Success / available */
  --tt-color-secondary-hover:#16A34A;

  /* --- Color: Surfaces & text ------------------------------------------ */
  --tt-color-bg:             #FFFFFF;
  --tt-color-surface:        #F8FAFC;
  --tt-color-border:         #E5E7EB;
  --tt-color-text:           #111827;
  --tt-color-text-soft:      #6B7280;
  --tt-color-text-invert:    #FFFFFF;

  /* --- Color: Semantic ------------------------------------------------- */
  --tt-color-success:        #16A34A;
  --tt-color-warning:        #D97706;
  --tt-color-danger:         #DC2626;
  --tt-color-info:           #2563EB;

  /* Focus ring — visible, accessible, brand-tinted. */
  --tt-color-focus:          #0F62FE;
  --tt-focus-ring:           0 0 0 3px rgba(15, 98, 254, 0.35);

  /* --- Typography ------------------------------------------------------ */
  --tt-font-heading: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tt-font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid-ish scale (clamp keeps mobile readable, desktop premium). */
  --tt-fs-display:   clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);  /* 40 -> 72 */
  --tt-fs-h1:        clamp(2rem,   1.4rem + 2.8vw, 3.5rem);  /* 32 -> 56 */
  --tt-fs-h2:        clamp(1.75rem,1.3rem + 2.0vw, 3rem);    /* 28 -> 48 */
  --tt-fs-h3:        clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); /* 24 -> 36 */
  --tt-fs-h4:        1.75rem;  /* 28 */
  --tt-fs-h5:        1.5rem;   /* 24 */
  --tt-fs-h6:        1.25rem;  /* 20 */
  --tt-fs-body-lg:   1.25rem;  /* 20 */
  --tt-fs-body:      1.125rem; /* 18 */
  --tt-fs-small:     1rem;     /* 16 */
  --tt-fs-caption:   0.875rem; /* 14  — never go smaller */

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

  --tt-lh-tight:     1.15;
  --tt-lh-snug:      1.3;
  --tt-lh-normal:    1.6;

  /* --- Spacing: 8px system --------------------------------------------- */
  --tt-space-4:    0.25rem;
  --tt-space-8:    0.5rem;
  --tt-space-12:   0.75rem;
  --tt-space-16:   1rem;
  --tt-space-24:   1.5rem;
  --tt-space-32:   2rem;
  --tt-space-40:   2.5rem;
  --tt-space-48:   3rem;
  --tt-space-64:   4rem;
  --tt-space-80:   5rem;
  --tt-space-96:   6rem;
  --tt-space-128:  8rem;

  /* --- Radius ---------------------------------------------------------- */
  --tt-radius-sm:   8px;
  --tt-radius-md:   12px;  /* buttons, inputs */
  --tt-radius-lg:   20px;  /* cards, images */
  --tt-radius-xl:   24px;  /* modals, booking widget */
  --tt-radius-pill: 999px;

  /* --- Elevation (subtle; depth, never floating) ----------------------- */
  --tt-shadow-1: 0 1px 2px rgba(17, 24, 39, 0.04), 0 0 0 1px var(--tt-color-border);
  --tt-shadow-2: 0 4px 16px rgba(17, 24, 39, 0.06);
  --tt-shadow-3: 0 12px 32px rgba(17, 24, 39, 0.10);

  /* --- Layout ---------------------------------------------------------- */
  --tt-container:        1200px;
  --tt-container-wide:   1280px;
  --tt-section-pad:      var(--tt-space-96);

  /* --- Motion (purposeful, <=250ms) ------------------------------------ */
  --tt-ease:        cubic-bezier(0.2, 0.8, 0.2, 1);
  --tt-duration:    200ms;

  /* --- Touch ----------------------------------------------------------- */
  --tt-tap-min:     44px;
  --tt-input-h:     52px;
}

/* Reduced motion: honour user preference. */
@media (prefers-reduced-motion: reduce) {
  :root { --tt-duration: 0ms; }
}

/* =========================================================================
   Design System v2 — additive tokens only.
   Nothing above this line is modified. v1 consumers are unaffected.
   Source: docs/design/02-DESIGN-SYSTEM-V2.md
   ========================================================================= */
:root {

  /* --- Photography surfaces --------------------------------------------- */
  /* Missing photography renders as calm, honest empty space — never a
     gradient pretending to be a finished design. See doc 02 §2. */
  --tt-photo-overlay-scrim:      linear-gradient(180deg, rgba(9,26,64,0) 0%, rgba(9,26,64,.55) 100%);
  --tt-photo-fallback-bg:        var(--tt-color-surface);
  --tt-photo-fallback-icon-color:var(--tt-color-text-soft);
  --tt-photo-radius:             var(--tt-radius-lg);
  --tt-photo-aspect-hero:        21 / 9;   /* desktop hero crop */
  --tt-photo-aspect-hero-mobile: 16 / 9;   /* mobile hero crop, per doc 03 §3 */
  --tt-photo-aspect-card:        4 / 3;    /* vehicle/route/destination/hotel cards */
  --tt-photo-aspect-portrait:    3 / 4;    /* driver/team photography */

  /* --- Trust components --------------------------------------------------- */
  --tt-trust-badge-bg:           #FFFFFF;
  --tt-trust-badge-border:       var(--tt-color-border);
  --tt-trust-badge-radius:       var(--tt-radius-md);
  --tt-trust-badge-icon-size:    20px;
  --tt-trust-badge-gap:          var(--tt-space-8);
  --tt-trust-strip-bg:           var(--tt-color-surface);
  --tt-security-accent:          var(--tt-color-info); /* distinct-but-related blue,
    reserved for payment/security trust content specifically — see doc 02 §3 */

  /* --- Motion v2 (three durations, one easing curve, no exceptions) ------ */
  /* Additive alongside the existing --tt-duration/--tt-ease pair above,
     which remain unchanged for any v1 CSS still consuming them. New
     components use these three named durations instead. See doc 02 §6. */
  --tt-motion-fast:  150ms; /* hover states, button press feedback */
  --tt-motion-base:  220ms; /* card elevation on hover, panel open/close */
  --tt-motion-slow:  400ms; /* page-level transitions, wizard step change */
  --tt-motion-ease:  cubic-bezier(0.2, 0, 0, 1); /* fast start, gentle settle —
    used for every v2 motion token, no bounce/spring/elastic ever */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --tt-motion-fast: 0ms;
    --tt-motion-base: 0ms;
    --tt-motion-slow: 0ms;
  }
}

/* Dark mode tokens reserved (not in MVP) — structure only so future
   implementation needs no redesign. */
