/* =========================================================
   WERKWIJZEPAGINA – 1 VEEG / SCROLL = 1 BANNER
   =========================================================
   Los bestand zodat de bestaande homepage- en ondersteuning-snaplogica
   onaangeraakt blijven. De mededelingsbalk en navbar blijven zichtbaar;
   iedere werkwijze-banner vult exact de resterende viewport.
*/

html:has(body.page-approach),
html.approach-banner-page {
    --approach-top-offset: calc(var(--announcement-height) + var(--header-height));
    --approach-viewport-height: 100svh;
    --approach-banner-height: max(1px, calc(var(--approach-viewport-height) - var(--approach-top-offset)));
    scroll-behavior: auto;
    scroll-padding-top: var(--approach-top-offset);
    scroll-snap-type: y mandatory;
    overflow-anchor: none;
}

html.approach-banner-page.approach-banner-is-snapping {
    scroll-snap-type: none;
}

@supports (height: 100dvh) {
    html:has(body.page-approach),
    html.approach-banner-page {
        --approach-viewport-height: 100dvh;
    }
}

body.page-approach {
    overscroll-behavior-y: none;
}

.page-approach #main-content {
    position: relative;
    isolation: isolate;
}

.page-approach .approach-banner,
.page-approach .site-footer[data-approach-banner] {
    position: relative;
    width: 100%;
    height: var(--approach-banner-height);
    min-height: var(--approach-banner-height);
    max-height: var(--approach-banner-height);
    padding-block: 0;
    overflow: hidden;
    overflow: clip;
    overscroll-behavior: none;
    scroll-margin-top: 0;
    overflow-anchor: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    isolation: isolate;
}

.page-approach [data-approach-banner-content] {
    --approach-content-scale: 1;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(calc(100% - clamp(24px, 4vw, 48px)), var(--container));
    max-width: calc(100% - clamp(24px, 4vw, 48px));
    margin: 0;
    transform: translate(-50%, -50%) scale(var(--approach-content-scale));
    transform-origin: center center;
    will-change: transform;
}

/* Hero behoudt zijn bestaande layout en illustratie. Alleen de hoogte en de
   verticale uitlijning worden door het bannersysteem geregeld. */
.page-approach .approach-banner--hero .page-hero__grid {
    padding-block: 0;
}

/* Banner 2 bevat nu de volledige route: procesintro + alle vijf stappen.
   De verticale ruimte is bewust compacter gemaakt zodat de voormalige
   banners 2 en 3 één rustige, leesbare snap-banner vormen. De bestaande
   JavaScript-fit blijft alleen als vangnet voor zeer lage schermhoogtes. */
.page-approach .approach-process-row {
    background: var(--white);
}

.page-approach .approach-process-row .section-heading {
    margin-bottom: clamp(10px, 1.6vh, 18px);
}

.page-approach .approach-process-row .section-heading .eyebrow {
    margin-bottom: clamp(5px, .8vh, 9px);
}

.page-approach .approach-process-row .section-heading h2 {
    margin-bottom: clamp(7px, 1vh, 11px);
    font-size: clamp(1.8rem, 3.15vw, 2.85rem);
    line-height: 1.02;
}

.page-approach .approach-process-row .section-heading > p:last-child {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(.86rem, 1.08vw, .98rem);
    line-height: 1.38;
}

.page-approach .approach-process-row .approach-timeline {
    max-width: 960px;
    padding-block: 0;
}

.page-approach .approach-process-row .approach-timeline::before {
    top: 0;
    bottom: 0;
    left: 29px;
}

[dir="rtl"] .page-approach .approach-process-row .approach-timeline::before {
    left: auto;
    right: 29px;
}

.page-approach .approach-process-row .approach-timeline li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: clamp(16px, 2vw, 24px);
    padding-bottom: clamp(8px, 1.35vh, 14px);
}

.page-approach .approach-process-row .approach-timeline li:last-child {
    padding-bottom: 0;
}

.page-approach .approach-process-row .timeline__marker {
    width: 58px;
    height: 58px;
    border-width: 6px;
}

.page-approach .approach-process-row .approach-timeline h2 {
    margin: 1px 0 4px;
    font-size: clamp(1.16rem, 1.75vw, 1.58rem);
    line-height: 1.08;
}

.page-approach .approach-process-row .approach-timeline p {
    margin: 0;
    font-size: clamp(.82rem, 1vw, .94rem);
    line-height: 1.34;
}

/* De principes blijven in dezelfde stijl, maar de verticale ruimte wordt
   iets compacter zodat vier kaarten netjes als één banner functioneren. */
.page-approach .principles-section .section-heading {
    margin-bottom: clamp(22px, 4vh, 38px);
}

.page-approach .principles-section .principle-card h3 {
    margin-top: clamp(24px, 4vh, 44px);
}

/* Communicatie staat gecentreerd in een eigen banner. */
.page-approach .communication-section__grid {
    width: min(calc(100% - clamp(24px, 4vw, 48px)), var(--container));
}

/* Footer is de laatste snap-banner, net als op Home en Ondersteuning. */
.page-approach .site-footer[data-approach-banner] {
    padding: 0;
    background: var(--forest-deep);
}

.page-approach .site-footer__fit {
    display: grid;
    gap: clamp(24px, 5vh, 48px);
}

.page-approach .site-footer__fit > .container {
    width: 100%;
    margin-inline: 0;
}

.page-approach .site-footer__grid {
    gap: clamp(22px, 4vw, 46px);
}

.page-approach .site-footer__bottom {
    margin-top: 0;
}

@media (max-width: 840px) {
    .page-approach [data-approach-banner-content] {
        width: min(calc(100% - 24px), var(--container));
        max-width: calc(100% - 24px);
    }

    .page-approach .approach-process-row .section-heading {
        margin-bottom: 8px;
    }

    .page-approach .approach-process-row .section-heading .eyebrow {
        margin-bottom: 4px;
    }

    .page-approach .approach-process-row .section-heading h2 {
        margin-bottom: 6px;
        font-size: clamp(1.42rem, 6.2vw, 1.95rem);
        line-height: 1.02;
    }

    .page-approach .approach-process-row .section-heading > p:last-child {
        font-size: .78rem;
        line-height: 1.3;
    }

    .page-approach .approach-process-row .approach-timeline li {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 9px;
    }

    .page-approach .approach-process-row .timeline__marker {
        width: 48px;
        height: 48px;
        border-width: 5px;
    }

    .page-approach .approach-process-row .approach-timeline::before {
        left: 23px;
    }

    [dir="rtl"] .page-approach .approach-process-row .approach-timeline::before {
        left: auto;
        right: 23px;
    }

    .page-approach .approach-process-row .approach-timeline h2 {
        margin: 0 0 3px;
        font-size: clamp(1rem, 4vw, 1.22rem);
    }

    .page-approach .approach-process-row .approach-timeline p {
        font-size: .76rem;
        line-height: 1.28;
    }

    .page-approach .principles-section .section-heading {
        margin-bottom: 16px;
    }

    .page-approach .principles-section .principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .page-approach .principles-section .principle-card {
        padding: 18px;
    }

    .page-approach .principles-section .principle-card > span {
        font-size: 1.35rem;
    }

    .page-approach .principles-section .principle-card h3 {
        margin: 18px 0 7px;
        font-size: 1.18rem;
    }

    .page-approach .principles-section .principle-card p {
        font-size: .86rem;
        line-height: 1.4;
    }

    .page-approach .communication-section__grid {
        width: min(calc(100% - 24px), var(--container));
    }
}

@media (max-width: 480px) {
    .page-approach .approach-process-row .section-heading h2 {
        font-size: clamp(1.28rem, 6.7vw, 1.62rem);
    }

    .page-approach .approach-process-row .section-heading > p:last-child {
        font-size: .72rem;
        line-height: 1.25;
    }

    .page-approach .approach-process-row .approach-timeline li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding-bottom: 7px;
    }

    .page-approach .approach-process-row .timeline__marker {
        width: 42px;
        height: 42px;
        border-width: 4px;
        font-size: .82rem;
    }

    .page-approach .approach-process-row .approach-timeline::before {
        left: 20px;
    }

    [dir="rtl"] .page-approach .approach-process-row .approach-timeline::before {
        left: auto;
        right: 20px;
    }

    .page-approach .approach-process-row .approach-timeline h2 {
        font-size: clamp(.94rem, 4.2vw, 1.08rem);
    }

    .page-approach .approach-process-row .approach-timeline p {
        font-size: .69rem;
        line-height: 1.24;
    }

    .page-approach .principles-section .principle-card {
        padding: 14px;
    }

    .page-approach .principles-section .principle-card h3 {
        margin-top: 12px;
        font-size: 1.02rem;
    }

    .page-approach .principles-section .principle-card p {
        font-size: .78rem;
    }
}
