/* Auto- en Motorrijschool Theuns, Boxtel
   Kleuren komen van het eigen wagenpark: het azuurblauw van de lesauto's,
   het goudgeel van de daklichtbak en het marineblauw van het logo. */

:root {
  --marine: #0d2b4e;
  --marine-2: #143c68;
  --marine-3: #1d4f85;
  --azuur: #1c81cf;
  --azuur-diep: #1569ad;
  --azuur-mist: #e9f3fb;
  --goud: #ffc21f;
  --goud-diep: #d99a00;
  --wit: #ffffff;
  --mist: #f4f7fb;
  --lijn: #dbe5f0;
  --tekst: #16263d;
  --zacht: #4d6180;

  --wrap: 1160px;
  --radius: 14px;
  --radius-s: 8px;
  --schaduw: 0 2px 4px rgba(13, 43, 78, .06), 0 10px 30px rgba(13, 43, 78, .08);
  --schaduw-hoog: 0 4px 10px rgba(13, 43, 78, .1), 0 18px 44px rgba(13, 43, 78, .16);

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tekst);
  background: var(--wit);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--marine);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

strong { font-weight: 700; color: var(--marine); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--goud); color: var(--marine);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

/* ---------- signature: het daklichtbord ---------- */

.lbord {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--goud); color: var(--marine);
  font-weight: 800; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px 6px 6px; border-radius: 5px;
}
.lbord::before {
  content: "L";
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 3px;
  background: var(--azuur); color: var(--wit);
  font-size: .82rem; letter-spacing: 0; line-height: 1;
}
.lbord--op-donker { background: rgba(255, 194, 31, .16); color: var(--goud); }
.lbord--op-donker::before { background: var(--goud); color: var(--marine); }

/* wegbelijning */
.streep {
  height: 7px;
  background: var(--marine);
  background-image: repeating-linear-gradient(90deg,
    var(--goud) 0 34px, var(--marine) 34px 62px);
}

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--lijn);
}

.header-bar {
  display: flex; align-items: center; gap: 20px;
  min-height: 76px;
}

.merk { flex: 0 0 auto; }
.merk img { width: 196px; height: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 9px 13px; border-radius: var(--radius-s);
  color: var(--marine); text-decoration: none;
  font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--azuur-mist); }
.nav a[aria-current="page"] {
  background: var(--azuur-mist); color: var(--azuur-diep);
  box-shadow: inset 0 -2px 0 var(--azuur);
}

.header-acties { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-knop {
  display: none; align-items: center; gap: 8px;
  background: var(--marine); color: var(--wit);
  border: 0; border-radius: var(--radius-s);
  padding: 10px 14px; font: inherit; font-weight: 700; font-size: .9rem;
  cursor: pointer;
}
.nav-knop span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }

/* ---------- knoppen ---------- */

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.knop:hover { transform: translateY(-1px); }
.knop:active { transform: translateY(0); }

.knop--goud { background: var(--goud); color: var(--marine); box-shadow: 0 4px 0 var(--goud-diep); }
.knop--goud:hover { background: #ffcf4b; color: var(--marine); }
.knop--blauw { background: var(--azuur); color: var(--wit); box-shadow: 0 4px 0 var(--azuur-diep); }
.knop--blauw:hover { background: #2790e0; color: var(--wit); }
.knop--rand { border-color: var(--lijn); color: var(--marine); background: var(--wit); }
.knop--rand:hover { border-color: var(--azuur); color: var(--azuur-diep); }
.knop--licht { background: rgba(255, 255, 255, .14); color: var(--wit); border-color: rgba(255, 255, 255, .38); }
.knop--licht:hover { background: rgba(255, 255, 255, .24); color: var(--wit); }
.knop--klein { padding: 10px 16px; font-size: .92rem; }
.knop--breed { width: 100%; }

.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }

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

.hero { position: relative; background: var(--marine); color: var(--wit); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 43, 78, .95) 0%, rgba(13, 43, 78, .88) 42%, rgba(13, 43, 78, .5) 74%, rgba(13, 43, 78, .35) 100%);
}
.hero-foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 60%;
}
.hero-inner { position: relative; z-index: 2; padding: 68px 0 60px; max-width: 700px; }
.hero h1 { color: var(--wit); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--goud); }
.hero-lead { font-size: 1.16rem; color: #d7e6f5; max-width: 34em; }
.hero .knoppen { margin-top: 26px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-chips li {
  margin: 0; font-size: .88rem; font-weight: 600; color: #e7f0f9;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .2);
  padding: 6px 13px; border-radius: 999px;
}

/* pagina-kop voor binnenpagina's */
.paginakop { background: var(--marine); color: var(--wit); padding: 46px 0 40px; }
.paginakop h1 { color: var(--wit); margin-bottom: .35em; }
.paginakop p { color: #cfe0f0; font-size: 1.1rem; max-width: 46em; margin: 0; }
.paginakop .lbord { margin-bottom: 16px; }

.kruimels { font-size: .86rem; color: #9fbcd8; margin-bottom: 14px; }
.kruimels ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.kruimels li { margin: 0; }
.kruimels li + li::before { content: "›"; margin-right: 8px; color: #6d90b4; }
.kruimels a { color: #cfe0f0; text-decoration: none; }
.kruimels a:hover { color: var(--goud); text-decoration: underline; }

/* ---------- secties ---------- */

.sectie { padding: 66px 0; }
.sectie--mist { background: var(--mist); }
.sectie--marine { background: var(--marine); color: #dbe8f5; }
.sectie--marine h2, .sectie--marine h3 { color: var(--wit); }
.sectie--smal { padding: 46px 0; }

.sectie-kop { max-width: 44em; margin-bottom: 34px; }
.sectie-kop .lbord { margin-bottom: 14px; }
.sectie-kop p { color: var(--zacht); font-size: 1.06rem; margin-bottom: 0; }
.sectie--marine .sectie-kop p { color: #b9cee3; }

/* ---------- vertrouwensbalk ---------- */

.balk { background: var(--marine-2); color: var(--wit); }
.balk ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; list-style: none; margin: 0; padding: 0;
}
.balk li {
  margin: 0; padding: 20px 18px; text-align: center;
  background: var(--marine-2);
}
.balk b { display: block; font-size: 1.42rem; font-weight: 800; color: var(--goud); line-height: 1.2; }
.balk span { font-size: .9rem; color: #c3d6ea; }

/* ---------- kaarten ---------- */

.raster { display: grid; gap: 20px; }
.raster--2 { grid-template-columns: repeat(2, 1fr); }
.raster--3 { grid-template-columns: repeat(3, 1fr); }
.raster--4 { grid-template-columns: repeat(4, 1fr); }

.kaart {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.kaart:hover { box-shadow: var(--schaduw-hoog); transform: translateY(-2px); border-color: #c3d5e8; }
.kaart img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.kaart-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.kaart h3 { margin-bottom: .4em; font-size: 1.18rem; }
.kaart p { color: var(--zacht); font-size: .97rem; margin-bottom: 1em; }
.kaart .verder {
  margin-top: auto; font-weight: 700; font-size: .95rem;
  color: var(--azuur-diep); text-decoration: none;
}
.kaart .verder::after { content: " →"; }
.kaart .verder:hover { color: var(--marine); }
.kaart-label {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--goud-diep); margin-bottom: 8px;
}

/* voordelen */
.voordelen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.voordelen li { margin: 0; background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 24px 22px; }
.voordelen h3 { font-size: 1.1rem; margin-bottom: .35em; }
.voordelen p { font-size: .96rem; color: var(--zacht); margin: 0; }
.voordelen .nr {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--azuur-mist); color: var(--azuur-diep);
  font-weight: 800; font-size: 1rem; margin-bottom: 14px;
}

/* stappen (HowTo) */
.stappen { counter-reset: stap; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.stappen li {
  margin: 0; position: relative; padding: 22px 24px 22px 74px;
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
}
.sectie--marine .stappen li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .16); }
.stappen li::before {
  counter-increment: stap; content: counter(stap);
  position: absolute; left: 22px; top: 22px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: var(--goud); color: var(--marine); font-weight: 800;
}
.stappen h3 { font-size: 1.08rem; margin-bottom: .3em; }
.stappen p { margin: 0; font-size: .98rem; color: var(--zacht); }
.sectie--marine .stappen p { color: #b9cee3; }

/* split: tekst naast beeld */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.split--om > *:first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--schaduw); }
.split-beeld { display: grid; gap: 14px; }
.split-beeld--duo { grid-template-columns: 1fr 1fr; }

/* vinklijst */
.vinkjes { list-style: none; padding: 0; margin: 0 0 1.4em; }
.vinkjes li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.vinkjes li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--azuur-mist);
  box-shadow: inset 0 0 0 2px var(--azuur);
}
.vinkjes li::after {
  content: ""; position: absolute; left: 6px; top: .72em;
  width: 5px; height: 9px; border: solid var(--azuur-diep);
  border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}
.sectie--marine .vinkjes li::before { background: rgba(255, 194, 31, .18); box-shadow: inset 0 0 0 2px var(--goud); }
.sectie--marine .vinkjes li::after { border-color: var(--goud); }

/* keurmerken */
.keurmerken { display: flex; flex-wrap: wrap; align-items: center; gap: 26px 34px; }
.keurmerken img { height: 58px; width: auto; }

/* tarieven */
.tabel-omhulsel { overflow-x: auto; border: 1px solid var(--lijn); border-radius: var(--radius); background: var(--wit); }
table.tarieven { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 480px; }
table.tarieven th, table.tarieven td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--lijn); }
table.tarieven thead th { background: var(--mist); color: var(--marine); font-weight: 800; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
table.tarieven tbody tr:last-child td { border-bottom: 0; }
table.tarieven td:last-child { font-weight: 700; color: var(--marine); white-space: nowrap; }

.notitie {
  background: var(--azuur-mist); border-left: 4px solid var(--azuur);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 18px 22px; font-size: .97rem; color: var(--marine-2);
}
.notitie strong { color: var(--marine); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 4px 22px;
}
.faq details[open] { border-color: #c3d5e8; box-shadow: var(--schaduw); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 700; color: var(--marine); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--azuur); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .antwoord { padding: 0 0 18px; color: var(--zacht); font-size: .99rem; }
.faq .antwoord p:first-child { margin-top: 0; }

/* cta-blok */
.cta-blok {
  background: linear-gradient(135deg, var(--marine) 0%, var(--marine-3) 100%);
  color: var(--wit); border-radius: var(--radius); padding: 40px 42px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
}
.cta-blok h2 { color: var(--wit); margin-bottom: .35em; }
.cta-blok p { color: #cfe0f0; margin-bottom: 0; }
.cta-blok .knoppen { justify-content: flex-end; }

/* contactgegevens */
.contactkaarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contactkaart {
  background: var(--wit); border: 1px solid var(--lijn); border-radius: var(--radius);
  padding: 24px 22px;
}
.contactkaart h3 { font-size: 1.02rem; margin-bottom: .3em; }
.contactkaart a { font-size: 1.16rem; font-weight: 800; text-decoration: none; color: var(--marine); }
.contactkaart a:hover { color: var(--azuur-diep); }
.contactkaart p { font-size: .92rem; color: var(--zacht); margin: .4em 0 0; }

.gegevens { list-style: none; margin: 0; padding: 0; }
.gegevens li { display: flex; gap: 12px; margin-bottom: .5em; }
.gegevens dt, .gegevens .lbl { min-width: 130px; font-weight: 700; color: var(--marine); }

.kaart-link { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--lijn); text-decoration: none; background: var(--wit); }
.kaart-link img { width: 100%; height: auto; }
.kaart-link span { display: block; padding: 14px 18px; font-weight: 700; color: var(--azuur-diep); }
.kaart-link:hover span { color: var(--marine); }
.kaart-link:hover { box-shadow: var(--schaduw); }

/* opleidingenlijst in de zijkolom / footer van detailpagina's */
.andere-opleidingen { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.andere-opleidingen li { margin: 0; }
.andere-opleidingen a {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  background: var(--wit); border: 1px solid var(--lijn);
  color: var(--marine); text-decoration: none; font-weight: 600; font-size: .93rem;
}
.andere-opleidingen a:hover { border-color: var(--azuur); color: var(--azuur-diep); }

/* prose */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

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

.site-footer { background: var(--marine); color: #b9cee3; padding: 56px 0 0; margin-top: 0; }
.footer-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; }
.site-footer h3 { color: var(--wit); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer a { color: #d5e5f3; text-decoration: none; }
.site-footer a:hover { color: var(--goud); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; font-size: .96rem; }
.footer-merk img { width: 210px; background: var(--wit); padding: 10px 12px; border-radius: var(--radius-s); }
.footer-merk p { font-size: .95rem; margin-top: 16px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  background: rgba(255, 255, 255, .1); font-weight: 700; font-size: .8rem; color: var(--wit);
}
.footer-socials a:hover { background: var(--goud); color: var(--marine); text-decoration: none; }
.footer-onder {
  margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 20px 0 26px; font-size: .87rem;
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}

/* mobiele belbalk */
.mobielbalk { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .raster--4 { grid-template-columns: repeat(2, 1fr); }
  .raster--3 { grid-template-columns: repeat(2, 1fr); }
  .voordelen { grid-template-columns: repeat(2, 1fr); }
  .footer-raster { grid-template-columns: 1fr 1fr; }
  .split { gap: 30px; }
}

@media (max-width: 860px) {
  .nav-knop { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--wit); border-bottom: 1px solid var(--lijn);
    box-shadow: var(--schaduw); padding: 10px 16px 16px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 12px; font-size: 1rem; }
  .site-header { position: sticky; }
  .header-bar { position: relative; min-height: 66px; }
  .merk img { width: 158px; }
  /* Bellen en appen zit op mobiel in de vaste balk onderaan, dus de knoppen in
     de header kunnen weg. Anders lopen ze op een smal scherm buiten beeld. */
  .header-acties { display: none; }

  .split, .cta-blok { grid-template-columns: 1fr; }
  .split--om > *:first-child { order: 0; }
  .cta-blok { padding: 30px 26px; }
  .cta-blok .knoppen { justify-content: flex-start; }
  .balk ul { grid-template-columns: repeat(2, 1fr); }
  .contactkaarten { grid-template-columns: 1fr; }
  .hero-inner { padding: 46px 0 42px; }
  .sectie { padding: 48px 0; }
  body { padding-bottom: 68px; }

  .mobielbalk {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    border-top: 1px solid rgba(0, 0, 0, .1);
  }
  .mobielbalk a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px; font-weight: 800; text-decoration: none; font-size: .98rem;
  }
  .mobielbalk .bel { background: var(--goud); color: var(--marine); }
  .mobielbalk .app { background: var(--azuur); color: var(--wit); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .raster--3, .raster--4, .voordelen, .footer-raster, .split-beeld--duo { grid-template-columns: 1fr; }
  .knoppen .knop { width: 100%; }
  .hero-lead { font-size: 1.06rem; }
  .cta-blok { padding: 26px 20px; }
}

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

@media print {
  .site-header, .mobielbalk, .cta-blok, .site-footer { display: none; }
}
