/* Art direction: Tree service / outdoor trade business → Rugged, trustworthy, grounded
   Palette: Deep forest green primary, warm bark brown accent, clean off-white surfaces
   Typography: Clash Display (bold, commanding) + General Sans (clean, versatile)
   Density: spacious — editorial feel for a small business landing page */

/* ===================== FONTS ===================== */
:root {
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

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

/* ===================== SPACING ===================== */
:root {
  --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;
}

/* ===================== COLOR — McGuire Forest Palette ===================== */

:root, [data-theme="light"] {
  /* Surfaces — warm off-white with earthy undertones */
  --color-bg:              #f8f7f4;
  --color-surface:         #faf9f6;
  --color-surface-2:       #ffffff;
  --color-surface-offset:  #f0eeea;
  --color-surface-offset-2: #e8e5e0;
  --color-surface-dynamic: #ddd9d3;
  --color-divider:         #d4d0ca;
  --color-border:          #c8c3bc;

  /* Text — dark charcoal */
  --color-text:            #1a1a1a;
  --color-text-muted:      #5c5c5c;
  --color-text-faint:      #9a9a9a;
  --color-text-inverse:    #f8f7f4;

  /* Primary — Deep Forest Green */
  --color-primary:         #2d5016;
  --color-primary-hover:   #234010;
  --color-primary-active:  #1a300c;
  --color-primary-highlight: #d4e4cc;

  /* Accent — Warm Bark Brown */
  --color-accent:          #6b4423;
  --color-accent-hover:    #55361c;
  --color-accent-active:   #402916;
  --color-accent-highlight: #e4d8cc;

  /* Semantic — keeping standard names */
  --color-warning:         #9a6419;
  --color-warning-highlight: #e8dcc6;
  --color-error:           #a12c2c;
  --color-error-highlight:  #e8cccc;
  --color-success:         #2d6b16;
  --color-success-highlight: #d0e8cc;

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

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

  /* Shadows — warm-tinted */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 80 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:              #141310;
  --color-surface:         #1a1916;
  --color-surface-2:       #1f1e1a;
  --color-surface-offset:  #1c1b18;
  --color-surface-offset-2: #242320;
  --color-surface-dynamic: #2e2d2a;
  --color-divider:         #2a2926;
  --color-border:          #3a3937;

  --color-text:            #d4d3d0;
  --color-text-muted:      #8a8986;
  --color-text-faint:      #5e5d5a;
  --color-text-inverse:    #1a1a1a;

  --color-primary:         #5a9b3a;
  --color-primary-hover:   #4a8530;
  --color-primary-active:  #3a6f26;
  --color-primary-highlight: #2a3a22;

  --color-accent:          #c08a5c;
  --color-accent-hover:    #a87448;
  --color-accent-active:   #8e5e38;
  --color-accent-highlight: #3a3028;

  --color-warning:         #c49040;
  --color-warning-highlight: #3a3020;
  --color-error:           #d45050;
  --color-error-highlight:  #3a2020;
  --color-success:         #4aaa30;
  --color-success-highlight: #203a18;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}
