/* ZigZag Junk — design tokens. Edit only here; everything else consumes these variables. */

:root {
  /* Brand colors — yellow + black contractor palette */
  --color-bg: #FAFAF5;          /* warm cream */
  --color-surface: #FFFFFF;
  --color-surface-2: #F4F4EF;
  --color-text: #0A0A0A;        /* near-black headings */
  --color-text-body: #3F3F46;   /* body copy */
  --color-text-muted: #71717A;
  --color-border: #E6E6E0;

  --color-accent: #FFC700;          /* primary yellow */
  --color-accent-hover: #E6B400;    /* slightly deeper on hover */
  --color-accent-soft: #FFF5BF;     /* yellow tint for backgrounds/highlights */
  --color-accent-text: #0A0A0A;     /* always black-on-yellow */

  --color-ink: #0A0A0A;             /* dark surface (CTA strip, footer) */
  --color-ink-2: #171717;
  --color-on-ink: #FAFAF5;          /* off-white on dark */
  --color-on-ink-muted: #A3A3A3;

  --color-success: #15803D;         /* eco-friendly green, used sparingly */
  --color-success-bg: #ECFDF5;
  --color-error: #DC2626;
  --color-error-bg: #FEF2F2;

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

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: clamp(2.5rem, 5.5vw + 1rem, 4.5rem);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation — flat design uses minimal shadow */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06), 0 1px 3px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.10), 0 2px 8px rgba(10, 10, 10, 0.05);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Fonts — Lexend display, Source Sans 3 body */
  --font-sans: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Lexend', var(--font-sans);

  /* Z-layers */
  --z-nav: 50;
  --z-toast: 100;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0A0A0A;
    --color-surface: #171717;
    --color-surface-2: #212121;
    --color-text: #FAFAF5;
    --color-text-body: #D4D4D4;
    --color-text-muted: #A3A3A3;
    --color-border: #2A2A2A;
    --color-accent-soft: #2A2410;
    --color-success-bg: #0F1F14;
    --color-error-bg: #2A1414;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);
  }
}
