/* Rijschool Vrije Baan · pakket Plus. Verkeersbordgeel, zwart, wit en L-bordblauw; één letter (Pilcrow Rounded). */
:root {
  --yellow: #ffcc00;
  --yellow-2: #ffe066;
  --yellow-3: #fff3bf;
  --ink: #111111;
  --white: #ffffff;
  --grey: #f1f1ec;
  --grey-2: #e4e4dc;
  --blue: #1d48b0;
  --blue-2: #163a8f;
  --soft: #4a4a44;
  --font: 'Pilcrow Rounded', 'Arial Rounded MT Bold', 'Helvetica Neue', Arial, sans-serif;
  --m: 18px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --s-small: 16px;
  --s-lead: clamp(20px, 1.6vw, 24px);
  --s-h3: clamp(28px, 2.4vw, 34px);
  --s-h2: clamp(48px, 5.6vw, 84px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.5; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.05em; line-height: .9; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: var(--yellow); padding: 12px 16px; }
.skip:focus { left: var(--m); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: var(--r); font-weight: 700; font-size: var(--s-small); text-decoration: none; transition: transform .2s var(--ease), background-color .2s; touch-action: manipulation; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- hero: de naam over de volle breedte, alles in de hoeken ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; background: var(--yellow); overflow: clip; }
.hero__tl { position: absolute; left: var(--m); top: var(--m); font-size: var(--s-lead); font-weight: 700; letter-spacing: -0.03em; }
.hero__tl a { display: inline-block; padding: 8px 0; text-decoration: none; }
.hero__sub { font-size: var(--s-lead); line-height: 1.3; font-weight: 500; }
.hero__bl .btn { margin-top: 18px; }
.hero__tr { position: absolute; right: var(--m); top: var(--m); display: flex; gap: 22px; font-size: var(--s-small); font-weight: 500; }
.hero__tr a, .hero__br a { text-decoration: underline 2px transparent; text-underline-offset: 5px; padding: 10px 0; transition: text-decoration-color .2s; }
.hero__tr a:hover, .hero__br a:hover { text-decoration-color: currentColor; }
.hero__name { position: absolute; left: var(--m); right: var(--m); top: 46%; translate: 0 -50%; font-size: 18.4vw; line-height: .9; letter-spacing: -0.05em; white-space: nowrap; transform-origin: 50% 50%; }
.hero__fit { display: block; text-align: center; }
.hero__bl { position: absolute; left: var(--m); bottom: 24px; max-width: 40ch; }
.hero__br { position: absolute; right: var(--m); bottom: 24px; display: flex; gap: 22px; font-size: var(--s-small); font-weight: 500; }
.hero__pic { display: none; margin: 0; }
.js .hero__name { animation: drop .8s var(--ease) both; }
.js .hero__tl, .js .hero__tr, .js .hero__bl, .js .hero__br { animation: fade .6s .25s var(--ease) both; }
@keyframes drop { from { translate: 0 -38%; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- plannen ---------- */
.plan { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 160px var(--m) 160px; }
.plan__side { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 40px; align-self: start; }
.plan__title { font-size: var(--s-h2); }
.plan__text { font-size: var(--s-lead); line-height: 1.35; max-width: 30ch; }
.plan__live { display: flex; gap: 12px; align-items: baseline; font-size: var(--s-small); max-width: 38ch; padding: 14px 16px; background: var(--grey); border-radius: var(--r); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--soft); translate: 0 -1px; }
.plan__live:has([data-state="les"]) .dot { background: #e8a200; }
.plan__live:has([data-state="vrij"]) .dot { background: #1aa053; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.plan__pic { margin: 18px 0 0; width: 82%; rotate: -3deg; }
.plan__pic img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.plan__form { grid-column: 6 / 13; }

/* het boekingsformulier uit vrijebaan.js */
.bk { display: grid; gap: 14px; }
.bk__step { margin: 0; padding: 24px; border: 0; background: var(--grey); border-radius: var(--r); min-width: 0; }
.bk__title { padding: 0; margin: 0 0 14px; font-size: var(--s-h3); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.bk__hint { margin-top: 12px; font-size: var(--s-small); color: var(--soft); }
.bk__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.bk__opts--small { grid-template-columns: repeat(3, 1fr); }
.bk__opt, .bk__day, .bk__time { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 12px 14px; background: var(--white); border-radius: 10px; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.bk__opt:hover, .bk__day:hover, .bk__time:hover { transform: translateY(-2px); }
.bk__opt input, .bk__day input, .bk__time input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk__opt:has(input:checked), .bk__day:has(input:checked), .bk__time:has(input:checked) { background: var(--yellow); }
.bk__opt:has(input:focus-visible), .bk__day:has(input:focus-visible), .bk__time:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.bk__optname { font-weight: 700; }
.bk__optmeta { font-size: var(--s-small); color: var(--soft); }
.bk__opts--small .bk__opt { min-height: 52px; align-items: center; }
.bk__days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bk__day { align-items: center; text-align: center; padding: 8px 4px; gap: 0; line-height: 1.15; }
.bk__wd, .bk__mon { font-size: var(--s-small); }
.bk__num { font-size: var(--s-lead); font-weight: 700; }
.bk__times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bk__time { min-height: 48px; min-width: 76px; align-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk__field { display: flex; flex-direction: column; gap: 6px; }
.bk__field--wide { grid-column: 1 / -1; }
.bk__field--pc { max-width: 240px; }
.bk__field label, .bk__label { font-size: var(--s-small); font-weight: 500; }
.bk__field input, .bk__field textarea { font: inherit; min-height: 54px; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--white); color: var(--ink); }
.bk__field input:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.bk__field input[aria-invalid="true"] { background: #ffe4e0; }
.bk__error { min-height: 0; font-size: var(--s-small); color: #b42318; }
.bk__error:empty { display: none; }
.bk__area { margin-top: 10px; font-size: var(--s-small); max-width: 52ch; }
.bk__area:empty { display: none; }
.bk__area[data-ok="true"] { font-weight: 500; color: #0d6b33; }
.bk__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 24px; background: var(--ink); color: var(--white); border-radius: var(--r); }
.bk__sum { font-size: var(--s-small); }
.bk__go { flex: none; font: inherit; font-weight: 700; min-height: 56px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease); }
.bk__go:hover { transform: translateY(-2px); }
.bk__done { padding: 40px; background: var(--yellow); border-radius: var(--r); }
.bk__done:focus { outline: none; }
.bk__done-title { font-size: var(--s-h2); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.bk__done-text { margin-top: 20px; font-size: var(--s-lead); max-width: 40ch; }
.bk__done-note { margin-top: 16px; font-size: var(--s-small); }
.bk__again { margin-top: 24px; font: inherit; font-weight: 700; min-height: 52px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--yellow); cursor: pointer; }

/* ---------- pakketten: tegels die als een staafgrafiek oplopen ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; gap: 8px; padding: 0 var(--m) 160px; }
.tiers__title { grid-column: 1 / 3; grid-row: 1; font-size: var(--s-h2); align-self: start; }
.tiers__lead { grid-column: 1 / 3; grid-row: 1; align-self: end; max-width: 40ch; font-size: var(--s-lead); line-height: 1.35; margin-bottom: 32px; }
.tiers__row { display: contents; }
.tier { position: relative; display: flex; flex-direction: column; padding: 28px 28px 92px; border-radius: var(--r); overflow: hidden; }
.tier h3 { font-size: var(--s-h3); }
.tier__price { font-size: clamp(44px, 4vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 4px; }
.tier__go { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; height: 64px; padding: 0 28px; font-weight: 700; text-decoration: none; transition: padding .25s var(--ease); }
.tier__go:hover { padding-left: 38px; }
.tier--white { grid-column: 1; grid-row: 2; min-height: 360px; align-self: end; background: var(--grey); }
.tier--white .tier__go { background: var(--grey-2); }
.tier--blue { grid-column: 2; grid-row: 2; min-height: 480px; align-self: end; background: var(--blue); color: var(--white); }
.tier--blue .tier__go { background: var(--blue-2); }
.tier--black { grid-column: 3; grid-row: 1 / 3; min-height: 600px; align-self: end; background: var(--ink); color: var(--white); }
.tier--black .tier__go { background: var(--yellow); color: var(--ink); }
.tiers__loose { grid-column: 1 / -1; grid-row: 3; margin-top: 24px; max-width: 70ch; font-size: var(--s-lead); line-height: 1.5; }
.tiers__loose b { font-weight: 700; white-space: nowrap; }

/* ---------- zo werkt het: één werkwoord per scherm ---------- */
.verbs { position: relative; }
.verbs__title { position: absolute; left: var(--m); top: var(--m); z-index: 3; font-size: var(--s-small); font-weight: 700; letter-spacing: 0; line-height: 1.4; color: var(--ink); background: var(--yellow); padding: 8px 14px; border-radius: 10px; }
.verb { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.verb > img, .verb > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }
.verb__hold { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.verb__word { font-size: clamp(96px, 15vw, 260px); color: var(--yellow); }
.verb__note { position: absolute; left: var(--m); bottom: var(--m); z-index: 2; max-width: 40ch; padding: 16px 18px; background: var(--ink); color: var(--white); border-radius: var(--r); font-size: var(--s-small); }

/* ---------- vragen ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 160px var(--m); }
.faq__title { grid-column: 1 / 5; font-size: var(--s-h2); position: sticky; top: 96px; align-self: start; }
.faq__list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--grey); border-radius: var(--r); transition: background-color .25s; }
.faq details[open] { background: var(--yellow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding: 16px 24px; font-size: var(--s-lead); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 16px; height: 16px; }
.plus::before, .plus::after { content: ''; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: rotate .25s var(--ease); }
.plus::after { rotate: 90deg; }
details[open] .plus::after { rotate: 0deg; }
.faq details p { padding: 0 24px 24px; max-width: 52ch; }

/* ---------- contact: fotostrook en drie vakken ---------- */
.contact { background: var(--yellow); padding: 48px 0 120px; overflow: hidden; }
.strip { overflow: hidden; }
.strip__track { display: flex; gap: 8px; width: max-content; animation: drift 60s linear infinite; }
.strip__track img { height: 150px; width: auto; object-fit: cover; border-radius: 10px; }
.strip__track img:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.strip__track img:nth-child(3n+2) { aspect-ratio: 1; }
.strip__track img:nth-child(3n) { aspect-ratio: 3 / 2; }
@keyframes drift { to { translate: -50% 0; } }
.contact__body { padding: 72px var(--m) 0; }
.contact__title { font-size: var(--s-h2); }
.contact__text { margin-top: 20px; max-width: 46ch; font-size: var(--s-lead); line-height: 1.35; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.cell { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 96px; border-radius: var(--r); background: var(--yellow-3); }
.cell input { width: 100%; height: 96px; border: 0; border-radius: var(--r); background: transparent; font: inherit; font-size: var(--s-lead); text-align: center; color: var(--ink); }
.cell input::placeholder { color: #6b5a00; }
.cell:focus-within { background: var(--white); }
.cell input:focus { outline: none; }
.cell:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.cell__err { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 15px; color: #8a1c10; }
.cell--go { border: 0; font: inherit; font-size: var(--s-lead); font-weight: 700; background: var(--ink); color: var(--yellow); cursor: pointer; transition: transform .2s var(--ease); }
.cell--go:hover { transform: translateY(-3px); }
.cells__status { grid-column: 1 / -1; font-size: var(--s-lead); font-weight: 500; }
.cells__status:empty { display: none; }
.cells__small { margin-top: 12px; font-size: var(--s-small); }
.contact__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 96px; }
.contact__info h3 { font-size: var(--s-h3); margin-bottom: 14px; }
.days { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-width: 340px; }
.days li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--yellow-2); border-radius: 8px; font-variant-numeric: tabular-nums; }
.days li.is-today { background: var(--ink); color: var(--yellow); }

/* ---------- footer: de naam keert terug, omgekeerd ---------- */
.foot { background: var(--ink); color: var(--white); padding: 120px var(--m) 28px; overflow: clip; }
.foot__invite { font-size: var(--s-h3); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.foot__go { margin-top: 24px; }
.foot__name { margin: 64px 0 0; font-size: 18.4vw; font-weight: 700; line-height: .8; letter-spacing: -0.05em; white-space: nowrap; color: var(--yellow); text-align: center; transform-origin: 50% 100%; }
.foot__legal { margin-top: 56px; font-size: 15px; color: #b9b9b0; max-width: 70ch; }

.callbar { display: none; }

.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- telefoon ---------- */
@media (max-width: 860px) {
  :root { --m: 16px; }
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding: 16px 16px 0; }
  .hero__tr { gap: 0; top: 10px; right: 8px; }
  .hero__tr a { display: none; }
  .hero__tr a[href="#contact"] { display: inline-block; padding: 12px 8px; }
  .hero__tl { display: none; }
  .hero__name { position: static; order: -1; translate: none; margin: 9svh 0 0; font-size: 18.6vw; }
  .hero__bl { position: static; max-width: none; margin-top: 18px; }
  .hero__sub { font-size: 19px; }
  .hero__bl .btn { width: 100%; }
  .hero__br { display: none; }
  .hero__pic { display: block; margin: 28px -16px 0; flex: 1; min-height: 220px; overflow: hidden; }
  .hero__pic img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%; }
  .plan { display: block; padding: 96px 16px; }
  .plan__side { gap: 18px; position: static; }
  .plan__pic { width: 70%; margin: 6px 0 32px auto; }
  .bk__step { padding: 18px 14px; }
  .bk__days { grid-template-columns: repeat(4, 1fr); }
  .bk__fields { grid-template-columns: 1fr; }
  .bk__bar { flex-direction: column; align-items: stretch; padding: 16px; }
  .bk__go { width: 100%; }
  .bk__done { padding: 24px 18px; }
  .tiers { display: flex; flex-direction: column; gap: 28px; padding: 0 16px 96px; }
  .tiers__title { font-size: 12vw; }
  .tiers__lead { margin: 8px 0 16px; }
  .tier { min-height: 0 !important; align-self: stretch !important; padding: 22px 20px 88px; }
  .tier__price { font-size: 44px; }
  .tiers__loose { grid-template-columns: 1fr 1fr; }
  .verbs__title { left: 16px; top: 16px; }
  .verb > img { object-position: 50% 30%; }
  .verb__word { font-size: 18vw; }
  .verb__note { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; padding: 16px; }
  .faq { display: block; padding: 96px 16px; }
  .faq__title { position: static; font-size: 12vw; margin-bottom: 24px; }
  .faq__list { gap: 6px; }
  .faq summary { min-height: 64px; padding: 14px 18px; font-size: 18px; }
  .faq details p { padding: 0 18px 20px; font-size: 16px; }
  .strip__track img { height: 110px; }
  .contact__body { padding-top: 48px; }
  .contact__title { font-size: 11vw; }
  .cells { grid-template-columns: 1fr; }
  .cell, .cell input { min-height: 60px; height: 60px; }
  .cell { height: auto; }
  .cell__err { position: static; padding-bottom: 8px; }
  .contact__info { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; }
  .foot { padding: 96px 16px 96px; }
  .foot__go { width: 100%; }
  .callbar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ink); transform: translateY(110%); transition: transform .3s var(--ease); }
  .callbar.is-on { transform: none; }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; }
  .callbar a + a { background: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__name, .js .hero__tl, .js .hero__tr, .js .hero__bl, .js .hero__br { animation: none; }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .strip__track { animation: none; }
  .plan__live .dot { animation: none !important; }
}
