/* tokens.css — NJ Waterproof design system
   Concept: water protection & structural trust. Deep teal/navy = depth, water, dependability.
   Amber = urgency/warmth for calls-to-action (emergency water damage response). */

:root {
  /* Type scale (fluid) */
  --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, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  /* 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.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

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

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;
}

/* LIGHT MODE */
:root, [data-theme='light'] {
  --color-bg: #f4f7f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfd;
  --color-surface-offset: #eaf0f1;
  --color-surface-offset-2: #dde7e8;
  --color-surface-dynamic: #d3dfe1;
  --color-divider: #dbe4e6;
  --color-border: #c7d4d6;

  --color-text: #101f26;
  --color-text-muted: #526870;
  --color-text-faint: #93a5aa;
  --color-text-inverse: #f4f7f8;

  /* Primary — deep teal/navy (water, trust) */
  --color-primary: #0b4f5c;
  --color-primary-hover: #073a44;
  --color-primary-active: #052830;
  --color-primary-highlight: #cfe0e3;

  /* Accent — amber (urgency CTA) */
  --color-accent: #d9770c;
  --color-accent-hover: #b45f07;
  --color-accent-active: #8f4a05;
  --color-accent-highlight: #f7e2c3;

  --color-warning: #964219;
  --color-warning-hover: #713417;
  --color-warning-highlight: #ddcfc6;

  --color-error: #b3244a;
  --color-error-hover: #8c1c39;
  --color-error-highlight: #ecd3da;

  --color-success: #2f7a3f;
  --color-success-hover: #235f30;
  --color-success-highlight: #d3e3d5;

  --shadow-sm: 0 1px 2px rgba(11, 27, 33, 0.06);
  --shadow-md: 0 6px 16px rgba(11, 27, 33, 0.09);
  --shadow-lg: 0 16px 40px rgba(11, 27, 33, 0.14);
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #0a1418;
  --color-surface: #0f1c21;
  --color-surface-2: #132229;
  --color-surface-offset: #16262c;
  --color-surface-offset-2: #1b2e35;
  --color-surface-dynamic: #223a41;
  --color-divider: #1c2f36;
  --color-border: #29434b;

  --color-text: #e0eaec;
  --color-text-muted: #93aab0;
  --color-text-faint: #5f7a81;
  --color-text-inverse: #0a1418;

  --color-primary: #57b6c4;
  --color-primary-hover: #7fcbd6;
  --color-primary-active: #9cd8e0;
  --color-primary-highlight: #1c3a40;

  --color-accent: #f0a13f;
  --color-accent-hover: #f4b869;
  --color-accent-active: #f7cb8f;
  --color-accent-highlight: #3d3120;

  --color-warning: #c97a4c;
  --color-warning-hover: #d69269;
  --color-warning-highlight: #3a2c22;

  --color-error: #de6c8d;
  --color-error-hover: #e692a9;
  --color-error-highlight: #3a2530;

  --color-success: #6fbb7c;
  --color-success-hover: #8fcc9b;
  --color-success-highlight: #22331f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}
