:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c2620;
  --muted: #646a62;
  --line: #e6ded1;
  --green: #24412f;
  --green-2: #2f5540;
  --wood: #b8763c;
  --wood-dark: #96592a;
  --wood-light: #f1e3d0;
  --ok: #2f7a4a;
  --warn: #9a5b10;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 38, 32, .06), 0 8px 24px rgba(28, 38, 32, .06);
  --illu-bg: #f3ece1;
  --illu-ground: #c9bba5;
  --illu-line: #2b3a30;
  --illu-wood: #d9a066;
  --illu-roof: #e9d9c0;
  --illu-wall: #d8cfc2;
  --illu-car: #8aa596;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
h1, h2, h3, h4 { font-family: Archivo, Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green-2); }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font: 600 .78rem/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--wood-dark); margin-bottom: 12px; }
.center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }

/* Demo + topbar */
.demo-bar { background: #fff4d6; color: #6b4d00; font-size: .8rem; text-align: center; padding: 6px 16px; }
.topbar { background: var(--green); color: #dfe8e1; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a:first-child { margin-left: 0; }

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 1.45rem/1 Archivo, sans-serif; letter-spacing: .08em; color: var(--green); text-decoration: none; }
.logo-light { color: #fff; margin-bottom: 14px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-dd > a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav > a:hover, .nav-dd > a:hover, .nav a.active { color: var(--green); background: var(--wood-light); }
.nav-dd { position: relative; }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none; }
.nav-sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.nav-sub a:hover { background: var(--bg); color: var(--green); }
.nav-dd:hover .nav-sub, .nav-dd:focus-within .nav-sub { display: block; }
.nav-cta { margin-left: 8px; }
.nav .nav-cta, .nav .nav-cta:hover { color: #fff; background: var(--wood); }
.cart-link { position: relative; color: var(--green); display: inline-flex; padding: 8px; border-radius: 10px; }
.cart-link:hover { background: var(--wood-light); }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wood); color: #fff; font: 700 .72rem/20px Inter, sans-serif; text-align: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; max-height: calc(100vh - 110px); overflow: auto; }
  .nav.open { display: flex; }
  .nav-sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 6px 12px; min-width: 0; }
  .nav-sub a { padding: 6px 12px; color: var(--muted); }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .header-in { position: relative; gap: 4px; }
  .topbar-in span:first-child { display: none; }
  .topbar-in { justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font: 600 .97rem/1.2 Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-wood { background: var(--wood); color: #fff; }
.btn-wood:hover { background: var(--wood-dark); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { background: #fff; color: var(--green); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: #a33; cursor: pointer; font: inherit; font-size: .875rem; text-decoration: underline; }

/* Hero */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .illu { border-radius: 20px; box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.hero-badges span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 32px; } }

.page-head { padding: 40px 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-link { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .illu { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price { font: 800 1.35rem/1 Archivo, sans-serif; color: var(--green); }
.price small { font: 500 .8rem Inter, sans-serif; color: var(--muted); }
.badge { display: inline-block; font: 700 .7rem/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--wood); color: #fff; align-self: flex-start; }
.badge-soft { background: var(--wood-light); color: var(--wood-dark); }
.arrow { color: var(--wood-dark); font-weight: 600; font-size: .92rem; }

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp div { padding: 4px 0; }
.usp strong { display: block; font-family: Archivo, sans-serif; font-size: 1.05rem; margin: 10px 0 4px; }
.usp p { color: var(--muted); font-size: .93rem; margin: 0; }
.usp-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--wood-light); display: grid; place-items: center; color: var(--wood-dark); }
@media (max-width: 860px) { .usp { grid-template-columns: repeat(2, 1fr); } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font: 800 1rem Archivo, sans-serif; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .8rem Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Product detail */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.product .illu { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.parts li::before { width: 8px; height: 8px; border: 0; border-radius: 2px; background: var(--wood); transform: none; left: 6px; top: 15px; }

/* Calculator / panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel-sticky { position: sticky; top: 92px; }
.calc-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } .panel-sticky { position: static; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font: 600 .92rem Inter, sans-serif; cursor: pointer; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.field { margin-bottom: 18px; }
.field > label, .field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(47, 85, 64, .15); }
textarea { min-height: 120px; resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: block; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .93rem; cursor: pointer; transition: border-color .15s, background .15s; }
.choice span b { display: block; font-size: .97rem; }
.choice span small { color: var(--muted); }
.choice input:checked + span { border-color: var(--green); background: #eef4ef; box-shadow: inset 0 0 0 1px var(--green); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47, 85, 64, .25); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }
.stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; background: #fff; }
.stepper button { width: 42px; height: 44px; border: 0; background: var(--bg); font-size: 1.2rem; cursor: pointer; color: var(--green); }
.stepper input { width: 70px; border: 0; text-align: center; border-radius: 0; padding: 10px 4px; }
.stepper input:focus { box-shadow: none; }

.result h3 { margin-bottom: 4px; }
.result-lines { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid var(--line); }
.result-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.result-lines li span:last-child { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 14px; }
.result-total strong { font: 800 1.8rem/1 Archivo, sans-serif; color: var(--green); }
.note { font-size: .85rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.note-warn { background: #fff4e0; color: var(--warn); }
.loading { opacity: .5; transition: opacity .2s; }

/* Cart / checkout */
.cart-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cart-item ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; }
.alert-ok { background: #e7f3ea; color: #1f5a34; }
.alert-err { background: #fbe9e7; color: #8a2a1d; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; }

/* Contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card a { font-weight: 600; text-decoration: none; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; border-radius: 20px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { color: #cfe0d4; margin: 0; }

/* Footer */
.footer { background: #1a2d21; color: #c5d3c9; margin-top: 64px; padding: 52px 0 0; font-size: .93rem; }
.footer a { color: #fff; text-decoration: none; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-block: 18px; font-size: .82rem; color: #8ea597; }
.muted-light { color: #8ea597; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .25s; z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: #f2c08c; font-weight: 600; white-space: nowrap; }

/* Admin */
.status { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--wood-light); color: var(--wood-dark); }
.status-nieuw { background: #e3eefc; color: #1d4f91; }
.status-afgerond { background: #e7f3ea; color: #1f5a34; }
.status-geannuleerd { background: #eee; color: #666; }
.illu-dark { --illu-wood: #3a3a36; --illu-roof: #4a4944; }
