/* =========================================================
   Automobielbedrijf Gebroeders Vos – stijlblad
   Responsief: telefoon, tablet (iPad), laptop en desktop
   ========================================================= */

/* ---------- Lettertypen (lokaal, geen externe verzoeken) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ---------- Variabelen ---------- */
:root {
  --bg: #0a0d14;
  --surface: rgba(18, 23, 35, .72);
  --surface-2: rgba(28, 34, 50, .78);
  --surface-solid: #141a27;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef1f6;
  --muted: #9aa4b8;
  --accent: #f0a83c;          /* amber, de kleur van de vos */
  --accent-2: #ffc46b;
  --accent-ink: #1b1204;
  --red: #ff4d3d;
  --blue: #4ea4ff;
  --green: #3ccf7c;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --header-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .h2, .h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Achtergrond (vast, werkt ook op iPad/iPhone) ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 13, 20, .2) 0%, rgba(10, 13, 20, .35) 45%, rgba(10, 13, 20, .8) 100%),
    url("../img/achtergrond.jpg") center 60% / cover no-repeat;
}
@media (max-width: 800px) {
  .bg { background:
    linear-gradient(180deg, rgba(10, 13, 20, .35) 0%, rgba(10, 13, 20, .6) 45%, rgba(10, 13, 20, .94) 100%),
    url("../img/achtergrond-mobile.jpg") 50% 60% / cover no-repeat; }
}
.page-detail .bg::after { content: ""; position: absolute; inset: 0; background: rgba(10, 13, 20, .4); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.3em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6em 1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 48px; height: 48px; }
.btn-accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(240, 168, 60, .7); }
.btn-accent:hover { box-shadow: 0 14px 36px -10px rgba(240, 168, 60, .9); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { box-shadow: 0 12px 30px -12px rgba(37, 211, 102, .8); }

/* ---------- Glas-kaarten ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled, .page-detail .site-header {
  background: rgba(10, 13, 20, .82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px #000;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(240, 168, 60, .35)); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-small { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav > a:not(.btn) { padding: .55em .9em; border-radius: 999px; font-weight: 500; color: #d9deea; transition: background .2s, color .2s; }
.main-nav > a:not(.btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-call { margin-left: .5rem; }
.nav-toggle { display: none; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #0a0d14; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .main-nav > a:not(.btn) { padding: .9em 1em; font-size: 1.1rem; }
  .nav-call { margin: .75rem 0 0; padding: 1em; }
  body.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  body.nav-open .nav-toggle .ic-open { display: none; }
  body.nav-open .nav-toggle .ic-close { display: block; }
  body.nav-open .site-header { background: #0a0d14; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); }
}
@media (max-width: 420px) {
  .brand-small { font-size: .62rem; }
  .brand-name { font-size: 1.05rem; }
  .brand img { height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}
.hero-inner { display: grid; gap: 3rem; }
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.2rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 168, 60, .2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(240,168,60,.2);} 50% { box-shadow: 0 0 0 8px rgba(240,168,60,0);} }
.hero h1 { text-shadow: 0 10px 40px rgba(0, 0, 0, .5); margin-bottom: .35em; }
.hero h1 .text-accent { background: linear-gradient(135deg, #ffd38a, var(--accent) 60%, #e07b1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d3d9e6; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  max-width: 760px; border-radius: var(--radius); overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero-stats li { background: rgba(14, 18, 28, .72); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .25rem; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stats strong .ic { width: 30px; height: 30px; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.scroll-hint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0);} 30% { opacity: 1;} 100% { opacity: 0; transform: translateY(14px);} }

@media (max-width: 600px) {
  .hero { padding-bottom: 4.5rem; align-items: flex-end; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero-stats li { padding: .9rem .8rem; }
  .hero-stats strong { font-size: 1.5rem; }
  .hero-stats strong .ic { width: 24px; height: 24px; }
  .hero-stats span { font-size: .78rem; line-height: 1.3; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-hint { display: none; }
}

/* ---------- Secties ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-tight { padding-top: 0; }
.section-full { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: normal; }
.section-head { max-width: 680px; margin-bottom: 2.2rem; }
.section-head p.muted { font-size: 1.05rem; }
#aanbod, #diensten, #contact { background: linear-gradient(180deg, rgba(10,13,20,.0), rgba(10,13,20,.4) 15%, rgba(10,13,20,.4) 85%, rgba(10,13,20,0)); }

/* Intro / over ons */
.intro { display: flex; gap: 1.8rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.4rem); }
.intro-fox { width: 88px; height: auto; flex: none; filter: drop-shadow(0 8px 20px rgba(240, 168, 60, .35)); }
.intro-text { font-size: 1.08rem; color: #dce2ee; }
.rich > :last-child { margin-bottom: 0; }
.rich a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .intro { flex-direction: column; align-items: flex-start; } .intro-fox { width: 64px; } }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: #d5dbe7;
  font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .2s;
}
.chip span { font-size: .78rem; background: rgba(255, 255, 255, .1); padding: .1em .55em; border-radius: 999px; }
.chip:hover { border-color: rgba(255, 255, 255, .35); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.is-active span { background: rgba(0, 0, 0, .15); }
.toolbar-right { display: flex; gap: .6rem; flex-wrap: wrap; }
.search, .select { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: .9rem; z-index: 1; color: var(--muted); pointer-events: none; }
.search input, .select select {
  height: 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .06); padding: 0 1rem 0 2.6rem; min-width: 220px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.select select { padding: 0 2.4rem 0 1rem; min-width: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px; }
.select select option { background: var(--surface-solid); }
.search input:focus, .select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 168, 60, .25); }
@media (max-width: 700px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.25rem; padding: 0 1.25rem .2rem; width: calc(100% + 2.5rem); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toolbar-right { width: 100%; }
  .search { flex: 1 1 100%; }
  .search input { min-width: 0; width: 100%; }
  .select { flex: 1 1 100%; }
  .select select { width: 100%; }
}

/* ---------- Autokaarten ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.car-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.car-card:hover { transform: translateY(-6px); border-color: rgba(240, 168, 60, .45); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9), 0 0 0 1px rgba(240, 168, 60, .15); }
.car-card[hidden] { display: none; }
.car-link { display: flex; flex-direction: column; height: 100%; }
.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d111a; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.car-card:hover .car-media img { transform: scale(1.06); }
.car-media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; }
.status-verkocht .car-media img { filter: grayscale(.85) brightness(.7); }
.no-photo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--muted);
  background: radial-gradient(circle at 50% 40%, #1d2433, #0d111a); }
.no-photo .ic { width: 38px; height: 38px; opacity: .6; }

.status-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: .38em .85em; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
}
.status-badge.static { position: static; display: inline-block; margin-bottom: .9rem; }
.badge-verkocht { background: var(--red); color: #fff; }
.badge-gereserveerd { background: var(--accent); color: var(--accent-ink); }
.badge-verwacht { background: var(--blue); color: #04172b; }

.media-chips { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: .4rem; }
.media-chips span { display: inline-flex; align-items: center; gap: .35em; padding: .3em .65em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.media-chips .ic { width: 14px; height: 14px; }
.media-chips .chip-video { background: rgba(240, 168, 60, .92); color: var(--accent-ink); }

.car-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.car-price { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--accent); margin-bottom: .8rem; }
.car-price .muted { font-size: 1rem; font-weight: 600; }
.specs { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.specs li { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 8px; font-size: .83rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #d5dbe7; }
.specs .ic { width: 14px; height: 14px; color: var(--accent-2); }
.specs-lg li { font-size: .95rem; padding: .45em .9em; }
.specs-lg .ic { width: 17px; height: 17px; }
.car-excerpt { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px solid var(--line); }
.more { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--accent-2); }
.more .ic { transition: transform .3s var(--ease); }
.car-card:hover .more .ic, .service:hover .more .ic { transform: translateX(4px); }
.nap {
  display: inline-flex; align-items: center; padding: .2em .55em; border-radius: 6px;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em;
  background: #ffd400; color: #111; box-shadow: inset 0 0 0 2px #111;
}
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty-state > .ic { width: 48px; height: 48px; color: var(--accent); }
.empty-state h1 { color: var(--text); }

/* ---------- Diensten ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.service { padding: 1.8rem; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s; }
.service:hover { transform: translateY(-6px); border-color: rgba(240, 168, 60, .45); }
.service p { color: var(--muted); flex: 1; }
.service-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 196, 107, .22), rgba(240, 168, 60, .06)); border: 1px solid rgba(240, 168, 60, .35); color: var(--accent-2); }
.service-icon .ic { width: 28px; height: 28px; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; transition: transform .3s var(--ease), border-color .3s; }
.contact-card:hover { transform: translateX(6px); border-color: rgba(240, 168, 60, .45); }
.contact-card small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.contact-card strong { font-family: var(--font-head); font-size: 1.25rem; }
.contact-icon { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); }
.contact-icon .ic { width: 24px; height: 24px; }
.contact-icon.icon-wa { background: var(--wa); color: #06210f; }
.about-below { padding: 1.3rem 1.4rem; color: #d3d9e6; font-size: .95rem; }

.form-card { padding: clamp(1.3rem, 3.5vw, 2.2rem); }
.contact-form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .85rem; font-weight: 600; color: #c9d0de; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-size: 16px; /* voorkomt inzoomen op iPhone */
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa4b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; }
.field select option { background: var(--surface-solid); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(0, 0, 0, .4); box-shadow: 0 0 0 3px rgba(240, 168, 60, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.extra-fields { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.extra-fields[open] { display: grid; gap: 1rem; }
.extra-fields summary { cursor: pointer; color: var(--muted); font-size: .92rem; font-weight: 500; }
.extra-fields summary:hover { color: var(--text); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; }
.alert .ic { width: 24px; height: 24px; margin-top: .1rem; }
.alert-ok { background: rgba(60, 207, 124, .12); border: 1px solid rgba(60, 207, 124, .45); }
.alert-ok .ic { color: var(--green); }
.alert-err { background: rgba(255, 77, 61, .12); border: 1px solid rgba(255, 77, 61, .45); }
.alert-err .ic { color: var(--red); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Detailpagina ---------- */
.detail-top { padding-top: calc(var(--header-h) + 2rem); }
.crumbs { margin-bottom: 1.4rem; }
.crumbs a { display: inline-flex; align-items: center; gap: .5em; color: var(--muted); font-weight: 500; transition: color .2s, gap .2s; }
.crumbs a:hover { color: var(--text); gap: .75em; }
.detail-head h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin-bottom: .6rem; }
.detail-head { margin-bottom: 1.8rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.detail-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.price-card { padding: 1.6rem; }
.price-card .muted.small { text-transform: uppercase; letter-spacing: .14em; margin-bottom: .2rem; }
.price-big { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: 1rem; }
.nap-line { display: flex; gap: .7rem; align-items: center; font-size: .88rem; color: #cfd6e3; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.cta-stack { display: grid; gap: .65rem; }

.tabs { display: inline-flex; gap: .35rem; padding: .35rem; margin-bottom: 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1.1em; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; transition: all .2s; }
.tab.is-active { background: var(--accent); color: var(--accent-ink); }

.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #0b0f17; border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .5s var(--ease), transform .8s var(--ease); cursor: zoom-in; }
.gallery-img.is-active { opacity: 1; transform: none; z-index: 1; }
.status-verkocht .gallery-img, .page-detail .is-sold .gallery-img { filter: grayscale(.6); }
.gal-nav, .gal-zoom {
  position: absolute; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(10, 13, 20, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s;
}
.gal-nav:hover, .gal-zoom:hover { background: var(--accent); color: var(--accent-ink); }
.gal-nav .ic, .gal-zoom .ic { width: 22px; height: 22px; }
.gal-nav.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.gal-nav.next { right: 14px; top: 50%; transform: translateY(-50%); }
.gal-zoom { right: 14px; top: 14px; width: 40px; height: 40px; }
.gal-zoom .ic { width: 18px; height: 18px; }
.gal-count { position: absolute; z-index: 3; left: 14px; bottom: 14px; padding: .3em .8em; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .85rem; font-weight: 600; }
.status-ribbon { position: absolute; z-index: 3; top: 22px; left: -46px; width: 200px; text-align: center; transform: rotate(-35deg); padding: .45em 0; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; box-shadow: 0 6px 20px -6px #000; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.thumb { flex: none; width: 104px; aspect-ratio: 4 / 3; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: none; opacity: .55; transition: opacity .2s, border-color .2s; scroll-snap-align: start; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; }
.thumb.is-active { opacity: 1; border-color: var(--accent); }
.no-photo-lg { display: block; }
.video-panel { display: grid; gap: 1rem; }
.video-panel video { width: 100%; border-radius: var(--radius); background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
[hidden] { display: none !important; }

.detail-info { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(1rem, 2.5vw, 2rem); }
.detail-info > .glass { padding: clamp(1.3rem, 3vw, 2rem); }
.detail-info .rich { color: #d3d9e6; }
.spec-table { margin: 0; display: grid; }
.spec-table div { display: grid; grid-template-columns: minmax(130px, 45%) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec-table div:last-child { border-bottom: 0; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 600; }

.mobile-cta { display: none; }

@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
  .detail-info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .gal-nav { width: 40px; height: 40px; }
  .gal-nav.prev { left: 8px; } .gal-nav.next { right: 8px; }
  .thumb { width: 84px; }
  .gallery-main { border-radius: var(--radius-sm); }
  .page-detail .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .mobile-cta {
    display: flex; align-items: center; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 13, 20, .92); border-top: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta > div { flex: 1; min-width: 0; line-height: 1.2; }
  .mobile-cta small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-cta strong { font-family: var(--font-head); color: var(--accent); font-size: 1.2rem; }
  .to-top { display: none !important; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 6, 10, .95); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; animation: fadeIn .25s; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px -20px #000; user-select: none; -webkit-user-select: none; }
.lb-close, .lb-nav { position: absolute; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: var(--accent-ink); }
.lb-close .ic, .lb-nav .ic { width: 24px; height: 24px; }
.lb-close { top: calc(1rem + env(safe-area-inset-top)); right: 1rem; }
.lb-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(1.2rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .lightbox { padding: 4rem .5rem; } .lb-nav { width: 44px; height: 44px; background: rgba(0, 0, 0, .5); } .lb-nav.prev { left: .5rem; } .lb-nav.next { right: .5rem; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body.lb-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(6, 8, 13, .92); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-logos { display: flex; gap: .2rem; margin-bottom: 1rem; }
.footer-logos img { height: 52px; width: auto; }
.footer-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: .3rem; }
.footer-head { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); margin-bottom: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .55em; color: #cfd5e1; transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-links .ic { width: 16px; height: 16px; color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.4rem; color: var(--muted); font-size: .85rem; }
.webmaster a { color: var(--accent-2); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom)); z-index: 30;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(240, 168, 60, .8);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top .ic { transform: rotate(90deg); width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animaties bij scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .bg, .site-header, .site-footer, .mobile-cta, .to-top, .toolbar, .gal-nav, .gal-zoom, .cta-stack, .tabs, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .glass, .car-card { background: #fff; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none; }
  .js .reveal { opacity: 1; transform: none; }
}
