:root {
  --accent: #c5222b;          /* Hartley rood */
  --accent-dark: #a61b23;
  --accent-bg: #fbeeee;
  --ink: #171a20;             /* Hartley antraciet */
  --line: #d6d6d8;
  --border: #c9c9cc;
  --text: #171a20;
  --muted: #5d5c63;
  --surface: #fff;
  --soft: #f4f4f5;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--soft);
  color: var(--text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
}

/* ---------- navigatie ---------- */
.nav { background: #0d0c0f; color: #fff; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo img { display: block; height: 58px; width: auto; }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .18);
  transition: background .15s, border-color .15s;
}
.nav-link:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .35); }
.nav-link svg { width: 16px; height: 16px; fill: currentColor; }
.nav-link.wa svg { fill: #25d366; }
@media (max-width: 560px) { .nav-link span { display: none; } .nav-link { padding: 9px; } .nav-logo img { height: 48px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 72px 16px 96px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; z-index: -2; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(13 12 15 / .94) 0%, rgb(13 12 15 / .78) 45%, rgb(13 12 15 / .35) 100%),
              linear-gradient(0deg, rgb(13 12 15 / .85) 0%, transparent 40%); }
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; transform: none; } }
.hero-inner { max-width: 1120px; margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: #efa758; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.hero h1 { margin: 0 0 16px; font: 700 clamp(30px, 5vw, 52px)/1.05 Outfit, Roboto, sans-serif; letter-spacing: -.01em; max-width: 760px; }
.hero-lead { margin: 0; color: #d4d4d9; max-width: 560px; font-size: 16.5px; }
.how { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.how li {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); border-radius: 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.how b { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 600 14px Outfit, sans-serif; flex: none; }
.how span { font-size: 13px; color: #c9c9cf; line-height: 1.3; }
.how strong { display: block; color: #fff; font-size: 14px; font-weight: 500; }
@media (max-width: 560px) {
  .hero { padding: 44px 16px 80px; }
  .hero h1 br { display: none; }
  .hero-lead { font-size: 15px; }
  .how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
  .how li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
  .how span { font-size: 0; }
  .how strong { font-size: 13px; }
  .cfg-step { padding-left: 42px; }
  .cfg-num { width: 28px; height: 28px; font-size: 14px; }
  .cfg-step::before { left: 13.5px; top: 30px; }
  .cfg-opt.card .img { aspect-ratio: 16 / 7; }
  .cfg-banner { aspect-ratio: 16 / 7; }
}

/* ---------- layout ---------- */
.layout {
  max-width: 1120px; margin: -48px auto 0; padding: 0 16px 72px; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start;
}
#configurator { background: var(--surface); border-radius: 16px; padding: 36px 32px 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 40px -12px rgb(0 0 0 / .18); }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  #configurator { padding: 24px 16px 4px; }
}

/* ---------- stappenlijn ---------- */
.cfg-step { position: relative; padding-left: 52px; padding-bottom: 32px; }
.cfg-step::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 0;
  width: 1px; background: var(--line);
}
.cfg-step:last-child::before { display: none; }

.cfg-num {
  position: absolute; left: 0; top: -3px;
  width: 31px; height: 31px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 500;
  display: grid; place-items: center;
}
.cfg-title {
  margin: 0 0 14px; font: 600 19px/1.25 Outfit, Roboto, sans-serif; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.cfg-intro { margin: -6px 0 14px; font-size: 14px; color: var(--muted); }
.cfg-banner { margin: 0 0 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 5; background: var(--soft); }
.cfg-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cfg-info {
  position: relative; flex: none;
  width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0;
  background: var(--ink); color: #fff; font: italic 700 11px Georgia, serif; cursor: help;
}
.cfg-info:hover::after, .cfg-info:focus::after {
  content: attr(data-tip);
  position: absolute; left: 26px; top: -8px; width: 260px; padding: 9px 11px;
  background: var(--ink); color: #fff; font: 400 12px/1.45 Roboto, sans-serif; font-style: normal;
  border-radius: var(--radius); z-index: 5; text-align: left;
}
@media (max-width: 560px) { .cfg-info:hover::after, .cfg-info:focus::after { left: auto; right: -40px; top: 26px; width: 230px; } }

/* ---------- optie-grids ---------- */
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cfg-grid.cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.cfg-opt {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 12px 10px; text-align: center; cursor: pointer;
  font: inherit; color: var(--text);
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  transition: border-color .12s, background .12s, box-shadow .12s, transform .12s;
}
.cfg-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.cfg-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cfg-opt .lbl { font-weight: 500; font-size: 14px; }
.cfg-opt .px { font-size: 13px; color: var(--muted); }
.cfg-opt .px:empty { display: none; }
.cfg-opt.is-active { border-color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.cfg-opt.is-active .px { color: var(--accent-dark); font-weight: 500; }
.cfg-opt:disabled { opacity: .45; cursor: not-allowed; }

.cfg-opt.card { text-align: left; justify-content: flex-start; padding: 14px; overflow: hidden; }
.cfg-opt.card .img { display: block; margin: -14px -14px 8px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.cfg-opt.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cfg-opt.card:hover .img img { transform: scale(1.04); }
.cfg-opt.card:has(.img) .badge { position: absolute; top: 10px; left: 10px; margin: 0; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.cfg-opt.card.is-active:has(.img) { box-shadow: inset 0 0 0 1px var(--accent), 0 6px 18px -8px rgb(197 34 43 / .5); }
.cfg-opt.card .desc { font-size: 12.5px; color: var(--muted); }
.cfg-opt.card .desc.warn { color: var(--accent-dark); }
.cfg-opt.card .px { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--ink); font-weight: 500; }
.cfg-opt .badge {
  align-self: flex-start; font-size: 11px; font-weight: 500; letter-spacing: .02em;
  background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 8px; margin-bottom: 2px;
}
.cfg-opt.is-active .badge { background: var(--accent); }

/* ---------- select ---------- */
.cfg-select {
  width: 100%; appearance: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 36px 11px 12px; font: inherit; font-size: 14px; color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}

/* ---------- velden ---------- */
.cfg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cfg-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; }
.cfg-field.wide { grid-column: 1 / -1; }
.cfg-field i { color: var(--accent); font-style: normal; }
.cfg-field input, .cfg-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 12px; font: inherit; font-size: 15px; color: var(--text); background: #fff;
}
.cfg-field textarea { resize: vertical; }
.cfg-field input:focus, .cfg-field textarea:focus, .cfg-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(197 34 43 / .12); }
@media (max-width: 560px) { .cfg-fields { grid-template-columns: 1fr; } }

/* kenteken in NL-plaatstijl */
.cfg-lookup { display: flex; gap: 8px; }
.cfg-field input.kenteken {
  max-width: 220px; background: #f7c500; border: 2px solid #111; font-weight: 700;
  font-size: 20px; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: #111;
  padding: 8px 10px;
}
.cfg-field input.kenteken::placeholder { color: rgb(0 0 0 / .35); }
.cfg-lookup-status { font-size: 12.5px; color: var(--muted); min-height: 1em; }

/* ---------- checkboxes ---------- */
.cfg-checks { display: grid; gap: 8px; }
.cfg-checks.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cfg-check {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer; font-size: 14px; background: #fff;
}
.cfg-check:hover { border-color: var(--accent); }
.cfg-check:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.cfg-check.is-disabled { opacity: .45; cursor: not-allowed; }
.cfg-check input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; flex: none; }
.cfg-check .thumb { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex: none; }
.cfg-check .txt { display: flex; flex-direction: column; }
.cfg-check .desc { font-size: 12.5px; color: var(--muted); }
.cfg-check .px { margin-left: auto; color: var(--ink); font-weight: 500; white-space: nowrap; font-size: 13px; }

/* ---------- knoppen ---------- */
.cfg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.cfg-btn:hover { background: var(--soft); }
.cfg-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cfg-btn.primary:hover { background: var(--accent-dark); }
.cfg-btn.ghost { border-color: var(--border); }
.cfg-btn.small { padding: 6px 10px; font-size: 13px; background: var(--ink); color: #fff; }
.cfg-btn.small:hover { background: #000; }

/* ---------- samenvatting ---------- */
.summary { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; display: grid; grid-auto-rows: max-content; gap: 16px; }
.summary-card { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 40px -12px rgb(0 0 0 / .18); padding: 0 20px 20px; }
.summary-head { margin: 0 -20px 14px; padding: 18px 20px 16px; background: var(--ink); color: #fff; }
.summary h2 { margin: 0; font: 600 20px Outfit, Roboto, sans-serif; }
.summary-car { margin: 4px 0 0; font-size: 13px; color: #b9b9c0; }
.summary-lines { list-style: none; margin: 0; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-lines li small { display: block; font-size: 12px; color: var(--muted); }
.summary-lines li .px { white-space: nowrap; font-weight: 500; }
.summary-lines li.empty { color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; }
.summary-total strong { font: 700 28px Outfit, Roboto, sans-serif; color: var(--ink); }
.summary-note { margin: 0 0 16px; font-size: 12px; color: var(--muted); }

.suggestions { display: grid; gap: 10px; }
.sugg-title { margin: 4px 2px 0; font: 600 15px Outfit, Roboto, sans-serif; color: var(--ink); }
.sugg {
  display: flex; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 20px -10px rgb(0 0 0 / .2);
  animation: suggIn .25s ease-out;
}
@keyframes suggIn { from { opacity: 0; transform: translateY(4px); } }
.sugg-img { width: 92px; flex: none; object-fit: cover; align-self: stretch; }
.sugg-body { padding: 10px 12px; min-width: 0; flex: 1; border-left: 3px solid var(--accent); }
.sugg.advies .sugg-body { border-left-color: #efa758; }
.sugg.webshop .sugg-body { border-left-color: var(--ink); }
.sugg-img + .sugg-body { border-left: 0; }
.sugg-top { display: flex; justify-content: space-between; align-items: center; }
.sugg-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.sugg.advies .sugg-kind { color: #c47a1e; }
.sugg.webshop .sugg-kind { color: var(--muted); }
.sugg-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.sugg strong { display: block; font-size: 14px; margin: 2px 0; }
.sugg p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.sugg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sugg-delta { font-size: 13px; font-weight: 500; color: var(--accent-dark); }

#submit { width: 100%; padding: 14px; font-size: 15.5px; }
.summary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.summary-msg { margin: 10px 0 0; font-size: 13px; color: var(--accent-dark); min-height: 1em; }
.summary-msg:empty { display: none; }

/* ---------- over ons ---------- */
.about { background: #fff; padding: 72px 16px; }
.about-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 6 / 5; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .35); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about h2 { margin: 0 0 14px; font: 700 clamp(26px, 3.4vw, 36px)/1.1 Outfit, Roboto, sans-serif; color: var(--ink); }
.about .eyebrow { color: var(--accent); }
.about-text > p { color: var(--muted); margin: 0 0 24px; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: 14px; color: var(--muted); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-facts strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.about-facts a { color: inherit; }
.about-badge { display: block; margin-top: 24px; width: 220px; border-radius: 10px; }
@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- galerij ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); background: #0d0c0f; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: saturate(.9); transition: filter .3s; }
.gallery img:hover { filter: saturate(1.1); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.footer { background: #0d0c0f; color: #9a9aa2; padding: 28px 16px 96px; font-size: 13px; border-top: 1px solid rgb(255 255 255 / .08); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner img { height: 56px; width: auto; }
.footer-inner p { margin: 0; flex: 1; }
.footer a { color: #d4d4d9; }
.footer-back { text-decoration: none; font-weight: 500; }
@media (min-width: 921px) { .footer { padding-bottom: 28px; } }

/* ---------- mobiele balk ---------- */
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .summary { position: static; max-height: none; overflow: visible; }
  .mobile-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--ink); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar small { display: block; font-size: 11px; color: #c9c9cf; }
  .mobile-bar strong { font-size: 18px; }
}
