:root {
  --brand: #250596;
  --brand-dark: #1a036b;
  --accent: #1280df;
  --wa: #25d366;
  --text: #1c1d24;
  --muted: #646876;
  --bg: #ffffff;
  --bg-alt: #f4f5fa;
  --line: #e2e4ec;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 20, 60, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.wrap.section { padding: 48px 16px; }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Knoppen */
.btn {
  display: inline-block; padding: .7em 1.3em; border-radius: 8px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: #e9e8ff; border-color: #e9e8ff; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #1da851; border-color: #1da851; }
.btn-danger { background: #c62828; border-color: #c62828; }
.btn-small { padding: .35em .8em; font-size: .875rem; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-more { font-weight: 600; text-decoration: none; }

/* Header */
.site-header { background: var(--brand); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.logo img { height: 64px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 6px; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); }
.nav-btn { display: none; cursor: pointer; padding: 10px; }
.nav-btn span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 760px) {
  .nav-btn { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand); flex-direction: column; padding: 8px 16px 16px; }
  #nav-toggle:checked ~ .main-nav { display: flex; }
  .logo img { height: 52px; }
}

/* Hero */
.hero {
  background: linear-gradient(rgba(10, 5, 50, .55), rgba(10, 5, 50, .55)), url('/assets/hero.jpg') center/cover no-repeat, var(--brand-dark);
  color: #fff; text-align: center;
}
.hero-inner { padding: 110px 16px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.page-title { background: var(--brand); color: #fff; padding: 36px 0 30px; }
.page-title h1 { margin: 0; }
.page-title p { margin: 4px 0 0; opacity: .85; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }

/* Auto-kaarten */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.car-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.car-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,20,60,.14); }
.car-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); background: var(--bg-alt); }
.photo-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 20px; }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 4px; font-size: .8rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.badge-verkocht { background: #c62828; }
.badge-gereserveerd { background: #ef8f00; }
.car-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { margin-bottom: 6px; }
.car-meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .85rem; color: var(--muted); }
.car-meta li { background: var(--bg-alt); padding: 1px 8px; border-radius: 4px; }
.car-meta.big { font-size: .95rem; }
.car-price { margin-top: auto; font-size: 1.3rem; font-weight: 700; color: var(--brand); }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; background: var(--bg-alt); padding: 16px; border-radius: var(--radius); margin-bottom: 28px; }
@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .filters select { padding: .45em .5em; font-size: .9rem; }
}
.filters label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: 4px; }
select, input, textarea {
  font: inherit; padding: .55em .7em; border: 1px solid #c9ccd8; border-radius: 6px; background: #fff; color: var(--text); width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* Info / tekstpagina's */
.three-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; }
.info-card h2:not(:first-child) { margin-top: 1.2em; }
.text-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 40px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.5em; }
.tiers { display: grid; gap: 12px; }
.tier { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.tier ul { margin: 0; padding-left: 1.2em; }
.contact-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr; gap: 32px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }
@media (max-width: 860px) {
  .text-page, .contact-grid { grid-template-columns: 1fr; }
}

/* Detailpagina */
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 32px; }
.detail-grid.lower { margin-top: 40px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); font-size: 28px; line-height: 1; cursor: pointer; color: #111;
}
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.thumb { flex: 0 0 90px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }
.detail-side h1 { font-size: 1.7rem; }
.detail-price { font-size: 2rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.description { white-space: normal; }
.options { columns: 2; padding-left: 1.2em; }
@media (max-width: 520px) { .options { columns: 1; } }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lb-close { position: absolute; top: 10px; right: 16px; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; }

/* Vertrouwen */
.trust-bar { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust { display: flex; flex-direction: column; padding-left: 34px; position: relative; }
.trust::before {
  content: '✓'; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.trust strong { color: var(--brand); }
.trust span { font-size: .875rem; color: var(--muted); }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; } .trust span { font-size: .8rem; } }

.checks { list-style: none; padding: 0; margin: 0 0 10px; }
.checks li { position: relative; padding: 4px 0 4px 26px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 4px; color: #1b8a3c; font-weight: 700; }

.werkplaats-teaser {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
@media (max-width: 760px) { .werkplaats-teaser { grid-template-columns: 1fr; padding: 20px; } }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service { background: var(--bg-alt); border-radius: var(--radius); padding: 16px 18px; border-top: 3px solid var(--accent); }
.service p { margin: 0; font-size: .95rem; }

.garantie-blok { margin-top: 20px; background: #f0f7ff; border: 1px solid #cfe3f8; border-radius: var(--radius); padding: 16px 18px; }
.garantie-blok h3 { margin-bottom: 8px; }
.garantie-blok .checks li { font-size: .92rem; }

/* Contactformulier */
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-size: .875rem; font-weight: 600; }
.contact-form input, .contact-form textarea { font-weight: 400; }
.contact-form .btn { align-self: flex-start; }
.contact-form p { margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 10px 14px; border-radius: 8px; }
.alert-ok { background: #e3f6e8; color: #1b5e20; }
.alert-error { background: #fdecea; color: #b71c1c; }

/* Footer */
.site-footer { background: #13112b; color: #c9c8d8; padding-top: 40px; margin-top: 0; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding: 16px; font-size: .85rem; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60;
}
