:root {
    --bg: #090a0c;
    --bg-2: #111318;
    --bg-3: #181b22;
    --bg-4: #22262f;
    --line: rgba(243, 239, 230, .1);
    --text: #f4f1ea;
    --muted: #c4bfb4;
    --gold: #d4a24a;
    --gold-2: #f0c36a;
    --gold-dim: rgba(212, 162, 74, .16);
    --ok: #7dba8c;
    --wa: #25d366;
    --white: #fff;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --radius: 18px;
    --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --header-h: 76px;
    --bar-h: 38px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-2); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.22; letter-spacing: -.01em; font-weight: 700; }
.container { width: min(1180px, calc(100% - 2.4rem)); margin-inline: auto; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 80;
    background: rgba(9, 10, 12, .78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { display: flex; gap: 4px; height: 28px; align-items: flex-end; }
.logo-mark i { display: block; width: 6px; border-radius: 2px; background: var(--gold); animation: rise 1.4s var(--ease) both; }
.logo-mark i:nth-child(1) { height: 18px; animation-delay: .05s; }
.logo-mark i:nth-child(2) { height: 28px; background: var(--text); animation-delay: .15s; }
.logo-mark i:nth-child(3) { height: 22px; animation-delay: .25s; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.logo-text em { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 1rem; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: .25s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { bottom: 16px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { bottom: 20px; transform: rotate(-45deg); }

.montage-bar {
    background: linear-gradient(90deg, #1a1408, #2a210f);
    color: var(--gold-2);
    font-size: .82rem;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(212, 162, 74, .25);
}
.montage-bar .container { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: var(--bar-h); text-align: center; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212,162,74,.7); animation: pulse 1.8s infinite; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .95rem 1.55rem; border-radius: 999px; font-weight: 600; border: 1px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
    text-decoration: none; color: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #16120a; box-shadow: 0 8px 28px rgba(212,162,74,.28); }
.btn-gold:hover { color: #16120a; box-shadow: 0 14px 36px rgba(212,162,74,.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); background: var(--gold-dim); }
.btn-white { background: var(--text); color: #111; }
.btn-white:hover { color: #111; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.28); }
.btn-wa:hover { color: #fff; background: #1ebe5d; }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1.1rem 1.85rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
    position: relative; min-height: calc(100vh - var(--header-h) - var(--bar-h));
    display: grid; place-items: end stretch; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 8s linear;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero-vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(9,10,12,.2) 0%, rgba(9,10,12,.35) 40%, rgba(9,10,12,.92) 100%),
        linear-gradient(90deg, rgba(9,10,12,.55), transparent 45%);
}
.hero-content { position: relative; z-index: 2; padding: 4.5rem 0 4rem; max-width: 780px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--gold-2); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem;
    margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #d7d1c4; max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
    margin-top: 2.6rem; max-width: 520px;
}
.hero-stats b { display: block; font-family: var(--display); font-size: 1.7rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-alt { background: var(--bg-2); }
.section-header { max-width: 640px; margin-bottom: 2.4rem; }
.section-header h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); margin-bottom: .7rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; }
.kicker { color: var(--gold); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; margin-bottom: .6rem; }

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.usp-card {
    background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; min-height: 180px; transition: transform .3s var(--ease), border-color .3s;
}
.usp-card:hover { transform: translateY(-6px); border-color: rgba(212,162,74,.4); }
.usp-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-dim); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 1rem; font-weight: 700; }
.usp-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.usp-card p { color: var(--muted); font-size: .92rem; }

/* 3D stage */
.live-3d {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center;
}
.stage-frame {
    position: relative; border-radius: 24px; overflow: hidden; height: 460px;
    background: linear-gradient(180deg, #8ec5ea 0%, #d7e8f5 52%, #c5d9a8 100%);
    border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stage-frame canvas { width: 100% !important; height: 460px !important; display: block; }
.stage-chip {
    position: absolute; left: 16px; top: 16px; z-index: 3;
    background: rgba(9,10,12,.7); backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; font-size: .78rem; color: var(--gold-2);
}
.live-copy h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: .8rem; }
.live-copy p { color: var(--muted); margin-bottom: 1.2rem; }
.live-list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.live-list li { display: flex; gap: .7rem; color: #ddd8cd; }
.live-list li::before { content: ""; width: 10px; height: 10px; margin-top: .45rem; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Product cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
    background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(212,162,74,.35); }
.card-visual { aspect-ratio: 4 / 3; height: auto; position: relative; overflow: hidden; background: var(--bg-4); }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.swatch {
    height: 100%; width: 100%;
    background:
        repeating-linear-gradient(90deg, var(--w1, #c8a36a) 0 10px, var(--w2, #b08d52) 10px 12px);
}
.swatch.rhombus { background: repeating-linear-gradient(-12deg, var(--w1) 0 14px, var(--w2) 14px 18px); }
.swatch.black { --w1: #2c2c30; --w2: #1a1a1c; }
.swatch.douglas { --w1: #b56a38; --w2: #8e4e28; }
.swatch.composiet { --w1: #8b5a32; --w2: #111; }
.swatch.hardhout { --w1: #6b3e22; --w2: #4a2a16; }
.card-body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: .92rem; }
.card-price { color: var(--gold-2); font-weight: 700; margin-top: auto; }
.card-price small { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card-tag {
    position: absolute; left: 12px; top: 12px; background: rgba(9,10,12,.75);
    color: var(--gold-2); font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px;
}

/* Projects */
.projects-masonry {
    columns: 3; column-gap: 12px;
}
.projects-masonry a {
    display: block; margin-bottom: 12px; break-inside: avoid;
    border-radius: 16px; overflow: hidden; position: relative; color: var(--text);
}
.projects-masonry img { width: 100%; height: auto; transform: scale(1.02); transition: transform .5s var(--ease); }
.projects-masonry a:hover img { transform: scale(1.08); }
.projects-masonry a::after {
    content: "Bekijk"; position: absolute; inset: auto 12px 12px auto;
    background: var(--gold); color: #16120a; font-size: .75rem; font-weight: 700;
    padding: .35rem .7rem; border-radius: 999px; opacity: 0; transition: opacity .25s;
}
.projects-masonry a:hover::after { opacity: 1; }

.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88);
    display: none; place-items: center; padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 88vh; border-radius: 12px; }
.lightbox button {
    position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff;
    font-size: 2rem; cursor: pointer;
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
    padding: 1.6rem; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line); position: relative;
}
.step b { font-family: var(--display); font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: .4rem; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); }

/* Configurator */
.config-page { padding: 1.6rem 0 4rem; }
.config-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; align-items: start; }
.config-stage {
    position: sticky; top: calc(var(--header-h) + var(--bar-h) + 12px);
    border-radius: 24px; overflow: hidden; height: 560px;
    background: linear-gradient(180deg, #8ec5ea 0%, #d7e8f5 52%, #c5d9a8 100%);
    border: 1px solid var(--line);
}
.config-stage canvas { width: 100% !important; height: 560px !important; display: block; }
.config-panel {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 1.2rem;
}
.opt-block { margin-bottom: 1.15rem; }
.opt-block h3 { font-size: 1rem; margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.step-num {
    width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #16120a;
    font-size: .75rem; display: grid; place-items: center; font-weight: 700;
}
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.chip {
    border: 1px solid var(--line); background: var(--bg-3); color: var(--text);
    border-radius: 14px; padding: .55rem .7rem; cursor: pointer; text-align: left; transition: .2s;
    display: flex; align-items: center; gap: .7rem;
}
.chip img {
    width: 76px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center;
    border-radius: 8px; flex-shrink: 0;
}
.chip span { min-width: 0; }
.chip small { display: block; color: var(--muted); font-size: .78rem; margin-top: .12rem; }
.chip:hover, .chip.is-on { border-color: var(--gold); background: var(--gold-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .7rem; }
.form-group label { font-size: .95rem; color: var(--text); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg); border: 1px solid var(--line); color: var(--text);
    border-radius: 12px; padding: .8rem .9rem; font-size: 1.05rem;
}
.form-note { font-style: italic; color: var(--gold-2); margin-bottom: .45rem; font-size: .95rem; }
.form-help { color: var(--muted); font-size: .92rem; margin-bottom: .9rem; line-height: 1.5; }
.help-dot {
    display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    background: #2f8a4e; color: #fff; font-size: .72rem; font-weight: 700; cursor: help;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0; border-color: var(--gold);
}
.price-box {
    background: #0e1014; border: 1px solid rgba(212,162,74,.3); border-radius: 16px; padding: 1rem;
}
.price-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .28rem 0; color: var(--muted); }
.price-line.included span:last-child { color: var(--ok); }
.price-total { display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: 1.15rem; font-weight: 700; }
.notice {
    display: flex; gap: .7rem; background: rgba(212,162,74,.1); border: 1px solid rgba(212,162,74,.25);
    border-radius: 14px; padding: .85rem; font-size: .88rem; margin: .8rem 0 1rem; color: #ead9b0;
}

/* Contact / pages */
.page-hero { padding: 3.2rem 0 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: .6rem; }
.page-hero p { color: var(--muted); max-width: 40rem; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.4rem; }
.contact-card, .contact-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; }
.contact-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.alert { padding: 1rem 1.1rem; border-radius: 14px; margin-bottom: 1rem; }
.alert-success { background: rgba(125,186,140,.15); color: #b7e0c0; }
.alert-error { background: rgba(200,80,80,.15); color: #f0b4b4; }
.alert-info { background: var(--gold-dim); color: #ead9b0; }

.cta-banner {
    border-radius: 28px; padding: 3rem 2rem; text-align: center;
    background:
        linear-gradient(180deg, rgba(9,10,12,.35), rgba(9,10,12,.78)),
        url("../media/hero/hero-3.jpg") center/cover;
    border: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: .6rem; }
.cta-banner p { color: #d7d1c4; margin-bottom: 1.3rem; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.about-split img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; }

/* Footer */
.site-footer { background: #07080a; border-top: 1px solid var(--line); padding: 3rem 0 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand p { color: var(--muted); margin-top: .8rem; max-width: 36ch; }
.footer-usp { color: var(--gold-2) !important; }
.site-footer h4 { margin-bottom: .8rem; }
.site-footer ul { list-style: none; display: grid; gap: .45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding: 1rem 0 8.5rem; color: var(--muted); font-size: .9rem; }

.float-btns {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.float-cta {
    position: static;
    background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #16120a;
    border-radius: 18px; padding: .7rem 1rem; display: grid; line-height: 1.15;
    box-shadow: 0 12px 30px rgba(212,162,74,.35);
}
.float-cta span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.float-cta strong { font-size: 1.08rem; }
.float-cta:hover { color: #16120a; }
.float-wa {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--wa); color: #fff; border-radius: 999px;
    padding: .8rem 1.15rem; font-weight: 700; font-size: 1.02rem;
    box-shadow: 0 12px 28px rgba(37,211,102,.38);
}
.float-wa:hover { color: #fff; background: #1ebe5d; }

@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; }
.reveal-d1 { animation-delay: .1s; } .reveal-d2 { animation-delay: .2s; } .reveal-d3 { animation-delay: .3s; }

.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .55rem; }
.quote-step { margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.quote-form .quote-step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.quote-step h3 { font-size: 1.08rem; margin-bottom: .8rem; }
.hp-field { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.beheer-link { color: inherit; text-decoration: none; cursor: default; }
.beheer-link:hover { color: inherit; }

@media (max-width: 1120px) {
    .main-nav .btn-wa { display: none; }
}
@media (max-width: 980px) {
    .usp-grid, .cards-grid, .steps, .live-3d, .config-layout, .contact-grid, .about-split, .footer-grid { grid-template-columns: 1fr; }
    .projects-masonry { columns: 2; }
    .config-stage { position: relative; top: 0; }
    .config-stage canvas, .stage-frame canvas { min-height: 360px; height: 360px !important; }
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        background: #0d0f13; border-bottom: 1px solid var(--line); padding: 1rem 1.2rem 1.4rem;
        flex-direction: column; align-items: stretch;
    }
    .main-nav.open { display: flex; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
    .projects-masonry { columns: 1; }
    .chip-grid, .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .usp-grid { grid-template-columns: 1fr 1fr; }
    .float-btns { right: 12px; bottom: 12px; }
    .float-wa span { display: none; }
    .float-wa { padding: .85rem; border-radius: 50%; }
    html { font-size: 16px; }
}
