/* REGA huisstijl */
:root {
  --groen: #16382E;
  --groen-diep: #0C211B;
  --groen-nacht: #081712;
  --creme: #F3F1EA;
  --mint: #8FE3BC;
  --tekst: #1E2723;
  --tekst-zacht: #4A5550;
  --lijn: #E2DFD5;
  --wit: #FFFFFF;
  --breedte: 1180px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--wit);
  color: var(--tekst);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  color: var(--groen);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 0.6em;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; margin-bottom: 0.5em; }

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

a { color: var(--groen); }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--breedte);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--groen);
  color: var(--wit);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--tekst-zacht);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.label::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* Knoppen */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  background: var(--groen);
  color: var(--wit);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--groen-diep); transform: translateY(-1px); }

.button-light {
  background: var(--creme);
  color: var(--groen);
}
.button-light::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.button-light:hover { background: var(--wit); }
.button-light:hover::after { transform: rotate(45deg) translate(1px, 1px); }

.button-small {
  font-size: 0.9375rem;
  padding: 0.55rem 1.3rem;
}

/* Zwevende menubalk */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  max-width: var(--breedte);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  border-radius: 14px;
  background: rgba(8, 23, 18, 0.35);
  border: 1px solid rgba(243, 241, 234, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.logo-link { display: grid; }
.logo-link > * { grid-area: 1 / 1; }
.logo { width: 112px; transition: opacity 0.35s ease; }
.logo-dark { opacity: 0; }

.site-header .button-small {
  background: var(--creme);
  color: var(--groen);
}

.site-header.is-light .nav {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(22, 56, 46, 0.1);
  box-shadow: 0 8px 30px rgba(8, 23, 18, 0.08);
}
.site-header.is-light .logo-light { opacity: 0; }
.site-header.is-light .logo-dark { opacity: 1; }
.site-header.is-light .button-small {
  background: var(--groen);
  color: var(--wit);
}

/* Bovenaan */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5rem;
  background:
    radial-gradient(ellipse 70% 60% at 72% 50%, #1D4A3C 0%, transparent 70%),
    linear-gradient(160deg, var(--groen) 0%, var(--groen-diep) 55%, var(--groen-nacht) 100%);
  color: var(--creme);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* zacht verloop dat heel langzaam verschuift */
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-bg::before {
  width: 75vmax;
  height: 75vmax;
  right: -18vmax;
  top: -22vmax;
  background: radial-gradient(circle, rgba(46, 102, 84, 0.55) 0%, rgba(46, 102, 84, 0) 65%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.hero-bg::after {
  width: 60vmax;
  height: 60vmax;
  left: -20vmax;
  bottom: -30vmax;
  background: radial-gradient(circle, rgba(243, 241, 234, 0.07) 0%, rgba(243, 241, 234, 0) 65%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to { transform: translate3d(-8vmax, 10vmax, 0) scale(1.08); }
}
@keyframes drift-b {
  to { transform: translate3d(10vmax, -6vmax, 0) scale(1.1); }
}

/* de A uit het logo, nauwelijks zichtbaar */
.hero-mark {
  position: absolute;
  right: -14%;
  bottom: -10%;
  height: 108%;
  width: auto;
  fill: none;
  stroke: rgba(243, 241, 234, 0.07);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.hero-content { will-change: transform, opacity; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid rgba(243, 241, 234, 0.2);
  border-radius: 999px;
  background: rgba(243, 241, 234, 0.06);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--creme);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero h1 {
  color: var(--creme);
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 920px;
  margin-bottom: 0.45em;
}

.lead {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: rgba(243, 241, 234, 0.82);
  margin-bottom: 2.5rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 1px;
  height: 56px;
  background: rgba(243, 241, 234, 0.18);
  overflow: hidden;
}
.scroll-hint span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--creme);
  animation: scrollhint 2s var(--ease) infinite;
}
@keyframes scrollhint {
  to { top: 100%; }
}

/* Waarde van één lead */
.value {
  background: var(--creme);
  padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
  overflow: hidden;
}

.value-inner {
  display: grid;
  grid-template-areas: "title" "amount" "side";
  gap: 1.5rem;
}

.value-title {
  grid-area: title;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tekst-zacht);
  margin: 0;
}

.value-amount {
  grid-area: amount;
  color: var(--groen);
  font-size: clamp(2.5rem, 0.5rem + 6.5vw, 7.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.value-side {
  grid-area: side;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: end;
  margin-top: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(22, 56, 46, 0.15);
}
.value-side p { margin: 0; }

.value-text {
  font-size: 1.1875rem;
  margin-bottom: 1rem;
}

.value-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tekst-zacht);
}

/* Secties */
.section {
  position: relative;
  padding: clamp(5rem, 3.5rem + 6vw, 9rem) 0;
}

.section-cream { background: var(--creme); }

.section-dark {
  background: var(--groen-diep);
  color: var(--creme);
  overflow: hidden;
  isolation: isolate;
}
.section-dark h2,
.section-dark h3 { color: var(--creme); }
.section-dark a { color: var(--creme); }
.section-dark .label { color: rgba(243, 241, 234, 0.6); }

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(243, 241, 234, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 234, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 0%, transparent 75%);
}

/* Waarom REGA? */
.statement {
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--groen);
  max-width: 34ch;
}

/* Wat REGA doet */
.feature-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  counter-reset: feat;
}

.feature-list li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 2rem 0;
  border-top: 1px solid rgba(243, 241, 234, 0.16);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.3s ease, padding-left 0.4s var(--ease);
}
.feature-list li:last-child { border-bottom: 1px solid rgba(243, 241, 234, 0.16); }

.feature-index {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--mint);
}

@media (hover: hover) {
  .feature-list li:hover { padding-left: 0.75rem; color: var(--wit); }
}

/* Hoe het werkt */
.steps-wrap {
  position: relative;
  margin-top: 3.5rem;
}

.steps-track {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  right: 1.75rem;
  height: 2px;
  background: var(--lijn);
}

.steps-progress {
  position: absolute;
  inset: 0;
  background: var(--groen);
  transform-origin: left center;
  transform: scaleX(1);
}
.js .steps-progress { transform: scaleX(var(--p, 0)); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step p {
  color: var(--tekst-zacht);
  font-size: 1.0625rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wit);
  border: 2px solid var(--groen);
  color: var(--groen);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.step.is-active .step-number,
html:not(.js) .step-number {
  background: var(--groen);
  color: var(--wit);
}

/* Uw naam, uw regie */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 2.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.4em;
  width: 0.5rem;
  height: 0.9rem;
  border: solid var(--groen);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 1rem + 4vw, 5rem);
  margin-top: 2.5rem;
}
.checklist-grid li {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(22, 56, 46, 0.15);
  font-size: 1.1875rem;
}
.checklist-grid li::before { top: 1.95rem; }

/* Over mij */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.about-photo-wrap {
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-text { max-width: 36rem; }

.small {
  font-size: 1rem;
  color: var(--tekst-zacht);
  margin-top: 1.5rem;
}

/* Contact */
.contact { padding-bottom: clamp(5rem, 4rem + 4vw, 8rem); }
.contact .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 0%, transparent 70%);
}

.contact-title {
  font-size: clamp(2.25rem, 1.2rem + 4.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}

.contact-intro {
  font-size: 1.25rem;
  color: rgba(243, 241, 234, 0.8);
}

.contact-list {
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.contact-list div {
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(243, 241, 234, 0.25);
}

.contact-list dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 241, 234, 0.6);
  margin-bottom: 0.35rem;
}

.contact-list dd {
  margin: 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list a {
  display: inline-block;
  padding: 0.5rem 0;
  text-decoration: none;
  background: linear-gradient(var(--mint), var(--mint)) left bottom / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.contact-list a:hover,
.contact-list a:focus-visible { background-size: 100% 2px; }

/* Footer */
.site-footer {
  background: var(--groen-nacht);
  color: rgba(243, 241, 234, 0.6);
  padding: 2rem 0;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; }

/* Beweging bij scrollen */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0 round 16px);
  transition: clip-path 1.2s var(--ease);
}
.js [data-reveal="wipe"] img {
  transform: scale(1.15);
  transition: transform 1.6s var(--ease);
}
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0 round 16px); }
.js [data-reveal="wipe"].is-in img { transform: none; }

/* Tablet en telefoon */
@media (max-width: 900px) {
  .hero-mark { right: -30%; bottom: -6%; height: 70%; }

  .value-side { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-track {
    top: 1.75rem;
    bottom: 1.75rem;
    left: 1.75rem;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps-progress { transform-origin: center top; transform: scaleY(1); }
  .js .steps-progress { transform: scaleY(var(--p, 0)); }
  .step {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .step-number { grid-row: span 2; margin-bottom: 0; }

  .checklist-grid,
  .about,
  .contact-list { grid-template-columns: 1fr; }

  .about-photo-wrap { max-width: 280px; }
}

@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .container { padding: 0 1.25rem; }
  .site-header { padding: 0.75rem; }
  .nav { padding-left: 1rem; }
  .logo { width: 92px; }
  .hero { padding: 7rem 0 5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero .button { display: flex; }
  .value-amount { white-space: normal; font-size: 3.25rem; line-height: 1.05; }
  .feature-list li { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.5rem 0; }
  .scroll-hint { display: none; }
}

/* Minder beweging als de bezoeker dat heeft ingesteld */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js [data-reveal="wipe"],
  .js [data-reveal="wipe"] img {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .js .steps-progress { transform: none; }
}
