/*
 * Sectie (from BRM): band, content width and gutter. All values from styles/tokens.css. The gutter belongs to the
 * Section and Hero blocks only: the site footer and the brochure modal also carry .wzr-section (for the content
 * base layer) and must not get it.
 */
.wzr-section:is(.wp-block-acf-wzr-section, .wp-block-acf-wzr-hero) {
    padding-inline : var(--wzr-gutter);
}

.wzr-section--space-l    { padding-block : var(--wzr-section-space-l); }
.wzr-section--space-s    { padding-block : var(--wzr-section-space-s); }
.wzr-section--bg-light   { background-color : var(--color-gray-100); --wzr-color-surface : var(--color-gray-100); }
.wzr-section--bg-tint    { background-color : var(--color-base-tint); --wzr-color-surface : var(--color-base-tint); }
/* Webflow .branche_bg: the light blue only behind the lower three quarters (the video on the home page). */
.wzr-section--bg-tint-bottom { background : linear-gradient(to bottom, transparent 25%, var(--color-base-tint) 25%); }
.wzr-section--bg-tint-top    { background : linear-gradient(to bottom, var(--color-base-tint) 75%, transparent 75%); }

/* Donker: the dark gradient; everything inside takes the colours for a dark ground. */
.wzr-section--bg-dark {
    --wzr-color-heading     : var(--wzr-color-heading-on-dark);
    --wzr-color-body        : var(--wzr-color-body-on-dark);
    --wzr-color-lead        : var(--wzr-color-lead-on-dark);
    --wzr-color-subtitle    : var(--wzr-color-lead-on-dark);
    --wzr-color-quote       : var(--wzr-color-lead-on-dark);
    --wzr-color-textlink    : var(--wzr-color-textlink-on-dark);
    --wzr-breadcrumb-line   : var(--wzr-color-line-on-dark);
    --wzr-anchor-nav-line   : var(--wzr-color-line-on-dark);
    --wzr-anchor-nav-label  : var(--wzr-color-lead-on-dark);
    --wzr-color-surface     : var(--color-base-2);
    background              : var(--wzr-section-dark-bg);
}

.wzr-section__inner {
    width        : 100%;
    max-width    : var(--wzr-width-content);
    margin-inline: auto;
}

/* Achter de inhoud: a decorative image (default the brand background pattern) behind everything in the band. */
.wzr-section--behind {
    position  : relative;
    isolation : isolate;
}

.wzr-section__behind {
    position        : absolute;
    inset           : 0;
    z-index         : -1;
    display         : flex;
    justify-content : center;
    overflow        : hidden;
    pointer-events  : none;
}

.wzr-section__behind img {
    flex      : none;
    width     : 100%;
    max-width : var(--wzr-behind-max);
    height    : auto;
    margin-top: var(--wzr-behind-offset);
}


/* Afbeelding onderaan / Rooktextuur: full width, anchored at the bottom, faded into the ground. */
.wzr-section--behind-bottom .wzr-section__behind,
.wzr-section__behind:has(.wzr-section__texture) { align-items : flex-end; }

.wzr-section .wzr-section__behind .wzr-section__texture,
.wzr-section--behind-bottom .wzr-section__behind img:not(.wzr-section__texture) {
    position   : absolute;
    bottom     : 0;
    left       : 0;
    width      : 100%;
    max-width  : none;
    height     : auto;
    margin     : 0;
}

.wzr-section--behind-bottom .wzr-section__behind img:not(.wzr-section__texture) {
    opacity    : var(--wzr-backdrop-opacity);
    mask-image : linear-gradient(to bottom, transparent, #000 var(--wzr-backdrop-fade)); /* fades in: no edge on any ground */
}

.wzr-section .wzr-section__behind .wzr-section__texture {
    opacity        : var(--wzr-texture-opacity);
    mix-blend-mode : color-dodge;
    mask-image     : linear-gradient(to bottom, transparent, #000 var(--wzr-backdrop-fade));
}

/* Omhoog schuiven: over the machines of the Hero above, or a little over its lower edge, on desktop (stacked layouts keep their place). */
@media screen and (min-width: 992px) {
    .wzr-section--pull-up-hero,
    .wzr-section--pull-up-edge {
        position   : relative;
        z-index    : 1;
        margin-top : calc(var(--wzr-pull-up-hero) * -1);
    }

    .wzr-section--pull-up-edge { margin-top : calc(var(--wzr-pull-up-edge) * -1); }
}

/* Decoration that reaches past the screen edge (a featured photo, the specs glow) is clipped sideways, as Webflow's
   sections: the page never scrolls horizontally. */
.wzr-section { overflow-x : clip; }

/* "Witruimte erboven" (Webflow .top-margin-l). */
.wzr-section--space-before { margin-top : var(--wzr-space-before); }
