/* ===========================================================
   UNITED HEATING & AIR — DESIGN TOKENS
   Concept: diagnostic precision + Central Valley heat.
   Cool steel/slate base (technical trust) + amber/flame accent
   (heat, urgency, CTAs). Documented, exact, unshowy.
=========================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — cool slate-white, not warm beige */
  --color-bg: #f6f7f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfc;
  --color-surface-offset: #eef1f2;
  --color-surface-offset-2: #e4e8ea;
  --color-surface-dynamic: #dde2e4;
  --color-divider: #dfe3e5;
  --color-border: #cfd5d8;

  /* Text — deep slate-blue-black */
  --color-text: #101820;
  --color-text-muted: #576270;
  --color-text-faint: #616b75;
  --color-text-inverse: #f6f8f9;

  /* Primary Accent — Furnace Amber (CTAs, warmth, urgency) */
  --color-primary: #c65d1e;
  --color-primary-hover: #a84a14;
  --color-primary-active: #8a3a10;
  --color-primary-highlight: #f3ddc9;

  /* Secondary — Diagnostic Slate Blue (trust, technical) */
  --color-slate: #1c4257;
  --color-slate-hover: #163544;
  --color-slate-highlight: #d7e2e8;

  /* Warning */
  --color-warning: #96591a;
  --color-warning-hover: #714414;
  --color-warning-active: #4b2e0d;
  --color-warning-highlight: #e6d3bb;

  /* Error */
  --color-error: #a4293a;
  --color-error-hover: #7f1f2d;
  --color-error-active: #591620;
  --color-error-highlight: #e3cbcf;

  /* Notification */
  --color-notification: #a4293a;
  --color-notification-hover: #7f1f2d;
  --color-notification-active: #591620;
  --color-notification-highlight: #e3cbcf;

  /* Success (used for verified/documented badges) */
  --color-success: #2c6e3f;
  --color-success-hover: #1e522e;
  --color-success-active: #143a20;
  --color-success-highlight: #cfe0d4;

  /* Blue (data / secondary chart use) */
  --color-blue: #1c4257;
  --color-blue-hover: #163544;
  --color-blue-active: #102934;
  --color-blue-highlight: #d7e2e8;

  /* Gold (chart use only) */
  --color-gold: #b98a1f;
  --color-gold-hover: #93700f;
  --color-gold-active: #6d520b;
  --color-gold-highlight: #e9dcb9;

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

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

  --shadow-sm: 0 1px 2px oklch(0.15 0.02 230 / 0.07);
  --shadow-md: 0 4px 14px oklch(0.15 0.02 230 / 0.09);
  --shadow-lg: 0 16px 40px oklch(0.15 0.02 230 / 0.14);

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

  --font-display: 'Space Grotesk', 'Cabinet Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0d1319;
  --color-surface: #121a21;
  --color-surface-2: #161f27;
  --color-surface-offset: #182129;
  --color-surface-offset-2: #1e2833;
  --color-surface-dynamic: #263340;
  --color-divider: #202b34;
  --color-border: #2c3a45;

  --color-text: #e7ecef;
  --color-text-muted: #93a2ac;
  --color-text-faint: #7e8e99;
  --color-text-inverse: #101820;

  --color-primary: #e08644;
  --color-primary-hover: #ef9c5c;
  --color-primary-active: #f7b479;
  --color-primary-highlight: #3a2c1e;

  --color-slate: #6ea3bc;
  --color-slate-hover: #8fb9cf;
  --color-slate-highlight: #1c2f38;

  --color-warning: #c98a4a;
  --color-warning-hover: #d9a066;
  --color-warning-active: #e8b884;
  --color-warning-highlight: #3a2e20;

  --color-error: #d47986;
  --color-error-hover: #de919c;
  --color-error-active: #e8aab2;
  --color-error-highlight: #3a2429;

  --color-notification: #d47986;
  --color-notification-hover: #de919c;
  --color-notification-active: #e8aab2;
  --color-notification-highlight: #3a2429;

  --color-success: #79b98c;
  --color-success-hover: #96c9a5;
  --color-success-active: #b3d9be;
  --color-success-highlight: #1e2e22;

  --color-blue: #6ea3bc;
  --color-blue-hover: #8fb9cf;
  --color-blue-active: #b0cfdd;
  --color-blue-highlight: #1c2f38;

  --color-gold: #d3af5c;
  --color-gold-hover: #ddc07d;
  --color-gold-active: #e7d19e;
  --color-gold-highlight: #362d1a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

/* Type scale */
:root {
  --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.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6rem);

  --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;
}
