/* ==========================================================================
   Sendsteps — Base
   Reset, typografie en layout-fundament. Bouwt op tokens.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Headings --- */
h1, h2, h3, h4, h5 {
  font-weight: var(--fw-heading);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { color: var(--text); }
.muted { color: var(--text-muted); }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

/* --------------------------------------------------------------------------
   Section spacing & conversion rhythm
   Related blocks stay visually connected so the next CTA is never a long
   empty scroll away. Padding is per-section (top + bottom), so the gap
   between two blocks is roughly twice the token.
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(24px, 3vw, 36px); }

/* CTA isolation: a little more air than a normal section, not a full pause */
.section--cta { padding-block: var(--cta-isolation); }

/* Hero: room under the sticky header; enough bottom padding that the
   ambient wash can fade out before the next block starts. */
.section--hero {
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 5.5vw, 72px);
}
.section--hero-sm {
  padding-block: var(--space-6);
}
/* Kept as a hook for pages that still want a slight pull-up. Do not use a
   large negative margin: the next block then sits on the clipped gradient. */
.hero-bleed { margin-bottom: 0; }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* Feature rows: keep the Z-pattern readable without a full-section pause */
.feature-row + .feature-row { margin-top: var(--spacing-lg); }

/* Spacing utility classes (8-point) — for one-off adjustments without inline hex */
.mt-xs { margin-top: var(--spacing-xs); }   .mb-xs { margin-bottom: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }   .mb-sm { margin-bottom: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }   .mb-md { margin-bottom: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }   .mb-lg { margin-bottom: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }   .mb-xl { margin-bottom: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); } .mb-xxl { margin-bottom: var(--spacing-xxl); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.nowrap-desktop { white-space: nowrap; }

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .nowrap-desktop { white-space: normal; }
}

/* --- Overline (categorie-label, brand violet, wide tracking) --- */
.overline {
  display: inline-block;
  font-size: var(--fs-overline);
  font-weight: var(--fw-heading);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  color: var(--brand-violet);
}
:root[data-theme="dark"] .overline { color: var(--lavender); }

/* --- Tekst-helpers --- */
.lead { font-size: var(--fs-body-lg); color: var(--text-muted); }
.text-center { text-align: center; }
.measure { max-width: 60ch; }
.measure-center { max-width: 60ch; margin-inline: auto; }

/* --- Gradient-tekst (spaarzaam, voor één woord in een kop) --- */
.text-gradient {
  background: var(--icon-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Brand ribbon (3px) — het herkenbaarste merkelement --- */
.brand-ribbon { height: 3px; background: var(--brand-ribbon); }

/* --- Accessibility --- */
:focus-visible {
  outline: 3px solid var(--accent-gold-strong);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--panel-bg); color: var(--text);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  z-index: 100; transition: top var(--t-hover);
}
.skip-link:focus { top: var(--space-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
