:root {
  /* Merkkleuren */
  --c-dark-sand: #b9b28a; /* licht groen voor header */
  --c-sand: #ebe5c2; /* zandkleur voor pagina */
  --c-olive-dark: #504b38; /* donkergroen voor tekst */
  --c-olive: #545333;
  --c-sage: #878672;
  --c-cream: #f8f3d9; /* crèmekleur voor knoppen */

  /* Toepassingen */
  --bg: var(--c-sand);
  --surface: #ffffff;
  --text: var(--c-olive-dark);
  --muted: rgba(63, 74, 60, 0.75);
  --border: rgba(63, 74, 60, 0.18);

  --radius: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  --maxw: 1120px;
  --pad: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --header-h: 72px; /* approx hoogte navbar */
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow-x: hidden;
}

#wat-je-mag-verwachten {
  scroll-margin-top: 110px; /* sticky header offset */
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Sticky footer layout */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.footer {
  margin-top: auto; /* duwt footer naar onder als er weinig content is */
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 18px;
  top: 18px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--c-olive);
  color: var(--c-cream);
  border-radius: 10px;
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark-sand);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 170px;
  height: auto;
  display: block;
  border-radius: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Desktop: geen menu-knop */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;

  background: rgba(248, 243, 217, 0.9); /* cream */
  border: 1px solid rgba(84, 83, 51, 0.35);
  color: var(--c-olive-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.nav-toggle:hover {
  background: rgba(248, 243, 217, 1);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(84, 83, 51, 0.35);
  outline-offset: 2px;
}

/* Hamburger icon */
.burger {
  width: 20px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.burger::before,
.burger::after,
.burger span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-olive-dark);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.burger::before {
  top: 0;
}
.burger span {
  top: 6px;
}
.burger::after {
  bottom: 0;
}

/* X bij open */
.nav-toggle[aria-expanded="true"] .burger::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger::after {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-toggle[aria-expanded="true"] .burger span {
  opacity: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
  background: rgba(217, 215, 182, 0.35);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(63, 74, 60, 0.15);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  padding: 24px 0 36px;
  padding-top: calc(var(--header-h) + 16px);
  min-height: calc(100vh - var(--header-h)); /* full screen minus header */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.6rem);
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
}
.hero p {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.hero-card {
  background: rgba(251, 251, 246, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--c-olive);
  color: #f8f3d9;
  border-color: rgba(84, 83, 51, 0.55);
}
.btn-primary:hover {
  background: #f8f3d9;
  text-decoration: none;
  color: var(--c-olive-dark);
}
.btn-ghost {
  background: var(--c-olive);
  color: #f8f3d9;
}
.btn-ghost:hover {
  background: #f8f3d9;
  text-decoration: none;
  color: var(--c-olive-dark);
}

.side-panel {
  background: rgba(251, 251, 246, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}
/* Scroll-down arrow: standaard uit (mobile/tablet), aan op desktop met muis */
.scroll-down {
  display: none; /* ✅ dit miste */
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-down .arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--c-olive-dark);
  position: relative;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.scroll-down .arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-olive-dark);
  border-bottom: 2px solid var(--c-olive-dark);
  transform: translate(-50%, -50%) rotate(45deg);
}

.scroll-down:hover .arrow {
  transform: translateY(4px);
  opacity: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: rgba(84, 83, 51, 0.95);
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(135, 134, 114, 0.18);
  border: 1px solid rgba(135, 134, 114, 0.3);
  font-weight: 600;
  font-size: 0.92rem;
}
.ul-clean {
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ul-clean li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(84, 83, 51, 0.14);
  background: var(--c-dark-sand);
}

/* Sections */
.section {
  padding: 28px 0;
}
.section h2 {
  margin: 0 0 14px 0;
  font-size: 1.45rem;
  letter-spacing: -0.2px;
}
/* Voorstelling: 2-koloms grid voor Opleidingen + Praktische info */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Bijscholingen blijft breed */
.grid-2 .card-wide {
  grid-column: 1 / -1;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}

.card-wide {
  grid-column: 1 / -1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Content page header */
.page-header {
  padding: 34px 0 10px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 0.95rem;
}
.page-header h1 {
  margin: 8px 0 0 0;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
}

/* Lists & tables */
.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list ul {
  margin: 8px 0 0 0;
  padding-left: 18px;
}
.list li {
  margin: 4px 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(253, 251, 212, 0.55);
  box-shadow: var(--shadow);
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(253, 251, 212, 0.55);
}

/* Let the wrapper handle the rounding/shadow */
.table {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible; /* important: don't clip on mobile */
  /*min-width: 520px; ensures columns remain readable */
}

.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(84, 83, 51, 0.12);
  text-align: left;
}
.table th {
  background: rgba(217, 215, 182, 0.4);
  color: rgba(43, 43, 37, 0.95);
}
.table tr:last-child td {
  border-bottom: 0;
}

/* Tarieven: kolombreedtes fixen */
.table th:nth-child(1),
.table td:nth-child(1) {
  width: 34%;
}

.table th:nth-child(2),
.table td:nth-child(2) {
  width: 10%;
  white-space: nowrap;
}

.table th:nth-child(3),
.table td:nth-child(3) {
  width: 12%;
  white-space: nowrap;
}

.table th:nth-child(4),
.table td:nth-child(4) {
  width: 18%; /* 👈 deze was te breed */
  white-space: nowrap;
}

.table th:nth-child(5),
.table td:nth-child(5) {
  width: 10%;
  white-space: nowrap;
}

/* Tarieven: tabellen beter scheiden + labels duidelijker */

.tarief-label strong {
  font-weight: 800;
}

/* ruimte onder elke tabel */
.table-wrap {
  margin-bottom: 18px;
}

/* extra duidelijke scheiding tussen tabel 1 en tabel 2 */
.tarief-separator {
  height: 1px;
  background: rgba(84, 83, 51, 0.18);
  margin: 12px 0 18px;
  border-radius: 1px;
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  font-weight: 650;
  color: rgba(43, 43, 37, 0.9);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(84, 83, 51, 0.2);
  background: rgba(253, 251, 212, 0.7);
  padding: 12px 12px;
  border-radius: 14px;
  font: inherit;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(84, 83, 51, 0.45);
  box-shadow: 0 0 0 4px rgba(135, 134, 114, 0.18);
}
.help {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  padding: 26px 0 34px;
  margin-top: auto; /* ✅ sticky footer */
  border-top: 1px solid var(--border);
  background: rgba(217, 215, 182, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.footer-meta {
  text-align: right;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.footer-links {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--c-olive-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.2s ease;
}

.footer-links a:hover::after,
.footer-links a:focus-visible::after {
  width: 100%;
}

.footer-copy,
.footer small {
  color: var(--muted);
}

/* ===== Voorstelling: Wie ben ik (clean, geen conflicts) ===== */
.who-card {
  display: block;
}

.who-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.who-header-text h2 {
  margin: 0 0 6px 0;
}

.who-photo img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.who-intro {
  margin: 0 0 10px 0;
  color: var(--muted);
}

.who-text p {
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.65;
}

/* Tablet/smaller desktop: foto bovenaan, tekst eronder */
@media (max-width: 980px) {
  .who-card {
    flex-direction: column;
  }

  .who-photo {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
  }

  .who-photo img {
    width: 140px;
    height: 140px;
  }

  .who-text p {
    max-width: 100%;
  }
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* ✅ fix voor iPad mini: meta niet meer rechts "zweven" */
  .footer-meta {
    text-align: left;
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Mobile nav redesign: slide-in drawer ===== */
@media (max-width: 900px) {
  .navbar {
    position: relative;
  }

  /* menu knop zichtbaar */
  .nav-toggle {
    display: inline-flex;
    z-index: 1102;
  }

  /* Drawer container (rechts) */
  .nav-links {
    /* basis: verborgen */
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(360px, 88vw);

    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 88px 16px 18px; /* ruimte voor header + close button */
    background: rgba(248, 243, 217, 0.96);
    border-left: 1px solid rgba(63, 74, 60, 0.18);
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.18);

    transform: translateX(102%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    z-index: 1101;

    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Backdrop (klik/scroll visueel dempen) */
  .nav-links::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 16, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: -1; /* blijft achter de drawer */
  }

  /* Open state */
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links.open::before {
    opacity: 1;
    pointer-events: auto; /* backdrop “vangt” taps */
  }

  /* Link style: modern lijst, geen pill-buttons */
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 12px 12px;
    border-radius: 14px;

    font-weight: 650;
    background: transparent;
    border: 1px solid transparent;
  }

  .nav-links a:hover {
    background: rgba(84, 83, 51, 0.1);
    text-decoration: none;
    transform: none;
  }

  .nav-links a.active {
    background: rgba(84, 83, 51, 0.14);
    border-color: rgba(84, 83, 51, 0.18);
    font-weight: 750;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-meta {
    text-align: left;
    justify-items: start;
  }
  .who-card {
    flex-direction: column-reverse;
    align-items: center;
  }
  .who-header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    justify-items: center; /* ✅ centreert foto + tekst */
    text-align: center;
    gap: 12px;
  }

  .who-photo {
    width: 100%;
  }

  .who-photo img {
    width: 100%;
    height: 200px; /* ✅ vaste hoogte = mooie crop */
    object-fit: cover; /* ✅ vult zonder vervorming */
    object-position: center 25%; /* ✅ iets meer focus op gezicht */
    border-radius: 16px;
    display: block;
  }
  .who-header-text {
    text-align: center;
  }

  .who-text {
    text-align: left; /* ✅ lange tekst blijft leesbaar */
  }
}

/* PHONE: turn pricing table into clean stacked cards (no horizontal scroll) */
@media (max-width: 520px) {
  /* disable the "scrolling table" behavior on phones */
  .table-wrap {
    overflow-x: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .table {
    min-width: 0; /* CRITICAL: remove the forced width */
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  /* hide header row visually */
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table tbody {
    display: grid;
    gap: 12px; /* space between "cards" */
  }

  .table tr {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(253, 251, 212, 0.55);
  }

  .table td {
    display: grid;
    grid-template-columns: 10ch 1fr; /* label column + value column */
    gap: 12px;
    align-items: baseline;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(84, 83, 51, 0.1);
  }
  .table td:last-child {
    border-bottom: 0;
  }

  /* labels */
  .table td::before {
    font-weight: 750;
    color: rgba(43, 43, 37, 0.95);
  }
  .table td:nth-child(1)::before {
    content: "Prestatie";
  }
  .table td:nth-child(2)::before {
    content: "Duur";
  }
  .table td:nth-child(3)::before {
    content: "Prijs";
  }
  .table td:nth-child(4)::before {
    content: "Terugbetaling";
  }
  .table td:nth-child(5)::before {
    content: "Remgeld";
  }

  /* make values look aligned and less “floaty” */
  .table td {
    text-align: left;
    grid-template-columns: minmax(11ch, 14ch) 1fr;
  }
  .table td:nth-child(3) {
    font-variant-numeric: tabular-nums; /* nicer alignment for prices later */
  }

  .hero-actions {
    flex-wrap: nowrap;
  }

  .hero-actions .btn {
    flex: 1; /* gelijke breedte */
    width: auto; /* override eerdere 100% */
    text-align: center;
    padding: 10px 12px; /* minder hoogte */
    font-size: 0.95rem; /* iets kleinere tekst */
    border-radius: 12px; /* iets strakker */
    line-height: 1.2;
  }
}

#result {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(253, 251, 212, 0.7);
  border: 1px solid var(--border);
  font-weight: 500;
  display: none;
}

/* Very narrow screens (Fold inner display / small Android) */
@media (max-width: 360px) {
  :root {
    --pad: 16px;
  }
  .btn {
    width: 100%;
  } /* buttons stack nicely */
  .hero-actions {
    gap: 8px;
  }
}

/* Wide-but-short (many foldables + phones landscape) */
@media (max-height: 420px) and (orientation: landscape) {
  .hero {
    padding: 24px 0 18px;
  }
  .site-header {
    position: sticky;
  } /* keep but reduce visual dominance */
  .navbar {
    padding: 10px 0;
  }
}

/* Make tap targets comfortably large */
.nav-links a,
.btn,
.nav-toggle {
  min-height: 44px; /* iOS-friendly touch target */
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .nav-links a {
    transition: none;
  }
}

/* Grote schermen: alleen centreren op hoge viewports (niet op 22" / 1080p) */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) and (min-height: 950px) {
  .hero {
    display: flex;
    align-items: center;
  }

  .hero > .container {
    width: 100%;
  }

  .hero-grid {
    align-items: center;
  }
}

/* Brede desktops: container iets ruimer zodat het minder "klein" oogt */
@media (min-width: 1400px) {
  :root {
    --maxw: 1240px;
  }
}

@media (min-width: 1700px) {
  :root {
    --maxw: 1320px;
  }
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .scroll-down {
    display: flex;
    justify-content: center;
  }
  .scroll-down {
    animation: arrow-bounce 1.6s infinite ease-in-out;
  }
}
