/* ===========================================================================
   Base: reset, typography defaults, layout primitives, buttons.
   Section-specific styling lives in sections.css.
   =========================================================================== */

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

html {
  font-size: 62.5%;          /* 1rem = 10px, see tokens.css */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Headings: DIN Pro Black uppercase is the site's default; the display
   headings that use Nunito opt in via .h-display. */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-title);
  line-height: 1.2;
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-l); }
h4 { font-size: var(--text-m); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---- layout primitives -------------------------------------------------- */

.section {
  padding: var(--space-3xl) var(--space-m);
}
.section--tight { padding-block: var(--space-xl); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

/* The recurring two-column "text left, content right" section layout. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-m);
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
}

/* Section intro block: eyebrow + heading + body + optional CTA. */
.intro-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }

/* Centred variant — the original centres about / results / pricing / contact
   and left-aligns impact / collective / benefits / signup. Don't "tidy" this
   into one rule: the inconsistency is in the original design. */
.intro-block--center { align-items: center; text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-m);
  font-weight: 700;
  color: var(--green);
  text-transform: none;
  margin: 0;
}

/* Two heading styles, both used on the page:
   .h-display  Nunito Light, mixed case  — hero, impact, benefits, news
   plain <h2>  DIN Pro Black, uppercase  — results, about, collective,
                                           pricing, signup, contact        */
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-2xl);
  line-height: 1;
  text-transform: none;
  color: var(--primary);
}
.h-display--hero { font-weight: 200; font-size: var(--text-4xl); color: var(--white); }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 2.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-s);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { width: 1.6rem; height: 1.6rem; flex: none; }

/* Four button variants, all measured off the original.

   NOTE the outline pair: the border is magenta but the *label is blue*, not
   magenta. That reads like a mistake and isn't — it's what the site does.  */

/* green fill, white text — intro and pricing CTAs */
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--primary); }

/* white fill, blue text — the header "Doe mee" pill */
.btn--light { background: var(--white); color: var(--primary); }
.btn--light:hover { background: var(--tertiary); }

/* white fill, blue label, 1px magenta border — impact, contact */
.btn--outline {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--quaternary);
  font-weight: 600;
}
.btn--outline:hover { background: var(--quaternary); color: var(--white); }

/* transparent, blue label, 1px magenta border — collective, benefits, news */
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--quaternary);
  font-weight: 600;
}
.btn--ghost:hover { background: var(--quaternary); color: var(--white); }

/* plain text link with a chevron — the result cards' "Meer informatie" */
.btn--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  border-radius: 0;
}
.btn--link:hover { text-decoration: underline !important; }
.btn--link svg { width: 1.2rem; height: 1.2rem; }

/* ---- utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Scroll reveal. JS adds .is-visible; without JS everything stays visible. */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none !important; }
}
