/*
 * Typography and media for content inside the composable blocks (O2.8): core headings, paragraphs, lists and
 * images placed in a Section. Scoped to .wzr-section so legacy blocks keep their Webflow styles. Spacing between
 * blocks comes from the layout's gap, so content starts without outer margins; text blocks add their own flow.
 */
/*
 * Base layer (O2.8): everything the new blocks need from element defaults, so they don't depend on the Webflow
 * CSS (normalize.css, wzr-nl.css), which goes once every page is rebuilt. Checked with ?wzr_legacy=0 locally
 * (.private/poc/legacy-check.mjs: no differences with and without the legacy CSS). Low specificity (:where), so
 * block styles override it. Border-box also makes the editor canvas (which never loads the Webflow CSS) match.
 */
.wzr-section,
.wzr-section *,
.wzr-section *::before,
.wzr-section *::after { box-sizing : border-box; }

.wzr-section :where(img) {
    display        : inline-block;
    max-width      : 100%;
    vertical-align : middle;
    border         : 0;
}

.wzr-section :where(a) {
    color           : var(--wzr-color-textlink);
    font-weight     : var(--wzr-weight-link);
    text-decoration : none;
    cursor          : pointer;
}

.wzr-section :where(a:hover) { color : var(--color-base-dark); }

.wzr-section :where(b, strong) { font-weight : var(--wzr-weight-heading); }

.wzr-section :where(button, input, select, textarea) {
    margin     : 0;
    font       : inherit;
    color      : inherit;
    appearance : none;
}

.wzr-section :where(button) { cursor : pointer; }

.wzr-section :where(label) { display : block; margin : 0; font-weight : inherit; }

.wzr-section :where(blockquote) { margin : 0; color : inherit; }

.wzr-section :where(ul, ol) { padding-left : var(--wzr-list-indent); }

.wzr-section :where(ol) { font-weight : var(--wzr-weight-body); } /* as the Webflow ol; the numbers follow their li */

.wzr-section {
    color       : var(--wzr-color-body);
    font-family : var(--font-base);
    font-size   : var(--wzr-text-body);
    line-height : var(--wzr-text-body-lh);
}

.wzr-section :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) {
    margin : 0;
}

.wzr-section :where(h1, h2, h3, h4, h5, h6) {
    color       : var(--wzr-color-heading);
    font-family : var(--wzr-font-heading);
    font-weight : var(--wzr-weight-heading);
}

.wzr-section h1 { font-size : var(--wzr-text-h1); line-height : var(--wzr-text-h1-lh); }
.wzr-section h2 { font-size : var(--wzr-text-h2); line-height : var(--wzr-text-h2-lh); }
.wzr-section h3 { font-size : var(--wzr-text-h3); line-height : var(--wzr-text-h3-lh); }
.wzr-section h4 { font-size : var(--wzr-text-h4); line-height : var(--wzr-text-h4-lh); }
.wzr-section h5 { font-size : var(--wzr-text-h5); line-height : var(--wzr-text-h5-lh); }
.wzr-section h6 { font-size : var(--wzr-text-h6); line-height : var(--wzr-text-h6-lh); }

.wzr-section :where(p, li) {
    color       : var(--wzr-color-body); /* per element, so a dark panel can switch the tokens (wzr-columns CTA) */
    font-size   : var(--wzr-text-body);
    line-height : var(--wzr-text-body-lh);
    font-weight : var(--wzr-weight-body);
}

.wzr-section .wp-block-image img {
    display       : block;
    width         : 100%;
    height        : auto;
    border-radius : var(--wzr-radius-l);
    object-fit    : cover;
}

/*
 * Stack: the children of a Section, Center or Column, under each other with a gap from the token scale (the
 * block's "gap" setting). In the editor ACF puts the inner blocks in an extra .acf-innerblocks-container, which gets
 * the same layout (on the front end that wrapper is switched off, inc/block-layout.php).
 */
.wzr-stack,
.wzr-stack > .acf-innerblocks-container {
    display        : flex;
    flex-direction : column;
    gap            : var(--wzr-stack-gap, var(--wzr-gap-l));
}

.wzr-stack--gap-xs { --wzr-stack-gap : var(--wzr-gap-xs); }
.wzr-stack--gap-s { --wzr-stack-gap : var(--wzr-gap-s); }
.wzr-stack--gap-m { --wzr-stack-gap : var(--wzr-gap-m); }
.wzr-stack--gap-l { --wzr-stack-gap : var(--wzr-gap-l); }

/* Paragraph style "Groot": the larger body text. */
.wzr-section .is-style-large {
    font-size   : var(--wzr-text-large);
    line-height : var(--wzr-text-large-lh);
}

/* Paragraph style "Klein": small print (e.g. the disclaimer under a vacancy). */
.wzr-section .is-style-small {
    font-size   : var(--wzr-text-small);
    line-height : var(--wzr-text-small-lh);
}

/* Paragraph style "Notitie": a small italic remark in a thin frame (e.g. "Wij leveren voornamelijk aan bedrijven …"). */
.wzr-section .is-style-note {
    padding       : var(--wzr-pill-padding-y) var(--wzr-pill-padding-x);
    border        : var(--wzr-line-width) solid var(--wzr-color-line);
    border-radius : var(--wzr-radius-s);
    font-size     : var(--wzr-text-small);
    line-height   : var(--wzr-text-small-lh);
    font-style    : italic;
}

/* Paragraph style "Inleiding": the bold lead under a heading. */
.wzr-section .is-style-lead {
    color       : var(--wzr-color-lead);
    font-size   : var(--wzr-text-lead);
    line-height : var(--wzr-text-lead-lh);
    font-weight : var(--wzr-weight-lead-text);
}

/*
 * Subtitle (paragraph block style "Subtitel"). It always sits --wzr-gap-s under the block before it, whatever the
 * layout's gap, so title → subtitle stays tight while subtitle → text gets the layout's gap.
 */
.wzr-section .is-style-subtitle {
    font-family : var(--wzr-font-heading);
    color       : var(--wzr-color-subtitle);
    font-size   : var(--wzr-text-subtitle);
    line-height : var(--wzr-text-subtitle-lh);
    font-weight : var(--wzr-weight-subtitle-style);
}

.wzr-stack > .is-style-subtitle,
.wzr-stack > .acf-innerblocks-container > .is-style-subtitle {
    margin-top : calc(var(--wzr-gap-s) - var(--wzr-stack-gap, var(--wzr-gap-l)));
}

/*
 * Buttons (core Buttons/Button). Primary: the brand gradient. Style "Link met pijl": a text link with the arrow;
 * blocks that print such a link themselves (wzr-card) use .wzr-link-arrow for the same look.
 */
.wzr-section .wp-block-buttons {
    display     : flex;
    flex-wrap   : wrap;
    align-items : center; /* a text link next to a button sits on its middle */
    gap       : var(--wzr-gap-xs);
}

.wzr-section .wp-block-button__link {
    display          : inline-flex;
    align-items      : center;
    justify-content  : space-between;
    gap              : 0;
    min-height       : var(--wzr-button-height);
    padding          : 0 0 0 var(--wzr-button-padding-x);
    border           : 0;
    border-radius    : var(--wzr-button-radius);
    box-shadow       : var(--wzr-button-shadow);
    background       : var(--wzr-gradient-1); /* shorthand: also replaces classic-theme-styles' button colour */
    color            : var(--color-white);
    font-family      : var(--font-base);
    font-size        : var(--wzr-text-button);
    line-height      : var(--wzr-text-button-lh);
    font-weight      : var(--wzr-weight-button);
    text-align       : center;
    text-decoration  : none;
    background-size  : 200% 100%; /* after the shorthand: the gradient is twice as wide and slides on hover */
    transition       : background-position var(--wzr-duration-button) var(--wzr-ease-button), background-color var(--wzr-duration-button) var(--wzr-ease-button);
}

/* Webflow .button_icon-container: a square box on the right with the arrow, or the document icon on brochure links. */
.wzr-section .wp-block-button:not(.is-style-link, .is-style-link-out, .is-style-text) .wp-block-button__link::after {
    content          : "";
    flex             : none;
    width            : var(--wzr-button-icon-box);
    height           : var(--wzr-button-icon-box);
    background-color : currentColor;
    mask             : url("../assets/images/icon-arrow.svg") center / var(--wzr-button-icon) no-repeat;
}

.wzr-section .wp-block-button:not(.is-style-link, .is-style-link-out, .is-style-text) .wp-block-button__link[href*="brochure"]::after {
    mask-image : url("../assets/images/icon-file.svg");
}

.wzr-section .wp-block-button:not(.is-style-link, .is-style-link-out, .is-style-text) .wp-block-button__link:is(:hover, :focus-visible) {
    background-position : 100% 0;
    color               : var(--color-white);
}

.wzr-section .wp-block-button.is-style-link .wp-block-button__link,
.wzr-section .wzr-link-arrow {
    display          : inline-flex;
    align-items      : center;
    gap              : var(--wzr-gap-xs);
    min-height       : 0;
    padding          : 0;
    background       : none;
    color            : var(--wzr-color-heading);
    font-size        : var(--wzr-text-link);
    line-height      : var(--wzr-text-link-lh);
    font-weight      : var(--wzr-weight-link);
}

.wzr-section .wp-block-button.is-style-link .wp-block-button__link::after,
.wzr-section .wzr-link-arrow::after {
    content    : "";
    flex       : none;
    width      : var(--wzr-icon-s);
    height     : var(--wzr-icon-s);
    background : url("../assets/images/Icon---Arrow-right---primary.svg") center / contain no-repeat;
}

/* Button style "Secundair": the blue-to-mint brand gradient. */
.wzr-section .wp-block-button.is-style-secondary .wp-block-button__link { background : var(--wzr-gradient-2); background-size : 200% 100%; box-shadow : var(--wzr-button-blue-shadow); }

/* Button style "Donker": dark blue with a light edge, for dark grounds such as the Hero. */
/* Webflow .button.is-tertiary: the dark gradient (gm-100 → gm-90). */
.wzr-section .wp-block-button.is-style-dark .wp-block-button__link {
    background       : linear-gradient(120deg, var(--color-base-2), var(--color-base-2-light));
    background-color : var(--wzr-button-dark-bg);
    box-shadow       : var(--wzr-button-dark-shadow);
    transition       : background-color var(--wzr-duration-button) var(--wzr-ease-button);
}

.wzr-section .wp-block-button.is-style-dark .wp-block-button__link:is(:hover, :focus-visible) { background-color : var(--wzr-button-dark-hover); }

/* Button style "Tekstlink": a plain blue link, e.g. a phone number. */
.wzr-section .wp-block-button.is-style-text .wp-block-button__link {
    min-height  : 0;
    padding     : 0;
    background  : none;
    color       : var(--wzr-color-textlink);
    font-size   : var(--wzr-text-textlink);
    line-height : var(--wzr-text-textlink-lh);
    font-weight : var(--wzr-weight-textlink);
}

/* Tablet and phone: buttons take the full width (Webflow .button: width 100% from 991 px down). */
@media screen and (max-width: 991px) {
    .wzr-section .wp-block-button:not(.is-style-link, .is-style-link-out, .is-style-text)                        { flex : 1 1 100%; }
    .wzr-section .wp-block-button:not(.is-style-link, .is-style-link-out, .is-style-text) .wp-block-button__link { width : 100%; }
}

/* Core Table: small text, a line under the header row, striped body rows (as Bedrijfsgegevens); scrolls on small screens. */
.wzr-section .wp-block-table { overflow-x : auto; }
.wzr-section .wp-block-table table {
    width           : 100%;
    border-collapse : collapse;
    font-size       : var(--wzr-text-small);
    line-height     : var(--wzr-text-small-lh);
}
.wzr-section .wp-block-table :is(thead, tfoot) { border : 0; }
.wzr-section .wp-block-table :is(th, td) {
    padding        : var(--wzr-table-cell-padding);
    border         : 0;
    text-align     : left;
    vertical-align : top;
    color          : var(--wzr-color-body);
}
.wzr-section .wp-block-table thead th {
    border-bottom : var(--wzr-line-width) solid var(--wzr-table-line);
    color         : var(--wzr-color-heading);
    font-weight   : var(--wzr-weight-semibold);
}
.wzr-section .wp-block-table tbody tr:nth-child(odd) { background : var(--wzr-table-row-bg); }

/* Highlight words in a heading: the editor's text colour, limited to the brand palette (inc/block-layout.php). */
.wzr-section mark.has-inline-color { background : none; }

/* Image block styles: own ratio by default; square, square on small phones only, 3:2 or 16:9 (cropped); Banier: the
   full width at a fixed height, cropped (the photos of a single ervaring; live .content-image). */
.wzr-section .wp-block-image.is-style-square img     { aspect-ratio : 1; }
.wzr-section .wp-block-image.is-style-ratio-3-2 img  { aspect-ratio : 3 / 2; }
.wzr-section .wp-block-image.is-style-ratio-16-9 img { aspect-ratio : 16 / 9; }
.wzr-section .wp-block-image.is-style-banner img     { height : var(--wzr-image-banner-height); }
.wzr-section .wp-block-image.is-style-form-image img { height : 24.8rem; object-fit : cover; border-radius : 2.4rem; } /* Webflow .form-image */

@media screen and (max-width: 479px) {
    .wzr-section .wp-block-image.is-style-square-mobile img { aspect-ratio : 1; }
}

/* Scheidingslijn (core/separator): a thin line in the text colour of its ground (dark CTA cards too). */
.wzr-section hr.wp-block-separator {
    width      : 100%;
    margin     : 0;
    border     : 0;
    border-top : var(--wzr-line-width) solid color-mix(in srgb, var(--wzr-color-body) var(--wzr-divider-strength), transparent);
    background : none;
    opacity    : 1;
}

/* Slider arrows, shared by Slider and Afbeeldingscarrousel (round outline buttons, --wzr-slider-arrow wide). */
.wzr-section .wzr-slider__arrow {
    display         : flex;
    align-items     : center;
    justify-content : center;
    width           : var(--wzr-slider-arrow);
    height          : var(--wzr-slider-arrow);
    padding         : 0;
    border          : var(--wzr-line-width) solid var(--wzr-color-line);
    border-radius   : 50%;
    background      : transparent;
    color           : var(--wzr-color-body);
    cursor          : pointer;
    transition      : background var(--wzr-duration-fast);
}

.wzr-section .wzr-slider__arrow:hover       { background : var(--color-gray-100); }
.wzr-section .wzr-slider__arrow.is-disabled { opacity : var(--wzr-opacity-disabled); cursor : default; pointer-events : none; }
.wzr-section .wzr-slider__arrow svg         { display : block; width : var(--wzr-slider-arrow-icon); height : var(--wzr-slider-arrow-icon); }
.wzr-section .wzr-slider__arrow--prev svg   { transform : scaleX(-1); }

/* Image style "Transparant": a cut-out or signature (transparent PNG/SVG): its own size, no rounding or crop, centred. */
.wzr-section .wp-block-image.is-style-transparent img {
    width         : auto;
    max-width     : 100%;
    margin-inline : auto;
    border-radius : 0;
    object-fit    : contain;
}


/*
 * Breadcrumb (wzr_breadcrumbs_html(): the Hero and the Kruimelpad block): the content width, a thin line under it;
 * scrolls sideways on small screens instead of wrapping. Colours follow the ground.
 */
.wzr-breadcrumbs {
    width         : 100%;
    max-width     : var(--wzr-width-content);
    margin-inline : auto;
    border-bottom : var(--wzr-line-width) solid var(--wzr-breadcrumb-line, var(--wzr-color-line));
    text-align    : left;
    overflow-x    : auto;
}

.wzr-breadcrumbs ol {
    display     : flex;
    gap         : var(--wzr-gap-2xs);
    margin      : 0;
    padding     : var(--wzr-crumb-padding) 0;
    list-style  : none;
    white-space : nowrap;
    color       : var(--wzr-color-heading);
    font-size   : var(--wzr-text-body);
    line-height : var(--wzr-text-body-lh);
    font-weight : var(--wzr-weight-heading);
}

.wzr-section .wzr-breadcrumbs li { /* over the generic list-item text style */
    color       : inherit;
    font-size   : inherit;
    line-height : inherit;
    font-weight : inherit;
}

.wzr-breadcrumbs li + li::before {
    content      : "/";
    margin-right : var(--wzr-gap-2xs);
    font-weight  : var(--wzr-weight-body);
}

.wzr-breadcrumbs a {
    color           : inherit;
    font-weight     : var(--wzr-weight-body);
    text-decoration : none;
}

.wzr-breadcrumbs a:hover { text-decoration : underline; }

/* Button style "Link met schuine pijl": as "Link met pijl", with the diagonal arrow in the text colour (overview pages). */
.wzr-section .wp-block-button.is-style-link-out .wp-block-button__link {
    display     : inline-flex;
    align-items : center;
    gap         : var(--wzr-gap-xs);
    min-height  : 0;
    padding     : 0;
    background  : none;
    color       : var(--wzr-color-heading);
    font-size   : var(--wzr-text-link);
    line-height : var(--wzr-text-link-lh);
    font-weight : var(--wzr-weight-link);
}

.wzr-section .wp-block-button.is-style-link-out .wp-block-button__link::after {
    content          : "";
    flex             : none;
    width            : var(--wzr-icon-s);
    height           : var(--wzr-icon-s);
    background-color : currentColor;
    mask             : url("../assets/images/Icon---Arrow-Scew---Darkblue100.svg") center / contain no-repeat;
}

/* The editor palette (inc/block-layout.php) as text colours for highlighted words. WordPress's global styles, which
   would print these with 12 KB of presets, are off on the front end (functions.php). */
.has-wzr-orange-color { color : var(--wzr-color-text-orange); }
.has-wzr-blue-color   { color : var(--color-base); }
.has-wzr-dark-color   { color : var(--color-base-2); }
.has-wzr-gray-color   { color : var(--color-base-2-light); }
.has-wzr-white-color  { color : var(--color-white); }

/* A price (wzr_price_html(), inc/product.php), the same everywhere: two aligned lines, the net one bold in the accent
   colour, the gross one small and grey. A context sets only the size (--wzr-price-size/-lh) or, on a dark ground, the
   colours (--wzr-price-color, --wzr-price-gross-color). */
.wzr-price { display : inline-grid; grid-template-columns : auto auto; align-items : baseline; column-gap : var(--wzr-price-gap, 1.2rem); text-align : left; }
.wzr-price > * { white-space : nowrap; }
.wzr-price__net { color : var(--wzr-price-color, var(--color-accent-1)); font-size : var(--wzr-price-size, 2rem); line-height : var(--wzr-price-lh, 2.8rem); font-weight : 700; }
.wzr-price__gross { color : var(--wzr-price-gross-color, var(--color-base-2-lighter)); font-size : 1.2rem; line-height : 1.6rem; font-weight : var(--wzr-weight-regular); }

/* Tekstblok "Inspringen links": Webflow's 13.6rem indent (.brand-slider_title-wrapper), desktop only. */
.wzr-section .wzr-text--indent { padding-left : var(--wzr-indent); }
@media screen and (max-width: 991px) { .wzr-section .wzr-text--indent { padding-left : 0; } }
