/*
  Design tokens — Elite OEM Global Parts Platform, Phase 3 prototype.

  Palette direction: Blue / White / Dark Navy, per Phase 3 approval. This
  supersedes UI_UX_PLAN.md Sec 6's original single dark/gold palette
  proposal -- documented here as a deliberate change, not silent drift.
  Typography direction (condensed display + Inter body) still matches
  UI_UX_PLAN.md Sec 6 and carries forward the existing site's own font
  choices (Barlow Condensed, Share Tech Mono already used on
  vin-decoder.html) rather than inventing a new type system from scratch.

  Two grounds, one identity: Navy for brand/marketing moments (hero,
  nav, footer), White for dense data screens (search results, part
  tables) where long-form scanning needs a light ground. Not a
  light/dark mode toggle -- this site has one committed visual identity,
  same as the current live site (which is also dark-only, no toggle).
*/

:root {
  /* Core palette */
  --navy-950: #0a1628;   /* primary dark ground */
  --navy-900: #0d1c31;
  --navy-800: #10233d;   /* panel/card ground on dark */
  --navy-700: #16304f;   /* elevated/hover on dark */
  --navy-600: #1f4066;

  --blue-700: #1557b0;
  --blue-600: #1d6fe0;   /* primary accent */
  --blue-500: #3a8bf5;
  --blue-400: #5aa9ff;   /* accent on dark ground, links/hover */
  --blue-100: #e3edfc;   /* accent tint on white ground */

  --white: #f7f9fc;      /* chosen off-white, not pure #fff */
  --paper: #ffffff;      /* true white, for cards sitting on --white */

  --steel-700: #334155;
  --steel-500: #7686a0;  /* secondary text, blue-grey bias -- lightened from #64748b: the original only cleared ~4.2:1 against --hero-black, below WCAG AA's 4.5:1 for the small (0.65-0.875rem) captions/labels it's used for sitewide; this clears 5.4:1 while staying in the same hue */
  --steel-300: #aab6c6;
  --steel-200: #dbe2ea;  /* borders on white ground */
  --steel-100: #eef2f7;

  /* Semantic (kept separate from the blue accent) */
  --success: #1f9d6b;
  --success-tint: #e3f6ee;
  --warning: #d98c1f;
  --warning-tint: #fbf0dd;
  --danger: #d94b3f;
  --danger-tint: #fceae8;

  /* Surface roles (referenced by components, not raw colors directly) */
  --surface-brand: var(--navy-950);
  --surface-brand-raised: var(--navy-800);
  --surface-brand-hover: var(--navy-700);
  --surface-page: var(--white);
  --surface-card: var(--paper);
  --border-brand: rgba(90, 169, 255, 0.18);
  --border-light: var(--steel-200);

  --text-on-brand: var(--white);
  --text-on-brand-dim: var(--steel-300);
  --text-primary: var(--navy-950);
  --text-secondary: var(--steel-500);
  --text-link: var(--blue-600);

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Below --text-xs: covers the mono uppercase labels/badges/captions
     used throughout (chip subtext, card tags, eyebrows) -- added because
     that range had no token at all, so every component that needed
     something smaller than 0.75rem picked its own one-off value instead
     (an audit found 18 distinct hardcoded sizes between 0.6rem and
     0.82rem across the site, rarely differing by more than a px).
     New code in this range should use one of these two, not a new
     one-off value. */
  --text-3xs: 0.65rem;
  --text-2xs: 0.7rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.75rem;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii: angular (0) for technical/schematic elements, soft for
     functional UI -- a deliberate contrast, see components.css */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(10, 22, 40, 0.06), 0 4px 16px rgba(10, 22, 40, 0.06);
  --shadow-panel: 0 8px 32px rgba(10, 22, 40, 0.32);
  --shadow-glow: 0 0 0 1px var(--border-brand), 0 0 24px rgba(29, 111, 224, 0.18);

  --max-width: 1280px;
  --header-height: 76px;

  /* Cinematic hero extension (v2 homepage) -- additive only, existing
     tokens above are untouched so the other 6 pages don't regress.
     Wider value range than the base navy scale so the hero can carry
     real lighting depth (near-black core through to a bright cyan-white
     highlight) instead of sitting on one flat panel color. */
  --hero-black: #040910;
  --hero-navy-deep: #071429;
  --cyan-glow: #7fd8ff;
  --amber-beacon: #ffb545; /* one restrained warm accent -- real equipment beacon-light color, not a palette break */
  --glass-fill: rgba(16, 35, 61, 0.46);
  --glass-border: rgba(159, 205, 255, 0.22);
  --text-6xl: 6.5rem;
}
