/* Klimaatzeker — Design tokens & base styles */
:root {
  /* Brand palette */
  --kz-blue: #2B3578;
  --kz-blue-700: #232c63;
  --kz-blue-900: #1a2150;
  --kz-teal: #31B7BC;
  --kz-teal-600: #2aa1a6;
  --kz-teal-100: #d6f0f1;
  --kz-cream: #FCFCEE;
  --kz-cream-2: #F7F7DB;
  --kz-white: #FFFFFF;

  /* Neutrals (warm, low-saturation) */
  --kz-ink: #14163a;
  --kz-text: #2c2f4a;
  --kz-muted: #6b6f88;
  --kz-line: #e8e8d8;
  --kz-line-2: #ececdf;
  --kz-surface: #faf9f0;

  /* Type */
  --font-sans: 'Quicksand', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Quicksand', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing & radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 6px rgba(20, 22, 58, 0.06);
  --shadow-md: 0 8px 28px rgba(20, 22, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 22, 58, 0.14);

  --container: 1200px;
  --section-y: clamp(56px, 6vw, 96px);

  /* Border token */
  --kz-border: #ddddd0;
}

/* Screen-reader utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--kz-text);
  background: var(--kz-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--kz-ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; }
h3 { font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; }
h4 { font-weight: 600; font-size: 17px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kz-teal-600);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--kz-teal);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--kz-teal); }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--kz-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--kz-teal);
  color: #06343a;
  box-shadow: 0 6px 18px rgba(49, 183, 188, 0.35);
}
.btn-primary:hover { background: var(--kz-teal-600); box-shadow: 0 10px 24px rgba(49, 183, 188, 0.4); }
.btn-secondary {
  background: var(--kz-blue);
  color: var(--kz-white);
}
.btn-secondary:hover { background: var(--kz-blue-700); }
.btn-ghost {
  background: transparent;
  color: var(--kz-ink);
  border-color: var(--kz-ink);
}
.btn-ghost:hover { background: var(--kz-ink); color: var(--kz-white); }
.btn-ghost-light {
  background: transparent;
  color: var(--kz-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: var(--kz-white); }
.btn-arrow svg { transition: transform .2s ease; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* Section */
.section { padding: var(--section-y) 0; position: relative; }
.section.dark {
  background: var(--kz-blue);
  color: rgba(255,255,255,0.86);
}
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: var(--kz-white); }
.section.cream { background: var(--kz-cream); }
.section.cream-2 { background: var(--kz-cream-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .left { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { margin-top: 4px; }

/* Card */
.card {
  background: var(--kz-white);
  border: 1px solid var(--kz-line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Misc utilities */
.divider {
  height: 1px;
  background: var(--kz-line);
  border: 0;
  margin: 0;
}

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--kz-ink);
  letter-spacing: 0.02em;
}
.input, .select, .textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--kz-ink);
  background: var(--kz-white);
  border: 1.5px solid var(--kz-line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--kz-teal);
  box-shadow: 0 0 0 4px rgba(49,183,188,0.18);
}
.textarea { min-height: 120px; resize: vertical; }

/* Focus visible for keyboard */
:focus-visible {
  outline: 2px solid var(--kz-teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 760px) {
  .section-head { margin-bottom: 36px; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .btn:active { transform: none; }
}
