/* ============================================================
   Kinderplan® — kinderplan.nl
   Statische site, geen build-stap. Mobile-first, WCAG 2.1 AA.
   Palet: navy #122741 | goud #C89B5A | terracotta #A9563A
          crème #FAF6F0 | tekst #1a1a1a
   ============================================================ */

:root {
  --navy: #122741;
  --navy-soft: #1b3a5e;
  --gold: #C89B5A;
  --gold-soft: #E9D9BE;
  --terra: #A9563A;        /* CTA-kleur — overal dezelfde */
  --terra-dark: #8F4730;
  --cream: #FAF6F0;
  --cream-deep: #F3EBDD;
  --ink: #1a1a1a;
  --muted: #5C554B;
  --line: #E4DACA;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 39, 65, 0.10);
  --max: 1120px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; }
strong { font-weight: 700; }

a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Anchors niet onder de sticky header laten verdwijnen */
[id] { scroll-margin-top: 96px; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.narrow { max-width: 780px; }

section { padding: 4rem 0; }
@media (min-width: 760px) { section { padding: 5.5rem 0; } }

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.9rem;
}
.section-dark .kicker { color: var(--gold); }

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 46em;
}

.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark { flex: 0 0 auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-name sup { font-size: 0.55em; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .bars { display: inline-block; width: 18px; }
.nav-toggle .bars span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 3.5px 0;
  border-radius: 2px;
}

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem 1.5rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.site-nav a:not(.btn):hover { background: var(--cream-deep); color: var(--terra-dark); }
.site-nav a[aria-current="page"] {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}
.site-nav .nav-cta { margin-top: 0.75rem; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }
  .site-nav a:not(.btn) { padding: 0.5rem 0.75rem; font-size: 0.98rem; }
  .site-nav .nav-cta { margin: 0 0 0 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  padding: 0.95rem 1.8rem;
  border: 2px solid var(--terra);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.btn-small { font-size: 0.95rem; padding: 0.65rem 1.3rem; }
.btn-large { font-size: 1.12rem; padding: 1.1rem 2.2rem; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.75); }
.section-dark .btn-ghost:hover { background: #fff; color: var(--navy); }

.cta-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.9rem;
}
.section-dark .cta-note { color: rgba(250, 246, 240, 0.8); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(52rem 30rem at 115% -10%, rgba(200, 155, 90, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at -15% 110%, rgba(169, 86, 58, 0.10), transparent 55%),
    linear-gradient(180deg, #FDFBF7 0%, var(--cream) 70%);
}
@media (min-width: 760px) { .hero { padding: 6.5rem 0 5.5rem; } }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 3.5rem; }
}
.hero h1 { margin-bottom: 0.5em; }
.hero .sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 1.8rem;
}
.hero-art { text-align: center; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.trust-row li::before {
  content: "✓";
  color: var(--terra);
  font-weight: 700;
  margin-right: 0.45rem;
}

.scroll-hint {
  display: block;
  margin: 3rem auto 0;
  width: 26px;
  color: var(--gold);
  text-align: center;
  animation: floaty 2.6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- Secties ---------- */
.section-tinted { background: var(--cream-deep); }
.section-dark {
  background:
    radial-gradient(50rem 28rem at 110% 0%, rgba(200, 155, 90, 0.14), transparent 55%),
    var(--navy);
  color: #F6F1E8;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #F6F1E8; }
.section-dark .lede { color: rgba(246, 241, 232, 0.85); }
.section-dark a:not(.btn) { color: var(--gold-soft); }

/* ---------- Kaarten & grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: 0 3px 14px rgba(18, 39, 65, 0.05);
}
.card h3 { margin-top: 0.4rem; }
.card ul { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.card li { margin-bottom: 0.5rem; }
.card-icon { color: var(--terra); margin-bottom: 0.4rem; }

.layer-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--navy);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.7rem;
}
.card .layer-sub {
  font-style: italic;
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Stappen ---------- */
.steps { counter-reset: step; display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem 1.6rem;
}
@media (min-width: 700px) { .step { padding-left: 6.2rem; } }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}
@media (min-width: 700px) {
  .step::before {
    position: absolute;
    left: 1.6rem;
    top: 1.8rem;
    margin-bottom: 0;
  }
}
.step h3 { margin-bottom: 0.2rem; }
.step .step-meta {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ---------- Prijsblok ---------- */
.price-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 2.4rem 1.8rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.price-amount small {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
}
.price-card li {
  padding: 0.42rem 0 0.42rem 1.8rem;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}
.price-fineprint { font-size: 0.9rem; font-style: italic; color: var(--muted); }

/* Witte kaarten binnen donkere secties: donkere tekst afdwingen (contrast) */
.section-dark .price-card,
.section-dark .card,
.section-dark .testimonial { color: var(--ink); }
.section-dark .price-card h2, .section-dark .price-card h3,
.section-dark .card h2, .section-dark .card h3 { color: var(--navy); }
.section-dark .price-card p, .section-dark .card p { color: var(--ink); }
.section-dark .price-card .small, .section-dark .price-card .price-fineprint { color: var(--muted); }

/* ---------- Tabellen ---------- */
.table-scroll { overflow-x: auto; }
table.value-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.98rem;
  color: var(--ink); /* ook binnen donkere secties leesbaar op witte tabel */
}
.value-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 0 0.8rem;
}
.value-table th, .value-table td {
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.value-table th { background: var(--navy); color: #fff; font-weight: 500; }
.value-table td:last-child, .value-table th:last-child { text-align: right; white-space: nowrap; }
.value-table tr.total td {
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-soft);
}
.value-table tr.highlight td {
  font-weight: 700;
  color: #fff;
  background: var(--terra);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.testimonial blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--navy);
  flex: 1;
}
.testimonial figcaption { font-size: 0.9rem; color: var(--muted); }
.testimonial-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- FAQ (details/summary) ---------- */
.faq-list { display: grid; gap: 0.9rem; margin-top: 2rem; }
details.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--navy);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--terra);
  line-height: 1;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item summary:hover { background: var(--cream-deep); }
.faq-body { padding: 0 1.4rem 1.3rem; }
.faq-body ul, .faq-body ol { padding-left: 1.3rem; }

/* ---------- Formulieren ---------- */
form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.6rem 1.4rem;
  margin: 0 0 1.5rem;
}
form legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  padding: 0 0.5rem;
}
.form-row { margin-bottom: 1.1rem; }
.form-row > label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--navy);
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #B9AE9C;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 1px;
  border-color: var(--terra);
}
.choice-group { display: flex; flex-direction: column; gap: 0.45rem; }
.choice-group.inline { flex-direction: row; flex-wrap: wrap; gap: 0.45rem 1.4rem; }
.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  cursor: pointer;
}
input[type="radio"], input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--terra);
  flex: 0 0 auto;
}
.form-hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }
.required-mark { color: var(--terra); }

.notice {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

/* ---------- Highlight / cert-sectie ---------- */
.cert-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .cert-panel { grid-template-columns: 5fr 7fr; }
}
.cert-art { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #E9E2D5;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 {
  font-size: 1.05rem;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #E9E2D5; text-decoration-color: rgba(233, 226, 213, 0.5); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #E9E2D5; }
.footer-bottom {
  border-top: 1px solid rgba(233, 226, 213, 0.25);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(233, 226, 213, 0.75);
}
.footer-bottom p { color: rgba(233, 226, 213, 0.75); margin-bottom: 0.4rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 1.1rem 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--gold); }
.breadcrumb a { color: var(--muted); }

/* ---------- Juridische pagina's ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.legal table { font-size: 0.92rem; }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.page-404 .wrap { width: 100%; }

/* ---------- Divers ---------- */
.divider-heart {
  text-align: center;
  color: var(--gold);
  margin: 0.5rem 0;
}
.small { font-size: 0.9rem; color: var(--muted); }
.section-dark .small { color: rgba(246, 241, 232, 0.75); }
