/* Hero (O2.8): image band with overlay, breadcrumb, centred title/intro/buttons. Values from styles/tokens.css. */
.wzr-hero {
    --wzr-color-heading : var(--wzr-color-heading-on-dark);
    --wzr-color-body    : var(--wzr-color-body-on-image);
    position            : relative;
    isolation           : isolate;
    overflow            : hidden;
    padding             : var(--wzr-hero-top) var(--wzr-gutter) var(--wzr-hero-bottom);
    background          : var(--wzr-hero-bg);
    text-align          : center;
}

.wzr-hero__media,
.wzr-hero__media::after {
    position : absolute;
    inset    : 0;
    z-index  : -1;
}

.wzr-hero__media::after {
    content    : "";
    z-index    : 0;
    background : var(--wzr-hero-overlay);
    opacity    : var(--wzr-hero-overlay-opacity);
}

.wzr-hero__image {
    display    : block;
    width      : 100%;
    height     : 100%;
    object-fit : cover;
}

/* Breadcrumb (shared look in styles/content.css): on the band's dark ground. */
.wzr-hero__breadcrumbs { --wzr-breadcrumb-line : var(--wzr-color-line-on-dark); }

.wzr-hero__content {
    max-width     : var(--wzr-width-narrow);
    margin        : var(--wzr-hero-space) auto 0;
    align-items   : center;
}

.wzr-section.wzr-hero h1 {
    margin-bottom : var(--wzr-hero-title-extra);
    font-size     : var(--wzr-text-h1);
    line-height   : var(--wzr-text-h1-lh);
}

.wzr-section.wzr-hero p {
    font-size   : var(--wzr-text-large);
    line-height : var(--wzr-text-large-lh);
    font-weight : var(--wzr-weight-lead);
}

.wzr-section.wzr-hero .wp-block-buttons { justify-content : center; }

/* Buttons keep their own width here (elsewhere they fill the row on tablet). */
.wzr-section.wzr-hero .wp-block-button:not(.is-style-link, .is-style-text)                        { flex : 0 1 auto; }
.wzr-section.wzr-hero .wp-block-button:not(.is-style-link, .is-style-text) .wp-block-button__link { width : auto; }

/* Icoon boven de titel. */
.wzr-hero__icon {
    display    : block;
    width      : var(--wzr-hero-icon);
    height     : var(--wzr-hero-icon);
    object-fit : contain;
}

/* Editor: the block wrappers ACF adds inside the content stack. */
.wzr-hero__content > .acf-innerblocks-container { align-items : center; width : 100%; }

/* Machines onder de inhoud: the image overlaps the band, which stops --wzr-hero-overlap above the section's end. */
.wzr-hero--machine {
    --wzr-hero-space : var(--wzr-hero-space-machine);
    padding-bottom   : 0;
    background       : none;
}

.wzr-hero--machine .wzr-hero__media {
    bottom     : var(--wzr-hero-overlap);
    background : var(--wzr-hero-bg);
}

.wzr-hero__machine {
    max-width     : var(--wzr-width-content);
    margin        : var(--wzr-gap-l) auto 0;
}

.wzr-hero__machine img {
    display : block;
    width   : 100%;
    height  : auto;
}


/*
 * Tablet and phone: Webflow's compact band (.hero-content_wrapper): left aligned, 4.8rem around the text (4rem on
 * phones), the USPs hidden (.plain-hero_usps), the buttons stacked on phones.
 */
@media screen and (max-width: 991px) {
    .wzr-section.wzr-hero { padding : 1.6rem var(--wzr-gutter) 4.8rem; text-align : left; }
    .wzr-hero__content { margin-top : 4.8rem; align-items : flex-start; }
    .wzr-hero__content > .acf-innerblocks-container { align-items : flex-start; }
    .wzr-section.wzr-hero .wp-block-buttons { justify-content : flex-start; }
    .wzr-section.wzr-hero .wzr-hero__content :is(.wzr-checklist, .wzr-usp-row) { display : none; } /* over the USP row's own tablet grid */
}
@media screen and (max-width: 479px) {
    .wzr-section.wzr-hero { padding-bottom : 4rem; }
    .wzr-hero__content { margin-top : 2.4rem; }
    .wzr-section.wzr-hero h1 { font-size : 3.6rem; line-height : 4.4rem; }
    .wzr-section.wzr-hero p { font-size : var(--wzr-text-body); line-height : var(--wzr-text-body-lh); font-weight : var(--wzr-weight-regular); }
    .wzr-section.wzr-hero .wp-block-buttons { flex-direction : column; align-items : stretch; }
    .wzr-section.wzr-hero .wp-block-button:not(.is-style-link, .is-style-text) .wp-block-button__link { width : 100%; }
    .wzr-section.wzr-hero .wp-block-button.is-style-link { align-self : center; }
}
