/* ==========================================================================
   Detailing Dijkhuizen
   Kleuren komen uit het logo: zwart, wit en cyaanblauw.
   ========================================================================== */

:root {
  /* Lettertype: vervang door het font van ovanta.nl (zie header.php) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #06080b;
  --surface: #0c1117;
  --surface-2: #121a23;
  --line: #1e2b38;
  --text: #f4f8fb;
  --muted: #94a5b5;
  --cyan: #1ec8ff;
  --blue: #0a84e8;
  --grad: linear-gradient(100deg, var(--cyan), var(--blue));

  --radius: 14px;
  --maxw: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cyan); color: #00131c; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- Voortgangsbalk ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem var(--pad);
  background: rgba(6, 8, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.brand img { height: 3.4rem; width: auto; mix-blend-mode: lighten; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--muted);
  position: relative; padding: .25rem 0; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform .3s, top .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #00131c; font: inherit; font-weight: 800; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(30, 200, 255, .5);
  transition: transform .2s, box-shadow .3s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(30, 200, 255, .55); }
.btn:active { transform: translateY(0); }
.btn:disabled { filter: grayscale(.6); cursor: progress; transform: none; }
.btn--sm { padding: .6rem 1.2rem; font-size: .95rem; }
.btn--ghost {
  background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--cyan); }

/* ---------- Secties ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}
.section h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; max-width: 18ch; margin-bottom: 2.5rem; }
.section--panel {
  max-width: none; background: var(--surface);
  border-block: 1px solid var(--line);
}
.section--panel > * { max-width: var(--maxw); margin-inline: auto; }
.section--panel > h2 { margin-bottom: 2.5rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 900; margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fff 30%, #b9e9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 34ch; animation: rise .9s .12s cubic-bezier(.2, .8, .2, 1) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; animation: rise .9s .24s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sleep-om-schoon */
.wipe { position: relative; }
.wipe__stage {
  position: relative; aspect-ratio: 8 / 5; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(30, 200, 255, .22), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(10, 132, 232, .45);
}
.wipe__layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 4%; }
.wipe__layer--clean { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.wipe__layer svg { width: 100%; height: auto; }
.wipe__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--cyan); box-shadow: 0 0 24px 2px rgba(30, 200, 255, .7); pointer-events: none;
}
.wipe__handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan);
  display: grid; place-items: center;
}
.wipe__handle span::before { content: "◂ ▸"; color: var(--cyan); font-size: .8rem; letter-spacing: .15em; }
.wipe__tag {
  position: absolute; bottom: 1rem; padding: .25rem .8rem; border-radius: 999px;
  background: rgba(6, 8, 11, .7); font-size: .85rem; font-weight: 700;
}
.wipe__tag--l { left: 1rem; color: var(--cyan); }
.wipe__tag--r { right: 1rem; color: var(--muted); }
.wipe__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.wipe:focus-within .wipe__stage { outline: 3px solid var(--cyan); outline-offset: 4px; }

/* Auto-tekening */
.car__shadow { fill: rgba(0, 0, 0, .55); }
.car__wheel circle:first-child { fill: #05070a; }
.car__hub { fill: #2b3946; }
.car--clean .car__body { fill: #0a1017; }
.car--clean .car__glass { fill: #14324a; }
.car--clean .car__line { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.car--clean .car__rim { fill: none; stroke: var(--cyan); stroke-width: 3; filter: drop-shadow(0 0 8px rgba(30, 200, 255, .8)); }
.car--clean .car__hub { fill: var(--cyan); }
.car--clean .car__sheen { animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { transform: skewX(-22deg) translateX(0); } 100% { transform: skewX(-22deg) translateX(780px); } }
.car--dirty .car__body { fill: #3b352d; }
.car--dirty .car__glass { fill: #4a4a42; }
.car--dirty .car__line { fill: none; stroke: rgba(0, 0, 0, .3); stroke-width: 2; }
.car--dirty .car__wheel circle:first-child { fill: #1a1712; }

/* ---------- Tabs en checklist ---------- */
.tabs__list { display: inline-flex; padding: .3rem; gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.75rem; }
.tabs__list button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700;
  padding: .7rem 1.8rem; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s;
}
.tabs__list button[aria-selected="true"] { background: var(--grad); color: #00131c; }
.tabs__lead { color: var(--muted); max-width: 52ch; }

.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; max-width: 760px; }
.checks label {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s;
}
.checks label:hover { border-color: var(--cyan); transform: translateX(4px); }
.checks input { position: absolute; opacity: 0; }
.checks span { position: relative; padding-left: 2.2rem; }
.checks span::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.4rem; height: 1.4rem;
  border: 2px solid var(--line); border-radius: 50%; transition: all .2s;
}
.checks span::after {
  content: ""; position: absolute; left: .5rem; top: .45em; width: .4rem; height: .75rem;
  border: solid #00131c; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .2s;
}
.checks label:has(input:checked) { border-color: var(--cyan); background: var(--surface-2); }
.checks input:checked + span::before { background: var(--grad); border-color: transparent; }
.checks input:checked + span::after { transform: rotate(45deg) scale(1); }
.checks input:focus-visible + span::before { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Pakketkiezer ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.builder fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.builder legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.choice-grid--stack { grid-template-columns: 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__body {
  display: flex; flex-direction: column; gap: .25rem; height: 100%;
  padding: 1.1rem 1.2rem; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .2s, box-shadow .3s, transform .2s;
}
.choice--line .choice__body { flex-direction: row; justify-content: space-between; align-items: center; }
.choice small { color: var(--muted); line-height: 1.4; }
.choice:hover .choice__body { border-color: #2f4a60; transform: translateY(-2px); }
.choice input:checked + .choice__body { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(30, 200, 255, .14), 0 12px 30px -14px rgba(30, 200, 255, .5); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--cyan); outline-offset: 3px; }

.summary {
  position: sticky; top: 6rem; padding: 1.75rem; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--line);
}
.summary h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.summary__text { color: var(--muted); min-height: 4.5em; }
.summary__price { display: flex; align-items: baseline; gap: .6rem; margin: 1.25rem 0 .5rem; }
.summary__price span { color: var(--muted); font-weight: 600; }
.summary__price output { font-size: 3rem; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.summary__note { font-size: .88rem; color: var(--muted); }
.summary .btn { width: 100%; margin-top: .5rem; }

/* ---------- Werkwijze ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #00131c; background: var(--grad); z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 1.45rem; left: 3.2rem; right: -1.5rem; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; }
.field:nth-of-type(n+6) { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 1rem .6rem; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field label {
  position: absolute; left: 1rem; top: 1rem; color: var(--muted); pointer-events: none;
  transition: transform .2s, color .2s; transform-origin: 0 0;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(30, 200, 255, .14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-.7rem) scale(.78); color: var(--cyan);
}
.field.is-invalid input { border-color: #ff5d6c; }
.hp { position: absolute; left: -9999px; }
.form .btn, .form__status { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form__status.is-ok { color: #4be0a0; }
.form__status.is-err { color: #ff8793; }

.visit { padding: 1.75rem; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); }
.visit h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.visit address { font-style: normal; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.link { font-weight: 700; text-decoration: none; background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 100% 2px no-repeat; transition: background-size .25s, color .2s; }
.link:hover { background-size: 100% 100%; color: #00131c; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 3.5rem var(--pad) 3rem; color: var(--muted); }
.site-footer__slogan { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.site-footer__small { font-size: .9rem; }

/* ---------- Reveal bij scrollen (alleen tonen als JS actief is) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .builder, .contact { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 4.4rem; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--pad) 1.5rem; background: rgba(6, 8, 11, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: .9rem 0; font-size: 1.15rem; }
  .nav .btn { margin-top: .75rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
