/* =============================================
   BUILDPEAK AGENCY — Design Tokens
   Bold / Creative / Agency palette
   Accent: Safety Orange + Slate Dark
   Fonts: Clash Display (headings) + Satoshi (body)
   ============================================= */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f5f4f0;
  --color-surface: #faf9f7;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece9e4;
  --color-surface-offset-2: #e4e0da;
  --color-surface-dynamic: #d9d5ce;
  --color-divider: #ccc8c1;
  --color-border: #c4c0b8;

  /* Text */
  --color-text: #1a1814;
  --color-text-muted: #6b6860;
  --color-text-faint: #b0ada6;
  --color-text-inverse: #f9f8f4;

  /* Primary Accent — Construction Orange */
  --color-primary: #e8500a;
  --color-primary-hover: #c4410a;
  --color-primary-active: #a13508;
  --color-primary-highlight: #fde8dc;

  /* Dark Slate — for nav, hero overlays */
  --color-slate: #1c2128;
  --color-slate-mid: #2c333d;
  --color-slate-light: #3d4654;

  /* Surfaces overlaid on dark */
  --color-on-dark: #f5f4f0;
  --color-on-dark-muted: rgba(245, 244, 240, 0.65);

  /* Semantic */
  --color-success: #1e7c45;
  --color-error: #c0392b;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(28, 33, 40, 0.06);
  --shadow-sm: 0 1px 4px rgba(28, 33, 40, 0.08), 0 2px 8px rgba(28, 33, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 33, 40, 0.10), 0 1px 4px rgba(28, 33, 40, 0.06);
  --shadow-lg: 0 8px 32px rgba(28, 33, 40, 0.12), 0 2px 8px rgba(28, 33, 40, 0.06);
  --shadow-xl: 0 16px 48px rgba(28, 33, 40, 0.15), 0 4px 16px rgba(28, 33, 40, 0.08);
}

[data-theme='dark'] {
  --color-bg: #111418;
  --color-surface: #161b22;
  --color-surface-2: #1c2128;
  --color-surface-offset: #1e2530;
  --color-surface-offset-2: #252d38;
  --color-surface-dynamic: #2d3642;
  --color-divider: #343d4a;
  --color-border: #3d4654;

  --color-text: #e8e5de;
  --color-text-muted: #9aa0ac;
  --color-text-faint: #586069;
  --color-text-inverse: #1a1814;

  --color-primary: #f06623;
  --color-primary-hover: #e8500a;
  --color-primary-active: #c4410a;
  --color-primary-highlight: #3a1f0a;

  --color-slate: #0d1117;
  --color-slate-mid: #161b22;
  --color-slate-light: #1c2128;

  --color-on-dark: #e8e5de;
  --color-on-dark-muted: rgba(232, 229, 222, 0.65);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* =============================================
   TYPE SCALE (fluid)
   ============================================= */
: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.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  /* 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;

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

  /* TRANSITIONS */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast: 150ms;
  --duration-base: 280ms;
  --duration-slow: 500ms;
}
