/* =============================================================
   Jac v.d. Vegt & Zn – Hoofdstylesheet
   ============================================================= */

/* ---------------------------------------------------------------
   1. CSS Custom Properties
--------------------------------------------------------------- */
:root {
    --red:          #C8102E;
    --red-dark:     #9E0B23;
    --red-light:    rgba(200,16,46,.08);
    --yellow:       #F4A200;
    --yellow-dark:  #D48E00;
    --navy:         #1C3A6E;
    --navy-dark:    #0F2347;
    --dark:         #0D1520;
    --dark-2:       #141E2D;
    --white:        #FFFFFF;
    --bg:           #F8FAFC;
    --bg-2:         #F1F5F9;
    --text:         #1E293B;
    --muted:        #64748B;
    --border:       #E2E8F0;

    /* Legacy aliassen (voor customizer compatibility) */
    --clr-primary:      var(--red);
    --clr-primary-dark: var(--red-dark);
    --clr-blue:         var(--navy);
    --clr-blue-dark:    var(--navy-dark);
    --clr-accent:       var(--yellow);
    --clr-accent-dark:  var(--yellow-dark);
    --clr-bg:           var(--bg);
    --clr-white:        var(--white);
    --clr-text:         var(--text);
    --clr-text-muted:   var(--muted);
    --clr-border:       var(--border);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
    --shadow-xl:  0 16px 64px rgba(0,0,0,0.22);

    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;

    --max-width:      1200px;
    --container-pad:  clamp(1.25rem, 4vw, 2rem);
    --header-height:  68px;
    --topbar-height:  42px;

    --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------------------------------------------------------------
   2. Reset & Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
address { font-style: normal; }
p { max-width: none; }

.skip-link {
    position: absolute; top: -9999px; left: 1rem; z-index: 9999;
    background: var(--yellow); color: var(--navy);
    padding: .5rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------
   3. Layout
--------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--white { background: var(--white); }
.section--gray  { background: var(--bg-2); }
.section--md    { padding-block: clamp(3rem, 6vw, 5rem); }

.section__label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    padding: .3rem .9rem;
    background: var(--red-light);
    border-radius: 999px;
    margin-bottom: .9rem;
}

.section__head {
    text-align: center;
    max-width: 660px;
    margin-inline: auto;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__head p { color: var(--muted); margin-top: .65rem; font-size: 1.05rem; }

.section__foot { text-align: center; margin-top: 3rem; }

/* ---------------------------------------------------------------
   4. Typografie
--------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
h4 { font-size: 1rem; }

/* ---------------------------------------------------------------
   5. Buttons
--------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.65rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    white-space: nowrap;
    transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background 180ms, border-color 180ms;
}
.btn:active { transform: scale(0.97); }
.btn--xl   { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn--lg   { padding: .875rem 1.75rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--red {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200,16,46,.28);
}
@media (hover: hover) and (pointer: fine) {
    .btn--red:hover { background: var(--red-dark); box-shadow: 0 6px 24px rgba(200,16,46,.38); }
}

.btn--yellow {
    background: var(--yellow);
    color: var(--navy);
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(244,162,0,.32);
}
@media (hover: hover) and (pointer: fine) {
    .btn--yellow:hover { background: var(--yellow-dark); }
}

.btn--white-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.45);
}
@media (hover: hover) and (pointer: fine) {
    .btn--white-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
}

.btn--dark-outline,
.btn--outline-dark {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--border);
}
@media (hover: hover) and (pointer: fine) {
    .btn--dark-outline:hover,
    .btn--outline-dark:hover { border-color: var(--navy); }
}

/* ---------------------------------------------------------------
   6. Topbar
--------------------------------------------------------------- */
.header-topbar {
    background: var(--red);
    color: rgba(255,255,255,.85);
    font-size: .8rem;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    gap: 1rem;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar-link {
    display: flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.85);
    transition: color 140ms;
}
@media (hover: hover) and (pointer: fine) { .topbar-link:hover { color: var(--yellow); } }
.topbar-hours { display: flex; align-items: center; gap: .4rem; }
.topbar-social { display: flex; align-items: center; color: rgba(255,255,255,.65); transition: color 140ms; }
@media (hover: hover) and (pointer: fine) { .topbar-social:hover { color: var(--yellow); } }

/* ---------------------------------------------------------------
   7. Header
--------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 200ms var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-main { background: var(--white); }

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    gap: 1.25rem;
}

.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -.035em;
    line-height: 1.15;
    display: block;
}
.logo-sub {
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    display: block;
    margin-top: .1rem;
}

.main-nav { flex: 1; }
.nav-list {
    display: flex;
    align-items: center;
    gap: .1rem;
    justify-content: flex-end;
}
.nav-list li { position: relative; }
.nav-list a {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .85rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: color 140ms, background 140ms;
}
@media (hover: hover) and (pointer: fine) {
    .nav-list > li > a:hover { color: var(--red); background: var(--red-light); }
}
.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a { color: var(--red); }

/* ── Pijltje-omlaag voor top-level items met submenu ── */
.nav-list > li.menu-item-has-children > a::after {
    content: '';
    flex-shrink: 0;
    display: block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: .55;
    transition: transform 180ms var(--ease-out), opacity 180ms;
}
.nav-list > li.menu-item-has-children:hover > a::after,
.nav-list > li.menu-item-has-children:focus-within > a::after {
    transform: rotate(180deg);
    opacity: 1;
}
/* Rode kleur bij actieve pagina */
.nav-list > li.menu-item-has-children.current-menu-parent > a::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    opacity: 1;
}

/* ── Dropdown – 1e niveau ─────────────────────────────── */
.nav-list .sub-menu {
    position: absolute;
    top: calc(100% + .4rem);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top left;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
    z-index: 100;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.sub-menu a {
    padding: .6rem .85rem;
    font-size: .875rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    color: var(--text) !important;
    white-space: nowrap;
    font-weight: 500;
    transition: background 130ms, color 130ms;
}
@media (hover: hover) and (pointer: fine) {
    .sub-menu a:hover { background: var(--bg); color: var(--red) !important; }
}

/* ── Dropdown – 2e niveau flyout (sub-sub-menu) ──────── */
.nav-list .sub-menu li { position: relative; }
.nav-list .sub-menu .sub-menu {
    top: -.5rem;
    left: calc(100% + .25rem);
    transform: translateX(-8px) scale(0.97);
    transform-origin: top left;
}
.nav-list .sub-menu li:hover > .sub-menu,
.nav-list .sub-menu li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateX(0) scale(1);
}

/* ── Sub-items met kinderen (fly-out): GEEN extra pijltje op desktop ──────── */
/* Fly-out opent al via hover; CSS ::after en JS toggle-knop worden verborgen.  */
@media (min-width: 769px) {
    .nav-list .sub-menu .menu-item-has-children > a::after { display: none !important; }
    .nav-list .sub-menu .submenu-toggle                    { display: none !important; }
}

.header-cta { flex-shrink: 0; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
    flex-shrink: 0;
    margin-left: auto;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform 200ms var(--ease-out), opacity 180ms;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay: z-index 999 < header (1000) zodat nav altijd klikbaar is */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms, visibility 280ms;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* Submenu toggle button – ALLEEN op mobiel zichtbaar */
.submenu-toggle {
    display: none;           /* verborgen op desktop – nooit overschrijven via desktop CSS */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 260ms var(--ease-out), color 140ms;
}
.submenu-toggle.is-open { transform: rotate(180deg); color: var(--red); }

/* Drawer header/footer verbergen op desktop */
.nav-drawer-header, .nav-drawer-footer { display: none; }

/* ---------------------------------------------------------------
   8. Hero (met video / slider / foto)
--------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: clamp(520px, 88vh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}

/* Rode streep onderaan hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--red);
    z-index: 3;
}

/* Slider achtergrond */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 800ms ease;
}
.hero__slide.active { opacity: 1; }

/* Statische achtergrond afbeelding */
.hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

/* YouTube video achtergrond */
.hero__video-wrap {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero__video-wrap iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.78vh; min-width: 100%;
    height: 56.25vw; min-height: 100%;
    transform: translate(-50%, -50%);
    border: none;
}

/* Overlay */
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, rgba(10,15,30,.85) 0%, rgba(10,15,30,.55) 55%, rgba(10,15,30,.3) 100%);
}

/* Content */
.hero .container { position: relative; z-index: 2; }
.hero__content { padding-block: 5rem; max-width: 740px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 1rem;
    background: rgba(200,16,46,.22);
    border: 1px solid rgba(200,16,46,.5);
    color: #ffaab6;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.08;
    margin-bottom: 1.25rem;
}
.hero__title span { color: var(--yellow); }

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Slider navigatie */
.hero__slider-nav {
    position: absolute;
    bottom: 2.5rem;
    right: var(--container-pad);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none; padding: 0;
    cursor: pointer;
    transition: background 200ms, transform 200ms;
}
.slider-dot.active { background: var(--red); transform: scale(1.35); }
.slider-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background 160ms, border-color 160ms;
}
@media (hover: hover) and (pointer: fine) {
    .slider-arrow:hover { background: var(--red); border-color: var(--red); }
}

/* ---------------------------------------------------------------
   9. USP Bar
--------------------------------------------------------------- */
.usp-bar {
    background: var(--red);
    padding-block: 1.1rem;
}
.usp-bar__grid {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 2.25rem;
    justify-content: center;
}
.usp-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
}
.usp-item svg { color: var(--yellow); flex-shrink: 0; }

/* ---------------------------------------------------------------
   10. Diensten
--------------------------------------------------------------- */
.diensten__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.dienst-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    position: relative;
    overflow: hidden;
}
.dienst-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .dienst-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
    .dienst-card:hover::before { transform: scaleX(1); }
    .dienst-card:hover .dienst-card__link { color: var(--red); }
}
.dienst-card:active { transform: scale(0.98); }

.dienst-card__icon {
    width: 56px; height: 56px;
    background: var(--red-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.15rem;
    color: var(--red);
    flex-shrink: 0;
}

/* Foto-variant: foto boven aan de kaart, geen padding boven */
.dienst-card--foto {
    padding-top: 0;
}
.dienst-card__foto {
    width: calc(100% + 4rem); /* breek uit de padding */
    margin: 0 -2rem 1.5rem;
    height: 200px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
    overflow: hidden;
}
.dienst-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.dienst-card h3 { color: var(--navy); margin-bottom: .45rem; }
.dienst-card p  { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.dienst-card__list { margin-top: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.dienst-card__list li {
    font-size: .83rem; color: var(--muted);
    padding-left: 1.2rem; position: relative;
}
.dienst-card__list li::before {
    content: '→'; position: absolute; left: 0;
    color: var(--yellow); font-size: .8rem; top: .05em;
}

.dienst-card__link {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-top: 1.4rem;
    font-size: .875rem; font-weight: 700;
    color: var(--navy);
    transition: color 150ms;
}

/* ---------------------------------------------------------------
   11. Kraancalculator teaser
--------------------------------------------------------------- */
.calc-teaser { padding-block: clamp(3rem, 6vw, 5rem); }

.calc-teaser__band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--navy-dark);
    border-radius: 16px;
    padding: 3rem 3.5rem;
}
.calc-teaser__left {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.calc-teaser__icoon {
    width: 60px; height: 60px; flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--yellow);
    display: flex; align-items: center; justify-content: center;
}
.calc-teaser__label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--yellow); margin: 0 0 6px;
}
.calc-teaser__tekst h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 800; color: #fff;
    margin: 0 0 6px; letter-spacing: -0.02em;
}
.calc-teaser__tekst p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    margin: 0; line-height: 1.6;
}

@media (max-width: 900px) {
    .calc-teaser__band {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 2rem;
    }
    .calc-teaser__band .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .calc-teaser__left { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .calc-teaser__icoon { display: none; }
}

/* ---------------------------------------------------------------
   12. Over ons
--------------------------------------------------------------- */
.over-ons__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}
.over-ons__content p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}
.over-ons__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.65rem 1.4rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.stat-card__number {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--red);
    letter-spacing: -.04em;
    line-height: 1;
}
.stat-card__label { font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: .45rem; }

/* ---------------------------------------------------------------
   12. Projecten / Archief
--------------------------------------------------------------- */
.projecten__grid, .archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    display: flex; flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
    .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
    .project-card:hover .project-card__img { transform: scale(1.04); }
}
.project-card__img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.project-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.project-card__img--placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3566 100%);
    display: flex; align-items: center; justify-content: center;
}
.project-card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.project-card__meta { font-size: .77rem; color: var(--red); font-weight: 700; margin-bottom: .45rem; }
.project-card__title { font-size: 1.05rem; color: var(--navy); margin-bottom: .4rem; font-weight: 700; }
.project-card__title a { color: inherit; }
@media (hover: hover) and (pointer: fine) { .project-card__title a:hover { color: var(--red); } }
.project-card__body p { font-size: .88rem; color: var(--muted); flex: 1; margin-bottom: .9rem; }
.card-link {
    font-size: .85rem; font-weight: 700; color: var(--red);
    display: inline-flex; align-items: center; gap: .3rem;
    transition: gap 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card-link:hover { gap: .6rem; } }

/* ---------------------------------------------------------------
   13. Rode CTA balk
--------------------------------------------------------------- */
.red-cta {
    background: var(--red);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.red-cta__inner {
    display: flex; flex-wrap: wrap;
    gap: 2rem; align-items: center; justify-content: space-between;
}
.red-cta__text h2 { color: #fff; margin-bottom: .4rem; }
.red-cta__text p  { color: rgba(255,255,255,.75); max-width: 480px; }
.red-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------------------------------------------------------
   14. Page hero (inner pagina's)
--------------------------------------------------------------- */
.page-hero {
    background: var(--red);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero__title { color: #fff; margin-top: .75rem; }

.breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.6);
    margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: color 150ms; }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--yellow); } }
.breadcrumb span[aria-current] { color: rgba(255,255,255,.9); }

/* ---------------------------------------------------------------
   15. Page / Post content
--------------------------------------------------------------- */
.page-content, .post-content { max-width: none; }
.page-content p, .post-content p { margin-bottom: 1.25rem; color: var(--text); line-height: 1.75; }
.page-content h2, .page-content h3,
.post-content h2, .post-content h3 { margin-top: 2.5rem; margin-bottom: .75rem; }
.page-content ul, .page-content ol,
.post-content ul,  .post-content ol { margin-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content li, .post-content li { margin-bottom: .4rem; }
.page-content img, .post-content img { max-width: 100%; border-radius: var(--radius); margin-block: 1.5rem; }
.page-content a, .post-content a { color: var(--red); text-decoration: underline; }

.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.post-thumbnail { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2rem; }
.post-thumbnail img { width: 100%; }
.post-meta { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: .5rem; }
.post-navigation {
    display: flex; justify-content: space-between; gap: 1rem;
    margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.post-nav-link { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color 150ms; max-width: 45%; }
@media (hover: hover) and (pointer: fine) { .post-nav-link:hover { color: var(--red); } }

.post-sidebar { position: sticky; top: calc(var(--header-height) + var(--topbar-height) + 1.5rem); }
.sidebar-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.sidebar-card h4 { margin-bottom: .75rem; }
.sidebar-card p  { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------
   16. Contactformulier
--------------------------------------------------------------- */
.contact-form { max-width: 640px; }
.form-row { display: grid; gap: 1rem; }
.form-row--two { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font: inherit; font-size: .95rem; color: var(--text);
    background: var(--white);
    transition: border-color 150ms, box-shadow 150ms;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.alert { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 2rem; font-size: .9rem; font-weight: 500; }
.alert--success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------------------------------------------------------------
   17. Footer CTA
--------------------------------------------------------------- */
.footer-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: 3px solid var(--red);
}
.footer-cta__inner {
    display: flex; flex-wrap: wrap;
    gap: 2rem; align-items: center; justify-content: space-between;
}
.footer-cta__text h2 { color: #fff; margin-bottom: .4rem; }
.footer-cta__text p  { color: rgba(255,255,255,.65); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------------------------------------------------------
   18. Footer body (donker / bijna zwart)
--------------------------------------------------------------- */
.footer-body {
    background: var(--dark);
    padding-block: clamp(3rem, 5vw, 4.5rem);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-col h4 {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.footer-col h4::before {
    content: '';
    width: 14px; height: 2px;
    background: var(--red);
    flex-shrink: 0;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a {
    font-size: .85rem;
    color: rgba(255,255,255,.45);
    transition: color 140ms, padding-left 140ms;
}
@media (hover: hover) and (pointer: fine) {
    .footer-col ul a:hover { color: var(--yellow); padding-left: .35rem; }
}
.logo-text--light { color: var(--red); font-size: 1.2rem; font-weight: 900; }
.footer-tagline {
    font-size: .875rem;
    color: rgba(255,255,255,.4);
    margin: .65rem 0 1.1rem;
    line-height: 1.6;
    max-width: 270px;
}
.footer-social { display: flex; gap: .6rem; }
.social-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5);
    transition: background 150ms, color 150ms;
}
@media (hover: hover) and (pointer: fine) {
    .social-icon:hover { background: var(--red); color: #fff; }
}
.footer-col address { display: flex; flex-direction: column; gap: .7rem; }
.footer-col address p {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .85rem; color: rgba(255,255,255,.45); max-width: none;
}
.footer-col address svg { flex-shrink: 0; margin-top: .1em; color: var(--red); opacity: .7; }
.footer-col address a { color: rgba(255,255,255,.45); transition: color 140ms; }
@media (hover: hover) and (pointer: fine) { .footer-col address a:hover { color: var(--yellow); } }

/* ---------------------------------------------------------------
   19. Footer bottom
--------------------------------------------------------------- */
.footer-bottom {
    background: #060d14;
    padding-block: .9rem;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom__inner {
    display: flex; flex-wrap: wrap; gap: .65rem;
    justify-content: space-between; align-items: center;
    font-size: .78rem; color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color 140ms; }
@media (hover: hover) and (pointer: fine) { .footer-bottom a:hover { color: var(--yellow); } }

/* ---------------------------------------------------------------
   20. Paginering
--------------------------------------------------------------- */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.page-numbers {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--muted);
    transition: all 150ms;
}
.page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
@media (hover: hover) and (pointer: fine) {
    .page-numbers:not(.current):hover { border-color: var(--red); color: var(--red); }
}

/* ---------------------------------------------------------------
   21. Reveal animaties
--------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.fade-in { animation: fadeUp 650ms var(--ease-out) 150ms both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.stagger-1.reveal { transition-delay: 0ms; }
.stagger-2.reveal { transition-delay: 80ms; }
.stagger-3.reveal { transition-delay: 160ms; }
.stagger-4.reveal { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .fade-in { opacity: 1; animation: none; }
}

/* ---------------------------------------------------------------
   22. Responsive
--------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .over-ons__grid { grid-template-columns: 1fr; gap: 3rem; }
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --topbar-height: 0px; }
    .header-topbar { display: none; }
    /* header houdt z-index:1000 → nav erin is altijd boven overlay (999) */
    .hamburger { display: flex; }
    .header-cta { display: none; }
    /* Overlay begint ONDER de sticky header */
    .nav-overlay { top: var(--header-height); }
    /* Drawer header/footer tonen op mobiel */
    .nav-drawer-header { display: flex; }
    .nav-drawer-footer { display: block; }

    /* ── Slide-in drawer ──────────────────────────────────── */
    .main-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: auto;
        width: min(300px, 88vw);
        background: var(--white);
        padding: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 320ms var(--ease-drawer);
        z-index: 1002;
        box-shadow: -8px 0 48px rgba(0, 0, 0, .22);
        display: flex;
        flex-direction: column;
    }
    .main-nav.is-open { transform: translateX(0); }

    /* Drawer header */
    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 2px solid var(--red);
        flex-shrink: 0;
    }
    .nav-drawer-logo { font-size: .95rem; font-weight: 900; color: var(--red); letter-spacing: -.03em; line-height: 1.15; }
    .nav-drawer-logo-sub { font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: block; margin-top: .15rem; }
    .nav-close-btn {
        width: 36px; height: 36px;
        border-radius: 8px;
        background: var(--bg);
        display: flex; align-items: center; justify-content: center;
        color: var(--navy);
        transition: background 140ms, transform 200ms var(--ease-out);
        flex-shrink: 0;
    }
    .nav-close-btn:hover { background: var(--border); transform: rotate(90deg); }

    /* Nav items */
    .nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; flex: 1; }
    .nav-list > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
    /* Verberg ALLE CSS ::after pijltjes op mobiel – JS toggle-knop doet het werk */
    .nav-list .menu-item-has-children > a::after { display: none !important; }
    .nav-list > li:last-child { border-bottom: none; }
    .nav-list > li > a { flex: 1; padding: .9rem 1.25rem; font-size: .975rem; font-weight: 500; color: var(--text); border-bottom: none; border-radius: 0; transition: background 120ms, color 120ms; }
    .nav-list > li > a:hover { background: var(--bg); color: var(--red); }
    .nav-list > li.current-menu-item > a,
    .nav-list > li.current-menu-ancestor > a { color: var(--red); background: rgba(200,16,46,.07); font-weight: 700; }
    .submenu-toggle { display: flex; width: 48px; height: 48px; }

    /* Sub-menu accordion – 1e niveau */
    .nav-list .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none; border: none; border-radius: 0;
        background: var(--bg);
        padding: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 340ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .nav-list .sub-menu.is-open { max-height: 800px; }
    .nav-list .sub-menu li { border-bottom: 1px solid rgba(0,0,0,.07); position: static; }
    .nav-list .sub-menu li:last-child { border-bottom: none; }
    .nav-list .sub-menu > li > a {
        display: flex; align-items: center; gap: .6rem;
        padding: .75rem 1.25rem .75rem 1.75rem;
        font-size: .875rem; color: var(--text);
        border-radius: 0; white-space: normal;
        transition: background 120ms, color 120ms;
    }
    .nav-list .sub-menu > li > a::before { content: '→'; color: var(--red); font-size: .75rem; flex-shrink: 0; transition: transform 160ms var(--ease-out); }
    .nav-list .sub-menu > li > a::after { display: none !important; }
    .nav-list .sub-menu > li > a:hover { background: rgba(200,16,46,.05); color: var(--red); }
    .nav-list .sub-menu > li > a:hover::before { transform: translateX(3px); }

    /* Sub-sub-menu accordion – 2e niveau */
    .nav-list .sub-menu .sub-menu {
        background: var(--bg-2);
        margin-left: 0;
    }
    .nav-list .sub-menu .sub-menu > li > a {
        padding-left: 2.75rem;
        font-size: .825rem;
        color: var(--muted);
    }
    .nav-list .sub-menu .sub-menu > li > a::before { content: '–'; }
    /* Chevron-knop voor sub-items met kinderen */
    .nav-list .sub-menu li .submenu-toggle {
        width: 40px; height: 40px;
    }

    /* Drawer footer */
    .nav-drawer-footer { padding: 1.25rem; border-top: 1px solid var(--border); flex-shrink: 0; }

    .hero__content { padding-block: 4rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .hero__slider-nav { bottom: 1.5rem; }

    .over-ons__stats { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-cta__inner,
    .red-cta__inner { flex-direction: column; text-align: center; }
    .footer-cta__actions,
    .red-cta__actions { width: 100%; flex-direction: column; }
    .footer-cta__actions .btn,
    .red-cta__actions .btn { width: 100%; justify-content: center; }
    .usp-bar__grid { flex-direction: column; align-items: flex-start; padding-inline: var(--container-pad); }
    .footer-bottom__inner { flex-direction: column; text-align: center; }
    .form-row--two { grid-template-columns: 1fr; }
    .post-navigation { flex-direction: column; }
}

@media (max-width: 480px) {
    .diensten__grid, .projecten__grid, .archive-grid { grid-template-columns: 1fr; }
    .over-ons__stats { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------
   Page Hero (inner pagina's)
--------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding-block: clamp(3rem, 7vw, 5.5rem);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--red);
}

.page-hero__inner { max-width: 640px; }

.page-hero .section__label {
    color: var(--yellow);
    background: rgba(244,162,0,.15);
}

.page-hero h1 {
    color: var(--white);
    margin-block: .6rem 1rem;
}

.page-hero p {
    color: rgba(255,255,255,.75);
    font-size: 1.1rem;
    max-width: 52ch;
}

/* ---------------------------------------------------------------
   Contact pagina
--------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--red);
}

.contact-card h2 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.1rem;
    font-size: .95rem;
    color: var(--text);
    line-height: 1.5;
}

.contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }

.contact-item a {
    color: var(--red);
    font-weight: 600;
    transition: color 140ms;
}

.contact-item a:hover { color: var(--red-dark); }

/* Tips */
.contact-tips { border-top-color: var(--navy); }

.contact-tips h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.contact-tip { margin-bottom: 1.25rem; }
.contact-tip:last-child { margin-bottom: 0; }

.contact-tip__label {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
}

.contact-tip p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* Formulier kaart */
.contact-form-wrap h2 {
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
}

/* Maps */
.contact-map {
    line-height: 0;
}

.contact-map iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

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

@media (max-width: 600px) {
    .contact-map iframe { height: 280px; }
}
