/* ==========================================================================
   Nuform Green - design tokens, theme, base
   Brand: green #067647, secondary #EABB00
   ========================================================================== */
:root {
  --brand: #067647;
  --brand-dark: #055c37;
  --brand-rgb: 6, 118, 71;
  --gold: #EABB00;
  --gold-rgb: 234, 187, 0;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.25s var(--ease);
  --header-h: 80px;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
}

/* Dark (original look) */
:root,
:root[data-theme="dark"] {
  --bg: #070d0a;
  --surface: #0f1813;
  --surface-card: #14211a;
  --surface-border: #1d3328;
  --text: #f0fdf4;
  --text-muted: #a3b3ab;
  --text-dim: #7b8c84;
  --accent: #34d399;          /* readable green for text on dark */
  --heading-grad: linear-gradient(135deg, #fff 30%, #34d399);
  --header-bg: rgba(7, 13, 10, 0.82);
  --footer-bg: #040806;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  --glow: rgba(6, 118, 71, 0.45);
  --hero-fade: #070d0a;
}

:root[data-theme="light"] {
  --bg: #f4f9f6;
  --surface: #ffffff;
  --surface-card: #ecf5ef;
  --surface-border: #d3e4da;
  --text: #0b2318;
  --text-muted: #46594f;
  --text-dim: #66786e;
  --accent: #067647;
  --heading-grad: linear-gradient(135deg, #0b2318 20%, #067647);
  --header-bg: rgba(244, 249, 246, 0.85);
  --footer-bg: #e6f1ea;
  --shadow: 0 12px 30px rgba(6, 70, 42, 0.12);
  --glow: rgba(6, 118, 71, 0.18);
  --hero-fade: #f4f9f6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .brand-font { font-family: var(--font-head); letter-spacing: -0.02em; }

a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--brand); color: #fff; }

.container { max-width: 1200px; }

/* Scroll reveal (progressive enhancement: only hidden when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}