/* Koerier 66 — huisstijl gebaseerd op de belettering van de bussen */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }

:root {
  --navy: #0b1a5e;        /* donkere band, footer */
  --blue: #1b2d96;        /* kleur van de blauwe bus */
  --blue-hi: #2c43c2;     /* hover / links op donker */
  --red: #e1282e;         /* het rode 66-schild */
  --red-dk: #b91c22;
  --ice: #eef2fa;         /* lichte vlakken */
  --ink: #17203d;         /* tekst */
  --muted: #4a5372;
  --line: #d3d9e8;
  --white: #fff;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hi); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-weight: 800; font-style: italic; font-size: clamp(2.75rem, 6.2vw, 5.4rem); }
h2 { font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
p { margin: 0 0 1em; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 38em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--ice { background: var(--ice); }
.measure { max-width: 40em; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--white); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* ---------- Logo ---------- */
.logo { display: inline-block; line-height: 0; text-decoration: none; }
.logo img { width: auto; display: block; }
.logo--compact img { height: 2.5rem; }
.logo--full img { height: auto; width: 100%; max-width: 16rem; }
@media (max-width: 520px) { .logo--compact img { height: 2rem; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  color: #dfe5ff; text-decoration: none; font-weight: 500; font-size: 1.05rem;
  padding: .55rem .9rem; border-radius: var(--radius);
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: .75rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: .5rem .8rem; font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav-toggle svg { width: 1.1rem; height: 1.1rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; border-top: 1px solid rgba(255,255,255,.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: .75rem; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: .01em;
  padding: .85rem 1.3rem .8rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dk); color: var(--white); }
.btn--line { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--line:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-hi); color: var(--white); }
.btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--white); }
.nav .btn { font-size: 1.15rem; padding: .65rem 1rem .6rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero: foto van het wagenpark als achtergrond ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 50%; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,26,94,.96) 0%, rgba(11,26,94,.9) 35%, rgba(11,26,94,.55) 58%, rgba(11,26,94,.12) 82%, rgba(11,26,94,0) 100%);
}
.hero__content { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); margin-bottom: .35em; text-shadow: 0 2px 18px rgba(11,26,94,.5); }
.hero .lead { color: #e1e6ff; margin-bottom: 1.75rem; max-width: 30em; }
@media (max-width: 560px) { .hero h1 br { display: none; } }
@media (max-width: 760px) {
  .hero__bg { object-position: 62% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(11,26,94,.86) 0%, rgba(11,26,94,.92) 55%, rgba(11,26,94,.97) 100%); }
}

/* ---------- Contactbalk onder de hero ---------- */
.quickbar { background: var(--blue); color: var(--white); border-top: 4px solid var(--red); }
.quickbar__grid { display: grid; grid-template-columns: auto auto 1fr; gap: 0; }
.quickbar__grid > div { padding: 1.1rem 2rem 1.15rem 0; margin-right: 2rem; border-right: 1px solid rgba(255,255,255,.18); display: grid; gap: .1rem; }
.quickbar__grid > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.quickbar span { font-size: .9rem; color: #c3ccf7; }
.quickbar a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.quickbar a:hover { text-decoration: underline; }
.quickbar strong { font-weight: 600; font-size: 1.05rem; }
.quickbar__big { font-family: var(--display); font-weight: 700 !important; font-size: 1.6rem !important; line-height: 1.1; }
@media (max-width: 760px) {
  .quickbar__grid { grid-template-columns: 1fr 1fr; }
  .quickbar__grid > div { margin-right: 0; padding: .9rem 1rem .9rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .quickbar__grid > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- Dienstregeling (snelheden) ---------- */
.timetable { width: 100%; border-collapse: collapse; margin-top: 2rem; border-top: 3px solid var(--navy); }
.timetable th, .timetable td { text-align: left; vertical-align: top; padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); }
.timetable thead th { font-weight: 600; font-size: .95rem; color: var(--muted); padding-top: .8rem; padding-bottom: .8rem; }
.timetable tbody th { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.85rem; line-height: 1.1; color: var(--blue); width: 22%; white-space: nowrap; }
.timetable tbody th a { color: inherit; text-decoration: none; }
.timetable tbody th a:hover { color: var(--red); }
.timetable td:last-child { width: 22%; color: var(--muted); padding-right: 0; }
.timetable td strong { display: block; font-weight: 600; }
@media (max-width: 700px) {
  .timetable thead { display: none; }
  .timetable tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .timetable th, .timetable td { display: block; width: auto !important; padding: 0; border: 0; }
  .timetable tbody th { margin-bottom: .3rem; }
  .timetable td:last-child { margin-top: .35rem; font-size: 1rem; }
}

/* ---------- Twee kolommen ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Bereikkaart ---------- */
.reach { background: var(--blue); border-radius: var(--radius); padding: clamp(.75rem, 2vw, 1.5rem); }
.reach svg { width: 100%; height: auto; display: block; }
.reach text { font-family: var(--display); }
.towns { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .1rem 1.25rem; }
.towns a { display: block; padding: .4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.towns a:hover { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 520px) { .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Belofte ---------- */
.promise { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: .98; color: var(--navy); margin: 0 0 .5em; }
.facts { margin: 0; border-top: 3px solid var(--navy); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: var(--blue); }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Belbalk ---------- */
.callband { background: var(--blue); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.callband__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.callband h2 { font-style: italic; font-weight: 800; margin-bottom: .2em; }
.callband p { color: #d6ddff; margin: 0; max-width: 34em; }

/* ---------- Paginakop (subpagina's) ---------- */
.pagehead { background: var(--navy); color: var(--white); padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.25rem, 5vw, 3.5rem); }
.pagehead h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); margin-bottom: .3em; max-width: 24ch; }
.pagehead .lead { color: #d6ddff; margin: 0; }
.crumbs { font-size: .95rem; margin-bottom: 1.25rem; color: #aeb9ef; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: #6f7cc0; }
.crumbs a { color: #dfe5ff; }

/* ---------- Artikel met zijbalk ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.article h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.6em; }
.article h2:first-child { margin-top: 0; }
.article p { max-width: 40em; }
.aside { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
.aside-box { background: var(--ice); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--red); }
.aside-box h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.aside-box p { font-size: 1rem; color: var(--muted); }
.aside-box .btn { width: 100%; justify-content: center; margin-top: .6rem; }
.aside-box--plain { border-top-color: var(--blue); }
.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: 1rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .aside { position: static; } }

.service-block { padding: 2.25rem 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.service-block:first-of-type { border-top: 3px solid var(--navy); }
.service-block h2 { margin-top: 0; }
.service-block__when { font-weight: 600; color: var(--blue); margin-bottom: .6rem; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 3px solid var(--navy); }
.related h2 { font-size: 1.7rem; margin-bottom: .8rem; }
.chips { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 1rem; font-weight: 500; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Formulieren ---------- */
.form { display: grid; gap: 2rem; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend { font-family: var(--display); font-weight: 700; font-size: 1.75rem; padding: 0; margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field select { height: 2.95rem; }
.field label { font-weight: 600; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white);
  border: 1px solid #b9c2da; border-radius: var(--radius); padding: .7rem .85rem; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(27,45,150,.35); outline-offset: 0; border-color: var(--blue); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { font-size: .95rem; color: var(--muted); margin: 0; max-width: 30em; }
.notice { display: none; border-radius: var(--radius); padding: 1rem 1.2rem; font-weight: 500; }
.notice.is-shown, .notice:target { display: block; }
.notice--ok { background: #e3f4e8; color: #14532d; border-left: 4px solid #1f8a46; }
.notice--err { background: #fde8e8; color: #7f1d1d; border-left: 4px solid var(--red); }
@media (max-width: 640px) { .fields, .fields--3 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d1f5; font-size: 1rem; padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.site-footer a { color: #e5e9ff; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h2 { font-size: 1.35rem; color: var(--white); margin-bottom: .7rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer .hours dt { color: #aeb9ef; }
.site-footer .hours dd { color: #e5e9ff; font-weight: 500; }
.area { border-top: 1px solid rgba(255,255,255,.12); padding: 1.75rem 0; display: grid; gap: .8rem; }
.area p { margin: 0; line-height: 1.75; }
.area strong { color: var(--white); font-weight: 600; margin-right: .35rem; }
.area a { color: #c9d1f5; }
.area a:not(:last-child)::after { content: ","; color: #6f7cc0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .9rem; color: #95a1d9; }
.footer-bottom a { color: #b8c2f0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobiele belknop ---------- */
.callfab { display: none; }
@media (max-width: 700px) {
  .callfab {
    display: flex; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; justify-content: center;
    box-shadow: 0 6px 20px rgba(11,26,94,.35);
  }
  body { padding-bottom: 5rem; }
}

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

/* Belknop niet over het toetsenbord/formulier heen tijdens het typen */
body:has(form :focus) .callfab { display: none; }
