/* =====================================================================
   VELOCTEN DESIGN TOKENS
   Single source of truth for colour, type, spacing, radius, shadow,
   motion and layering. Components must use these variables only.
   ===================================================================== */

/* ---------- Self-hosted fonts (GDPR-safe: no request to Google) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations"), url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-var.woff2") format("woff2-variations"), url("../fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-var-italic.woff2") format("woff2-variations"), url("../fonts/playfair-var-italic.woff2") format("woff2");
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  /* ---------- Brand colours ---------- */
  --navy: #0B2A4A;          /* primary */
  --navy-900: #071D34;      /* deep navy for footer / overlays */
  --navy-700: #123A63;      /* hover state for navy surfaces */
  --navy-100: #E6ECF3;      /* tinted navy background */
  --gold: #C99A2E;          /* brand gold – decorative + button fill only */
  --gold-light: #E8B54A;    /* gradient end */
  --gold-ink: #8A6212;      /* gold for TEXT on light backgrounds (AA 5.3:1 on white) */
  --gold-soft: #F3E6C7;     /* tinted gold background */
  --white: #FFFFFF;
  --beige: #F7F3EC;         /* "cotton beige" section background */
  --beige-200: #EDE6D9;     /* borders on beige */
  --charcoal: #1E1E1E;      /* body text */
  --muted: #55606E;         /* secondary text (AA 6.3:1 on white, 5.8:1 on beige) */
  --success: #2E7D32;
  --success-bg: #E8F3E9;
  --error: #C62828;
  --error-bg: #FCEBEB;
  --warning: #8A5A00;
  --warning-bg: #FFF4DC;

  /* ---------- Semantic aliases ---------- */
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --text-on-dark: #F4F6F9;
  --text-on-dark-muted: #B9C4D2;   /* AA on navy */
  --surface: var(--white);
  --surface-alt: var(--beige);
  --border: #DCE2EA;
  --border-strong: #B7C2CF;
  --focus: #1D6FD1;                /* high-visibility focus ring */
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  --gradient-navy: linear-gradient(115deg, rgba(7,29,52,.94) 0%, rgba(11,42,74,.82) 50%, rgba(11,42,74,.55) 100%);

  /* ---------- Typography ---------- */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Fluid type scale (min @360px → max @1536px) */
  --fs-xs: 0.8125rem;                                   /* 13px  – captions, legal */
  --fs-sm: 0.875rem;                                    /* 14px  – UI labels */
  --fs-base: 1rem;                                      /* 16px  – body */
  --fs-md: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);   /* 17–19 – lead text */
  --fs-lg: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);       /* 20–24 – card titles */
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);          /* 24–32 – H3 */
  --fs-2xl: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);  /* 30–44 – H2 */
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.9vw, 4rem);       /* 36–64 – H1 */

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --tracking-label: 0.12em;

  /* ---------- Spacing (4px base) ---------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem;  --space-6: 1.5rem;  --space-8: 2rem;    --space-10: 2.5rem;
  --space-12: 3rem;    --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);   /* vertical rhythm between sections */
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);        /* side gutter, ≥16px */
  --container: 1280px;
  --container-narrow: 820px;

  /* ---------- Radius, borders, shadows ---------- */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --hairline-gold: 1px solid rgba(201, 154, 46, .55);
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06), 0 1px 3px rgba(11, 42, 74, .08);
  --shadow: 0 6px 18px -6px rgba(11, 42, 74, .16), 0 2px 6px rgba(11, 42, 74, .06);
  --shadow-lg: 0 22px 48px -18px rgba(11, 42, 74, .32);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(.22, .7, .25, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 600ms;

  /* ---------- Layers ---------- */
  --z-header: 100;
  --z-bottombar: 110;
  --z-float: 120;
  --z-drawer: 200;
  --z-modal: 300;
  --z-cookie: 400;
  --z-toast: 500;

  /* ---------- Component sizes ---------- */
  --tap: 44px;              /* minimum tap target (WCAG 2.5.5) */
  --header-h: 76px;
  --header-h-shrunk: 62px;
  --topbar-h: 36px;
  --bottombar-h: 64px;
}

/* Breakpoints (documented — CSS custom properties can't be used in @media):
   xs 360px · sm 768px · md 1024px · lg 1280px · xl 1536px            */
