/* ==========================================================================
   Ardennen Actief — shared design system (base.css)
   Tokens · reset · typography · layout · shared components · motion
   DO NOT put page-specific rules here: use assets/css/pages/<page>.css
   See DESIGN-SYSTEM.md for the contract.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-opsz.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* Inter with the optical-size axis; opsz 32 = "Inter Display" from Figma */
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens (from Figma variables) ---------- */
:root {
  /* Brand */
  --c-green-500: #193d27;   /* Primary/green-500 */
  --c-green-600: #173823;   /* Primary/green-600 */
  --c-green-700: #122b1c;   /* Primary/green-700 */
  --c-orange-500: #b25421;  /* Secondary/orange-500 */
  --c-orange-600: #9a471b;  /* hover (derived) */
  --c-orange-700: #7e3c17;  /* Secondary/orange-700 */
  --c-orange-200: #dcb099;  /* Secondary/orange-200 */
  --c-orange-100: #e7caba;  /* Secondary/orange-100 */
  --c-orange-50:  #f7eee9;  /* Secondary/orange-50 */

  /* Neutrals */
  --c-bg: #f5f3ef;          /* Background / grey-500 */
  --c-bg-2: #f6f3ef;        /* BG Light 2-500 */
  --c-bg-3: #e0ddd9;        /* BG Light 2-600 */
  --c-card: #fdfdfd;        /* card-white-500 */
  --c-white: #ffffff;
  --c-grey-50: #fefefd;
  --c-line: #aeadaa;        /* Grey/grey-700 */
  --c-hairline: rgba(22, 38, 28, 0.09);

  /* Text */
  --c-ink: #16261c;
  --c-text: #3e3e3e;        /* Text Main 2 */
  --c-text-sub: #7f7c73;    /* Text Sub 2 / Grey */
  --c-text-body: #696969;
  --c-text-muted: #4e4f51;
  --c-stat-label: #6e8275;
  --c-stat-sub: #9eb0a4;
  --c-star: #f5a623;
  --c-field-line: rgba(0, 0, 0, 0.1);
  --c-field-error: #b3261e;

  /* Type families */
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-ui: "Plus Jakarta Sans", var(--f-body);
  --f-num: "Inter Display", "Inter", var(--f-body);

  /* Fluid type scale (393 → 1440) */
  --fs-display: clamp(48px, calc(1.34vw + 42.7px), 62px);   /* hero title line 1 */
  --fs-display-2: clamp(40px, calc(1.53vw + 34px), 56px);   /* hero title line 2 */
  --fs-h2: clamp(32px, calc(0.77vw + 29px), 40px);
  --fs-h3: 32px;
  --fs-h4: 20px;
  --fs-lead: 20px;
  --fs-body-lg: clamp(16px, calc(0.19vw + 15.25px), 18px);
  --fs-body: 16px;
  --fs-small: 14px;

  /* Layout */
  --w-content: 1046px;       /* main content column (197px side gutters @1440) */
  --w-wide: 1188px;          /* hero */
  --w-page: 1280px;          /* inner pages: Figma 80px side gutters @1440 */
  --w-header: 1312px;        /* header bar */
  --gutter: clamp(16px, calc(5.2vw - 4.5px), 64px);
  --section-y: clamp(64px, calc(3.44vw + 50.5px), 100px);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 30px;
  --r-pill: 68px;

  /* Shadows */
  --sh-soft: 0 0 6px rgba(0, 0, 0, 0.04);
  --sh-card: 0 18px 40px -18px rgba(18, 43, 28, 0.28);
  --sh-header: 0 10px 30px -12px rgba(18, 43, 28, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur: 0.5s;
  --dur-slow: 0.9s;

  /* Header geometry */
  --header-top: 32px;
  --header-h: 90px;
  --header-offset: calc(var(--header-top) + var(--header-h) + 48px);
}
@media (max-width: 1023.98px) {
  :root {
    --header-top: 24px;
    --header-h: 77px;
    --header-offset: calc(var(--header-top) + var(--header-h) + 24px);
  }
}
@media (max-width: 767.98px) {
  :root { --header-top: 31px; }
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 120px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-green-500);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-variation-settings: "opsz" 14; /* Figma uses DM Sans at optical size 14 everywhere */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; line-height: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
::selection { background: var(--c-orange-100); color: var(--c-green-700); }

/* ---------- 4. Accessibility ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--r-md);
  background: var(--c-green-500);
  color: var(--c-bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--c-orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--c-orange-200); }

/* ---------- 5. Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--w-content));
  margin-inline: auto;
}
.container--wide { width: min(100% - 2 * var(--gutter), var(--w-wide)); }
.container--page { width: min(100% - 2 * var(--gutter), var(--w-page)); }
.container--header { width: min(100% - 2 * var(--gutter), var(--w-header)); }
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.site-main { padding-top: var(--header-offset); }
.stack > * + * { margin-top: var(--stack-gap, 24px); }

/* ---------- 6. Typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.display__line { display: block; }
.display__line--accent { color: var(--c-orange-500); font-size: var(--fs-display); line-height: 1.097; }
.display__line--base { color: var(--c-green-500); font-size: var(--fs-display-2); line-height: 1.1; margin-top: 6px; }
.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1.2;
  color: var(--c-green-500);
}
.h2--regular { font-weight: 400; }
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.25;
  color: var(--c-green-500);
}
.h4 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text);
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--c-text-sub);
}
.body-lg {
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: 1.78;
  color: var(--c-green-500);
}
.text-center { text-align: center; }
.text-accent { color: var(--c-orange-500); }

/* ---------- 7. Icons ---------- */
.icon { flex: none; width: 24px; height: 24px; }
.icon--20 { width: 20px; height: 20px; }
.icon--25 { width: 25px; height: 25px; }
.icon--32 { width: 32px; height: 32px; }

/* ---------- 8. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-green-500);
  --btn-bd: transparent;
  --btn-sweep: rgba(255, 255, 255, 0.12);
  --btn-fg-hover: var(--btn-fg);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-sweep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease-out);
}
.btn .btn__arrow { transition: transform 0.45s var(--ease-out); }
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); transform-origin: left center; }
  .btn:hover { color: var(--btn-fg-hover); }
}
.btn--primary { --btn-bg: var(--c-green-500); --btn-fg: var(--c-card); --btn-sweep: var(--c-green-700); }
.btn--primary:hover { box-shadow: 0 14px 30px -14px rgba(18, 43, 28, 0.6); }
.btn--accent { --btn-bg: var(--c-orange-500); --btn-fg: var(--c-card); --btn-sweep: var(--c-orange-700); }
.btn--accent:hover { box-shadow: 0 14px 30px -14px rgba(126, 60, 23, 0.6); }
.btn--outline { --btn-bd: var(--c-orange-500); --btn-fg: var(--c-orange-500); --btn-sweep: var(--c-orange-500); --btn-fg-hover: var(--c-card); }
.btn--sm { font-size: 16px; font-weight: 600; }
.btn--lg { min-height: 68px; padding: 6px 17px; border-radius: 8.6px; font-size: 24px; gap: 6px; }
.btn--block { width: 100%; }
/* Text link with arrow ("werkwijze →") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 15px;
  color: var(--c-orange-500);
  font-weight: 500;
  font-size: 20px;
  line-height: 2;
  position: relative;
}
.link-arrow__label {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
  line-height: 1.3;
}
.link-arrow .icon { transition: transform 0.45s var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover .link-arrow__label { background-size: 100% 1px; }
}
/* Underlined text link (light on dark) */
.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast), text-underline-offset var(--dur-fast);
}
.link-underline:hover { text-underline-offset: 7px; }

/* ---------- 9. Badge / pill ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 26px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-orange-500);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}
.badge--tint { background: var(--c-orange-50); }
/* Section label pill on the inner pages ("Contact", "Werkwijze", "Prijs"…): Figma 20px, 12/16 padding, also on mobile */
.badge--label { padding: 12px 16px; border-radius: 40px; font-size: 20px; line-height: 26px; }

/* ---------- 10. Rating pill ---------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 1px 15px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-md);
  background: var(--c-white);
  font-family: var(--f-ui);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.rating:hover { box-shadow: var(--sh-card); }
.rating__stars { color: var(--c-star); font-size: 10px; letter-spacing: 2px; }
.rating__score { color: var(--c-ink); font-weight: 700; font-size: 13px; }
.rating__divider { width: 1px; height: 14px; background: rgba(22, 38, 28, 0.14); }
.rating__label { color: var(--c-stat-label); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 11. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 178fr 207fr 207fr;
  max-width: 592px;
  padding-top: 33px;
  border-top: 1px solid var(--c-hairline);
}
.stat { min-width: 0; }
.stat + .stat { border-left: 1px solid var(--c-hairline); padding-left: 28px; }
.stat__value {
  display: block;
  font-family: var(--f-num);
  font-variation-settings: "opsz" 32;
  font-weight: 800;
  font-size: 38px;
  line-height: 38px;
  letter-spacing: -1.5px;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.stat__suffix { font-size: 22px; line-height: 22px; color: var(--c-orange-500); letter-spacing: 0; margin-left: 1px; }
.stat__label { display: block; margin-top: 4px; font-family: var(--f-ui); font-size: 12px; line-height: 18px; color: var(--c-stat-label); }
.stat__sub { display: block; margin-top: 1px; font-family: var(--f-ui); font-size: 11px; line-height: 14px; color: var(--c-stat-sub); }

/* ---------- 12. Section head ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.section-head .lead { max-width: 646px; }

/* ---------- 13. Feature (icon circle + title + text) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 28px;
  text-align: center;
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-green-500);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
.feature__icon svg { width: 48px; height: 48px; }
.feature:hover .feature__icon { box-shadow: var(--sh-card); background: var(--c-green-500); color: var(--c-card); }
.feature__title { font-weight: 700; font-size: 18px; line-height: 32px; color: var(--c-text); }
.feature__text { font-size: 18px; line-height: 1.3; color: var(--c-text-body); max-width: 302px; }

/* ---------- 14. Media (rounded image frame) ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-bg-3);
  isolation: isolate;
}
.media picture { display: block; width: 100%; height: 100%; }
.media img, .media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 15. Split row (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 515px 343px;
  justify-content: center;
  align-items: center;
  column-gap: 74px;
}
.split--reverse { grid-template-columns: 343px 515px; }
.split--reverse .split__media { order: -1; }
.split__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split__body .h3 { line-height: 40px; margin-block: -9px -8px; }
.split__body .lead { line-height: 1.3; }
.split__media { aspect-ratio: 343 / 382; border-radius: var(--r-lg); }
.split__body .link-arrow { margin-top: 0; padding-right: 24px; }

/* ---------- 16. Media card (image + gradient + title + arrow) ---------- */
.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 444px;
  padding: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  color: var(--c-white);
  box-shadow: var(--sh-soft);
  transform: translateZ(0);
}
.media-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(177.5deg, rgba(255, 255, 255, 0) 20.5%, rgba(25, 25, 25, 0.48) 89%);
  transition: opacity 0.6s var(--ease-out);
}
.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 43, 28, 0) 30%, rgba(18, 43, 28, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.media-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  position: relative;
}
.media-card__foot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(245, 243, 239, 0.42);
}
.media-card__foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: var(--c-orange-100);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}
.media-card__title { font-family: var(--f-display); font-size: 20px; line-height: 1.25; }
.media-card__arrow { color: var(--c-orange-100); transform: rotate(90deg); transition: transform 0.6s var(--ease-out); }
@media (hover: hover) {
  .media-card:hover::after { opacity: 1; }
  .media-card:hover .media-card__foot::before { transform: scaleX(1); }
}
.media-card:focus-visible { outline-offset: 4px; }

/* Carousel (horizontal drag + snap) — enabled by data-carousel on .carousel */
.carousel { position: relative; }
.carousel__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.carousel__progress { display: none; }

/* ---------- 17. Header ---------- */
.site-header {
  position: fixed;
  inset: var(--header-top) 0 auto;
  z-index: 100;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), top 0.5s var(--ease-out);
}
.site-header__bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px 0 14px;
  border: 1px solid var(--c-green-500);
  border-radius: var(--r-lg);
  background: rgba(245, 243, 239, 0);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: height 0.5s var(--ease-out), background-color 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.site-header.is-scrolled { top: 12px; }
.site-header.is-scrolled .site-header__bar {
  height: 72px;
  background: rgba(245, 243, 239, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--sh-header);
  border-color: rgba(25, 61, 39, 0.35);
}
.site-header.is-hidden { transform: translateY(calc(-100% - var(--header-top) - 16px)); }
.site-header.menu-open { transform: none; }
.site-logo { display: block; flex: none; width: 143px; transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.site-logo img { width: 100%; height: auto; }
.site-header.is-scrolled .site-logo { width: 120px; }
.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-nav__list { display: flex; align-items: center; gap: 32px; }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: var(--c-green-500);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--c-orange-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.site-nav__link:hover::after, .site-nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav__link[aria-current="page"] { color: var(--c-orange-500); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.header-cta {
  min-height: 54px;
  font-size: 18px;
  line-height: 32px;
  --btn-fg: var(--c-bg-3);
  --btn-fg-hover: var(--c-card);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: min-height 0.5s var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled .header-cta { min-height: 48px; }
.header-cta__icon { display: none; }
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 50%;
  color: #292d32;
}
.menu-toggle__line {
  position: absolute;
  left: 12px;
  width: 19.5px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), opacity 0.3s, width 0.4s var(--ease-out);
}
.menu-toggle__line:nth-child(2) { top: 16.25px; }
.menu-toggle__line:nth-child(3) { top: 21.25px; }
.menu-toggle__line:nth-child(4) { top: 26.25px; }
.menu-toggle:hover .menu-toggle__line:nth-child(3) { width: 13px; }

@media (max-width: 1023.98px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header__bar { padding: 20px 16px; border-radius: 16px; }
  .site-logo { width: 86px; }
  .site-header.is-scrolled .site-header__bar { height: 64px; }
  .site-header.is-scrolled .site-logo { width: 78px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Tablet: show a compact call button next to the menu toggle */
  .header-cta { display: inline-flex; min-height: 44px; padding: 6px 16px; font-size: 16px; }
  .site-header.is-scrolled .header-cta { min-height: 40px; }
  .site-header__bar { padding: 0 16px 0 20px; }
  .site-logo { width: 104px; }
}

/* ---------- 18. Mobile menu overlay ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 32px;
  background: var(--c-green-500);
  color: var(--c-bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 77px; }
.mobile-menu__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: 0.04em; color: var(--c-bg); }
.mobile-menu__brand svg { width: 30px; height: 30px; color: var(--c-orange-200); }
.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(245, 243, 239, 0.3);
  border-radius: 50%;
  color: var(--c-bg);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.mobile-menu__close:hover { background: rgba(245, 243, 239, 0.08); }
.mobile-menu__nav { margin-top: clamp(32px, 8vh, 72px); }
.mobile-menu__list { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__item { overflow: hidden; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 8px;
  font-family: var(--f-display);
  font-size: clamp(36px, 8.5vw, 56px);
  line-height: 1.15;
  color: var(--c-bg);
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out), color 0.3s;
}
.mobile-menu__index { font-family: var(--f-body); font-size: 13px; letter-spacing: 0.08em; color: var(--c-orange-200); transform: translateY(-1.2em); }
.mobile-menu__link:hover, .mobile-menu__link[aria-current="page"] { color: var(--c-orange-200); }
.mobile-menu.is-open .mobile-menu__link { transform: none; }
.mobile-menu.is-open .mobile-menu__item:nth-child(1) .mobile-menu__link { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(2) .mobile-menu__link { transition-delay: 0.31s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(3) .mobile-menu__link { transition-delay: 0.37s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(4) .mobile-menu__link { transition-delay: 0.43s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(5) .mobile-menu__link { transition-delay: 0.49s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(6) .mobile-menu__link { transition-delay: 0.55s; }
.mobile-menu__foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out) 0s, transform 0.6s var(--ease-out) 0s;
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; transition-delay: 0.6s; }
.mobile-menu__foot .btn--outline { --btn-bd: var(--c-orange-200); --btn-fg: var(--c-orange-200); --btn-sweep: var(--c-orange-200); --btn-fg-hover: var(--c-green-700); }
.mobile-menu__meta { margin-top: 12px; font-size: 14px; color: rgba(245, 243, 239, 0.7); }
@media (min-width: 768px) {
  .mobile-menu__foot { flex-direction: row; }
  .mobile-menu__foot .btn { flex: 1; }
  .mobile-menu__meta { display: none; }
}

/* ---------- 19. CTA band ("Laten we samen…") ---------- */
.cta-band { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.cta-band__title { font-family: var(--f-display); font-size: 32px; line-height: 44px; color: var(--c-green-500); max-width: 673px; }
.cta-band__actions { display: flex; justify-content: center; gap: 28px; }

/* ---------- 20. Footer ---------- */
.site-footer {
  position: relative;
  padding-bottom: 100px;
  background: rgba(245, 243, 239, 0.5);
}
.site-footer__cta { padding-top: 0; }
.site-footer__inner { margin-top: 132px; display: flex; flex-direction: column; gap: 32px; }
.brand-divider { display: flex; align-items: center; gap: 20px; }
.brand-divider::before, .brand-divider::after { content: ""; flex: 1; height: 1px; background: var(--c-line); transform-origin: center; }
.brand-divider__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 2;
  color: var(--c-green-500);
  white-space: nowrap;
}
.brand-divider__mark svg { width: 38px; height: 38px; transition: transform 0.8s var(--ease-out); }
.site-footer__cols { display: flex; justify-content: space-between; gap: 40px; }
.footer-col__title { font-weight: 700; font-size: 16px; line-height: 32px; color: var(--c-green-600); margin-bottom: 4px; }
.footer-col__list { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 4px; }
.footer-col__link {
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  line-height: 32px;
  color: var(--c-green-500);
  background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.footer-col__link:hover { background-size: 100% 1px; color: var(--c-orange-500); }
.footer-col__link[aria-current="page"] { color: var(--c-orange-500); }
.site-footer__statement { margin-top: 64px; max-width: 861px; font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.2; color: var(--c-green-700); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 58px; }
.social-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-orange-700);
  color: var(--c-grey-50);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--c-orange-500); }
.site-footer__rule { height: 1px; background: var(--c-line); }
.site-footer__trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; font-size: 14px; color: var(--c-green-500); }
.site-footer__stars { color: var(--c-star); letter-spacing: 1px; }
.site-footer__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-orange-500); }
.site-footer__copy { text-align: center; font-size: 14px; color: var(--c-green-500); }

/* ---------- 21. Forms (behaviour: assets/js/form.js, opt in with data-form) ---------- */
.form { position: relative; }
.form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  transition: color var(--dur-fast);
}
.field__req { margin-left: 10px; color: inherit; }
.field__input {
  width: 100%;
  height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--c-field-line);
  border-radius: var(--r-md);
  background: var(--c-card);
  color: var(--c-green-500);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast), box-shadow 0.35s var(--ease-out), background-color var(--dur-fast);
}
.field__input--area { height: 223px; padding: 12px; resize: vertical; min-height: 140px; }
.field__input::placeholder { color: rgba(0, 0, 0, 0.4); opacity: 1; transition: opacity var(--dur-fast); }
.field__input:hover { border-color: rgba(25, 61, 39, 0.28); }
.field__input:focus { outline: none; border-color: var(--c-green-500); box-shadow: 0 0 0 4px rgba(25, 61, 39, 0.08); background: var(--c-white); }
.field__input:focus::placeholder { opacity: 0.55; }
.field:focus-within .field__label { color: var(--c-green-500); }
/* validation states (set by form.js) */
.field.is-invalid .field__label { color: var(--c-field-error); }
.field.is-invalid .field__input { border-color: var(--c-field-error); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.08); background: #fffafa; }
.field.is-valid .field__input { border-color: rgba(47, 122, 75, 0.55); }
.field.is-shake .field__input { animation: field-shake 0.4s var(--ease-out); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-field-error);
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--c-field-error);
  color: var(--c-white);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.field__error:empty { display: none; }
.field.is-invalid .field__error { animation: error-in 0.35s var(--ease-out) both; }
@keyframes error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes field-shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
/* honeypot: off-screen for people, still filled in by bots */
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* submit button with a sending spinner */
.form__submit-label { transition: letter-spacing 0.5s var(--ease-out), opacity var(--dur-fast); }
.form__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(253, 253, 253, 0.35);
  border-top-color: var(--c-card);
  border-radius: 50%;
  opacity: 0;
  animation: form-spin 0.8s linear infinite;
  transition: opacity var(--dur-fast);
}
.form.is-sending .form__submit { pointer-events: none; }
.form.is-sending .form__submit-label { opacity: 0; }
.form.is-sending .form__spinner { opacity: 1; }
@keyframes form-spin { to { transform: rotate(360deg); } }
.form[hidden] { display: none; }
/* success panel: replaces the form; form.js gives it the form's height so nothing jumps */
.form-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  padding: clamp(8px, 2vw, 28px);
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-orange-50); color: var(--c-orange-500); }
.form-success__icon svg { width: 44px; height: 44px; }
.form-success__ring { stroke: var(--c-orange-200); stroke-width: 1.5; }
.form-success__check { stroke-dasharray: 30; stroke-dashoffset: 0; }
.form-success.is-in .form-success__check { animation: check-draw 0.7s 0.25s var(--ease-out) both; }
.form-success.is-in > * { animation: success-in 0.7s var(--ease-out) both; }
.form-success.is-in > :nth-child(2) { animation-delay: 0.08s; }
.form-success.is-in > :nth-child(3) { animation-delay: 0.16s; }
.form-success.is-in > :nth-child(4) { animation-delay: 0.24s; }
.form-success__title { margin-top: 8px; }
.form-success__text { max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--c-text-body); }
.form-success__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 12px; }
.form-success__again { font-size: 16px; }
@keyframes check-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes success-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- 21b. "Vrijblijvend advies" block (centred head + image | form card) ---------- */
.section.advies { padding-top: calc(var(--section-y) + 36px); }   /* Figma: 136 above the pill @1440 */
.advies__inner { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.advies__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.advies__title { margin-top: 48px; line-height: 1.33; text-transform: capitalize; }
.advies__lead { margin-top: 28px; line-height: 1.3; }
.advies-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  margin-top: 36px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--c-card);
}
.advies-card__media { min-height: 687px; border-radius: var(--r-lg); }
.advies-card__body { display: flex; flex-direction: column; min-width: 0; }
.advies-form { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }

/* ---------- 22. Page loader + transitions ---------- */
.page-loader { display: none; }
.js .page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: var(--c-bg);
  /* failsafe: never block the page if JS stalls */
  animation: loader-failsafe 0s linear 4s forwards;
}
.page-loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.page-loader__logo { width: 168px; opacity: 0; transform: translateY(12px); }
.page-loader__bar { position: relative; width: 120px; height: 1px; background: rgba(25, 61, 39, 0.15); overflow: hidden; }
.page-loader__bar::after { content: ""; position: absolute; inset: 0; background: var(--c-orange-500); transform: scaleX(0); transform-origin: left; }
.page-loader.is-running .page-loader__logo { animation: loader-logo 0.9s var(--ease-out) forwards; }
.page-loader.is-running .page-loader__bar::after { animation: loader-bar 1s var(--ease-in-out) 0.15s forwards; }
.page-loader.is-done { clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-in-out); pointer-events: none; }
.page-loader.is-skipped, .page-loader.is-gone { display: none !important; }
@keyframes loader-logo { to { opacity: 1; transform: none; } }
@keyframes loader-bar { to { transform: scaleX(1); } }
@keyframes loader-failsafe { to { visibility: hidden; pointer-events: none; } }

.page-fade {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--c-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
html.is-leaving .page-fade { opacity: 1; pointer-events: auto; }

/* ---------- 23. Reveal states (only when JS is active) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal-group] > * { opacity: 0; }
.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-word__inner { display: inline-block; will-change: transform; }
.is-revealed { opacity: 1 !important; }

/* Reduced motion: show everything, no transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-reveal-group] > *, .js [data-split] { opacity: 1 !important; visibility: visible !important; clip-path: none !important; transform: none !important; }
  .js .page-loader { display: none; }
  .form__spinner { animation: none; border-top-color: rgba(253, 253, 253, 0.35); }
  .field.is-shake .field__input { animation: none; }
}

/* ---------- 24. Shared responsive ---------- */
@media (max-width: 1199.98px) {
  .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 74px); }
  .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .advies-card { column-gap: 40px; }
  /* the image follows the form height instead of Figma's fixed 687px */
  .advies-card__media { min-height: 0; }
}
@media (max-width: 1023.98px) {
  .carousel__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    cursor: grab;
    overscroll-behavior-x: contain;
  }
  .carousel__track::-webkit-scrollbar { display: none; }
  .carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .carousel__track.is-dragging .media-card { pointer-events: none; }
  .carousel__track > * { flex: 0 0 min(62vw, 420px); scroll-snap-align: start; }
  .carousel__progress { display: block; position: relative; height: 2px; margin-top: 28px; border-radius: 2px; background: rgba(245, 243, 239, 0.2); overflow: hidden; }
  .carousel__progress-bar { position: absolute; inset: 0; background: var(--c-orange-200); transform-origin: left; transform: scaleX(0.33); transition: transform 0.2s linear; }
  .features { gap: 0; }
  .feature { padding-inline: 12px; }
  .feature__text { font-size: 16px; }
  .site-footer__cols { flex-direction: column; gap: 24px; }
  .site-footer__trust { column-gap: 16px; font-size: 13px; }
  .advies-card { grid-template-columns: minmax(0, 1fr); row-gap: 40px; max-width: 720px; margin-inline: auto; }
  .advies-card__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
  .h2 { line-height: 1.375; }
  .split, .split--reverse { grid-template-columns: 1fr; row-gap: 24px; }
  .split--reverse .split__media { order: 0; }
  .split__media { order: -1; aspect-ratio: 279 / 310; border-radius: 24px; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature__icon { width: 80px; height: 80px; }
  .feature__icon svg { width: 40px; height: 40px; }
  .feature__title { font-size: 16px; line-height: 1.3; }
  .feature__text { font-size: 16px; }
  .carousel__track > * { flex-basis: 85%; }
  .cta-band__actions { flex-direction: column; width: 100%; gap: 16px; }
  .cta-band__actions .btn { width: 100%; }
  .site-footer__inner { margin-top: 64px; }
  .site-footer__cols { gap: 16px; }
  .footer-col__list { flex-direction: column; row-gap: 0; }
  .footer-col__link { line-height: 34px; }
  .site-footer__statement { margin-top: 47px; font-size: 24px; line-height: 1.33; }
  .site-footer__social { margin-top: 24px; }
  .site-footer__trust { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat + .stat { padding-left: 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 25px; }
  .stat__label, .stat__sub { overflow-wrap: anywhere; hyphens: auto; }
  .field__req { margin-left: 6px; }
  .field__error { font-size: 12px; }
  .form-success__text { font-size: 16px; }
  .advies__title { margin-top: 36px; line-height: 1.2; }
  .advies__lead { margin-top: 24px; font-size: 16px; }
  .advies-card { row-gap: 40px; margin-top: 36px; }
  .advies-card__media { aspect-ratio: 321 / 220; }
}
@media (max-width: 359.98px) {
  .form__fields { grid-template-columns: 1fr; }
}

/* ---------- Programme card (home + voorbeeldprogramma pages): extends .media-card ---------- */
.prog-card { height: 420px; gap: 8px; }
.prog-card::before { background: linear-gradient(180deg, rgba(18, 43, 28, 0) 22%, rgba(18, 43, 28, 0.82) 100%); }
.prog-card__meta { align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(253, 253, 253, 0.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 14px; line-height: 1.3; }
.prog-card__lead { max-width: 420px; font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.prog-card .media-card__title { font-size: 28px; }
.prog-card .media-card__foot { margin-top: 12px; }
@media (max-width: 1023.98px) { .prog-card { height: 380px; } }
@media (max-width: 767.98px) {
  .prog-card { height: 340px; padding: 24px; }
  .prog-card .media-card__title { font-size: 24px; }
}

/* Quiet variant (home): title + one line, nothing else */
.prog-card--quiet { height: 280px; padding: 20px; gap: 4px; }
.prog-card--quiet::before { background: linear-gradient(180deg, rgba(18, 43, 28, 0) 40%, rgba(18, 43, 28, 0.88) 100%); }
.prog-card--quiet .media-card__title { font-size: 20px; }
.prog-card--quiet .prog-card__meta { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 13px; color: rgba(255, 255, 255, 0.86); }

/* Hover: image darkens, description opens gently. Touch devices keep the quiet card. */
.prog-card--quiet::after { background: rgba(18, 43, 28, 0.55); transition: opacity 0.6s var(--ease-out); }
.prog-card__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.6s var(--ease-out), opacity 0.6s var(--ease-out); }
.prog-card__more .prog-card__lead { min-height: 0; overflow: hidden; font-size: 14px; }
.prog-card--quiet:focus-visible::after { opacity: 1; }
.prog-card--quiet:focus-visible .prog-card__more { grid-template-rows: 1fr; opacity: 1; }
@media (hover: hover) {
  .prog-card--quiet:hover::after { opacity: 1; }
  .prog-card--quiet:hover .prog-card__more { grid-template-rows: 1fr; opacity: 1; }
}

/* Badge on a programme image */
.prog-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(120deg, var(--c-orange-700), var(--c-orange-500));
  box-shadow: 0 6px 16px -6px rgba(18, 43, 28, 0.55);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.prog-badge__icon { width: 15px; height: 15px; color: #ffd27a; }

/* ---------- Back link: .link-arrow pointing left ---------- */
.link-arrow--back { flex-direction: row-reverse; }
.link-arrow--back .icon { rotate: 180deg; }
