/* Design tokens: override per client fork */

:root {
  color-scheme: light;

  /* Brand: Abbott Roofing Oxford. Deep blue badge plus light blue accent.
   *
   * Primary: deep blue from the logo shield (#004B8D). High-contrast on cream + white.
   * Secondary: light blue strip from the logo (#78B6E6). FILLS ONLY, never as text.
   * fails WCAG AA. Use for decorative bars, icon backgrounds, button fills with dark text.
   * Run `npm run check` to validate contrast after any token override.
   */
  --color-primary: #004b8d;
  --color-primary-hover: #003a70;
  --color-primary-fg: #f7f2eb;
  --color-secondary: #78b6e6;
  --color-secondary-hover: #5a9fd1;
  --color-secondary-fg: #1f2530;
  --color-accent: #d99a39;

  /* Neutrals */
  --color-bg: #f7f2eb;
  --color-bg-alt: #fdfaf4; /* Warm off-white that harmonises with --color-bg cream. Replaced pure #ffffff which clashed with the warm page bg. */
  --color-bg-dark: #1f2530;
  --color-fg: #1f2530;
  --color-fg-muted: #5a6573;
  --color-fg-subtle: #8a93a0;
  --color-fg-inverse: #f7f2eb;
  --color-border: #e3dccf;
  --color-border-strong: #c8bfae;

  /* Status */
  --color-success: #2f8a5f;
  --color-danger: #c44a4a;
  --color-warning: #d99a39;

  /* Hero overlay (gradient on top of background image) */
  --overlay-hero: linear-gradient(180deg, rgba(31, 37, 48, 0.55) 0%, rgba(31, 37, 48, 0.78) 100%);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;
  --fs-6xl: 4rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 1.2;
  --lh-snug: 1.375;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Spacing */
  --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;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-padding: var(--space-6);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Z-index */
  --z-header: 100;
  --z-mobile-nav: 200;
  --z-back-to-top: 250;
  --z-cookie: 300;
  --z-modal: 1000;
}
