/* ============================================================
   HUISSTIJL - PAS HIER JE HUISSTIJL AAN
   Alle kleuren, fonts en rondingen staan als CSS-variabelen.
   Vervang de waarden om de funnel in de stijl van de klant te zetten.
   ============================================================ */
:root {
  /* Kleuren - huisstijl Marjolein van Kuijk (uit merkblad) */
  --color-primary:        #8AB3A3;   /* sage: knoppen, accenten */
  --color-primary-dark:   #4E7565;   /* sage-deep: hover van de hoofdkleur */
  --color-on-primary:     #12241D;   /* tekstkleur OP de sage-knop (donker) */
  --color-accent:         #E9A79C;   /* coral: secundair accent (optioneel) */
  --color-text:           #17181A;   /* ink: standaard tekst */
  --color-text-soft:      #6C6A61;   /* muted: zachte/ondersteunende tekst */
  --color-bg:             #FBFAF6;   /* paper: pagina-achtergrond */
  --color-surface:        #FFFFFF;   /* card: kaarten en panelen */
  --color-border:         #E4E0D3;   /* line: randen */
  --color-star:           #F4D9A0;   /* sand: sterren in reviews */
  --color-whatsapp:       #25d366;   /* WhatsApp groen (CTA laatste stap, bewust behouden) */
  --color-whatsapp-dark:  #1da851;

  /* Typografie - huisstijl-fonts: Syne (koppen) + Mulish (body) */
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Syne", "Segoe UI", system-ui, sans-serif;

  /* Vormgeving - merk is strak/minimaal: kleine radius */
  --radius:      4px;
  --radius-sm:   3px;
  --shadow:      0 6px 20px rgba(23, 24, 26, 0.07);
  --shadow-soft: 0 2px 8px rgba(23, 24, 26, 0.05);
  --maxw:        640px;   /* mobile-first: smalle, gefocuste kolom */
}

/* ============================================================
   BASIS / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Toegankelijke focus-states overal */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 28px 0 8px; }
.hero-title {
  font-size: 1.6rem;
  margin-bottom: .4em;
}
.hero-sub {
  color: var(--color-text-soft);
  font-size: 1rem;
  margin-bottom: 1.4em;
}

/* ============================================================
   FUNNEL / CONFIGURATOR
   ============================================================ */
.funnel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Stepbar + voortgangsbalk */
.stepbar { margin-bottom: 18px; }
.stepbar-label {
  font-size: .85rem;
  color: var(--color-text-soft);
  margin: 0 0 8px;
  font-weight: 600;
}
.stepbar-title { color: var(--color-text); }
.progress {
  height: 8px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 25%;                 /* wordt door JS gezet */
  background: var(--color-primary);
  border-radius: 999px;
  transition: width .35s ease;
}

/* Stappen: alleen de actieve is zichtbaar */
.step { display: none; }
.step.is-active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-heading { font-size: 1.2rem; }
.step-note { font-size: .88rem; color: var(--color-text-soft); margin-top: -.3em; }

/* Keuzekaarten */
.card-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 16px 12px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.card:hover { border-color: var(--color-primary); }
.card:active { transform: scale(.98); }
.card.is-selected {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, #fff);
}
.card-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-label { font-size: .95rem; }

/* Invoervelden */
.field { margin-top: 16px; }
.field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--color-primary); outline: none; }

/* Conditioneel veld: standaard verborgen, zichtbaar met is-visible */
.field.is-conditional { display: none; }
.field.is-conditional.is-visible { display: block; animation: fadeIn .25s ease; }

/* Navigatie */
.funnel-nav {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-soft);
  flex: 0 0 auto;
}
.btn-secondary:hover:not(:disabled) { border-color: var(--color-text-soft); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  flex: 1 1 auto;
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); color: #fff; }

/* WhatsApp-variant op de laatste stap */
.btn-primary.is-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-primary.is-whatsapp:hover:not(:disabled) { background: var(--color-whatsapp-dark); color: #fff; }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.cta-sub {
  text-align: center;
  font-size: .85rem;
  color: var(--color-text-soft);
  margin: 12px 0 0;
}

/* ============================================================
   REVIEWS - Google-format, horizontaal naast elkaar
   ============================================================ */
.reviews { padding: 44px 0 18px; }

/* Kop met Google-logo + gemiddelde score */
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.reviews-head .g-logo { width: 30px; height: 30px; flex: 0 0 auto; }
.reviews-rating { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); }
.reviews-rating strong { font-size: 1.3rem; line-height: 1; }
.reviews-head .review-stars svg { width: 17px; height: 17px; }
.reviews-meta { font-size: .82rem; color: var(--color-text-soft); margin-top: 2px; }

/* Horizontale rij: scroll/swipe op smalle schermen, gecentreerd op brede */
.review-row {
  display: flex;
  gap: 16px;
  padding: 4px 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (min-width: 1080px) {
  .review-row { flex-wrap: wrap; justify-content: center; overflow-x: visible; }
}

.review-card {
  flex: 0 0 300px;
  width: 300px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.review-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.review-id { flex: 1 1 auto; min-width: 0; }
.review-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.review-role { font-size: .78rem; color: var(--color-text-soft); margin-top: 2px; }
.review-g { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.review-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.review-stars svg { width: 16px; height: 16px; fill: #FBBC04; }
.review-text { font-size: .88rem; color: var(--color-text); margin: 0; line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 44px;
  padding: 40px 0 26px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer-logo { height: 46px; width: auto; display: block; }
.footer-title {
  font-family: var(--font-heading);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-text);
  margin: 0 0 12px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 9px; }
.footer-nav a,
.footer-contact a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: .92rem;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-primary-dark); }
.footer-copy {
  margin: 28px 0 0;
  font-size: .78rem;
  color: var(--color-text-soft);
}

/* Vanaf tablet: 3 kolommen (logo | navigatie | contact) */
@media (min-width: 620px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* ============================================================
   GROTERE SCHERMEN (mobile-first uitbreiding)
   ============================================================ */
@media (min-width: 560px) {
  .hero-title { font-size: 2rem; }
  .card-group { grid-template-columns: repeat(3, 1fr); }
  .funnel { padding: 28px; }
}
