:root {
    --brand: #ab2c4a;
    --brand-600: #812037;
    --brand-50: #fbedf2;
    --ink: #1f2937;
    --muted: #5b6575;
    --line: #e5e7eb;
    --surface: #fff;
    --surface-2: #f6f7f9;
    --soft-blue: #e8f4f6;
    --bg: #f7f8fb;
    --radius: 18px;
    --shadow: 0 16px 34px rgba(15,23,42,.10);
    --shadow-soft: 0 10px 20px rgba(15,23,42,.07);
    --ring: 0 0 0 3px rgba(171,44,74,.24);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

html, body {
    height: 100%
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--brand)
}

[hidden], .is-hidden {
    display: none !important
}

/* Voorkomt dat de browser kort de verkeerde pagina/hero toont voordat de router klaar is. */
body.app-loading .page {
    visibility: hidden;
}

.sr-only {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px
}

.content {
    flex: 1 0 auto;
    padding-top: 92px;
    background: linear-gradient(180deg,#fff 0%,#f7f8fb 100%)
}

/* Header */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 92px;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 26px rgba(15,23,42,.08);
    transition: height .25s ease,box-shadow .25s ease;
}

.topbar--shrink {
    height: 66px;
    box-shadow: 0 8px 20px rgba(15,23,42,.08)
}

.topbar .container {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px
}

.custom-icon {
    display: inline-block;
    object-fit: contain;
    vertical-align: -0.12em;
    background: transparent;
}

/* Navbar */
.nav-icon.custom-icon {
    width: 24px;
    height: 24px;
}

/* FontAwesome nav-icon gelijk houden */
.nav-icon.fa-solid {
    font-size: 15px;
    width: 17px;
    text-align: center;
}

/* Service tiles */
.service-icon.custom-icon {
    width: 48px;
    height: 48px;
}

/* FontAwesome service icons gelijk houden */
.service-icon.fa-solid {
    font-size: 38px;
    line-height: 1;
}

/* Als je icon wrapper gebruikt */
.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.svg-mask-icon {
    display: inline-block;
    background-color: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.icon-energylabel {
    mask-image: url("../assets/img/icons/huis_met_blad.svg");
    -webkit-mask-image: url("../assets/img/icons/huis_met_blad.svg");
}

.icon-bbl {
    mask-image: url("../assets/img/icons/bbl_berekeningen.svg");
    -webkit-mask-image: url("../assets/img/icons/bbl_berekeningen.svg");
}

.icon-beng {
    mask-image: url("../assets/img/icons/beng.svg");
    -webkit-mask-image: url("../assets/img/icons/beng.svg");
}

.icon-blowerdoor {
    mask-image: url("../assets/img/icons/blowerdoor.svg");
    -webkit-mask-image: url("../assets/img/icons/blowerdoor.svg");
}

.icon-home {
    mask-image: url("../assets/img/icons/home.svg");
    -webkit-mask-image: url("../assets/img/icons/home.svg");
}

.icon-over {
    mask-image: url("../assets/img/icons/over_ons.svg");
    -webkit-mask-image: url("../assets/img/icons/over_ons.svg");
}

/* Navbar */
.nav-icon.svg-mask-icon {
    width: 24px;
    height: 24px;
    vertical-align: -0.12em;
}

/* Service tiles / cards */
.service-icon.svg-mask-icon {
    width: 48px;
    height: 48px;
}

/* Als je cards .card__icon gebruiken */
.card__icon .svg-mask-icon {
    width: 48px;
    height: 48px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    align-self: flex-start;
    padding-top: 8px;
    color: inherit
}

.logo-large {
    height: 78px;
    width: auto;
    display: block;
    transition: height .25s ease
}

.topbar--shrink .logo-large {
    height: 50px
}

nav {
    align-self: flex-end
}

    nav ul {
        display: flex;
        align-items: flex-end;
        gap: 18px;
        list-style: none;
        margin: 0;
        padding: 0
    }

    nav a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 13px 3px 12px;
        color: #4b5563;
        text-decoration: none;
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap
    }

        nav a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 3px;
            background: transparent;
            border-radius: 999px;
            transition: background .18s ease
        }

        nav a:hover, nav a.active {
            color: var(--brand)
        }

            nav a.active::after {
                background: var(--brand)
            }

.header-cta {
    margin-bottom: 8px
}

.topbar--shrink .header-cta {
    margin-bottom: 6px
}

/* Buttons */
.btn {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 19px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px rgba(171,44,74,.24);
    transition: background .15s ease,transform .15s ease,box-shadow .15s ease
}

    .btn:hover {
        background: var(--brand-600);
        transform: translateY(-1px)
    }

.btn--ghost {
    background: #fff;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line)
}

    .btn--ghost:hover {
        background: var(--brand-50);
        color: var(--brand)
    }

.btn--sm {
    padding: 9px 14px;
    font-size: 14px
}

/* Generic route pages */
.page {
    background: linear-gradient(180deg,#fff 0%,#f7f8fb 100%)
}

.section {
    padding: 62px 0
}

.section--white {
    background: #fff
}

.section--light {
    background: #f7f7f8
}

.section--blue {
    background: var(--soft-blue)
}

.section__eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px
}

h1, h2, h3, h4 {
    color: var(--brand)
}

h1 {
    font-size: clamp(36px,4.2vw,42px);
    line-height: 1.04;
    margin: 0 0 16px;
    color: var(--ink)
}

h2 {
    font-size: clamp(24px,3vw,34px);
    line-height: 1.15;
    margin: 0 0 18px;
    text-align: center
}

h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--ink)
}

p {
    line-height: 1.58;
    color: #374151
}

.lead {
    font-size: 18px;
    color: #4b5563;
    max-width: 720px
}

.text-center {
    text-align: center
}

.text-left {
    text-align: left !important
}

.accent {
    color: var(--brand)
}

/* Landing hero */
.landing-hero {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff
}

    .landing-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(90deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.30) 38%,rgba(255,255,255,.96) 60%,#fff 100%),var(--hero-image);
        background-size: cover;
        background-position: center left;
        z-index: 0
    }

.landing-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(400px,.9fr);
    align-items: center;
    min-height: 610px
}

.landing-hero__copy {
    grid-column: 2;
    max-width: 610px;
    padding: 44px 0
}

    .landing-hero__copy h1 .accent {
        display: block
    }

.landing-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px
}

/* Service cards strip */
.home-services {
    margin-top: -72px;
    position: relative;
    z-index: 3;
    padding-bottom: 34px
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
    align-items: stretch
}

.service-tile {
    min-height: 220px;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease
}

    .service-tile:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: #f0bdca
    }

.service-tile__icon {
    height: 42px;
    font-size: 34px;
    color: var(--brand);
    margin-bottom: 18px;
    display: flex;
    align-items: center
}

.service-tile h3 {
    font-size: 19px;
    margin-bottom: 8px
}

.service-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45
}

.service-tile__arrow {
    margin-top: auto;
    color: var(--brand);
    font-size: 20px;
    font-weight: 800
}

/* Why block */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(260px,360px) minmax(280px,360px);
    gap: 24px;
    align-items: center
}

.why-photo {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    min-height: 270px;
    background: #fff
}

    .why-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

.why-aside {
    display: grid;
    gap: 18px
}

.mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    min-height: 124px
}

.mini-card__icon {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 26px
}

.mini-card__icon--green {
    background: #e8f8ed;
    color: #16a34a
}

.mini-card h3 {
    margin: 0 0 4px
}

.mini-card p {
    margin: 0 0 7px;
    color: var(--muted)
}

.mini-card strong {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--brand);
    font-size: 14px
}

/* Page hero */
.page-hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: flex-end;
    background: #222;
    background-size: cover;
    background-position: center;
    overflow: hidden
}

    .page-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg,rgba(0,0,0,.48),rgba(0,0,0,.05))
    }

    .page-hero .container {
        position: relative;
        z-index: 1;
        padding-bottom: 34px
    }

    .page-hero h1 {
        color: #fff;
        text-shadow: 0 2px 14px rgba(0,0,0,.25);
        margin: 0
    }

    .page-hero p {
        color: #fff;
        max-width: 760px;
        margin: 10px 0 0;
        font-size: 18px
    }

/* Layouts */
.intro-grid__inner, .two-col {
    display: grid;
    grid-template-columns: minmax(0,1.22fr) minmax(320px,.78fr);
    gap: 34px;
    align-items: center
}

.two-col--reverse {
    grid-template-columns: minmax(320px,.78fr) minmax(0,1.22fr)
}

.page-intro {
    align-items: start;
}

    .page-intro .prose h2:first-child {
        margin-top: 0;
    }

.prose {
    max-width: 820px
}

    .prose h2 {
        text-align: left
    }

    .prose p:first-child {
        margin-top: 0
    }

.image-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

    .image-card img {
        width: 100%;
        height: 100%;
        min-height: 280px;
        display: block;
        object-fit: cover
    }

.image-card--contain {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px
}

    .image-card--contain img {
        min-height: 0;
        object-fit: contain
    }

.bullet-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px
}

    .bullet-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #111827;
        line-height: 1.45
    }

    .bullet-list i {
        flex: 0 0 18px;
        margin-top: 3px;
        color: #16a34a;
        text-align: center
    }

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 18px
}

.card {
    grid-column: span 3;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .35s ease,transform .35s ease,box-shadow .18s ease,border-color .18s ease
}

    .card.reveal {
        opacity: 1;
        transform: translateY(0)
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        border-color: #f0bdca
    }

.card__icon {
    font-size: 28px;
    color: var(--brand);
    margin-bottom: 14px
}

.card h3 {
    color: var(--ink);
    font-size: 19px
}

.card p {
    margin: 0;
    color: var(--muted)
}

.card--link {
    text-decoration: none;
    color: inherit
}

    .card--link:hover {
        text-decoration: none
    }

    .card--link:focus-visible {
        outline: none;
        box-shadow: var(--ring)
    }

.cards--3 {
    grid-template-columns: repeat(3,1fr)
}

    .cards--3 .card {
        grid-column: auto
    }

.cards--4 .card {
    grid-column: span 3
}

.card .actions {
    margin-top: auto
}

.card .btn {
    width: 100%
}

.price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0a2d24
}

.price-sub {
    font-size: 13px;
    color: var(--muted);
    margin-left: 4px
}

.subtext {
    font-size: 14px;
    color: #6b7280
}

.meta {
    display: grid;
    gap: 7px;
    color: #4b5563;
    margin-top: 12px
}

    .meta span {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        line-height: 1.38
    }

    .meta i {
        flex: 0 0 16px;
        text-align: center;
        margin-top: 3px;
        color: #16a34a
    }

.quote-btn {
    margin: 16px 0 12px
}

/* Pricing */
.tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: #fff;
    border: 2px solid var(--brand);
    border-radius: 999px;
    margin: 6px auto 22px
}

    .tabs .tab {
        background: transparent;
        border: 0;
        color: #111827;
        padding: 10px 20px;
        border-radius: 999px;
        cursor: pointer;
        font-weight: 800
    }

        .tabs .tab.active {
            background: var(--brand);
            color: #fff;
            box-shadow: 0 8px 18px rgba(171,44,74,.26)
        }

/* FAQ */
.faq-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-soft)
}

    .faq-card h3 {
        color: var(--brand);
        margin-bottom: 10px
    }

    .faq-card details {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 11px 13px
    }

        .faq-card details + details {
            margin-top: 9px
        }

    .faq-card summary {
        cursor: pointer;
        font-weight: 700;
        color: #111827
    }

    .faq-card p {
        margin-bottom: 0
    }

/* BENG indicators */
.beng-indicators {
    display: grid;
    gap: 9px;
    margin: 16px 0
}

.beng-indicator {
    display: grid;
    grid-template-columns: 16px minmax(170px,240px) 1fr;
    gap: 8px;
    align-items: start;
    line-height: 1.45
}

    .beng-indicator i {
        color: #16a34a;
        margin-top: 4px;
        text-align: center
    }

    .beng-indicator strong, .beng-indicator span {
        color: #374151
    }

/* Trust */
.trust {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-soft)
}

.trust__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    min-height: 110px
}

    .trust__badge img {
        max-height: 80px;
        max-width: 110px;
        width: auto
    }

.trust__copy p {
    margin: 0
}

/* Footer */
.site-footer {
    background: var(--soft-blue);
    color: #0f172a;
    font-size: .95rem;
    padding: 40px 0 18px
}

.footer-grid {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    gap: 28px;
    align-items: flex-start
}

.footer-logo {
    height: 54px;
    width: auto;
    display: block;
    margin-bottom: 12px
}

.site-footer h4 {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px
}

    .site-footer h4::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 150px;
        height: 1px;
        background: rgba(15,23,42,.28)
    }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0
}

    .footer-links a, .footer-contact a {
        color: inherit;
        text-decoration: none
    }

        .footer-links a:hover, .footer-contact a:hover {
            color: var(--brand);
            text-decoration: underline
        }

.footer-contact {
    display: grid;
    gap: 4px
}

.footer-contact-item {
    display: flex;
    gap: 8px;
    align-items: flex-start
}

    .footer-contact-item i {
        width: 16px;
        text-align: center;
        margin-top: 3px
    }

.footer-divider {
    height: 1px;
    margin: 26px 0 12px;
    background: linear-gradient(90deg,rgba(15,23,42,0),rgba(15,23,42,.26),rgba(15,23,42,0))
}

.footer-meta {
    text-align: center;
    color: #4b5563;
    font-size: .86rem
}

    .footer-meta p {
        margin: 0
    }

/* Modal/forms */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 16px 24px;
    z-index: 2000;
    background: rgba(15,23,42,.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease,transform .2s ease
}

    .modal[aria-hidden="false"] {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0)
    }

.dialog {
    width: min(720px,92vw);
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 45px rgba(15,23,42,.25);
    max-height: calc(100vh - 110px);
    display: flex;
    flex-direction: column
}

    .dialog header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .dialog h3 {
        margin: 0;
        color: var(--brand)
    }

    .dialog .body {
        padding: 16px 20px 20px;
        overflow-y: auto
    }

    .dialog .x {
        background: none;
        border: 0;
        font-size: 24px;
        line-height: 1;
        cursor: pointer
    }

body.modal-open {
    overflow: hidden
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0
}

.field--full {
    grid-column: 1/-1
}

.input, select, textarea {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font: inherit
}

textarea {
    resize: vertical
}

    .input:focus, select:focus, textarea:focus {
        outline: none;
        box-shadow: var(--ring);
        border-color: #f2c1cf
    }

.row-end {
    display: flex;
    justify-content: flex-end;
    gap: 8px
}

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

.was-validated .input:invalid, .was-validated textarea:invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220,38,38,.35)
}

.was-validated .input:valid, .was-validated textarea:valid {
    border-color: #16a34a
}

.form-msg {
    margin-top: 8px;
    font-size: .9rem;
    min-height: 1.2em
}

.form-msg--ok {
    color: #16a34a
}

.form-msg--error {
    color: #dc2626
}

.btn.is-loading {
    position: relative;
    cursor: wait;
    opacity: .9
}

    .btn.is-loading::after {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        width: 14px;
        height: 14px;
        margin-top: -7px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.7);
        border-top-color: transparent;
        animation: spin .7s linear infinite
    }

.btn[disabled] {
    cursor: not-allowed;
    opacity: .72
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.consent {
    position: fixed;
    inset: auto 12px 12px 12px;
    max-width: 680px;
    background: #111;
    color: #e5e7eb;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 14px;
    display: none;
    z-index: 3000
}

    .consent.show {
        display: block
    }

    .consent p {
        color: #e5e7eb;
        margin: 0;
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap
    }

@media(max-width:1120px) {
    .header-cta {
        display: none
    }

    .home-service-grid {
        grid-template-columns: repeat(3,1fr)
    }

    .card {
        grid-column: span 4
    }
}

@media(max-width:900px) {
    .content {
        padding-top: 72px
    }

    .topbar {
        height: 72px
    }

    .logo-large {
        height: 58px
    }

    .topbar .container {
        align-items: center
    }

    .brand {
        padding-top: 0
    }

    .topbar--shrink {
        height: 64px
    }

    nav ul {
        gap: 12px;
        overflow-x: auto;
        max-width: calc(100vw - 160px)
    }

    nav a {
        font-size: 14px
    }

    .landing-hero, .landing-hero__inner {
        min-height: auto
    }

        .landing-hero::before {
            background-image: linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.94)),var(--hero-image);
            background-position: center
        }

    .landing-hero__inner {
        display: block
    }

    .landing-hero__copy {
        padding: 72px 0 120px
    }

    .home-services {
        margin-top: -82px
    }

    .home-service-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .why-grid, .intro-grid__inner, .two-col, .two-col--reverse {
        grid-template-columns: 1fr
    }

    .image-card {
        order: -1
    }

    .cards--3 {
        grid-template-columns: repeat(2,1fr)
    }

    .beng-indicator {
        grid-template-columns: 16px 1fr
    }

        .beng-indicator span {
            grid-column: 2
        }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .trust {
        grid-template-columns: 1fr
    }

    .grid2 {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .container {
        padding: 0 18px
    }

    .home-service-grid, .cards--3 {
        grid-template-columns: 1fr
    }

    .card {
        grid-column: span 12
    }

    .landing-actions {
        flex-direction: column
    }

    .btn {
        width: 100%
    }

    .tabs {
        display: flex;
        width: 100%;
        justify-content: center
    }

        .tabs .tab {
            flex: 1
        }

    .page-hero {
        min-height: 250px
    }

    .footer-grid {
        gap: 22px
    }

    .content {
        padding-top: 68px
    }

    nav ul {
        max-width: calc(100vw - 120px)
    }

    nav a i {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Compact landing footer */
.site-footer--compact {
    background: linear-gradient(90deg,var(--brand-600),var(--brand));
    color: #fff;
    padding: 18px 0
}

.footer-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex-wrap: wrap;
    font-size: .93rem
}

    .footer-compact a {
        color: #fff;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px
    }

        .footer-compact a:hover {
            text-decoration: underline
        }

    .footer-compact i {
        opacity: .92
    }

@media(max-width:1180px) {
    .why-grid {
        grid-template-columns: 1fr 1fr
    }

    .why-aside {
        grid-column: 1/-1;
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:900px) {
    .why-grid {
        grid-template-columns: 1fr
    }

    .why-aside {
        grid-template-columns: 1fr
    }

    .footer-compact {
        gap: 16px;
        justify-content: flex-start
    }
}

/* Home proefversie 11-09-2026. Laden na site.css. */
#home {
    background: #f0f5f6;
}

    #home .landing-hero {
        background: #f0f5f6;
    }

    #home .landing-hero__media {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

        #home .landing-hero__media img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transform: scaleX(-1);
        }

    #home .landing-hero::before {
        z-index: 1;
        background-image: linear-gradient(90deg,rgba(240,245,246,0) 0%,rgba(240,245,246,.08) 30%,rgba(240,245,246,.96) 57%,#f0f5f6 80%);
    }

    #home .landing-hero__inner {
        z-index: 2;
    }

    #home .landing-hero__copy h1 {
        font-size: clamp(2.1rem,3.2vw,2.625rem);
        line-height: 1.12;
    }

    #home .landing-hero__copy .lead {
        color: #374151;
    }

    #home .home-services {
        padding-bottom: 2.5rem;
    }

    #home .service-tile {
        border-top: 4px solid var(--brand);
        min-width: 0;
        background: #fff;
    }

        #home .service-tile:nth-child(even) {
            border-top-color: #007e8d;
            background: #f5fafb;
        }

    #home .service-card__icon {
        margin-bottom: .875rem;
    }

    #home .service-tile h3 {
        overflow-wrap: anywhere;
        font-size: 1.1875rem;
    }

    #home .service-tile p {
        font-size: 1rem;
        line-height: 1.5;
    }

    #home .service-tile__arrow {
        padding-top: .875rem;
    }

    #home .home-why {
        background: #e8f3f5;
        border-top: 1px solid #d3e6e9;
    }

    #home .section__eyebrow {
        color: #006875;
    }

    #home .mini-card {
        border-color: #cee1e4;
    }

    #home .why-photo {
        min-height: 0;
    }

        #home .why-photo img {
            aspect-ratio: 3 / 2;
            height: auto;
            object-fit: cover;
        }

    #home .bullet-list i {
        color: #18743b;
    }

    #home .mini-card__icon--green {
        color: #18743b;
    }

    #home .btn {
        font-size: 1rem;
        min-height: 44px;
    }

    #home .quote-btn {
        margin-top: 0;
    }
/* Gedeelde bediening: zichtbaar focuspunt, verborgen dialogen buiten tabvolgorde. */
:where(a,button,input,textarea,select,summary):focus-visible {
    outline: 3px solid #006875;
    outline-offset: 4px;
}

.card--link:focus-visible {
    outline: 3px solid #006875;
    outline-offset: 4px;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 4000;
    padding: .8rem 1rem;
    background: #fff;
    color: #812037;
}

.modal[aria-hidden="true"] {
    display: none;
}

.modal {
    max-height: 100dvh;
}

.dialog {
    max-height: calc(100dvh - 110px);
}

    .dialog .x {
        min-height: 44px;
        min-width: 44px;
        flex-shrink: 0;
        color: #374151;
    }

        .dialog .x:disabled {
            opacity: .45;
            cursor: wait;
        }

    .dialog .body {
        overscroll-behavior: contain;
    }

.modal .input, .modal textarea {
    min-width: 0;
    width: 100%;
}

.modal .field {
    min-width: 0;
}

.modal .btn {
    min-height: 44px;
    font-size: 1rem;
}

.form-msg {
    white-space: pre-line;
}

.form-msg--ok {
    color: #18743b;
}

.no-script {
    margin-top: 110px;
    padding: 1rem;
}

@media(max-width:1120px) and (min-width:901px) {
    #home .landing-hero__copy {
        padding-bottom: 100px;
    }
}

@media(max-width:900px) {
    .topbar, .topbar.topbar--shrink {
        height: 112px;
    }

        .topbar .container {
            flex-wrap: wrap;
            gap: 0;
            align-content: center;
            align-items: center;
        }

        .topbar .brand {
            height: 62px;
            padding: 0;
        }

        .topbar .logo-large {
            height: 56px;
            width: auto;
        }

        .topbar nav {
            width: 100%;
            min-width: 0;
        }

            .topbar nav ul {
                margin: 0;
                max-width: 100%;
                gap: 20px;
                padding: 0;
                overflow-x: auto;
            }

            .topbar nav a {
                min-height: 44px;
                white-space: nowrap;
                display: inline-flex;
                align-items: center;
            }

        .topbar .nav-icon {
            display: none;
        }

    .content {
        padding-top: 112px;
    }

    #home .landing-hero__media {
        bottom: auto;
        height: 220px;
    }

        #home .landing-hero__media img {
            object-position: center;
        }

    #home .landing-hero::before {
        background-image: linear-gradient(180deg,transparent 100px,#f0f5f6 220px);
    }

    #home .landing-hero__copy {
        max-width: 680px;
        padding: 235px 0 48px;
    }

    #home .home-services {
        margin-top: 0;
    }

    #home .landing-hero__copy h1 {
        font-size: clamp(2rem,5vw,2.625rem);
    }
}

@media(max-width:640px) {
    #home .service-tile {
        min-height: 0;
        padding: 20px;
    }

    #home .mini-card {
        grid-template-columns: 48px minmax(0,1fr);
        gap: 12px;
        padding: 16px;
    }

    #home .mini-card__icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    #home .mini-card h3 {
        font-size: 1.125rem;
    }

    .modal {
        padding: 12px;
    }

    .dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
    }

    .footer-compact {
        gap: 14px 20px;
    }

        .footer-compact a {
            min-height: 44px;
        }
}

@media(prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .card {
        opacity: 1;
        transform: none;
    }
}
