/* ============================================
   Gedeelde bouwblokken (homepage en landingspagina's): tokens, typografie,
   cijferbalk, voor/na, reviews, werkwijze, projectenband en FAQ.
   ============================================ */

.page-home-v2,
.page-landing,
.page-project-v2,
.page-offerte {
  --h2-section: clamp(56px, 8vw, 104px);
  --h2-gutter: clamp(16px, 4vw, 32px);
  --h2-radius: 10px;
  --h2-ink: #1F2122;
  --h2-muted: #5C6063;
  --h2-line: #E4E4E4;
  --h2-soft: #F5F5F4;
  --h2-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
}

.h2-wrap {
  width: 100%;
  max-width: calc(1140px + 2 * var(--h2-gutter));
  margin: 0 auto;
  padding-inline: var(--h2-gutter);
}
.h2-section { padding-block: var(--h2-section); }
.h2-center { text-align: center; }

/* --- Typografie ----------------------------------------------------------- */
.h2-kicker {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h2-kicker--dark { color: var(--color-copper); }

.h2-title {
  margin: 0 0 20px;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2-title--light { color: var(--color-white); }

.h2-text {
  margin: 0 0 16px;
  color: var(--h2-muted);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.65;
}
.h2-text a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

.h2-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
}
.h2-link .icon { width: 16px; height: 16px; fill: var(--color-copper); transition: transform var(--t-button); }
.h2-link:hover .icon, .h2-link:focus-visible .icon { transform: translateX(4px); }
.h2-link--light { color: var(--color-white); }
.h2-link--light .icon { fill: var(--color-accent); }

.h2-btn { padding: 18px 30px; }

.h2-stars { display: inline-flex; gap: 2px; line-height: 0; }
.h2-stars svg { width: 16px; height: 16px; fill: var(--color-accent); }

.h2-checks { display: grid; gap: 10px; margin: 8px 0 24px; padding: 0; list-style: none; }
.h2-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--h2-ink);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
}
.h2-checks .icon {
  flex: none;
  box-sizing: content-box;
  width: 12px;
  height: 12px;
  padding: 6px;
  border-radius: 50%;
  background: var(--color-copper);
  fill: var(--color-white);
}

/* --- Cijfers -------------------------------------------------------------- */
.h2-proof { border-bottom: 1px solid var(--h2-line); background: var(--color-white); }
.h2-proof__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-block: 0;
  list-style: none;
}
.h2-proof__list li {
  display: grid;
  gap: 4px;
  padding: 24px 12px;
  font-family: var(--font-main);
}
.h2-proof__list li:nth-child(odd) { padding-left: 0; }
.h2-proof__list li:nth-child(-n+2) { border-bottom: 1px solid var(--h2-line); }
.h2-proof__list strong {
  color: var(--color-primary);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
}
.h2-proof__link { display: grid; gap: 4px; color: inherit; }
.h2-proof__link span { text-decoration: underline; text-decoration-color: var(--h2-line); text-underline-offset: 3px; }
.h2-proof__link:hover span, .h2-proof__link:focus-visible span { text-decoration-color: var(--color-copper); }
.h2-proof__list small { font-size: 0.55em; font-weight: 600; color: var(--h2-muted); }
.h2-proof__list span { color: var(--h2-muted); font-size: 14px; line-height: 1.4; }

@media (min-width: 900px) {
  .h2-proof__list { grid-template-columns: repeat(4, 1fr); }
  .h2-proof__list li,
  .h2-proof__list li:nth-child(odd) { padding: 32px 28px; border-left: 1px solid var(--h2-line); }
  .h2-proof__list li:nth-child(-n+2) { border-bottom: 0; }
  .h2-proof__list li:first-child { padding-left: 0; border-left: 0; }
  .h2-proof__list li:nth-child(2) { border-left: 1px solid var(--h2-line); }
}

/* --- Voor en na ----------------------------------------------------------- */
.h2-ba__grid { display: grid; gap: 40px; align-items: center; }
.h2-ba__slider .ba-slider { border-radius: var(--h2-radius); box-shadow: var(--h2-shadow); touch-action: pan-y; }
@media (min-width: 1024px) {
  .h2-ba__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
}

/* Nederlandse labels, altijd zichtbaar in de hoeken */
.ba-slider--nl::before,
.ba-slider--nl::after {
  top: 16px;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 4px;
  background: rgba(31, 33, 34, 0.75);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  opacity: 1;
  text-transform: uppercase;
}
.ba-slider--nl::before { content: "Voor"; left: 16px; }
.ba-slider--nl::after { content: "Na"; right: 16px; }
.ba-slider--nl .ba-slider__overlay { display: none; }

/* --- Reviews -------------------------------------------------------------- */
.h2-reviews { background: var(--h2-soft); scroll-margin-top: 90px; }
.h2-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: 32px;
}
.h2-reviews__head .h2-title { margin: 0; }

/* --- Werkwijze ------------------------------------------------------------ */
.h2-steps { background: var(--h2-soft); }
.h2-steps__list {
  display: grid;
  gap: 20px;
  margin: 24px 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.h2-step {
  position: relative;
  padding: 28px;
  border-radius: var(--h2-radius);
  background: var(--color-white);
}
/* Step with photo: image fills the top of the card, number overlaps its bottom edge */
.h2-step--photo { overflow: hidden; padding-top: 0; }
.h2-step--photo > picture, .h2-step--photo > .h2-step__img { display: block; width: calc(100% + 56px); margin: 0 -28px; }
.h2-step__img { aspect-ratio: 3 / 2; object-fit: cover; }
.h2-step--photo > picture .h2-step__img { width: 100%; margin: 0; }
.h2-step--photo .h2-step__num { position: relative; margin-top: -22px; box-shadow: 0 0 0 4px var(--color-white); }
.h2-step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--color-copper);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
}
.h2-step__title {
  margin: 0 0 8px;
  color: var(--h2-ink);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
}
.h2-step__text { margin: 0; color: var(--h2-muted); font-family: var(--font-main); font-size: 15px; line-height: 1.6; }
.h2-steps__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.h2-steps__cta .h2-link { margin-top: 0; }

@media (min-width: 640px) { .h2-steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .h2-steps__list { grid-template-columns: repeat(4, 1fr); } }

/* --- Projecten ------------------------------------------------------------ */
.h2-projects { background: var(--color-primary); }
.h2-projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 24px;
}
.h2-projects__head .h2-title { margin: 0; }
.h2-projects__intro { margin: 10px 0 0; color: rgba(255, 255, 255, 0.8); font-family: var(--font-main); font-size: 16px; line-height: 1.6; }
.h2-projects__head .h2-link { margin-top: 0; }

/* --- FAQ ------------------------------------------------------------------ */
.h2-faq__grid { display: grid; gap: 32px; }
.h2-faq__accordion { --acc-space: 12px; }
@media (min-width: 1024px) {
  .h2-faq__grid { grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; }
}

/* --- Rustiger bewegen ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .h2-link .icon { transition: none; }
}
