/* ==========================================================================
   Bouwbedrijf Steevens — design system
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #2C4A16;
  --green-800: #3C6620;
  --green-700: #4E8429;
  --green-600: #5C9A2E;
  --green-500: #74B043;
  --green-100: #EAF3E1;
  --green-050: #F4F9EF;

  --orange-600: #DE6F0A;
  --orange-500: #F07C15;
  --orange-100: #FDEEDD;

  --navy: #1B3A63;

  /* Neutrals */
  --ink: #161A14;
  --ink-70: #4A5147;
  --ink-50: #767D73;
  --line: #E3E6E0;
  --surface: #FFFFFF;
  --surface-alt: #F6F7F4;

  /* System */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(22, 26, 20, .06), 0 2px 8px rgba(22, 26, 20, .05);
  --shadow: 0 4px 12px rgba(22, 26, 20, .07), 0 12px 32px rgba(22, 26, 20, .08);
  --shadow-lg: 0 12px 28px rgba(22, 26, 20, .10), 0 32px 64px rgba(22, 26, 20, .12);

  --header-h: 92px;
  --container: 1240px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink-70);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); letter-spacing: -.01em; }
p { max-width: 68ch; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.u-upper { text-transform: uppercase; }
.u-center { text-align: center; }
.u-green { color: var(--green-700); }
.u-lead { font-size: 1.12rem; }
.u-narrow { max-width: 720px; }
.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

.section { padding: clamp(72px, 10vw, 148px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--surface-alt); }
.section--green { background: var(--green-700); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--orange-500); border-radius: 2px;
}
.section--green .eyebrow { color: #DCEBCC; }
.section--green .eyebrow::before { background: #fff; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.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: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--carousel { grid-template-columns: .8fr 2.2fr; }
@media (max-width: 900px) { .split--carousel { grid-template-columns: 1fr; } }
.split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) { .split--reverse > *:first-child { order: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 6px 18px rgba(92, 154, 46, .28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(92, 154, 46, .34); }
.btn:hover::after { transform: translateX(120%); }
.btn:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; }
.btn--orange { --btn-bg: var(--orange-500); box-shadow: 0 6px 18px rgba(240, 124, 21, .3); }
.btn--orange:hover { box-shadow: 0 12px 26px rgba(240, 124, 21, .38); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--green-800); box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border: 2px solid rgba(255,255,255,.65); box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--green-800);
  border: 2px solid var(--green-600); box-shadow: none;
}
.btn--outline:hover { background: var(--green-050); box-shadow: none; }
.btn--lg { padding: 18px 38px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--orange-600); font-weight: 600; text-decoration: none;
  transition: gap .25s var(--ease), color .2s;
}
.link-arrow svg { flex: none; transition: transform .25s var(--ease); }
.link-arrow:hover { gap: 18px; color: var(--orange-500); }
.link-arrow--green { color: var(--green-700); }
.link-arrow--green:hover { color: var(--green-600); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-stuck .header-inner { height: 74px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img, .brand svg { height: 58px; width: auto; transition: height .3s var(--ease); }
.site-header.is-stuck .brand img, .site-header.is-stuck .brand svg { height: 46px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: .94rem; color: var(--ink); text-decoration: none;
  position: relative; transition: color .2s, background .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--green-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--green-700); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green-700); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.has-drop { position: relative; }
.has-drop > a svg { transition: transform .25s var(--ease); }
.has-drop.is-open > a svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-drop.is-open .drop, .has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 500; }
.drop a::after { display: none; }
.drop a:hover { background: var(--green-050); color: var(--green-800); }
.drop--right { left: auto; right: 0; }

.nav-cta { flex: none; }
.nav-toggle {
  display: none; flex: none; width: 46px; height: 46px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1220px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 20px 24px 40px; overflow-y: auto; overflow-x: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 6px; font-size: 1.1rem; border-radius: var(--radius-sm); }
  .nav a::after { display: none; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: 0 0 10px 14px; min-width: 0;
    display: none;
  }
  .has-drop.is-open .drop { display: block; }
  .has-drop:hover .drop { display: none; }
  .has-drop.is-open:hover .drop { display: block; }
  .nav-cta { display: none; }
  .nav .btn { width: 100%; margin-top: 12px; }
}
.nav { list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: clamp(560px, 88vh, 860px);
  padding: calc(var(--header-h) + 48px) 0 clamp(56px, 8vw, 96px);
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero--compact { min-height: clamp(440px, 62vh, 620px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .pic, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media { will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,16,5,.78) 0%, rgba(8,16,5,.50) 48%, rgba(8,16,5,.18) 100%),
    linear-gradient(180deg, rgba(8,16,5,.46) 0%, transparent 36%, rgba(8,16,5,.40) 100%);
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__body { max-width: 760px; }
.hero__body p { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: rgba(255,255,255,.94); }
.hero .btn-row { margin-top: 34px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.8); display: grid; justify-items: center; gap: 6px;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.hero__scroll svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }

/* Hero on green (contact/offerte) */
    .hero--green::before {
  background: linear-gradient(120deg, rgba(44,74,22,.93), rgba(78,132,41,.84));
}
.hero--flat { background: linear-gradient(120deg, var(--green-800), var(--green-600)); }
.hero--flat::before { display: none; }

/* ---------- Foto's ---------- */
.pic {
  display: block; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  background-color: var(--surface-alt);
}
.pic img {
  display: block; width: 100%; height: auto;
  opacity: 0; transition: opacity .5s var(--ease);
}
.pic img.is-loaded, .pic img[data-loaded] { opacity: 1; }
.pic--cover, .pic--cover img { width: 100%; height: 100%; }
.pic--cover img { object-fit: cover; }

.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img, .media-frame .pic { border-radius: inherit; }
.media-frame--offset::before {
  content: ""; position: absolute; inset: auto -18px -18px auto;
  width: 56%; height: 56%; border: 3px solid var(--green-500); border-radius: var(--radius-lg);
  z-index: -1;
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green-100); }
.card__icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 18px; background: var(--green-050); color: var(--green-700);
  margin-bottom: 20px; transition: background .3s, color .3s, transform .3s var(--ease);
}
.card:hover .card__icon { background: var(--green-600); color: #fff; transform: rotate(-6deg) scale(1.05); }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .97rem; }

/* USP tile (the 8-tile grids) */
.usp {
  display: grid; gap: 0; align-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; min-height: 220px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.usp:hover { transform: translateY(-3px); border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.usp__icon { color: var(--ink); margin: 0 auto 18px; transition: color .3s, transform .3s var(--ease); }
.usp:hover .usp__icon { color: var(--green-600); transform: scale(1.08); }
.usp__label {
  font-weight: 700; font-size: .95rem; line-height: 1.35;
  text-transform: uppercase; letter-spacing: .02em; color: var(--green-700);
}
.usp--lead {
  background: #fff; border: 2px solid var(--green-600); justify-content: center;
  text-align: left;
}
.usp--lead .usp__label {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--ink);
  letter-spacing: -.015em; line-height: 1.1;
}
.usp--lead:hover { transform: none; }

/* Product card (home) */
.product-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 28px; border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: #fff; isolation: isolate;
}
.product-card__media { position: absolute; inset: 0; z-index: -2; }
.product-card__media .pic, .product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,20,6,.05) 30%, rgba(10,20,6,.78));
  transition: background .4s;
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card:hover::before { background: linear-gradient(180deg, rgba(10,20,6,.18) 20%, rgba(46,84,20,.88)); }
.product-card h3 { color: #fff; text-transform: uppercase; font-size: 1.35rem; margin-bottom: .3em; }
.product-card ul { margin: 0 0 18px; padding: 0; list-style: none; font-size: .95rem; }
.product-card li { position: relative; padding-left: 18px; }
.product-card li::before { content: "–"; position: absolute; left: 0; }
.product-card .link-arrow { color: #fff; }
.product-card--plain {
  background: #fff; border: 2px solid var(--green-600); color: var(--ink);
  justify-content: center; min-height: 380px;
}
.product-card--plain h3 {
  color: var(--ink); font-size: clamp(1.7rem, 2.8vw, 2.2rem); text-transform: uppercase;
}
.product-card--plain::before { display: none; }

/* ---------- Steps (werkwijze) ---------- */
.steps { counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 26px; text-align: center; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-3px); border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.step__num {
  counter-increment: step;
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-600); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(92,154,46,.35);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__icon { color: var(--ink); margin: 12px auto 18px; }
.step h3 { color: var(--green-700); text-transform: uppercase; font-size: 1.06rem; letter-spacing: .04em; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- Feature band (green overlay block) ---------- */
.band { position: relative; padding: clamp(64px, 8vw, 120px) 0; overflow: hidden; isolation: isolate; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media .pic, .band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12,22,8,.35); }
.band__panel {
  max-width: 560px; background: var(--green-700); color: #fff;
  padding: clamp(34px, 4vw, 56px); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.band__panel h2 { color: #fff; text-transform: uppercase; }
.band__panel p { color: rgba(255,255,255,.94); }

/* ---------- Levertijd ---------- */
.leadtime { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.leadtime__badge {
  display: grid; place-items: center;
  background: var(--green-600); color: #fff; border-radius: var(--radius);
  padding: 18px 40px; box-shadow: var(--shadow);
}
.leadtime__badge b { font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.leadtime__label { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--ink); text-transform: uppercase; line-height: 1.05; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 clamp(240px, 30%, 340px); scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  position: relative;
}
.carousel__item img { aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.carousel__item:hover img { transform: scale(1.05); }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--green-600); color: #fff; display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--shadow); transition: background .2s, transform .2s var(--ease);
}
.carousel__nav:hover { background: var(--green-700); transform: translateY(-50%) scale(1.06); }
.carousel__nav[disabled] { opacity: .35; cursor: default; }
.carousel__nav--prev { left: -20px; }
.carousel__nav--next { right: -20px; }
@media (max-width: 780px) { .carousel__nav--prev { left: 4px; } .carousel__nav--next { right: 4px; } }

/* ---------- Reviews ---------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; height: 100%; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.review__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review__name { font-weight: 700; color: var(--ink); }
.review__date { font-size: .84rem; color: var(--ink-50); }
.review__stars { color: #F5A623; display: flex; gap: 2px; }
.review__text { font-size: .97rem; margin: 0; }
.review__text.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.review__more {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-50); font-size: .88rem; text-decoration: underline;
}
.review__more:hover { color: var(--green-700); }
.rating-summary {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px 10px 14px; box-shadow: var(--shadow-sm);
}
.rating-summary b { font-size: 1.3rem; color: var(--ink); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  padding: 11px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.filter:hover { border-color: var(--green-500); transform: translateY(-1px); }
.filter[aria-pressed="true"] { background: var(--green-600); border-color: var(--green-600); color: #fff; }

.gallery { columns: 4 260px; column-gap: 18px; }
.gallery__item {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: zoom-in; display: block;
  border: 0; padding: 0; background: none; width: 100%;
  animation: fadeUp .45s var(--ease) both;
}
.gallery__item img { transition: transform .6s var(--ease); }
.gallery__item::after {
  content: attr(data-caption);
  position: absolute; inset: auto 0 0; padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(10,20,6,.85));
  color: #fff; font-weight: 600; font-size: .92rem; text-align: left;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { opacity: 1; transform: none; }
@media (max-width: 640px) { .gallery { columns: 2 140px; column-gap: 12px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  place-items: center; background: rgba(8,14,6,.92); padding: 24px;
}
.lightbox[open], .lightbox.is-open { display: grid; }
.lightbox img, .lightbox .pic { max-height: 84vh; width: auto; border-radius: var(--radius); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 16px; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Map / coverage ---------- */
.coverage { position: relative; }
.coverage svg { width: 100%; height: auto; }
.coverage .pin { fill: var(--orange-500); animation: pulse 2.4s ease-out infinite; transform-origin: center; }
.coverage .pin:nth-child(2) { animation-delay: .5s; }
.coverage .pin:nth-child(3) { animation-delay: 1s; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .coverage .pin { animation: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--green-600); line-height: 1; letter-spacing: -.03em; }
.section--green .stat b { color: #fff; }
.stat span { font-size: .95rem; }
.section--green .stat span { color: rgba(255,255,255,.88); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { color: rgba(255,255,255,.92); margin: 0; max-width: 560px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 26px; }
.field > label, .fieldset__legend {
  display: block; font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: .97rem;
}
.field > .help { margin: -4px 0 12px; }
.fieldset > .help { margin: -4px 0 14px; }
.req { color: #D2402F; }
.input, .textarea, .select {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-050);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #D2402F; }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23161A14' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.help { font-size: .87rem; color: var(--ink-50); margin-top: 6px; }
.error-msg { display: none; color: #D2402F; font-size: .88rem; margin-top: 6px; font-weight: 600; }
.field.has-error .error-msg { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .87rem; color: var(--ink-50); }

/* Choice cards (radio / checkbox as cards) */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choices--tight { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__box {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-weight: 500; color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.choice__box:hover { border-color: var(--green-500); transform: translateY(-2px); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.choice input:checked + .choice__box {
  border-color: var(--green-600); background: var(--green-050);
  box-shadow: inset 0 0 0 1px var(--green-600);
}
.choice__tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.choice input:checked + .choice__box .choice__tick { border-color: var(--green-600); background: var(--green-600); }
.choice__tick svg { opacity: 0; transition: opacity .2s; color: #fff; }
.choice input:checked + .choice__box .choice__tick svg { opacity: 1; }
.choice--swatch .choice__box { flex-direction: column; align-items: flex-start; gap: 10px; }
.swatch { width: 100%; height: 46px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }

/* ---------- Wizard ---------- */
.wizard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.wizard__head { padding: clamp(26px, 3vw, 38px) clamp(24px, 3.5vw, 46px) 0; }
.wizard__bar { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.wizard__bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--green-600); transition: width .5s var(--ease);
}
.wizard__steps {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0;
  list-style: none; font-size: .84rem; color: var(--ink-50);
}
.wizard__steps li { display: flex; align-items: center; gap: 8px; }
.wizard__steps .dot {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; transition: background .3s, border-color .3s, color .3s;
}
.wizard__steps li[data-state="current"] { color: var(--ink); font-weight: 600; }
.wizard__steps li[data-state="current"] .dot { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.wizard__steps li[data-state="done"] { color: var(--green-700); cursor: pointer; }
.wizard__steps li[data-state="done"] .dot { border-color: var(--green-600); background: var(--green-050); color: var(--green-700); }
@media (max-width: 700px) { .wizard__steps .dot-label { display: none; } }

.wizard__body { padding: clamp(28px, 3.5vw, 46px); }
.wizard__panel { display: none; }
.wizard__panel.is-active { display: block; animation: fadeUp .4s var(--ease); }
.wizard__eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin: 0 0 10px;
}
.wizard__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .3em; }
.wizard__intro { color: var(--ink-70); max-width: 60ch; margin-bottom: 36px; }

.wizard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 22px clamp(24px, 3.5vw, 46px); border-top: 1px solid var(--line); background: var(--surface-alt);
}
.wizard__actions { display: flex; gap: 12px; margin-left: auto; }

.fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.wizard__panel > .field { margin-bottom: 34px; }
.wizard__panel .form-grid { margin-bottom: 34px; }
.fieldset:last-child, .field:last-child { margin-bottom: 0; }
.fieldset__legend { padding: 0; }

.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
@media (max-width: 1080px) { .wizard-layout { grid-template-columns: 1fr; } }

.summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: calc(var(--header-h) + 20px);
}
.summary-card h3 { font-size: 1.05rem; margin-bottom: .6em; }
.summary-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
.summary-list li:last-child { border-bottom: 0; }
.summary-list span:first-child { color: var(--ink-50); flex: none; max-width: 48%; }
.summary-list span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.summary-empty { color: var(--ink-50); font-size: .9rem; margin: 0; }

.preview {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 22px; background: var(--surface-alt);
}
.preview svg { display: block; width: 100%; height: auto; }

.review-card {
  background: var(--surface-alt); border-radius: var(--radius); padding: 26px 28px;
  margin-bottom: 26px;
}
.review-card .summary-list li { border-bottom-color: #E7E9E4; }

/* Keuzekaarten */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.choices--tight { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__box {
  display: block; height: 100%; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; color: var(--ink);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.choice__box:hover { border-color: var(--green-500); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.choice input:checked + .choice__box {
  border-color: var(--green-600); background: var(--green-050);
  box-shadow: inset 0 0 0 1px var(--green-600);
}
.choice__main { display: flex; align-items: flex-start; gap: 12px; }
.choice__tick {
  flex: none; width: 21px; height: 21px; border-radius: 50%; margin-top: 1px;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  transition: border-color .25s, background .25s;
}
.choice input:checked + .choice__box .choice__tick { border-color: var(--green-600); background: var(--green-600); }
.choice__tick svg { opacity: 0; color: #fff; transition: opacity .2s; }
.choice input:checked + .choice__box .choice__tick svg { opacity: 1; }
.choice__text { display: block; }
.choice__label { display: block; font-weight: 500; line-height: 1.35; }
.choice__hint { display: block; font-size: .84rem; color: var(--ink-50); margin-top: 3px; }
.choice--swatch .swatch {
  display: block; width: 100%; height: 42px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.12); margin-bottom: 12px;
}
.choice--consent { display: block; margin-top: 26px; }
.choice--consent .choice__box { padding: 18px 20px; }
.choice--consent a { color: var(--green-800); }

/* Invoer met eenheid */
.input-wrap { position: relative; }
.input-unit {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-50); font-size: .9rem; pointer-events: none;
}
.input-wrap .input { padding-right: 52px; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* Bijlagen */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; cursor: pointer; transition: border-color .25s, background .25s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--green-600); background: var(--green-050); }
.dropzone:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.dropzone input { display: none; }
.dropzone__icon { color: var(--green-600); margin: 0 auto 10px; }
.dropzone .help { margin: 6px 0 0; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.file-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--surface-alt); border-radius: var(--radius-sm); font-size: .9rem;
}
.file-list li > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; flex: none; }
.file-list button { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-50); }
.file-list button:hover { color: #D2402F; }

.error-msg[data-akkoord-error] { display: none; }
.error-msg[data-akkoord-error].is-shown { display: block; }

.wizard-done { text-align: center; padding: clamp(40px, 6vw, 78px) 26px; }
.wizard-done p { max-width: 54ch; margin-inline: auto; }
.wizard-done__icon {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--green-050); color: var(--green-600); display: grid; place-items: center;
  animation: pop .5s var(--ease);
}
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.25fr .9fr; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #fff;
}
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card__form { padding: clamp(28px, 4vw, 52px); }
.contact-card__info { padding: clamp(28px, 4vw, 52px); background: var(--green-700); color: #fff; }
.contact-card__info h2, .contact-card__info h3 { color: #fff; }
.contact-card__info a { color: #fff; }
.info-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 14px; }
.info-list svg { flex: none; margin-top: 3px; opacity: .9; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* ---------- Social rail + WhatsApp ---------- */
.social-rail {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  display: grid; gap: 2px; background: transparent;
}
.social-rail a {
  width: 48px; height: 48px; display: grid; place-items: center;
  color: var(--green-700); background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-right: 0;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.social-rail a:first-child { border-top-left-radius: var(--radius); }
.social-rail a:last-child { border-bottom-left-radius: var(--radius); }
.social-rail a:hover { background: var(--green-600); color: #fff; transform: translateX(-3px); }
@media (max-width: 900px) { .social-rail { display: none; } }

.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 95;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .42);
  transition: transform .25s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .55); animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-700); color: rgba(255,255,255,.92); padding-top: clamp(48px, 6vw, 80px); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: .7em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .97rem; }
.footer-brand img, .footer-brand svg { height: 96px; width: auto; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.4); transition: background .2s, transform .2s var(--ease);
}
.footer-socials a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.22);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .9rem;
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal][data-delay="1"].is-in { transition-delay: .08s; }
[data-reveal][data-delay="2"].is-in { transition-delay: .16s; }
[data-reveal][data-delay="3"].is-in { transition-delay: .24s; }
[data-reveal][data-delay="4"].is-in { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .88rem; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.body-lock { overflow: hidden; }

/* Ensure the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* ---------- Scrollvoortgang ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 120;
  height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  pointer-events: none;
}

/* ---------- Bijschrift in de carrousel ---------- */
.carousel__item { position: relative; }
.carousel__caption {
  position: absolute; inset: auto 0 0; padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(8,16,5,.82));
  color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.3;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.carousel__item:hover .carousel__caption { opacity: 1; transform: none; }

/* ---------- Rustige parallax op hero's ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__media { transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.06); }
}

/* ---------- Galerij: nette verhoudingen ---------- */
.gallery__item .pic { display: block; }
.gallery__item img { width: 100%; height: auto; }

/* ---------- Lightbox met echte foto's ---------- */
.lightbox .pic { max-height: 84vh; width: auto; }
.lightbox .pic img { max-height: 84vh; width: auto; opacity: 1; }
