/* ==========================================================================
   RVC Rijschool Almere
   Design tokens. Palette is drawn from Dutch road signage: sign blue,
   road-marking yellow, asphalt. The signature element is the lane marking.
   ========================================================================== */

:root {
  --ink: #0c1c2b;
  --ink-2: #16344a;
  --ink-3: #3c5468;
  --blue: #0b4fbe;
  --blue-dark: #0a3f97;
  --blue-tint: #e8effb;
  --amber: #ffc61a;
  --amber-dark: #b88400;
  --paper: #ffffff;
  --mist: #eef3f8;
  --mist-2: #f7fafc;
  --line: #d5e0ea;
  --ok: #0f7b52;
  --ok-tint: #e6f4ee;
  --warn-tint: #fff6dc;

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --measure: 66ch;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(12, 28, 43, .06), 0 8px 24px rgba(12, 28, 43, .07);
  --shadow-lg: 0 2px 4px rgba(12, 28, 43, .08), 0 18px 48px rgba(12, 28, 43, .14);

  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section: clamp(3rem, 7vw, 5.5rem);
  --wrap: 1180px;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.14; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p, ul, ol, table, dl { margin: 0 0 1.1em; }
p { max-width: var(--measure); }

a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { color: var(--blue); }

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

.hero :focus-visible,
.footer :focus-visible { outline-color: var(--amber); }

/* ---------- helpers ---------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100%, 46rem); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--ink); padding: .7rem 1.1rem;
  border-radius: var(--radius); font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: .5rem; }

.eyebrow {
  display: block;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-dark); margin: 0 0 .7rem;
}
.hero .eyebrow, .cta-band .eyebrow { color: var(--amber); }

/* the signature element: a road lane marking */
.lane {
  height: 7px; border: 0; margin: 0 0 1.6rem; width: 116px; border-radius: 4px;
  background: repeating-linear-gradient(90deg,
    var(--amber) 0 26px, transparent 26px 42px);
}
.lane--center { margin-inline: auto; }

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tint { background: var(--blue-tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { font-size: 1.08em; color: var(--ink-3); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

.lead { font-size: 1.18em; color: var(--ink-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background-color .12s ease, color .12s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex: none; }

.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: #ffd451; color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem; }

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
  min-height: 74px; padding-block: .6rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__mark { flex: none; }
.brand__name { font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; line-height: 1.1; }
.brand__sub { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle-label {
  margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .95rem; border: 2px solid var(--line); border-radius: 999px;
  font-weight: 700; cursor: pointer; background: var(--paper); min-height: 46px;
}
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--blue); outline-offset: 3px; }
.nav-toggle-label .bars { display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; }
.nav-toggle-label .bars::before, .nav-toggle-label .bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.nav-toggle-label .bars::before { top: -6px; }
.nav-toggle-label .bars::after { top: 6px; }

/* Mobiel valt het menu onder de balk, over de volle breedte. Zonder deze
   volle breedte plus order gaat het naast het logo staan en loopt het buiten
   het scherm. */
.nav { display: none; width: 100%; order: 3; }
.nav-toggle:checked ~ .nav { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0 0 1rem; }
.nav__list a {
  display: block; padding: .8rem .25rem; text-decoration: none; color: var(--ink);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.nav__list a[aria-current="page"] { color: var(--blue-dark); }
.header__cta { display: none; }

@media (min-width: 62rem) {
  .nav-toggle-label { display: none; }
  .nav { display: block !important; width: auto; order: 0; margin-left: auto; }
  .nav__list { display: flex; gap: .2rem; padding: 0; }
  .nav__list a {
    border-bottom: 0; padding: .55rem .7rem; border-radius: 8px; font-size: .97rem;
  }
  .nav__list a:hover { background: var(--mist); }
  .nav__list a[aria-current="page"] {
    background: var(--blue-tint); color: var(--blue-dark);
  }
  .header__cta { display: inline-flex; margin-left: .6rem; padding: .65rem 1.1rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, #0c1c2b 0%, #123f5e 100%);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 44px, transparent 44px 76px);
  opacity: .9;
}
.hero__road {
  position: absolute; right: -8%; bottom: -6%; width: min(56%, 640px);
  opacity: .16; pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); color: #d5e4f0; max-width: 54ch; }
.hero__note { font-size: .93rem; color: #a8c1d6; max-width: 46ch; }
.hero a:not(.btn) { color: #fff; }

.facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .85rem; }
.facts li {
  display: flex; gap: .7rem; align-items: flex-start;
  font-weight: 600; color: #e6f0f8; font-size: .99rem;
}
.facts svg { flex: none; margin-top: .18rem; }

.hero-card {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 1.9rem); box-shadow: var(--shadow-lg);
  border-top: 7px solid var(--amber);
}
.hero-card h2 { font-size: 1.25rem; }
.hero-card p { font-size: .97rem; color: var(--ink-3); }
.hero-card .btn { width: 100%; }
.hero-card .btn + .btn { margin-top: .6rem; }
.hero-card__nap {
  margin: 1.2rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--ink-3); font-style: normal;
}
.hero-card__nap strong { color: var(--ink); }

@media (min-width: 60rem) {
  .hero__inner { grid-template-columns: 1.35fr .9fr; align-items: center; }
}

/* ---------- cards & grids ---------- */

/* Grid children default to min-width:auto, which lets a wide table push the
   whole page sideways on a phone. Pinning it to 0 keeps the scroll inside
   .table-wrap where it belongs. */
.grid > *, .contact-grid > *, .quotes > *, .footer__grid > * { min-width: 0; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.6vw, 1.75rem); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-3); font-size: .97rem; flex: 1; }
.card__more { font-weight: 700; text-decoration: none; margin-top: .6rem; display: inline-flex; gap: .35rem; }
.card__more::after { content: "\203A"; font-size: 1.25em; line-height: 1; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-tint);
  display: grid; place-items: center; margin-bottom: .95rem; color: var(--blue-dark);
}

/* the "leskaart" motif: a lesson card with a marked strip */
.card--lane { position: relative; overflow: hidden; }
.card--lane::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: repeating-linear-gradient(180deg, var(--amber) 0 20px, transparent 20px 34px);
}
.card--lane { padding-left: calc(clamp(1.25rem, 2.6vw, 1.75rem) + .6rem); }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.2rem 1.3rem;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.steps h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-3); font-size: .97rem; }

/* ---------- checklist ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem; align-items: start; }
.checks svg { margin-top: .25rem; color: var(--ok); }
.checks strong { display: block; }
.checks span { color: var(--ink-3); font-size: .96rem; }

/* ---------- price table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
table.prices { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 0; min-width: 21rem; }
table.prices caption {
  text-align: left; font-weight: 800; padding: 1.1rem 1.2rem .2rem; font-size: 1.1rem;
}
table.prices th, table.prices td { padding: .85rem 1.2rem; text-align: left; border-top: 1px solid var(--line); }
table.prices thead th { background: var(--mist); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); border-top: 0; }
table.prices td:last-child, table.prices th:last-child { text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-weight: 700; }
table.prices tbody tr:nth-child(even) { background: var(--mist-2); }

.price-note { font-size: .93rem; color: var(--ink-3); }

/* ---------- highlight / notice ---------- */

.notice {
  border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; background: var(--warn-tint);
  border: 1px solid #f0dda0; margin: 0 0 1.5rem;
}
.notice p { margin: 0; max-width: none; }
.notice strong { display: block; margin-bottom: .2rem; }
.notice--info { background: var(--blue-tint); border-color: #c3d6f5; }
.notice--ok { background: var(--ok-tint); border-color: #b9e0cd; }

/* ---------- quotes ---------- */

.quotes { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; margin: 0; display: flex; flex-direction: column;
}
.quote p { font-size: .99rem; flex: 1; margin-bottom: .9rem; }
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote footer { font-size: .88rem; color: var(--ink-3); font-weight: 700; }
.quote footer span { font-weight: 400; }

/* ---------- faq ---------- */

.faq { display: grid; gap: .75rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  padding: 0 1.3rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; padding: 1.05rem 0; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--blue);
  flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq__a { padding: 1rem 0 .3rem; }
.faq .faq__a > :last-child { margin-bottom: 0; }

/* ---------- cta band ---------- */

.cta-band {
  background: linear-gradient(160deg, #0b4fbe 0%, #0a3f97 100%);
  color: #fff; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 40px, transparent 40px 70px);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9e5fb; }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 55rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.nap { font-style: normal; }
.nap dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); font-weight: 700; margin-top: 1rem; }
.nap dd { margin: .15rem 0 0; font-weight: 600; }
.nap dd a { font-weight: 700; }
.map-link { display: block; text-decoration: none; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.map-link img { width: 100%; }
.map-link span { display: block; padding: .85rem 1.1rem; font-weight: 700; color: var(--blue-dark); }

/* ---------- footer ---------- */

.footer { background: var(--ink); color: #c6d6e3; padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; }
.footer h2, .footer h3 { color: #fff; font-size: 1rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: .9rem; }
.footer a { color: #dbe7f1; }
.footer a:hover { color: var(--amber); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer p { color: #b3c6d6; font-size: .95rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .87rem; color: #9db3c6;
}

/* ---------- breadcrumbs ---------- */

.crumbs { font-size: .88rem; padding-top: 1.1rem; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: .4rem; color: var(--line); }

/* ---------- page header ---------- */

.page-head {
  background: var(--mist); border-bottom: 1px solid var(--line);
  padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.2rem);
}
.page-head h1 { max-width: 20ch; }
.page-head p { font-size: 1.1em; color: var(--ink-2); }

/* ---------- prose ---------- */

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; max-width: var(--measure); }
.prose li { margin-bottom: .45rem; }

/* ---------- quiz list ---------- */

.qlist { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: .8rem; }
.qlist li { counter-increment: q; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; }
.qlist li::before { content: "Vraag " counter(q); display: block; font-size: .75rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dark);
  margin-bottom: .25rem; }
.qlist p { margin: 0; font-weight: 600; }
.qlist ul { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.qlist ul li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
  font-size: .88rem; color: var(--ink-3); background: var(--mist-2); }
.qlist ul li::before { content: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover { transform: none; }
}
