/*
 * RB Wheels · Avondshowroom
 * Designsysteem: zie DESIGN.md in de projectmap.
 * Kay-Webmedia
 */

:root {
	--groen: #4cae32;
	--groen-diep: #3c9226;
	--groen-licht: #6fd14f;
	--blauw: #27aac2;
	--blauw-licht: #4fc3dd;
	--bg: #0d171e;
	--vlak: #132029;
	--vlak-hoog: #162634;
	--sectie: #101c25;
	--diepst: #08111a;
	--ink: #e9eff2;
	--ink-2: #b9c6cd;
	--ink-3: #8ba0aa;
	--lijn: rgba(255, 255, 255, .1);
	--oranje: #e8930c;
	--rood: #d64545;
	--r: 16px;
	--schaduw: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .55);
	--schaduw-h: 0 2px 6px rgba(0, 0, 0, .35), 0 22px 50px -14px rgba(0, 0, 0, .7);
	--font: "Plus Jakarta Sans", system-ui, sans-serif;
	color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.smal { max-width: 760px; }
section { padding: 88px 0; }
.sectiekop { max-width: 640px; margin-bottom: 44px; }
.sectiekop p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* Knoppen */
.knop { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 15px; padding: 14px 26px; border-radius: 999px; transition: .22s; white-space: nowrap; }
.knop svg { width: 17px; height: 17px; flex: none; }
.knop::after { content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); }
.knop:hover::after { animation: glans .7s ease; }
@keyframes glans { to { left: 170%; } }
.knop:active { transform: scale(.97); }
.knop-groen { background: var(--groen); color: #fff; box-shadow: 0 6px 18px -6px rgba(76, 174, 50, .55); }
.knop-groen:hover { background: var(--groen-diep); transform: translateY(-1px); }
.knop-donker { background: var(--ink); color: var(--bg); }
.knop-donker:hover { background: #fff; transform: translateY(-1px); }
.knop-licht { background: transparent; color: var(--ink); border: 1.5px solid var(--lijn); }
.knop-licht:hover { border-color: var(--blauw); color: var(--blauw-licht); }

/* Leeslat */
.leeslat { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80; background: linear-gradient(90deg, var(--groen), var(--blauw)); transition: width .15s linear; }

/* Topbalk */
.topbar { background: var(--diepst); color: var(--ink-3); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a:hover { color: #fff; }
.topbar .rechts { display: flex; gap: 22px; }
.top-open .bol { width: 7px; height: 7px; border-radius: 50%; background: var(--groen); display: inline-block; box-shadow: 0 0 0 3px rgba(76, 174, 50, .25); }
.top-open.dicht .bol { background: var(--rood); box-shadow: 0 0 0 3px rgba(214, 69, 69, .25); }

/* Sitekop */
#sitekop { position: sticky; top: 0; z-index: 60; background: rgba(13, 23, 30, .88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: .25s; }
#sitekop.doorzichtig { background: transparent; backdrop-filter: none; }
#sitekop.vast { background: rgba(13, 23, 30, .9); backdrop-filter: blur(12px); border-bottom-color: var(--lijn); box-shadow: 0 4px 24px -12px rgba(0, 0, 0, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo img, .logo .sitelogo, .custom-logo { max-height: 48px; width: auto; }
.logotekst { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.menu { display: flex; gap: 30px; font-weight: 600; font-size: 15px; }
.menu a { position: relative; padding: 6px 0; color: var(--ink-2); transition: .2s; }
.menu a:hover, .menu .current-menu-item a { color: #fff; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2.5px; border-radius: 999px; background: var(--groen); transition: .25s; }
.menu a:hover::after, .menu .current-menu-item a::after { width: 100%; }
.nav-acties { display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 999px; }
.mobielmenu { display: none; background: var(--vlak); border-top: 1px solid var(--lijn); padding: 10px 24px 22px; }
.mobielmenu.open { display: block; }
.mobiellijst a, .mobielbellen { display: block; padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--lijn); color: var(--ink-2); }
.mobielbellen { color: var(--groen-licht); font-weight: 800; border: none; }

/* Openingsbanner */
.hero.banner { position: relative; padding: 0; min-height: 620px; height: 80vh; max-height: 840px; display: flex; align-items: center; overflow: hidden; }
.banner-achtergrond { position: absolute; inset: 0; }
.banner-achtergrond .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.banner-achtergrond .slide.actief { opacity: 1; }
.banner-achtergrond .slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-achtergrond .slide.leeg { background: radial-gradient(circle at 70% 30%, rgba(76, 174, 50, .18), transparent 60%), var(--sectie); }
.slide.actief img { animation: fotozoom 6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fotozoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 26, .93) 0%, rgba(8, 17, 26, .74) 34%, rgba(8, 17, 26, .28) 66%, rgba(8, 17, 26, .42) 100%), linear-gradient(0deg, rgba(8, 17, 26, .88) 0%, transparent 32%); }
.hero.banner .wrap { position: relative; z-index: 2; width: 100%; }
.banner-inhoud { max-width: 660px; }
.banner-inhoud h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; margin-bottom: 18px; animation: instap .7s ease .05s both; }
.banner-inhoud h1 em { font-style: normal; color: var(--groen-licht); }
.banner-inhoud .sub { font-size: 18px; color: var(--ink-2); margin-bottom: 28px; animation: instap .7s ease .18s both; }
.banner-inhoud .acties { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; animation: instap .7s ease .3s both; }
.usps { display: flex; flex-wrap: wrap; gap: 10px 26px; animation: instap .7s ease .42s both; }
.usps li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.usps li::before { content: "✓"; color: var(--groen-licht); font-weight: 800; }
@keyframes instap { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.banner-bediening { position: absolute; z-index: 3; right: 44px; bottom: 36px; display: flex; align-items: center; gap: 16px; }
.slidepijl { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; transition: background .2s; backdrop-filter: blur(4px); }
.slidepijl:hover { background: var(--groen); border-color: var(--groen); }
.slidepijl svg { width: 18px; height: 18px; }
.slidedots { display: flex; gap: 8px; }
.slidedots button { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: .25s; padding: 0; }
.slidedots button:hover { background: rgba(255, 255, 255, .75); }
.slidedots button.actief { background: #fff; width: 24px; }

/* Categorieën */
.cats { background: var(--sectie); }
.cat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cat-grid .cat { flex: 0 0 calc((100% - 44px) / 3); }
.cat { position: relative; border: 1px solid var(--lijn); border-radius: var(--r); background: var(--vlak); padding: 26px; min-height: 172px; display: flex; flex-direction: column; transition: .28s; }
.cat:hover { transform: translateY(-5px); box-shadow: var(--schaduw-h); }
.cat h3 { font-size: 18px; font-weight: 800; padding-right: 44px; }
.cat p { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.cat .aantal { margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 700; color: var(--groen-licht); }
.cat .pijl { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 1px solid var(--lijn); display: grid; place-items: center; transition: .28s; color: var(--ink-2); }
.cat:hover .pijl { background: var(--groen); border-color: var(--groen); color: #fff; transform: rotate(-45deg); }
.cat .pijl svg { width: 16px; height: 16px; }

/* Voertuigkaarten */
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vcard { background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--r); overflow: hidden; transition: .28s; }
.vcard:hover { transform: translateY(-5px); box-shadow: var(--schaduw-h); }
.vlink { display: flex; flex-direction: column; height: 100%; }
.vfoto { position: relative; background: var(--bg); border-bottom: 1px solid var(--lijn); height: 230px; padding: 50px 20px 18px; display: grid; place-items: center; overflow: hidden; }
.vfoto img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; transition: .34s; }
.vcard:hover .vfoto img { transform: scale(1.05); }
.vcard.is-verkocht .vfoto img { filter: grayscale(.75); opacity: .8; }
.geenfoto { width: 80px; height: 80px; border-radius: 20px; background: var(--vlak); border: 1px solid var(--lijn); }
.status { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 6px 13px; border-radius: 999px; color: #fff; text-transform: uppercase; background: var(--ink-3); }
.st-te-koop { background: var(--groen); }
.st-binnenkort { background: var(--blauw); }
.st-gereserveerd { background: var(--oranje); }
.st-verkocht { background: var(--ink-3); }
.vinfo { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.vmerk { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blauw-licht); }
.vinfo h3 { font-size: 18px; font-weight: 800; margin: 3px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chips span { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--lijn); padding: 4px 11px; border-radius: 999px; }
.vprijs { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--lijn); padding-top: 15px; }
.vprijs .p { font-size: 21px; font-weight: 800; }
.vprijs .p small { font-size: 13px; font-weight: 600; color: var(--ink-3); display: block; }
.vprijs .bekijk { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--groen-licht); }
.vprijs .bekijk svg { width: 15px; height: 15px; transition: .2s; }
.vcard:hover .bekijk svg { transform: translateX(4px); }
.aanbod-voet { text-align: center; margin-top: 44px; }

/* Aanbod-archief */
.pagina-kop { padding: 72px 0 0; }
.pagina-kop p { color: var(--ink-2); margin-top: 10px; }
.aanbod.archief { padding-top: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.filter { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--vlak); border: 1.5px solid var(--lijn); color: var(--ink-2); transition: .2s; }
.filter:hover { border-color: var(--groen); color: var(--groen-licht); }
.filter.actief { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.leegmelding { color: var(--ink-2); }
.paginering { margin-top: 44px; text-align: center; }
.paginering .nav-links { display: inline-flex; gap: 8px; }
.paginering a, .paginering span.current { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--lijn); font-weight: 700; font-size: 14px; }
.paginering span.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Service */
.service { background: var(--sectie); }
.s-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.scard { border: 1px solid var(--lijn); border-radius: var(--r); padding: 28px 26px; background: var(--bg); transition: .28s; }
.scard:hover { transform: translateY(-5px); box-shadow: var(--schaduw-h); background: var(--vlak-hoog); }
.scard h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.scard p { font-size: 15px; color: var(--ink-2); }
.scard .prijsje { display: inline-block; margin-top: 13px; font-size: 13px; font-weight: 700; color: var(--groen-licht); background: rgba(76, 174, 50, .14); padding: 5px 12px; border-radius: 999px; }

.s-knoppen { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* Merkenloop */
.merken { padding: 56px 0; border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); background: var(--sectie); }
.merken p { text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 26px; }
.merkenrij { overflow: hidden; display: flex; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.merkenloop { display: flex; gap: 48px; width: max-content; padding-right: 48px; animation: merkloop 40s linear infinite; }
.merkenrij:hover .merkenloop { animation-play-state: paused; }
.merkenrij + .merkenlabel, .merken .merkenlabel { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.merkenrij { margin-bottom: 30px; }
.merkenrij:last-child { margin-bottom: 0; }
.merkenloop.omgekeerd { animation-direction: reverse; }
.merkenloop span { font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: #7d929d; transition: .25s; white-space: nowrap; }
.merkenloop span:hover { color: #fff; }
@keyframes merkloop { to { transform: translateX(-50%); } }

/* Contactblok */
.contactblok { background: linear-gradient(135deg, var(--sectie) 0%, #16303c 100%); border-top: 1px solid var(--lijn); }
.contactblok .binnen { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contactblok h2 { margin-bottom: 14px; }
.contactblok .binnen > div > p { color: var(--ink-2); margin-bottom: 26px; max-width: 46ch; }
.gegevens li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--lijn); font-size: 15px; }
.gegevens b { font-weight: 800; }
.gegevens span { color: var(--ink-2); text-align: right; }
.belkaart { background: var(--vlak); border: 1px solid var(--lijn); border-radius: 22px; padding: 34px; box-shadow: var(--schaduw-h); }
.belkaart h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.belkaart .nb { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.belknop { width: 100%; justify-content: center; padding: 17px; font-size: 16px; margin-bottom: 12px; border-radius: 16px; }
.belnoot { font-size: 13px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* Voertuigdetail */
.voertuig-detail { padding: 48px 0 88px; }
.kruimelpad { font-size: 13.5px; color: var(--ink-3); margin-bottom: 28px; }
.kruimelpad a:hover { color: var(--groen-licht); }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.hoofdfoto { position: relative; background: var(--bg); border-radius: var(--r); padding: 56px 28px 28px; display: grid; place-items: center; min-height: 380px; border: 1px solid var(--lijn); }
.hoofdfoto img { max-height: 420px; width: auto; object-fit: contain; }
.hoofdfoto.is-verkocht img { filter: grayscale(.75); opacity: .8; }
.fotorij { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.fotorij img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--lijn); transition: .2s; display: block; }
.fotorij .fotoduim { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.fotorij .fotoduim:hover img { transform: translateY(-3px); }
.fotorij .fotoduim.actief img { border: 2px solid var(--groen); }

/* Fotoslider op de voertuigpagina */
.hoofdfoto.met-slider { display: block; padding: 0; overflow: hidden; touch-action: pan-y; }
.hoofdfoto.met-slider:focus-visible { outline: 2px solid var(--groen); outline-offset: 2px; }
.foto-track { display: flex; transition: transform .35s ease; }
.hoofdfoto.met-slider .foto-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 28px 28px; min-height: 380px; }
.hoofdfoto.met-slider .foto-slide img { max-height: 420px; width: auto; object-fit: contain; }
.foto-pijl { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lijn); background: rgba(255, 255, 255, .94); color: #22333c; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; transition: .2s; z-index: 2; }
.foto-pijl:hover { background: var(--groen); border-color: var(--groen); color: #fff; }
.foto-pijl.is-vorige { left: 14px; }
.foto-pijl.is-volgende { right: 14px; }
@media (prefers-reduced-motion: reduce) { .foto-track { transition: none; } }
.detail-info h1 { font-size: clamp(26px, 3vw, 36px); margin: 4px 0 10px; }
.detail-prijs { font-size: 27px; font-weight: 800; margin-bottom: 18px; }
.detail-prijs small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-right: 8px; }
.prijsnoot { font-size: 12px; color: var(--ink-3); margin: -12px 0 18px; }
.detail-kmstand { display: inline-block; margin: 0 0 20px; padding: 11px 20px; border: 1px solid var(--lijn); border-radius: 999px; background: var(--vlak); font-size: 17px; font-weight: 800; }
.detail-kmstand small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-right: 8px; }
.detail-tekst { color: var(--ink-2); margin-bottom: 22px; max-width: 60ch; }
.detail-tekst p { margin-bottom: 12px; }
.spec-tabel { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 26px; }
.spec-tabel td { padding: 9px 0; border-bottom: 1px solid var(--lijn); }
.spec-tabel td:first-child { color: var(--ink-3); font-weight: 600; width: 45%; }
.spec-tabel td:last-child { font-weight: 700; }
.detail-knoppen { display: flex; gap: 12px; flex-wrap: wrap; }
.m-noot { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* Pagina's */
.pagina-inhoud { padding: 40px 0 88px; color: var(--ink-2); }
.pagina-inhoud h2, .pagina-inhoud h3 { color: var(--ink); margin: 26px 0 10px; }
.pagina-inhoud p { margin-bottom: 14px; }

/* Sitevoet */
footer { background: var(--diepst); color: var(--ink-3); font-size: 14.5px; }
.f-boven { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 44px; padding: 64px 0 48px; }
.f-boven .missie { max-width: 280px; line-height: 1.7; margin-top: 12px; }
.f-boven h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.f-boven li { margin-bottom: 9px; }
.f-boven a:hover { color: #fff; }
.tijdenlijst li { display: flex; justify-content: space-between; gap: 12px; }
.tijdenlijst li.vandaag { color: var(--groen-licht); font-weight: 700; }
.tijdenlijst .dicht { color: #e08a7a; font-style: normal; }
.f-boven .klein { font-size: 13px; color: #65808b; margin-top: 14px; line-height: 1.7; }
.f-onder { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #65808b; }
.f-onder .links { display: flex; gap: 10px 20px; flex-wrap: wrap; }
.f-onder a:hover { color: #fff; }

/* Responsief */
@media (max-width: 1080px) {
	.cat-grid, .v-grid { grid-template-columns: repeat(2, 1fr); }
	.cat-grid .cat { flex-basis: calc((100% - 22px) / 2); }
	.s-grid { grid-template-columns: repeat(2, 1fr); }
	.contactblok .binnen, .detail-grid { grid-template-columns: 1fr; gap: 44px; }
	.f-boven { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.menu { display: none; }
	.hamburger { display: flex; }
	.nav-acties .knop { display: none; }
	.banner-bediening { right: 18px; bottom: 18px; }
	.topbar .rechts span { display: none; }
}
@media (max-width: 640px) {
	section { padding: 64px 0; }
	.wrap { padding: 0 18px; }
	.cat-grid, .v-grid, .s-grid { grid-template-columns: 1fr; }
	.cat-grid .cat { flex-basis: 100%; }
	.hero.banner { height: auto; min-height: 0; padding: 64px 0 96px; }
	.banner-overlay { background: linear-gradient(0deg, rgba(8, 17, 26, .94) 0%, rgba(8, 17, 26, .62) 55%, rgba(8, 17, 26, .42) 100%); }
	.topbar .rechts { display: none; }
	.f-boven { grid-template-columns: 1fr; gap: 32px; }
}

/* Rustig voor wie dat wil */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.banner-achtergrond .slide { transition: none; }
	.slide.actief img, .banner-inhoud h1, .banner-inhoud .sub, .banner-inhoud .acties, .usps, .knop:hover::after { animation: none; }
	.merkenloop { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}
