/* Fred Autorijschool — design tokens + sitewide styles
   Identiteit: Nederlands verkeersbord (verkeersblauw + voorrangsgeel + asfalt),
   Overpass (Highway Gothic-erfgoed), gestreepte wegmarkering als signatuur. */

:root {
  --blauw: #0d4da1;
  --blauw-diep: #093a7c;
  --blauw-nacht: #071f42;
  --geel: #ffc72c;
  --geel-donker: #b8860b;
  --asfalt: #1c2430;
  --grijs: #57637a;
  --lijn: #d8e1ee;
  --wolk: #eef3fa;
  --wit: #ffffff;
  --groen-wa: #1faa53;

  --font: "Overpass", "Segoe UI", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 14px;
  --schaduw: 0 10px 30px rgba(7, 31, 66, 0.10);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--asfalt);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--blauw); }
a:hover { color: var(--blauw-diep); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blauw);
  margin-bottom: 0.75rem;
}

/* ---------- Wegmarkering (signatuur) ---------- */
.wegstreep {
  height: 6px;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(90deg,
    var(--geel) 0 42px, transparent 42px 70px);
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--schaduw); }
.btn-geel { background: var(--geel); color: var(--blauw-nacht); }
.btn-geel:hover { background: #ffd257; color: var(--blauw-nacht); }
.btn-blauw { background: var(--blauw); color: var(--wit); }
.btn-blauw:hover { background: var(--blauw-diep); color: var(--wit); }
.btn-wa { background: var(--groen-wa); color: var(--wit); }
.btn-wa:hover { background: #178a43; color: var(--wit); }
.btn-omlijnd { border-color: currentColor; color: var(--wit); background: transparent; }
.btn-omlijnd:hover { background: rgba(255,255,255,0.12); color: var(--wit); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wit);
  border-bottom: 1px solid var(--lijn);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--asfalt);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.1;
}
.lplate {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--blauw);
  color: var(--wit);
  font-weight: 900;
  font-size: 1.5rem;
  flex: none;
}
.brand-name em { font-style: normal; color: var(--blauw); }

.site-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.site-nav a {
  text-decoration: none;
  color: var(--asfalt);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.4rem 0.15rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--blauw); }
.site-nav a[aria-current="page"] { color: var(--blauw); border-bottom-color: var(--geel); }

.header-bel { padding: 0.6rem 1.1rem; font-size: 0.95rem; white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--lijn);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--asfalt);
}
.nav-toggle svg { display: block; }

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--wit);
    border-bottom: 1px solid var(--lijn);
    padding: 0.5rem 20px 1rem;
    box-shadow: var(--schaduw);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--lijn); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--geel); }
  .nav-toggle { display: block; }
  .header-bel { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--blauw-nacht) 0%, var(--blauw-diep) 55%, var(--blauw) 100%);
  color: var(--wit);
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 64px;
  height: 8px;
  background: repeating-linear-gradient(90deg,
    rgba(255,199,44,0.9) 0 48px, transparent 48px 84px);
  transform: rotate(-2.5deg);
  animation: rijden 14s linear infinite;
  pointer-events: none;
}
@keyframes rijden {
  from { background-position: 0 0; }
  to { background-position: 336px 0; }
}
.hero .eyebrow { color: var(--geel); }
.hero h1 { max-width: 15ch; }
.hero .hero-sub { font-size: 1.15rem; max-width: 52ch; color: #d7e3f6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.2rem;
  position: relative;
  z-index: 1;
}
.chip {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Secties ---------- */
.sectie { padding: clamp(3rem, 7vw, 5rem) 0; }
.sectie-wolk { background: var(--wolk); }
.sectie-blauw { background: var(--blauw-nacht); color: var(--wit); }
.sectie-blauw h2 { color: var(--wit); }
.sectie-kop { max-width: 60ch; margin-bottom: 2.2rem; }
.sectie-kop p { color: var(--grijs); }
.sectie-blauw .sectie-kop p { color: #c3d3ea; }

/* ---------- Kaarten ---------- */
.kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.kaart {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--asfalt);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.kaart:hover { transform: translateY(-4px); box-shadow: var(--schaduw); color: var(--asfalt); }
.kaart-icoon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--wolk);
  color: var(--blauw);
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
}
.kaart p { color: var(--grijs); font-size: 0.97rem; margin: 0; }
.kaart .meer { margin-top: auto; padding-top: 0.8rem; font-weight: 700; color: var(--blauw); font-size: 0.95rem; }

/* ---------- Route (signatuur) ---------- */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 6px;
  background: repeating-linear-gradient(180deg,
    var(--geel) 0 26px, transparent 26px 46px);
  border-radius: 3px;
}
.route li {
  position: relative;
  padding: 0 0 1.9rem 68px;
}
.route li:last-child { padding-bottom: 0; }
.route-stip {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blauw);
  color: var(--wit);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-family: var(--mono);
  font-size: 1.05rem;
}
.route li:last-child .route-stip { background: var(--geel); color: var(--blauw-nacht); }
.route h3 { margin-bottom: 0.25rem; }
.route p { color: var(--grijs); margin: 0; max-width: 58ch; }
.sectie-blauw .route p { color: #c3d3ea; }
.sectie-blauw .route h3 { color: var(--wit); }

/* ---------- Prijzen ---------- */
.prijs { font-family: var(--mono); font-weight: 700; }
.pakketten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.pakket {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.pakket-top .eyebrow { margin-bottom: 0.3rem; }
.pakket-uitgelicht { border: 2px solid var(--geel); box-shadow: var(--schaduw); position: relative; }
.pakket-label {
  position: absolute;
  top: -13px;
  left: 1.4rem;
  background: var(--geel);
  color: var(--blauw-nacht);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
}
.pakket .van {
  color: var(--grijs);
  text-decoration: line-through;
  font-size: 1rem;
  font-family: var(--mono);
}
.pakket .nu {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blauw);
  line-height: 1.1;
  margin: 0.15rem 0 0.9rem;
}
.pakket ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.pakket li { padding: 0.32rem 0 0.32rem 1.7rem; position: relative; font-size: 0.98rem; }
.pakket li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--geel);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.pakket .btn { margin-top: auto; justify-content: center; }

/* ---------- Tabellen ---------- */
.tarief-tabel { width: 100%; border-collapse: collapse; background: var(--wit); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--lijn); }
.tarief-tabel caption { text-align: left; font-weight: 900; font-size: 1.15rem; padding: 0 0 0.8rem; }
.tarief-tabel th, .tarief-tabel td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--lijn); }
.tarief-tabel tr:last-child td { border-bottom: 0; }
.tarief-tabel thead th { background: var(--blauw); color: var(--wit); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tarief-tabel td.prijs { white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  padding: 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.2rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blauw);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--grijs); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Split / media ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.feitblok {
  background: var(--wit);
  border: 1px solid var(--lijn);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.feitblok dl { margin: 0; display: grid; gap: 0.9rem; }
.feitblok dt { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blauw); }
.feitblok dd { margin: 0.1rem 0 0; }

.mercedes-badge {
  background: var(--blauw-nacht);
  color: var(--wit);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.mercedes-badge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--geel) 0 30px, transparent 30px 54px);
  opacity: 0.85;
}
.mercedes-badge .groot { font-size: 1.5rem; font-weight: 900; line-height: 1.2; margin-bottom: 0.4rem; }
.mercedes-badge p { color: #c3d3ea; margin: 0 0 1.2rem; }

/* ---------- Contact ---------- */
.contact-acties { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0; }
.nap { font-style: normal; line-height: 1.9; }
.nap a { font-weight: 600; }
.map-link { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--lijn); text-decoration: none; max-width: 640px; }
.map-link img { width: 100%; }
.map-link span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--blauw-nacht);
  color: var(--wit);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ---------- CTA-band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blauw-diep), var(--blauw));
  color: var(--wit);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255,199,44,0.35) 0 36px, transparent 36px 64px);
  transform: rotate(-14deg);
  pointer-events: none;
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: #d7e3f6; max-width: 55ch; }
.cta-band .hero-cta { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blauw-nacht); color: #c3d3ea; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.site-footer h3 { color: var(--wit); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { color: var(--wit); text-decoration: none; }
.site-footer a:hover { color: var(--geel); text-decoration: underline; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Breadcrumb ---------- */
.kruimel { font-size: 0.9rem; margin: 1.4rem 0 0; color: var(--grijs); }
.kruimel ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.kruimel li + li::before { content: "/"; margin-right: 0.4rem; color: var(--lijn); }
.kruimel a { text-decoration: none; }

/* ---------- Pagina-kop ---------- */
.pagina-kop { padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(1.8rem, 4vw, 2.6rem); }
.pagina-kop .lead { font-size: 1.15rem; color: var(--grijs); max-width: 62ch; }

/* ---------- 404 ---------- */
.pagina-404 { text-align: center; padding: 5rem 0; }
.pagina-404 .bord {
  display: inline-grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: var(--blauw);
  color: var(--wit);
  font-weight: 900;
  font-size: 2rem;
  font-family: var(--mono);
  margin-bottom: 1.4rem;
}

@media (max-width: 640px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
  .contact-acties .btn { width: 100%; justify-content: center; }
}
