/* 3M Motors — stijlen (basis overgenomen van het originele garage-ontwerp) */

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', system-ui, sans-serif; background:#050505; color:#fff; }
.font-display { font-family: 'Manrope', 'Inter', sans-serif; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

.reveal { opacity:0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform: translateY(0); }

.glass { background: rgba(10,10,10,.55); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); }
.glass-light { background: rgba(255,255,255,.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); }

.hero-bg {
  background-color: #050505;
  background-image:
    /* lisibilité du titre à gauche */
    linear-gradient(90deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.25) 35%, rgba(5,5,5,0) 60%),
    /* haut lisible, puis fondu progressif vers le noir en bas */
    linear-gradient(180deg, rgba(5,5,5,.30) 0%, rgba(5,5,5,.10) 20%, rgba(5,5,5,.18) 40%, rgba(5,5,5,.42) 55%, rgba(5,5,5,.68) 67%, rgba(5,5,5,.86) 78%, rgba(5,5,5,.96) 88%, #050505 95%),
    url('../img/hero-premier.webp');
  background-size: cover;
  background-position: 62% 30%;
}
/* Téléphone : cadrer la Mercedes plutôt que le ciel. */
@media (max-width: 1023px) { .hero-bg { background-position: 0 0, 0 0, 47% 42%; } }
/* Grand écran : image remontée (logo Mercedes juste au-dessus du « 100% ») ; le vide en bas est noyé dans le noir. */
@media (min-width: 1024px) {
  .hero-bg { background-size: 100% 100%, 100% 100%, auto 105%; background-position: 0 0, 0 0, 70% -130px; }
}

.metal-line { height:1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14) 25%, rgba(201,0,43,.55) 50%, rgba(255,255,255,.14) 75%, transparent); }

/* Rood metallic accent (herhaald in kleine details) */
:root { --red-metal: linear-gradient(90deg, #6d0a18 0%, #c9002b 35%, #ff6b7f 52%, #b1001f 68%, #5a0712 100%); }
.red-bar { display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--red-metal); box-shadow: 0 0 10px rgba(201,0,43,.45); }
.red-metal-text { background: linear-gradient(180deg, #ff8a9a 0%, #e0203f 45%, #8a0019 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.red-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a9a, #c9002b 60%, #6d0a18); box-shadow: 0 0 8px rgba(201,0,43,.6); }

.hero-stats > .hero-stat { position: relative; padding: 0 .75rem; }
.hero-stats > .hero-stat:first-child { padding-left: 0; }
.hero-stats > .hero-stat + .hero-stat::before {
  content: ""; position: absolute; left: 0; top: 4%; bottom: 4%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,0,43,.8) 30%, rgba(255,107,127,.9) 50%, rgba(201,0,43,.8) 70%, transparent);
}
.hero-stat .red-bar { margin: .7rem 0 .55rem; }
.hero-stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.5); }
@media (min-width: 640px) {
  .hero-stats > .hero-stat { padding: 0 1.5rem; }
  .hero-stat-label { font-size: 11px; letter-spacing: .2em; }
}
.metal-text {
  background: linear-gradient(180deg,#fff 0%,#cfcfcf 50%,#8a8a8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tilt { transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s; }
.tilt:hover { transform: translateY(-6px); }

@keyframes marquee { from {transform: translate3d(0,0,0)} to {transform: translate3d(-50%,0,0)} }
.marquee-track { animation: marquee 40s linear infinite; will-change: transform; }

.noise::before {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/></svg>");
  mix-blend-mode: overlay;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background:#0a0a0a; }
::-webkit-scrollbar-thumb { background:#222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background:#333; }

.nav-link { position: relative; }
.nav-link::after {
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px;
  background: var(--red-metal); transition: width .35s ease;
}
.nav-link:hover::after { width:100%; }

.ring-glow { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 80px -20px rgba(210,35,42,.25); }

.btn-primary {
  background: linear-gradient(180deg,#fff,#e5e5e5); color:#0a0a0a;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, opacity .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(255,255,255,.25); }
.btn-primary:disabled { opacity: .45; transform: none; box-shadow: none; cursor: not-allowed; }

.btn-ghost { border: 1px solid rgba(255,255,255,.18); transition: border-color .25s, background .25s, transform .25s; }
.btn-ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); transform: translateY(-2px); }

.kicker {
  display:inline-flex; flex-direction: column; align-items:stretch; gap:.6rem;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: #b9b9b9;
}
/* trait sur toute la largeur du texte (sans l'espacement final de la dernière lettre) */
.kicker::after { content:""; height:1px; margin-right:.28em; background: var(--red-metal); }

.vcard img, .vcard svg { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.vcard:hover img, .vcard:hover svg { transform: scale(1.06); }
.vcard { position: relative; }
.vcard::after {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--red-metal); transform: scaleX(.18); transform-origin: left; opacity: .85;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.vcard:hover::after { transform: scaleX(1); }

/* ============ Waardebepaling ============ */
.field-label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .5rem; }
.field {
  width: 100%; height: 54px; padding: 0 1rem; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 1rem;
  transition: border-color .2s, background-color .2s;
}
.field::placeholder { color: rgba(255,255,255,.3); }
.field:hover { border-color: rgba(255,255,255,.25); }
.field:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.07); }
.field:disabled { opacity: .4; cursor: not-allowed; }
.field.has-error { border-color: #e5484d; }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.8'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
select.field option { background: #111; color: #fff; }

/* Compacte keuzelijst (vervangt de native select-popup) */
.dd { position: relative; }
.dd-native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; cursor: pointer; }
.dd-btn.is-placeholder .dd-value { color: rgba(255,255,255,.55); }
.dd-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-chevron { width: 18px; height: 18px; flex-shrink: 0; color: rgba(255,255,255,.6); transition: transform .25s ease; }
.dd.is-open .dd-chevron { transform: rotate(180deg); color: #fff; }
.dd.is-open .dd-btn { border-color: rgba(255,255,255,.6); }
.dd-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: .35rem;
  max-height: 240px; overflow-y: auto; overscroll-behavior: contain; list-style: none;
  background: #121213; border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.85);
  animation: dd-in .16s ease-out;
}
.dd.dd-up .dd-list { top: auto; bottom: calc(100% + 6px); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-item {
  position: relative; padding: .5rem .8rem .5rem 1rem; border-radius: 8px; font-size: .9rem; line-height: 1.25;
  color: rgba(255,255,255,.78); cursor: pointer; user-select: none;
}
.dd-item.is-active { background: rgba(255,255,255,.07); color: #fff; }
.dd-item.is-selected { color: #fff; font-weight: 500; }
.dd-item.is-selected::before {
  content: ""; position: absolute; left: .35rem; top: 25%; bottom: 25%; width: 2px; border-radius: 2px; background: var(--red-metal);
}
.dd-list::-webkit-scrollbar { width: 6px; }
.dd-list::-webkit-scrollbar-track { background: transparent; }
.dd-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }

.seg { display: grid; gap: .5rem; }
.seg button {
  min-height: 46px; padding: .6rem .75rem; border-radius: 10px; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: rgba(255,255,255,.8);
  transition: border-color .2s, background-color .2s, color .2s;
}
.seg button:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.seg button.is-selected { background: #fff; color: #0a0a0a; border-color: #fff; font-weight: 500; }
.seg.has-error button { border-color: rgba(229,72,77,.6); }

.form-error { color: #ff8589; font-size: .85rem; min-height: 1.2rem; }

.tax-step { transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.tax-step.entering { opacity: 0; transform: translateY(10px); }

.tax-dots span { width: 22px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); transition: background-color .3s; }
.tax-dots span.on { background: var(--red-metal); box-shadow: 0 0 8px rgba(201,0,43,.5); }

.loader { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contactvenster */
.modal { transition: opacity .3s ease; }
.modal.is-hidden { opacity: 0; pointer-events: none; }
.modal-panel { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.modal.is-hidden .modal-panel { transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .tax-step, .modal, .modal-panel { transition: none; }
}

/* ============ Vlotheid ============ */
/* Ankers : rekening houden met de vaste header */
section[id], footer[id], #taxatie { scroll-margin-top: 88px; }

/* Hero-gloed : radiale verloop in plaats van een zware blur-filter */
.hero-glow { position: absolute; pointer-events: none; border-radius: 50%; }
.hero-glow-red { top: -10rem; left: -10rem; width: 40rem; height: 40rem; background: radial-gradient(closest-side, rgba(210,35,42,.12), transparent); }
.hero-glow-white { bottom: 0; right: 0; width: 40rem; height: 40rem; background: radial-gradient(closest-side, rgba(255,255,255,.05), transparent); }

/* Onderaan scrollen niet vertragen door de rest van de pagina */
.vcard img, .vs-tile img { backface-visibility: hidden; }

/* Mobiel : zware effecten afbouwen (blur achter elementen, korrel-overlay) */
@media (max-width: 767px) {
  .noise::before { display: none; }
  .glass { background: rgba(10,10,10,.92); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass-light { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.05); }
  .vs-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17,17,17,.9); }
  .vs-tag, .vs-hint { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5,5,5,.8); }
  .tilt:hover, .vs-card:hover { transform: none; }
}

/* ============ Keuring ============ */
.keuring-section { background: #050505; }
.keuring-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url('../img/keuring-garage.webp?v=2') left center / cover no-repeat;
}
.keuring-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #050505 0%, transparent 14%, transparent 84%, #050505 100%); }
.keuring-index {
  flex-shrink: 0; min-width: 2.6rem; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(180deg, #f5f5f5 0%, #8a8a8a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.keuring-card { position: relative; overflow: hidden; }
.keuring-card::before { content: ""; position: absolute; left: 0; top: 1.75rem; bottom: 1.75rem; width: 2px; border-radius: 2px; background: var(--red-metal); opacity: .9; }
.keuring-card { background: rgba(17,17,17,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-link.is-active::after { width: 100%; }
@media (max-width: 1023px) {
  .keuring-bg { opacity: .45; background-position: 12% center; }
}
@media (max-width: 767px) { .keuring-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17,17,17,.94); } }

/* Belknop : rood metallic accent */
.btn-call {
  background: linear-gradient(180deg, #e0203f 0%, #b1001f 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn-call:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 34px -14px rgba(201,0,43,.7); }
.btn-call svg { flex-shrink: 0; display: block; }
