/* ──────────────────────────────────────────────────────────────────
   Gedeelde stijl voor de preview-website (hoofdpagina, installatie-
   handleiding, FAQ, algemene voorwaarden, privacyverklaring).
   Bevat alleen wat op meerdere pagina's identiek is: kleuren, header,
   footer, knoppen, mobiel menu en de "document"-pagina-opmaak.
   Pagina-specifieke content (hero, diagrammen, kaarten, enz.) blijft
   in het eigen <style>-blok van elke pagina.
   ────────────────────────────────────────────────────────────────── */

:root {
    --ink: #37312e;
    --ink-soft: #4a4139;
    --brand: #c49a56;
    --brand-strong: #b1853f;
    --brand-deep: #8a6a34;
    --paper: #f6f4f0;
    --plank: #efe9df;
    --line: #e4ded2;
    --muted: #6b6355;
    --warn-bg: #fbf0e4;
    --warn-line: #edd3ae;
    --warn-ink: #7a4f13;
    --check-bg: #fdeeee;
    --check-ink: #a13d3d;
    --success-bg: #eaf5ea;
    --success-line: #c3e0c3;
    --success-ink: #2f6b3f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 84px; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
a:hover { color: var(--brand-strong); }

.font-display { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

/* ── Header ────────────────────────────────────────────────────── */
header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 244, 240, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-logo { height: 44px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: 20px; }

a.nav-whatsapp, button.nav-dealer-btn { display: none; }
@media (min-width: 860px) {
    a.nav-whatsapp, button.nav-dealer-btn { display: inline-flex; }
}

nav.links { display: none; gap: 28px; font-size: 14px; font-weight: 600; }
nav.links a { text-decoration: none; color: var(--ink-soft); }
nav.links a:hover { color: var(--brand-strong); }

#nav-toggle-cb { display: none; }
.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
#nav-toggle-cb:checked ~ .nav-row .nav-toggle .icon-open { display: none; }
#nav-toggle-cb:checked ~ .nav-row .nav-toggle .icon-close { display: block; }

.mobile-nav {
    display: none; flex-direction: column;
    padding: 4px 24px 20px; border-top: 1px solid var(--line);
}
.mobile-nav a {
    text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--brand-strong); }
#nav-toggle-cb:checked ~ .mobile-nav { display: flex; }

.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mobile-nav-actions .btn { width: 100%; }

@media (min-width: 860px) {
    nav.links { display: flex; }
    .nav-toggle, .mobile-nav { display: none !important; }
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px;
    text-decoration: none; border-radius: 999px; padding: 12px 22px;
    border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--brand); color: var(--ink);
    box-shadow: 0 10px 26px -14px rgba(138,106,52,0.6);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--brand-strong); color: var(--ink); box-shadow: 0 14px 32px -14px rgba(138,106,52,0.7); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.6); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ── Page title band (documentpagina's) ──────────────────────────── */
.page-title {
    position: relative;
    background-color: var(--ink);
    color: #fff;
    overflow: hidden;
    padding: 56px 0 48px;
    background-image:
        repeating-linear-gradient(45deg, rgba(196,154,86,0.07) 0 2px, transparent 2px 46px),
        repeating-linear-gradient(-45deg, rgba(196,154,86,0.07) 0 2px, transparent 2px 46px);
}
.page-title h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 12px;
}
.page-title .lead {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 1.65;
    color: #c3cad6;
    max-width: 620px;
}
.page-title .lead a { color: var(--brand); }

/* ── Document body (FAQ/AV/Privacy) ──────────────────────────────── */
.doc-wrap { padding: 56px 0 96px; max-width: 760px; }

.doc-wrap h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    margin-top: 44px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.doc-wrap h2:first-child { margin-top: 0; }
.doc-wrap p { font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }
.doc-wrap ul, .doc-wrap ol { margin: 0 0 14px 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.doc-wrap li { margin-bottom: 4px; }
.doc-wrap strong { color: var(--ink); }
.doc-wrap .meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; }

/* ── Concept/legal disclaimer banner ─────────────────────────────── */
.concept-banner {
    display: flex; gap: 14px;
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    color: var(--warn-ink);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.65;
}
.concept-banner svg { flex-shrink: 0; margin-top: 2px; }
.concept-banner strong { display: block; margin-bottom: 4px; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── "Te bevestigen" inline tag ───────────────────────────────────── */
.tag-check {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--check-ink);
    background: var(--check-bg);
    border-radius: 999px;
    padding: 3px 10px;
    margin-left: 2px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── FAQ accordion ─────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 4px 22px;
}
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--brand-deep); flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 0 20px; }
.faq-item .faq-answer p { margin-bottom: 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
.faq-item .faq-answer ul { margin-top: 0; }

/* ── Footer ────────────────────────────────────────────────────── */
footer.site { background: var(--ink); color: #b8bfc9; padding: 56px 0 28px; }
.footer-top { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 720px) {
    .footer-top { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-tagline { margin-top: 16px; font-size: 13.5px; line-height: 1.65; max-width: 280px; color: #8f97a3; }
.footer-tagline a { color: #dde2e9; text-decoration: none; }
.footer-tagline a:hover { color: var(--brand); }
.footer-contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28);
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.footer-icon-btn:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.footer-col-title {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: #8f97a3; margin-bottom: 16px;
}
.footer-col a { display: block; text-decoration: none; color: #dde2e9; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
    display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center;
    padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 12.5px; color: #8f97a3;
}
@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── Formulieren ───────────────────────────────────────────────── */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    max-width: 640px;
}
@media (min-width: 640px) { .form-card { padding: 40px; } }

.form-field { margin-bottom: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--ink-soft);
}
.form-label .optional { font-weight: 400; color: var(--muted); }

.form-input, .form-textarea {
    width: 100%;
    display: block;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
}
.form-textarea { resize: vertical; min-height: 130px; }

.form-input.has-error, .form-textarea.has-error { border-color: var(--check-ink); }
.form-error-text { display: block; margin-top: 6px; font-size: 13px; color: var(--check-ink); }

.form-success {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--success-bg); border: 1px solid var(--success-line); color: var(--success-ink);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 28px; font-size: 14.5px; line-height: 1.5;
}
.form-success svg { flex-shrink: 0; margin-top: 2px; }
.form-privacy-notice {
    margin: -4px 0 18px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}
.form-status {
    border-radius: 12px;
    margin: 0 0 18px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
}
.form-status-error {
    background: var(--check-bg);
    border: 1px solid #efc3c3;
    color: var(--check-ink);
}

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Modal ─────────────────────────────────────────────────────── */
dialog.modal {
    border: none;
    border-radius: 20px;
    padding: 0;
    width: min(560px, calc(100vw - 40px));
    max-height: min(90vh, 700px);
    box-shadow: 0 30px 80px rgba(20, 16, 14, 0.4);
    background: #fff;
    margin: auto;
}
dialog.modal::backdrop {
    background: rgba(24, 18, 13, 0.74);
    backdrop-filter: blur(5px);
    animation: modal-backdrop-in 0.2s ease;
}
dialog.modal[open] {
    animation: modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
@keyframes modal-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover { color: var(--ink); background: var(--plank); border-color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.modal-inner {
    padding: 30px 26px 26px;
    max-height: min(90vh, 700px);
    overflow-y: auto;
}
@media (min-width: 640px) { .modal-inner { padding: 38px 40px 34px; } }

.modal-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--plank);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-deep);
    margin-bottom: 16px;
}
.modal-head { padding-right: 36px; }
.modal-head .eyebrow { display: block; color: var(--brand); }
.modal-head h2 {
    margin-top: 6px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.modal-head .modal-intro {
    margin: -10px 0 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.modal-form .btn { width: 100%; }

@media print {
    header.site, footer.site { display: none; }
}
