/* Autorijschool Edvance
   Eén stylesheet voor de hele site. Kleuren, typografie en maten staan als
   custom properties in :root, zodat de site vanaf één plek te thematiseren is.
   Het herkenningsteken van de site is het schakelpatroon: Edvance geeft les in
   een handgeschakelde auto, dus de H van de versnellingspook komt terug als
   motief in de hero, de sectiekoppen en het favicon. */

:root {
  --pine: #10231f;
  --pine-2: #1a3a33;
  --pine-3: #265147;
  --paper: #f6f2ea;
  --paper-2: #fffdf9;
  --accent: #ff6b35;
  --accent-dark: #e2542040;
  --mint: #9ddfcd;
  --text: #14201d;
  --muted: #55655f;
  --line: #dcd5c8;
  --line-dark: #ffffff26;

  --wrap: 1140px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(16, 35, 31, .06), 0 10px 30px rgba(16, 35, 31, .08);
  --shadow-lg: 0 20px 60px rgba(16, 35, 31, .18);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(.86rem, .84rem + .1vw, .93rem);
  --step-0: clamp(1rem, .97rem + .16vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + .35vw, 1.4rem);
  --step-2: clamp(1.42rem, 1.28rem + .6vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.7rem + 1.9vw, 3.4rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

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

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p, ul, ol, dl, table { margin: 0 0 1.1em; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label.nav-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 60;
  font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pine-3);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}
.hero .eyebrow, .section-dark .eyebrow, .page-head .eyebrow { color: var(--mint); }

.lead { font-size: var(--step-1); color: var(--muted); }
.hero .lead, .section-dark .lead, .page-head .lead { color: #d9e6e1; }

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ef5c26; }
.btn-outline { border-color: var(--pine); color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--paper-2); }
.btn-ghost-light { border-color: #ffffff59; color: #fff; }
.btn-ghost-light:hover { background: #ffffff17; }
.btn-sm { padding: .6rem 1rem; font-size: var(--step--1); }
.btn-block { width: 100%; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.4rem 0 0;
}

/* Kop van de site */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
  padding: .4rem 0;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pine-2);
  border: 1px solid var(--line-dark);
  flex: none;
}
.logo-text { display: grid; line-height: 1.2; }
.logo-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.logo-text span { font-size: .78rem; color: var(--mint); letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .9rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  color: #fff;
  background: var(--pine-2);
}
.nav-button .bars, .nav-button .bars::before, .nav-button .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}
.nav-button .bars { position: relative; }
.nav-button .bars::before { position: absolute; top: -6px; }
.nav-button .bars::after { position: absolute; top: 6px; }

.site-nav { display: none; width: 100%; padding: .4rem 0 1.1rem; }
.nav-toggle:checked ~ .site-nav { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: grid;
  gap: .1rem;
}
.site-nav a {
  display: block;
  padding: .7rem .2rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line-dark);
}
.site-nav a[aria-current="page"] { color: var(--mint); }
.nav-cta { white-space: nowrap; flex: none; }

@media (min-width: 900px) {
  .nav-button { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    width: auto;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: 1.3rem; margin: 0; }
  .site-nav a { border: 0; padding: .4rem 0; position: relative; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .15s ease;
  }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Hero */
.hero {
  background: var(--pine);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 34px, transparent 34px 68px);
  opacity: .55;
}
.shift-bg {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 420px;
  color: var(--mint);
  opacity: .12;
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 3.2rem);
  align-items: start;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

.usp-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: .6rem;
  max-width: 34rem;
}
.usp-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .7rem;
  align-items: start;
  color: #e7f0ed;
}
.usp-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(#000, #000);
  mask-composite: exclude;
  margin-top: .28rem;
  flex: none;
}

.photo-card {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-width: 420px;
}
.photo-card img { border-radius: 16px; width: 100%; }
.photo-card figcaption {
  color: var(--muted);
  font-size: var(--step--1);
  padding: .7rem .5rem .2rem;
}
.photo-badge {
  position: absolute;
  left: -14px;
  top: 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Secties */
main { display: block; }

.section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-dark { background: var(--pine); color: #e7f0ed; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 2rem; }

.grid {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #10231f0d;
  color: var(--pine-3);
  margin-bottom: .9rem;
}
.section-dark .card {
  background: var(--pine-2);
  border-color: var(--line-dark);
  color: #dbe8e3;
}

/* Stappen */
.steps {
  counter-reset: stap;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
}
.steps li::before {
  counter-increment: stap;
  content: counter(stap);
  position: absolute;
  top: -18px;
  left: 1.3rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin: .5rem 0 .35rem; }
.steps p { margin: 0; color: var(--muted); }

/* Prose (detailpagina's) */
.page-head {
  background: var(--pine);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0 clamp(2.4rem, 5vw, 3.4rem);
  position: relative;
  overflow: hidden;
}
.page-head h1 { color: #fff; max-width: 20ch; }
.page-head p { max-width: 60ch; color: #d9e6e1; margin-bottom: 0; }

.crumbs {
  font-size: var(--step--1);
  color: var(--mint);
  margin: 0 0 1rem;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .6; margin: 0 .35rem; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--accent); }

.callout {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.8rem 0;
}
.callout :last-child { margin-bottom: 0; }

.fact-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact-table th, .fact-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { width: 48%; color: var(--pine); }

@media (max-width: 520px) {
  .fact-table th, .fact-table td { padding: .75rem .8rem; font-size: var(--step--1); }
}

/* Vragen */
.faq { display: grid; gap: .7rem; max-width: 68ch; }
.faq details {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .2rem 1.2rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 2rem 1rem 0;
  list-style: none;
  position: relative;
  color: var(--pine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .1rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq p { margin: 0 0 1rem; color: var(--muted); }

/* Formulier */
.form-card {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  color: var(--text);
}
.form-card h2, .form-card h3 { margin-top: 0; }
.field { display: grid; gap: .35rem; margin-bottom: .9rem; }
.field span { font-weight: 600; font-size: var(--step--1); color: var(--pine); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #c9c2b4;
  border-radius: 10px;
  padding: .7rem .8rem;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--muted); margin: .6rem 0 0; }
.form-status { font-size: var(--step--1); margin: .8rem 0 0; color: var(--pine-3); }

/* Contactblokken */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: .9rem;
  align-items: start;
}
.contact-list .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffffff14;
  color: var(--mint);
}
.section-alt .contact-list .ico, .contact-page .contact-list .ico {
  background: #10231f0d;
  color: var(--pine-3);
}
.contact-list strong { display: block; }
.contact-list a { color: inherit; }

.map-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  text-decoration: none;
  color: var(--pine);
}
.map-link img { width: 100%; }
.map-link span {
  display: block;
  padding: .8rem 1rem;
  font-weight: 600;
  font-size: var(--step--1);
}

/* CTA-strook */
.cta-band {
  background: var(--pine-2);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.2rem;
  align-items: center;
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: #d9e6e1; margin: 0; }
.cta-band .actions { margin: 0; }

/* Voettekst */
.site-footer {
  background: var(--pine);
  color: #c8d7d2;
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 1.6rem;
  font-size: var(--step--1);
}
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .7rem; }
.site-footer a { color: #e7f0ed; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer address { font-style: normal; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  justify-content: space-between;
  color: #9db3ac;
}

/* Videolandingspagina */
body.lander {
  background: var(--pine);
  color: #e7f0ed;
}
.lander-inner {
  width: min(100% - 2.5rem, 780px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.4rem) 0 3rem;
}
.lander-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--mint);
  margin: 0 0 1.4rem;
}
.lander-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.lander h1 { color: #fff; font-size: var(--step-3); }
.lander-sub { color: #cfe0da; max-width: 58ch; }
.video-frame {
  position: relative;
  margin: 1.8rem 0;
  background: #0a1815;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  text-align: center;
  padding: 1.6rem;
  background-size: cover;
  background-position: center;
}
.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a181599, #0a1815e6);
}
.video-placeholder > * { position: relative; }
.placeholder-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff14;
  border: 1px solid var(--line-dark);
}
.video-placeholder strong { color: #fff; font-size: 1.1rem; }
.video-placeholder p { margin: 0; color: #c3d5cf; max-width: 40ch; }
.hidden { display: none !important; }
.lander-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.lander-meta { color: #9db3ac; font-size: var(--step--1); margin-top: 1rem; }
.lander-card {
  background: var(--pine-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 2rem 0 1.4rem;
}
.lander-card h2 { color: #fff; font-size: var(--step-1); }
.lander-card ul { margin: 0; padding-left: 1.1rem; }
.lander-card li { margin-bottom: .4rem; }
.lander-card li::marker { color: var(--accent); }
.lander-footer { color: #8fa6a0; font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover { transform: none; }
}
