/* Autorijschool Mathijssen, Etten-Leur
   Palet en vormtaal afgeleid van het eigen logo (donkerblauw), het gele
   Nederlandse kenteken en de wegmarkering op de weg. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrumentsans.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-900: #141942;
  --navy: #272d67;
  --navy-600: #3b4287;
  --plate: #f7c400;
  --plate-ink: #14161f;
  --paper: #f3f5fb;
  --white: #ffffff;
  --ink: #1a1d33;
  --muted: #5b6180;
  --line: #dfe3ef;
  --ok: #1f7a4d;

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;

  --display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .18vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.6rem + 3.4vw, 4.15rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
:focus-visible {
  outline: 3px solid var(--plate);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.5rem) 0; }
.section--intro { padding-bottom: clamp(1rem, 2vw, 1.75rem); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #eef0fa; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--plate); }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin: 0 0 .9rem;
}
.section--navy .eyebrow { color: var(--plate); }
.lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--muted); }
.section--navy .lead { color: #c6cbe6; }
.measure { max-width: 62ch; }

/* Wegmarkering: de enige decoratieve lijn op de site */
.roadline {
  height: 6px;
  background-image: linear-gradient(90deg, var(--plate) 0 46px, transparent 0 92px);
  background-size: 92px 6px;
  border-radius: 3px;
}

/* --- Kenteken, het signatuurelement --------------------------------- */
.plate {
  display: inline-flex;
  align-items: stretch;
  border-radius: 7px;
  overflow: hidden;
  background: var(--plate);
  border: 2px solid var(--plate-ink);
  box-shadow: 0 2px 0 rgba(20, 22, 31, .35);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--plate-ink);
  text-decoration: none;
  line-height: 1;
}
.plate__eu {
  background: #0b3fb5;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: .35rem .38rem .3rem;
  gap: .25rem;
}
.plate__eu::before {
  content: "";
  width: 11px; height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, var(--plate) 56% 60%, transparent 61%),
    #0b3fb5;
  border: 1.5px solid var(--plate);
}
.plate__text { padding: .78rem 1.05rem; font-size: 1.02rem; white-space: nowrap; }

a.plate:hover { background: #ffd428; color: var(--plate-ink); }
a.plate:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(20, 22, 31, .35); }
.plate--sm .plate__text { padding: .55rem .8rem; font-size: .9rem; }

/* Gewone knoppen blijven rustig, het kenteken is de blikvanger */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* --- Header ---------------------------------------------------------- */
.site-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;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { width: 168px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 60;
}
.skip-link:focus { left: 0; }

.nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--plate); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.tel-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
  font-size: .96rem;
}
.tel-link:hover { text-decoration: underline; }

.nav-toggle {
  display: none;
  border: 2px solid var(--navy);
  background: transparent;
  border-radius: 9px;
  padding: .5rem .7rem;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .45rem; }
  .nav {
    display: none;
    position: absolute;
    inset: 74px 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 18px 30px rgba(20, 25, 66, .12);
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { border-bottom-color: var(--line); }
  .brand img { width: 132px; }
  .header-cta { gap: .45rem; }
  .header-cta .tel-link {
    border: 2px solid var(--navy);
    border-radius: 9px;
    padding: .45rem .7rem;
    font-size: .9rem;
  }
  .header-cta .tel-link:hover { text-decoration: none; background: var(--navy); color: #fff; }
}

@media (max-width: 560px) {
  .brand img { width: 112px; }
  .header-cta .plate--sm { display: none; }
  .plate__text { font-size: .95rem; }
}

/* --- Hero ------------------------------------------------------------ */
.hero {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--plate); }
.hero__lead { color: #c9cee9; font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem); max-width: 46ch; }
.hero__actions { margin-top: 1.75rem; }
.hero__usps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  font-weight: 600;
  font-size: .95rem;
  color: #dfe3f7;
}
.hero__usps li { display: flex; align-items: center; gap: .5rem; }
.hero__usps li::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--plate);
  flex: none;
}
.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}
.hero__stamp {
  position: absolute;
  left: -14px;
  bottom: -18px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: 12px;
  padding: .85rem 1.05rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  max-width: 220px;
}
.hero__stamp strong { display: block; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.hero__stamp span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: block; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__usps { margin-top: 1.4rem; }
  .hero__stamp {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .6rem .8rem;
    max-width: 200px;
  }
  .hero__stamp strong { font-size: 1.1rem; }
}

/* --- Kaarten --------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, transform .15s ease; }
.card--link:hover { border-color: var(--navy); transform: translateY(-2px); color: inherit; }
.card__more { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--navy); }

/* --- Instructiekaart, signatuur ------------------------------------- */
.kaart {
  background: #fff;
  border: 2px solid var(--navy-900);
  border-radius: var(--radius);
  overflow: hidden;
}
.kaart__head {
  background: var(--navy-900);
  color: #fff;
  padding: 1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.kaart__head strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: .01em; }
.kaart__head span { font-size: .8rem; color: #b9c0e4; letter-spacing: .08em; text-transform: uppercase; }
.kaart__row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid var(--line);
}
.kaart__row:first-of-type { border-top: 0; }
.kaart__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  border-right: 2px dashed var(--line);
  padding-right: .9rem;
  line-height: 1.2;
}
.kaart__row h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.kaart__row p { color: var(--muted); margin: 0; font-size: .97rem; }

/* --- Prijzen --------------------------------------------------------- */
.prijs-tabel { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.prijs-tabel caption { text-align: left; font-weight: 700; padding-bottom: .6rem; }
.prijs-tabel th, .prijs-tabel td { text-align: left; padding: .85rem .5rem; border-bottom: 1px solid var(--line); }
.prijs-tabel th { font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prijs-tabel td:last-child, .prijs-tabel th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prijs-tabel tbody tr:last-child td { border-bottom: 0; }

.pakket {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pakket--uitgelicht { border: 2px solid var(--navy); }
.pakket h3 { margin: 0; }
.pakket ul { margin: 0; padding-left: 1.15rem; color: var(--muted); }
.pakket .plate { align-self: flex-start; }

/* --- Lijsten --------------------------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: .2rem;
  border-radius: 5px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7c400' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section--navy .checklist li::before { background-color: #fff; }

/* --- FAQ ------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.3rem;
}
.faq details[open] { border-color: var(--navy); }
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -.015em;
  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; color: var(--navy); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* --- Contact --------------------------------------------------------- */
.nap { font-style: normal; line-height: 1.85; }
.nap a { font-weight: 600; }
.map-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  background: #fff;
}
.map-link span {
  display: block;
  padding: .8rem 1.1rem;
  font-weight: 700;
  font-size: .95rem;
}
.map-link:hover span { background: var(--paper); }

.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.9rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; max-width: 22ch; }
.cta-band p { color: #ccd1ee; margin: 0; max-width: 46ch; }

/* --- Foto's ---------------------------------------------------------- */
.fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fotos img { border-radius: var(--radius); }
@media (max-width: 860px) { .fotos { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.quote {
  border-left: 4px solid var(--plate);
  padding-left: 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0;
}
.quote footer { font-family: var(--body); font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: .7rem; letter-spacing: 0; }

/* --- Kruimelpad ------------------------------------------------------ */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #c3c9e6; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--plate); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-logo { width: 190px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
}

/* --- 404 ------------------------------------------------------------- */
.center { text-align: center; }
.center .actions { justify-content: center; }
