/* tokens.css — Superior Home Services: navy / black / white brand system */

:root {
  /* Constant (theme-independent) — for text/UI on surfaces that are always dark,
     e.g. hero photo overlay, .section-dark, footer. Do NOT redefine per theme. */
  --color-on-dark: #ffffff;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 6.75rem);

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

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Bebas Neue', 'Anton', 'Helvetica Neue', sans-serif;
  --font-body: 'Montserrat', 'Inter', 'Helvetica Neue', sans-serif;

  /* Brand kit source colors */
  --brand-navy: #0a1e33;
  --brand-blue: #147bff;
  --brand-white: #ffffff;
  --brand-gray: #a6adb4;
  --brand-charcoal: #22262b;
}

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f5f7fb;
  --color-surface-2: #ffffff;
  --color-surface-offset: #eef1f7;
  --color-surface-offset-2: #e4e9f1;
  --color-surface-dynamic: #dde3ed;
  --color-divider: #e2e7ef;
  --color-border: #d2d9e5;

  /* Text */
  --color-text: #0a0f1e;
  --color-text-muted: #4a5568;
  --color-text-faint: #8a93a6;
  --color-text-inverse: #ffffff;

  /* Primary Accent — Brand Blue */
  --color-primary: #147bff;
  --color-primary-hover: #0f63d1;
  --color-primary-active: #0b4fa8;
  --color-primary-highlight: #dbe9ff;

  /* Ink navy/charcoal — secondary brand tone (bands, footer) */
  --color-ink: #0a1e33;
  --color-ink-2: #12151d;

  /* Status (kept minimal, off-palette use only) */
  --color-success: #2a6b4a;
  --color-success-highlight: #d7ebe0;
  --color-warning: #8a5a1e;
  --color-warning-highlight: #ecdec6;
  --color-error: #8a2c3a;
  --color-error-highlight: #ecd6da;

  --shadow-sm: 0 1px 2px oklch(0.15 0.03 260 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.15 0.03 260 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.15 0.03 260 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #060810;
  --color-surface: #0b0e17;
  --color-surface-2: #10141f;
  --color-surface-offset: #141a28;
  --color-surface-offset-2: #1a2233;
  --color-surface-dynamic: #202a3e;
  --color-divider: #1c2334;
  --color-border: #293145;

  --color-text: #eef1f7;
  --color-text-muted: #9aa4bb;
  --color-text-faint: #616b83;
  --color-text-inverse: #0a0f1e;

  --color-primary: #3d95ff;
  --color-primary-hover: #67acff;
  --color-primary-active: #8fc0ff;
  --color-primary-highlight: #14263f;

  --color-ink: #000103;
  --color-ink-2: #05070c;

  --color-success: #6fbf94;
  --color-success-highlight: #16261e;
  --color-warning: #d3a15a;
  --color-warning-highlight: #2c2316;
  --color-error: #dd8a94;
  --color-error-highlight: #2c191c;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}
