/* Autoverhuur D. Spek – stylesheet
   Huisstijl-waarden staan in :root. Pas hier kleuren en lettertype aan. */
:root {
  --c-primary: #360202;       /* donker bordeaux: kopteksten, hero, footer */
  --c-primary-dark: #230101;
  --c-blob: #4d0d10;          /* decoratieve vorm in de hero */
  --c-accent: #c22a19;        /* rood: knoppen, links, accenten */
  --c-accent-dark: #a32010;
  --c-accent-light: #d6301f;  /* rood voor grote tekst op donkere achtergrond */
  --c-salmon: #f8bbb4;        /* topbalk */
  --c-green: #4ec176;         /* vinkjes */
  --c-bg: #f6f3ef;
  --c-bg-soft: #ece6df;
  --c-card: #fafafa;
  --c-text: #3b2f2a;
  --c-muted: #6b5d55;
  --c-border: #e3dbd2;
  --font-serif: Georgia, "Times New Roman", serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(54, 2, 2, .10);
  --max: 1200px;
  --header-h: 76px;
  --hero-ms: 900ms;           /* duur van de hero-overgang (JS leest deze waarde) */
  --booking-min-h: 640px;     /* minimale hoogte van de boekingsmodule zodra deze zijn hoogte meldt */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--c-primary); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.container--wide { max-width: 1600px; }
.section { padding: 64px 0; }
.section--soft { background: var(--c-bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--c-accent-dark); margin-bottom: .5em; }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 720px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: background .2s, color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-primary); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* Topbar + header */
.topbar { background: var(--c-salmon); color: var(--c-primary); font-size: .85rem; text-align: center; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); border-bottom: 1px solid var(--c-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-primary); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo img { height: 56px; width: auto; }
.logo--footer { background: var(--c-bg); border-radius: 10px; padding: 8px 10px; display: inline-flex; }
.logo__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.logo small { display: block; font-weight: 600; font-size: .7rem; color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 600; color: var(--c-text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-accent-dark); background: var(--c-bg-soft); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--c-accent-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--c-primary); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { background: var(--c-primary); color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero__grid { position: relative; }
.hero p { font-size: 1.2rem; max-width: 560px; color: #ead9d3; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero: wisselende tekst + voertuigfoto, synchroon */
.hero__title { color: #fff; font-size: clamp(2rem, 3.8vw, 2.9rem); max-width: none; margin-bottom: .5em; }
/* Alle woorden liggen op elkaar in één cel: de breedte is dus altijd die van het langste woord,
   waardoor de kop nooit van regelafbreking verandert en de pagina niet verspringt. */
.rot { display: inline-grid; vertical-align: top; }
.rot__word { grid-area: 1 / 1; white-space: nowrap; font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--c-accent-light); opacity: 0; transform: translateY(.45em); transition: opacity var(--hero-ms) ease, transform var(--hero-ms) cubic-bezier(.22, .61, .36, 1); }
.rot__word.is-active { opacity: 1; transform: none; }
.rot__word.is-leaving { opacity: 0; transform: translateY(-.45em); }
.hero__stage { position: relative; }
.hero__images { position: relative; aspect-ratio: 1000 / 640; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; transform: translateX(56px) scale(.96); transition: opacity var(--hero-ms) ease, transform var(--hero-ms) cubic-bezier(.22, .61, .36, 1); filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .35)); pointer-events: none; user-select: none; }
.hero__img.is-active { opacity: 1; transform: none; }
.hero__img.is-leaving { opacity: 0; transform: translateX(-56px) scale(.96); }
.hero__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(250, 250, 250, .35); cursor: pointer; transition: background .3s, transform .3s; }
.hero__dot::before { content: ""; position: absolute; inset: -9px; }
.hero__dot:hover { background: rgba(250, 250, 250, .65); }
.hero__dot.is-active { background: var(--c-salmon); transform: scale(1.3); }
.hero__pause { width: 32px; height: 32px; padding: 0; border: 1px solid rgba(250, 250, 250, .35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero__pause:hover { background: rgba(250, 250, 250, .15); }
.hero__pause-icon { width: 8px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.hero__pause.is-paused .hero__pause-icon { width: 0; height: 0; border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; margin-left: 2px; }
.hero__usps { list-style: none; margin: 40px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero__usps li { position: relative; display: flex; align-items: center; min-height: 58px; padding: 12px 16px 12px 52px; background: rgba(250, 250, 250, .07); border: 1px solid rgba(250, 250, 250, .16); border-radius: var(--radius); font-weight: 600; }
.hero__usps li::before { content: "\2713"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--c-green); color: #12361f; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }

/* Hero: aangeleverde pin achter de voertuigfoto (decoratief, rechtsboven, gedeeltelijk achter de wagen) */
.hero__copy { position: relative; z-index: 2; }
.hero__stage { isolation: isolate; }
.hero__pin { position: absolute; z-index: 0; width: 60%; height: auto; right: -4%; top: -10%; pointer-events: none; user-select: none; }
.hero__images { z-index: 1; }
.hero__controls { position: relative; z-index: 2; }

/* Elektrisch rijden begint hier */
.ev { padding: 96px 0; }
.ev__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.ev__media { position: relative; margin: 0; padding: 48px 32px 32px; border-radius: 28px; background: radial-gradient(120% 95% at 30% 15%, #5c1517 0%, #360202 72%); box-shadow: var(--shadow); overflow: hidden; }
.ev__media img { width: 100%; height: auto; }
.ev__chip { position: absolute; top: 20px; left: 20px; z-index: 1; background: var(--c-green); color: #12361f; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.ev__copy .lead { margin-bottom: .8em; }
.ev__list { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 12px; }
.ev__list li { position: relative; padding-left: 38px; font-weight: 600; color: var(--c-primary); }
.ev__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--c-green); color: #12361f; display: grid; place-items: center; font-size: .85rem; font-weight: 800; }
.ev__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Over ons: feiten naast de tekst */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stats li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(250, 250, 250, .16); }
.stats li:last-child { border-bottom: 0; }
.stats strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--c-salmon); }
.stats span { color: #ead9d3; }

/* Pagina-kop */
.page-head { background: var(--c-primary); color: #fff; padding: 48px 0; }
.page-head h1 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { margin: 0; color: #ead9d3; max-width: 720px; }

/* Booking */
.booking { padding: 24px 0 0; background: var(--c-bg-soft); }
.booking__frame { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--c-border); }
/* Vangnet tot RentVisie de eerste hoogte meldt: ruim, zodat niets wordt afgekapt */
.booking__frame iframe { display: block; width: 100%; border: 0; height: calc(100vh - var(--header-h)); min-height: 900px; background: #fff; }
/* Daarna volgt de iframe de inhoud (inline hoogte), maar nooit lager dan de minimumhoogte */
.booking__frame iframe.is-auto { min-height: var(--booking-min-h); }
.booking__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-muted); font-weight: 600; background: #fff; transition: opacity .3s; pointer-events: none; }
.booking__loading.is-hidden { opacity: 0; }
.booking__note { text-align: center; color: var(--c-muted); font-size: .9rem; padding: 14px 0 28px; }
.usps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 0 8px; }
.usps div { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 18px; font-weight: 700; color: var(--c-primary); text-align: center; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tag { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel { background: linear-gradient(135deg, var(--c-primary), #5a1414); color: #fff; border-radius: var(--radius); padding: 40px; }
.panel h3 { color: #fff; }
.panel p { color: #ead9d3; }

/* Locaties */
.hours { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .95rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--c-border); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.loc address { font-style: normal; margin-bottom: .6em; }

/* FAQ */
.faq-group { margin-bottom: 40px; }
details.faq { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--c-primary); list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-accent-dark); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq__body { padding: 0 22px 20px; color: var(--c-text); }
details.faq ul { margin: 0 0 1em; padding-left: 1.2em; }

/* Nieuws */
.news-card { display: flex; flex-direction: column; }
.news-card .eyebrow { margin-bottom: .3em; }
.news-card a.more { margin-top: auto; font-weight: 700; }

/* Voorwaarden */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal ol { padding-left: 1.4em; }
.legal li { margin-bottom: .5em; }

/* Formulier */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(194,42,25,.3); border-color: var(--c-accent); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; margin: 0; }

/* Footer */
.site-footer { background: var(--c-primary-dark); color: #dccbc4; padding: 56px 0 0; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #dccbc4; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .usps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--c-bg); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .logo img { height: 48px; }
  .section { padding: 44px 0; }
  .grid--2, .grid--3, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .booking .container { padding-inline: 8px; }
  .booking__frame { border-radius: 8px; }
  .booking__frame iframe { min-height: 1100px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 960px) {
  .hero__usps { grid-template-columns: repeat(2, 1fr); }
  .hero__stage { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero__usps { grid-template-columns: 1fr; margin-top: 28px; }
}
/* Verminderde beweging: geen schuiven, alleen een rustige fade */
@media (prefers-reduced-motion: reduce) {
  .rot__word, .hero__img { transform: none !important; transition: opacity .4s ease !important; }
}

@media (max-width: 960px) {
  .hero__pin { width: 56%; top: -8%; }
  .ev { padding: 64px 0; }
  .ev__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .hero__pin { width: 58%; top: -6%; right: -3%; }
  .ev__media { padding: 44px 16px 20px; border-radius: 22px; }
  .stats li { grid-template-columns: 84px 1fr; }
  .stats strong { font-size: 2.1rem; }
}
