/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  bricks-base child theme. Global styling only (base layer, header/footer/resnav, plugins); component CSS lives in the components.
 Author:       Fervent Digital
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ==========================================================================
   bricks-base: base layer
   - Colours, font sizes and radii come from the Global styles phase
     (palette variables + tools/fluid-scale.py font-size tokens, values taken from Figma).
     Spacing is rem with breakpoint overrides; only font sizes are fluid (clamp).
     Nothing here hardcodes a design value; fallbacks only keep things working.
   - Native CSS nesting (as on all agency sites).
   - Global styling only. Block-specific CSS lives in the component (element settings, or the root's
     Custom CSS with %root%), so it only loads on pages that use the block (docs/09).
   ========================================================================== */

/* --- Motion: agency standard easing for every CSS transition (also a Bricks global variable, docs/03).
       GSAP uses expo.inOut (docs/10). --- */

:root {
    --anim: cubic-bezier(.25, .46, .45, .94);
}

/* --- Accessibility basics (missing on all example sites) ------------------ */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--focus, currentColor);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    /* overflow: hidden is the standard screen-reader pattern here (no visible effect); elsewhere use clip (docs/02) */
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Anchor targets clear the sticky header (native jump when Lenis is off) */
:target,
[id] {
    scroll-margin-top: calc(var(--header-height, 0px) + 2rem);
}

/* --- Lenis (official lenis.css, v1.3.26). Required: .lenis-stopped also blocks native touch
       scrolling on mobile while the resnav is open (resnav.js calls lenis.stop()) --- */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis :is([data-lenis-prevent], [data-lenis-prevent-wheel], [data-lenis-prevent-touch], [data-lenis-prevent-vertical], [data-lenis-prevent-horizontal]) {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.lenis.lenis-autoToggle {
    transition-property: overflow;
    transition-duration: 1ms;
    transition-behavior: allow-discrete;
}

/* --- Document ------------------------------------------------------------- */

body {
    &.bricks-is-frontend.admin-bar {
        #brx-header.brx-sticky,
        #brx-header [data-sticky] {
            top: var(--wp-admin--admin-bar--height);
        }
    }

    /* Bricks' offcanvas is hidden in the builder canvas otherwise */
    &[data-builder-window] .brxe-offcanvas {
        opacity: 100%;
    }
}

a {
    text-underline-position: from-font;

    &:not([href]) {
        cursor: auto;
    }
}

h1, h2, h3, h4, h5, h6, .brxe-heading {
    text-wrap: balance;
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

/* Accent words: write them as <strong> in the heading text (01: script font, 02: gradient).
   Set --font-accent / --color-accent in the Global styles phase; without them strong stays bold. */
:is(h1, h2, h3, h4, h5, h6, .brxe-heading) :is(strong, b) {
    font-family: var(--font-accent, inherit);
    color: var(--color-accent, inherit);
}

mark {
    background: none;
    color: var(--color-mark, inherit);
}

/* --- Section modes (global classes .bg / .bg-alt, see docs/09) ------------ */

.bg {
    color: var(--text-on-light, inherit);
}

.bg-alt {
    color: var(--text-on-dark, inherit);
}

/* --- Rich text (Bricks text element) -------------------------------------- */

.brxe-text {
    > * + * {
        margin-top: 1.5rem;
    }

    ul,
    ol {
        margin: 0;
        padding-left: 1.25em;

        li + li {
            margin-top: 0.75rem;
        }

        li::marker {
            color: var(--list-marker, currentColor);
        }
    }

    a {
        text-decoration: underline;
    }
}

/* --- Buttons (theme style sets colours/padding; JS module buttons.js adds the spans) --- */

.bricks-button {
    min-height: var(--button-height, 3rem);
    transition: all var(--anim) 0.3s;

    &.sm {
        min-height: var(--button-height-sm, 2.5rem);
    }

    svg {
        flex-shrink: 0;

        path {
            transition: stroke var(--anim) 0.3s, fill var(--anim) 0.3s;
        }
    }

    /* Rolling text hover (01): .btn-text-container > .btn-text */
    &.bricks-background-primary,
    &.bricks-background-secondary {
        position: relative;
        overflow: clip;

        .btn-text-container {
            display: block;
            overflow: clip;
        }

        .btn-text {
            display: block;
            transition: transform var(--anim) 0.3s;
            text-shadow: 0 2.5em 0 currentColor;
        }

        &:hover .btn-text {
            transform: translateY(-2.5em);
        }
    }

    /* Split icon button (01 .btn-icon): text box + icon box */
    &.btn-icon {
        gap: 0.25rem;

        .btn-icon__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            aspect-ratio: 1;
            height: 100%;
        }
    }
}

/* --- Link with arrow box (01 .link-arrow; two icons, one slides out, one in) --- */

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    > .brxe-div,
    > .brxe-block {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: clip;
        transition: background-color var(--anim) 0.3s;

        > .brxe-icon {
            transition: transform var(--anim) 0.3s;

            &:last-child {
                position: absolute;
                transform: translateX(-200%);
            }
        }
    }

    &:hover > :is(.brxe-div, .brxe-block) > .brxe-icon {
        &:first-child {
            transform: translateX(200%);
        }

        &:last-child {
            transform: translateX(0);
        }
    }
}

/* --- Breadcrumbs (01: truncate long items, title added by JS if needed) --- */

.brxe-breadcrumbs .item {
    max-width: 22rem;
    overflow: clip;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--anim) 0.3s;
}

/* --- Cards: article root, title is a link in a <p>, stretched over the card (docs/05, docs/09) --- */

article:has(.card__link) {
    position: relative;
}

.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Other links/buttons in the card stay clickable and focusable above the stretched link */
article:has(.card__link) :is(a, button, summary, input, select, textarea):not(.card__link) {
    position: relative;
    z-index: 2;
}

/* --- FAQ / disclosure: native details + summary (docs/05) ------------------ */

details > summary {
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker {
        display: none;
    }

    /* a heading inside summary (question in the outline) keeps summary's layout */
    > :is(h2, h3, h4, h5, h6) {
        display: inline;
        margin: 0;
        font: inherit;
    }
}

/* --- Header states: native Bricks sticky header adds .scrolling (docs/09 "Sticky header") --- */

#brx-header {
    transition: background-color var(--anim) 0.3s, transform var(--anim) 0.3s, box-shadow var(--anim) 0.3s;

    &.scrolling {
        /* project-specific scrolled styles that the template's sticky settings can't express */
    }
}

/* --- Resnav: default mobile menu (01 pattern, docs/09 "Header and resnav", resnav.js) ---
   Header bar stays visible; one toggle opens and closes; the panel fades in below the bar.
   Tree: .header-bar > … > [data-resnav-toggle] (swap + Bricks Toggle) and
         Nav Nested > Offcanvas.resnav > .brx-offcanvas-inner > nav menu (+ button)
   Colours, radius, label text and icons come from the design (element settings). */

#brx-header {
    /* The bar is the containing block of the fixed panel: top/height below are relative to the bar */
    .header-bar {
        contain: layout;
    }

    /* Toggle: Bricks Toggle stretched over the visible button, so one element opens and closes */
    [data-resnav-toggle] {
        position: relative;
        cursor: pointer;

        > .brxe-toggle {
            position: absolute;
            inset: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            padding: 0;
            border: 0;
            background: none;

            /* hamburger off: the swap shows the state (remove when the design uses Bricks' own icon) */
            .brxa-wrap {
                display: none;
            }
        }
    }

    /* Swap: first child = closed state, last child = open state (labels "Menu"/"Sluit" or two icons) */
    .resnav-toggle__swap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: clip;

        > * {
            transition: color var(--anim) 0.3s, transform var(--anim) 0.3s;
        }

        > :last-child {
            position: absolute;
            transform: translateY(-2.5em);
        }
    }

    [data-resnav-toggle]:is(.is-open, :has(> .brxe-toggle.is-active)) .resnav-toggle__swap {
        > :first-child {
            transform: translateY(2.5em);
        }

        > :last-child {
            transform: translateY(0);
        }
    }

    /* Panel: Offcanvas with class .resnav, opens below the bar (gap = --resnav-gap) */
    .resnav {
        --resnav-gap: 0.5rem;

        position: fixed;
        top: calc(100% + var(--resnav-gap));
        left: 0;
        width: 100%;
        height: calc((100svh - 100%) - var(--resnav-gap));
        max-height: calc((100svh - 100%) - var(--resnav-gap));
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--anim) 0.3s, visibility var(--anim) 0.3s;

        &.brx-open {
            opacity: 100%;
            pointer-events: auto;
        }

        .brx-offcanvas-inner {
            position: relative;
            overflow: visible;
            transform: none;
        }

        /* Sub levels (mega menu template in the mobile nav menu): panel over the menu, with a
           heading from data-title (resnav.js) and a [data-back] button in the template */
        .brxe-nav-menu .brx-has-megamenu {
            .brx-submenu-toggle button {
                display: none;
            }

            .brx-megamenu {
                top: calc(-1 * var(--resnav-pad-block, 2rem));
                left: calc(-1 * var(--resnav-pad-inline, 1.5rem)) !important;
                right: calc(-1 * var(--resnav-pad-inline, 1.5rem)) !important;
                width: unset;
                min-width: unset !important;

                .brx-submenu-toggle button {
                    display: none;
                }

                .bricks-nav-menu > .menu-item-has-children {
                    position: unset;

                    > .sub-menu {
                        position: absolute !important;
                        inset: 0 0 auto 0;
                        min-width: unset !important;
                        max-height: calc(100svh - var(--header-height, 0px));
                        padding: var(--resnav-pad-block, 2rem) var(--resnav-pad-inline, 1.5rem);
                        overflow: hidden auto; /* scroll panel: clip can't be combined with auto (docs/02) */
                        transition: opacity var(--anim) 0.3s, visibility var(--anim) 0.3s;

                        &::before {
                            content: attr(data-title);
                            display: block;
                            margin-bottom: 2rem;
                        }

                        /* third level is always open inside its panel */
                        > .menu-item > .sub-menu {
                            position: static;
                            opacity: 100%;
                            visibility: visible;
                            background: transparent;
                        }
                    }
                }
            }
        }
    }
}

body.bricks-is-frontend.admin-bar #brx-header .resnav {
    height: calc((100svh - 100%) - var(--resnav-gap) - var(--wp-admin--admin-bar--height, 0px));
    max-height: calc((100svh - 100%) - var(--resnav-gap) - var(--wp-admin--admin-bar--height, 0px));
}

/* Builder: show the panel so it can be edited */
body[data-builder-window] #brx-header .resnav {
    opacity: 100%;
    pointer-events: auto;
}

/* --- Native slider easing: Bricks' Nested Slider (Splide) sets its transition inline with its own curve;
       the agency easing wins here. Duration = the slider's "speed" setting (300 ms, docs/10). --- */

.brxe-slider-nested .splide__list,
.brxe-slider-nested .splide__slide {
    transition-timing-function: var(--anim) !important;
}

/* --- Sliders to the window edge (docs/09 "Sliders and marquees: edges") ---
   Global class .slider-bleed on the Nested Slider (or a marquee/scroll track) that sits inside the container.
   The slider keeps the container width (so Splide calculates the design's card widths), but its slides stay
   visible beyond it up to the window edge; the section cuts them off at the window (overflow-x: clip).
   A side that has content next to it (text column, image) is cut at the slider's own edge instead:
   add .slider-bleed--clip-start (cut on the left) or .slider-bleed--clip-end (cut on the right). */

.slider-bleed,
.slider-bleed .splide__track,
.slider-bleed .brxe-slider-nested {
    overflow: visible;
}

.slider-bleed--clip-start {
    clip-path: inset(-100vh -100vw -100vh 0);
}

.slider-bleed--clip-end {
    clip-path: inset(-100vh 0 -100vh -100vw);
}

/* cut off at the window edge, never a horizontal page scroll: only main and the section root clip
   (never the container or wrappers in between, or the slides would be cut at the container again) */
main:has(.slider-bleed),
main > :has(.slider-bleed) {
    overflow-x: clip;
}

/* --- Marquee (marquee.js, [data-marquee] on the loop wrapper) ------------- */

[data-marquee] {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;

    > * {
        flex-shrink: 0;
        will-change: transform;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* No animation: let the row scroll instead */
    :has(> [data-marquee]) {
        overflow-x: auto;
    }
}

/* --- Gravity Forms (Orbital) base: keep accessibility features ------------ */

.gform_wrapper.gform-theme {
    --gf-color-primary: var(--color-primary, #000);
    --gf-ctrl-border-color: var(--border, currentColor);
    --gf-ctrl-label-color-primary: var(--text, inherit);
    --gf-radius: var(--radius-s, 0.25rem);

    /* Required legend and validation messages stay visible (all example sites hid them) */
    .gform_required_legend {
        font-size: var(--font-size-s, 0.875rem);
    }
}

/* ==========================================================================
   Project globals only (header/footer details, plugin styling, site-wide patterns).
   NOT component CSS: that goes in the component itself (docs/09 step 4).
   ========================================================================== */

/* WT-BLOCK:header START */
/* ==========================================================================
   WOLTER TIJDINK: project globals (bricks-project-woltertijdink)
   Rebuild of the live Webflow site 1:1 (timings from the live site: decisions.md D1)
   ========================================================================== */

html {
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: var(--white);
    background: var(--orange);
}

p {
    margin-block: 0;
}

/* live site: no balanced/pretty wrapping (exact line breaks) */
h1, h2, h3, h4, h5, h6, .brxe-heading, p {
    text-wrap: wrap;
}

.bricks-button {
    letter-spacing: normal;
}

/* live rich text (.w-richtext): p 16px bottom margin, h4 in content size */
.brxe-text p {
    margin-bottom: 1rem;
}

.brxe-text h4 {
    margin: 0;
}

.brxe-text iframe {
    max-width: 100%;
}

.brxe-section > .brxe-div {
    width: 100%;
}

/* inset sections (live .start-container): Bricks sections are width 100% by default */
.section-inset {
    width: auto;
}

/* --- Header (template "Header"): live .nav / .nav__wrapper ------------------ */

#brx-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
}

body.admin-bar #brx-header {
    top: var(--wp-admin--admin-bar--height, 0px);
}

.site-nav {
    position: relative;
    margin-inline: 0.75rem;

    @media (max-width: 991px) { margin-inline: 0.4375rem; }
    @media (max-width: 767px) { margin-inline: 0.3125rem; }
}

.site-nav__bar {
    display: flex;
    align-items: center;
    gap: 3.125rem;
    margin-inline: 2.8125rem;
    padding-block: 1.875rem 0.9375rem;
    border-bottom: 1px solid var(--white-50);

    @media (max-width: 991px) { margin-inline: 1.875rem; }
    @media (max-width: 767px) { margin-inline: 1.25rem; }
    @media (max-width: 478px) { margin-inline: 0.625rem; }
}

.site-nav__logo-wrap {
    width: 15.75rem;
    flex-shrink: 0;
}

.site-nav__logo img {
    display: block;
    width: auto;
    height: 3.375rem;
    filter: brightness(1000%);
}

/* Main menu (WordPress menu "Header - Hoofdmenu") */
.site-nav__menu {
    margin-inline: auto;

    @media (max-width: 991px) { display: none; }

    .bricks-nav-menu {
        gap: 2rem;
    }

    .bricks-nav-menu > li {
        margin: 0;
    }

    .bricks-nav-menu a,
    .brx-submenu-toggle > a {
        position: relative;
        color: var(--white);
        font-size: var(--font-size-base);
        font-weight: 500;
        line-height: 1.5;
        text-decoration: none;
    }

    .bricks-nav-menu > .current-menu-item > a::after,
    .sub-menu .current-menu-item > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -33px;
        height: 2px;
        background: currentColor;
    }

    .sub-menu .current-menu-item > a::after {
        bottom: -20px;
    }

    /* "ons bedrijf": caret (live caret.svg, up = open) */
    .brx-submenu-toggle {
        gap: 0.5rem;

        button {
            width: 0.75rem;
            height: 0.5rem;
            padding: 0;
            color: inherit;
            transform: rotate(180deg);
            transition: transform 0.2s ease;

            svg { display: none; }

            &::before {
                content: "";
                display: block;
                width: 0.75rem;
                height: 0.5rem;
                background-color: var(--sand);
                -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M10.59 7.70508L6 3.12508L1.41 7.70508L1.23266e-07 6.29508L6 0.295078L12 6.29508L10.59 7.70508Z'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M10.59 7.70508L6 3.12508L1.41 7.70508L1.23266e-07 6.29508L6 0.295078L12 6.29508L10.59 7.70508Z'/%3E%3C/svg%3E") center / contain no-repeat;
            }
        }
    }

    .menu-item-has-children.open .brx-submenu-toggle button {
        transform: none;
    }

    /* Submenu = second full-width row below the bar (live .nav__wrapper--submenu) */
    .menu-item-has-children {
        position: static;
    }

    .sub-menu,
    .menu-item-has-children:hover > .sub-menu {
        position: absolute;
        top: 100%;
        left: 2.8125rem;
        right: 2.8125rem;
        display: flex;
        justify-content: center;
        gap: 3.125rem;
        min-width: 0;
        padding-block: 1.25rem;
        background: none;
        border-bottom: 1px solid var(--white-50);
        box-shadow: none;
        visibility: hidden;
        opacity: 0;
        transform: none;
    }

    .menu-item-has-children.open > .sub-menu {
        visibility: visible;
        opacity: 1;
    }

    .sub-menu li {
        width: auto;
        background: none;
    }

    .sub-menu a {
        padding: 0;
        white-space: nowrap;
    }
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 3.125rem;

    @media (max-width: 991px) { margin-left: auto; }
}

/* "producten" pill (live .btn.btn--light.btn--reversed); the Bricks Toggle is stretched over it */
.site-nav__products {
    position: relative;
    cursor: pointer;

    @media (max-width: 767px) { display: none; }

    &:has(.site-nav__stretch:focus-visible) {
        outline: 2px solid var(--focus);
        outline-offset: 3px;
    }
}

.site-nav__stretch {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.site-nav__burger {
    color: var(--sand);
    padding: 0;

    svg {
        width: 29px;
        height: 17px;
    }
}

/* Scrolled state (live .nav--scrolled: shown on scroll up after 150px, nav.js) */
@keyframes wt-toggle-menu {
    0% { transform: translateY(0); }
    5% { transform: translateY(-100%); }
    6% { position: fixed; transform: translateY(-100%); }
    100% { position: fixed; transform: translateY(0); }
}

.site-nav.is-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    transition: 0.3s ease 0.1s;
    animation: 0.5s wt-toggle-menu forwards;

    .site-nav__bar {
        margin: 0;
        padding: 15px 57px;
        background: var(--sand);
        border-bottom-color: var(--black-10);

        @media (max-width: 991px) { padding: 15px 37px; }
        @media (max-width: 767px) { padding: 15px 20px; }
        @media (max-width: 478px) { padding: 15px; }
    }

    .site-nav__logo img {
        filter: none;
    }

    .site-nav__menu {
        .bricks-nav-menu a,
        .brx-submenu-toggle > a {
            color: var(--black);
        }

        .brx-submenu-toggle button::before {
            background-color: var(--black);
        }

        .sub-menu {
            left: 0;
            right: 0;
            padding: 20px 57px;
            background: var(--sand);
            border-bottom-color: var(--black-10);
        }
    }

    .site-nav__burger {
        color: var(--black);
    }
}

body.admin-bar .site-nav.is-scrolled {
    top: var(--wp-admin--admin-bar--height, 0px);
}

/* --- Side panels (live .collapsible-menu): menu (dark) + products (sand) ---- */

.side-panel {
    z-index: 99;

    .brx-offcanvas-inner {
        width: 100%;
        max-width: 45rem;
        height: 100%;
        padding: 7.8125rem 6.25rem 0;
        background: var(--sand);
        border-radius: var(--radius-m) 0 0 var(--radius-m);
        overflow: clip;

        @media (max-width: 767px) {
            border-radius: 0;
        }
    }

    .brx-offcanvas-backdrop {
        background: var(--ink-10);
        transition-delay: 0.3s;
    }
}

.side-panel__inner--dark {
    background: var(--black) !important;
    padding-bottom: 6.25rem !important;

    @media (max-width: 767px) {
        padding: 5rem 2rem !important;
    }
}

.side-panel__wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    overflow-x: clip;

    @media (max-height: 1000px) {
        overflow-y: auto;
        overflow-x: clip;
    }
}

.side-panel__label {
    color: var(--black);
}

/* Big links with arrow (live .collapsible-menu__link: arrow hidden left, slides in on hover) */
.panel-menu--big,
.panel-menu--products {
    .bricks-nav-menu,
    & {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .bricks-nav-menu > li {
        margin: 0;
    }

    a {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        font-size: var(--font-size-h2);
        font-weight: 500;
        line-height: 1.238;
        text-decoration: none;
        transform: translateX(-2.75rem);
        transition: transform 0.2s ease;

        @media (max-width: 991px) { line-height: 1.355; }

        &::before {
            content: "";
            flex-shrink: 0;
            width: 1.5rem;
            height: 1.5rem;
            background-color: currentColor;
            -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4L10.59 5.41L16.17 11H4V13H16.17L10.59 18.59L12 20L20 12L12 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
        }

        &:hover,
        &:focus-visible {
            transform: translateX(0);
        }
    }
}

.panel-menu--big a {
    color: var(--white);
}

.panel-menu--products {
    gap: 1rem;

    a {
        color: var(--black);
    }
}

.panel-menu--small {
    margin-top: 1.625rem;

    .bricks-nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .bricks-nav-menu > li {
        margin: 0;
    }

    a {
        color: var(--sand);
        font-size: var(--font-size-h4);
        font-weight: 500;
        line-height: 1.5;
        text-decoration: none;
    }
}

/* Social circles (live .social): menu panel, footer, contact */
.socials {
    display: flex;
    align-items: center;
    gap: 1.25rem;

    a {
        position: relative;
        display: block;
        width: 57px;
        height: 57px;
        border: 2px solid var(--sand);
        border-radius: 57px;
        color: var(--sand);
        opacity: 0.8;
        transition: opacity 0.2s ease;

        &:hover { opacity: 1; }
    }

    svg {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 25px;
        height: 25px;
        transform: translate(-50%, -50%);
    }
}

.socials--panel {
    margin-top: auto;
    padding-top: 3.125rem;
}

.side-panel__close {
    position: absolute;
    top: 3.125rem;
    right: 3.125rem;
    padding: 0;
    color: var(--black);
    transition: transform 0.2s ease-in-out;

    &:hover { transform: rotate(180deg); }

    svg {
        width: 24px;
        height: 24px;
    }

    @media (max-width: 767px) {
        top: 2rem;
        right: 2rem;
    }
}

.side-panel__inner--dark .side-panel__close {
    color: var(--white);
}

.side-panel__person {
    margin-top: auto;
    padding-bottom: 6.25rem;
}

.side-panel__person-row {
    display: flex;
    align-items: center;
    gap: 1.875rem;
    margin-top: 1.625rem;
}

.side-panel__person-img img,
img.side-panel__person-img {
    width: 5rem;
    height: 6.25rem;
    object-fit: cover;
    border-radius: 6.25rem;
}

.side-panel__person-name {
    color: var(--ink);
    font-size: var(--font-size-h4);
    font-weight: 500;
    line-height: 1.5;
}

.side-panel__person-phone,
.link--orange {
    color: var(--orange);
    font-weight: 400;
    text-decoration: underline;

    &:hover { background-color: var(--orange-20); }
}
/* WT-BLOCK:header END */

/* WT-BLOCK:footer START */
/* --- Footer (template "Footer"): live .section.footer.footer--with-cta ---------------- */

#brx-footer {
    position: relative;
    z-index: 0;
}

.site-footer {
    margin-top: -3.75rem;
    padding-block: 10rem 5rem;
    background: var(--black);
    color: var(--sand);

    @media (max-width: 991px) {
        margin-top: -7.5rem;
        padding-block: 12.5rem 2.5rem;
    }
}

/* the last block of every page sits above the footer overlap */
#brx-content > section:last-of-type {
    position: relative;
    z-index: 1;
}

.site-footer__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.875rem;

    @media (max-width: 767px) { grid-template-columns: minmax(0, 1fr); }
}

.site-footer__col {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 100%;
    max-height: 106px;

    @media (max-width: 991px) { max-height: 56px; }
}

.site-footer__logo {
    @media (max-width: 767px) { display: none; }
}

/* live mobile: socials below the contact column */
.site-footer__col--first {
    @media (max-width: 767px) { order: 3; }
}

.site-footer__socials {
    margin-top: 3.125rem;

    @media (max-width: 767px) { margin-top: 0; }
}

.site-footer__title {
    margin-bottom: 0.9375rem;
    color: var(--sand);
    font-size: var(--font-size-h3);
    font-weight: 500;
    line-height: 1.6;

    @media (max-width: 991px) { line-height: 1.28; }
}

.site-footer__link,
.footer-menu a {
    color: var(--sand);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;

    &:hover { opacity: 1; }
}

.footer-menu .bricks-nav-menu {
    flex-direction: column;
    gap: 1rem;

    > li { margin: 0; }
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5.375rem;

    @media (max-width: 478px) { display: block; }
}

.site-footer__copyright {
    display: flex;
    align-items: center;
    gap: 1.875rem;
    opacity: 0.7;

    @media (max-width: 767px) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    @media (max-width: 478px) { text-align: center; }
}

.site-footer__year,
.footer-legal a {
    color: var(--sand);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    opacity: 0.75;
}

.footer-legal a {
    transition: opacity 0.2s ease;

    &:hover { opacity: 1; }
}

.footer-legal .bricks-nav-menu {
    gap: 1.875rem;

    > li { margin: 0; }

    @media (max-width: 767px) {
        flex-direction: column;
        align-items: flex-start;
    }

    @media (max-width: 478px) { align-items: center; }
}

/* Fervent credit (live .footnote-fervent / imghvr-push-left) */
.fervent-credit {
    position: relative;
    display: block;
    width: 125px;
    height: 50px;
    margin-left: auto;
    overflow: clip;
    color: var(--sand);

    @media (max-width: 478px) { margin: 1.875rem auto 0; }
}

.fervent-credit__f {
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -19.6px;
    transition: all 0.35s ease;

    svg { width: 32.631px; height: 39.196px; }

    @media (max-width: 478px) { right: 46px; }
}

.fervent-credit__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: all 0.35s ease;

    svg { width: 125px; height: auto; }
}

.fervent-credit:hover {
    .fervent-credit__f { transform: translateX(-300%); }
    .fervent-credit__text { transform: translateX(0); }
}
/* WT-BLOCK:footer END */

/* WT-BLOCK:effects START */
/* --- Effects (live site IX2) ------------------------------------------------ */

/* Default cursor: orange dot (cursor.js; live .default-cursor) */
.default-cursor__wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;

    @media (max-width: 991px) { display: none; }
}

.default-cursor {
    z-index: 1002;
    width: 16px;
    height: 16px;
    border-radius: 16px;
    background-color: var(--orange);
    transform: var(--follow, none) scale(var(--cursor-scale, 1));
    transition: --cursor-scale 0.5s;
}

html.cursor-hidden .default-cursor {
    --cursor-scale: 0;
}

@property --cursor-scale {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

[data-follow]:not(.default-cursor) {
    translate: none;
}

/* Reveal start state (reveal.js; live slideInBottom) */
html.wt-js [data-reveal]:not(.is-revealed),
html.wt-js .has-reveals [data-reveal-opt]:not(.is-revealed),
html.wt-js [data-reveal-children]:not([data-reveal-optional]) > ul > li:not(.is-revealed),
html.wt-js .has-reveals [data-reveal-children] > ul > li:not(.is-revealed) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

@media (prefers-reduced-motion: reduce) {
    html.wt-js [data-reveal] {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* Builder: never hide content */
body[data-builder-window] [data-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
/* WT-BLOCK:effects END */

/* WT-BLOCK:patterns START */
/* --- Shared patterns (live .gradient, .sliding-title) ------------------------ */

/* Orange glow (live .gradient): radial orange -> black, animated blob from 1320px */
.glow-wrap {
    position: absolute;
    inset: 0;
    overflow: clip;
    border-radius: inherit;
    pointer-events: none;
}

.glow {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 950px;
    height: 950px;
    background-image: radial-gradient(circle closest-side at 50% 50%, var(--orange), var(--black));
    transform: translate(150px, 250px);

    @media (min-width: 1320px) {
        animation: 30s wt-gradient-blob infinite;
    }
}

@keyframes wt-gradient-blob {
    0% { transform: translate(150px, 250px); width: 950px; height: 950px; }
    20% { transform: translate(100px, 200px); width: 1050px; height: 1050px; }
    40% { transform: translate(150px, 250px); width: 850px; height: 850px; }
    60% { transform: translate(50px, 150px); width: 1000px; height: 1000px; }
    100% { transform: translate(150px, 250px); width: 950px; height: 950px; }
}

/* Glow in the big banner (live .gradient.banner-large__gradient): anchored bottom-right, 750px; mobile top-left 500px */
.glow--banner {
    top: auto;
    bottom: 0;
    width: 750px;
    height: 750px;

    @media (max-width: 767px) {
        top: -50px;
        right: auto;
        bottom: auto;
        left: -150px;
        width: 500px;
        height: 500px;
    }
}

/* Small static glow (live .gradient.gradient--small): 550px, right edge, no blob animation */
.glow--small {
    width: 550px;
    height: 550px;
    transform: translate(150px, 0);
    animation: none !important;
}

/* Contact glow (live .gradient.contact__gradient): bottom-left, shifted 250px out, no blob animation */
.glow--contact {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    transform: translate(-250px, 0);
    animation: none !important;
}

/* Facts / apply glows (live .gradient.is-facts / .is-solliciteren): blurred, static */
.glow--facts {
    top: auto;
    right: -200px;
    bottom: -200px;
    width: 600px;
    height: 600px;
    filter: blur(40px);
    transform: none;
    animation: none !important;
}

.glow--apply {
    top: 20%;
    right: -10%;
    width: 739px;
    height: 579px;
    filter: blur(40px);
    transform: translate(0, -40%);
    animation: none !important;

    @media (max-width: 991px) { top: auto; right: auto; bottom: 10%; width: 539px; }
    @media (max-width: 767px) { width: 339px; height: 379px; }
}

/* Big sticky watermark title (live .h1.color-white.sliding-title) */
.watermark {
    position: sticky;
    top: -100px;
    z-index: 0;
    color: var(--white);
    font-size: var(--font-size-h1);
    font-weight: 600;
    line-height: 1.089;
    text-align: center;
    opacity: 0.2;
    transform: translate(0, 300px);
    pointer-events: none;

    @media (max-width: 991px) { line-height: 1.25; }
}

/* Overview card grid (live .cms__list: 2 columns, staggered) */
.card-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 200px;
    row-gap: 125px;

    > :nth-child(even) { margin-top: 60px; }
    > :nth-child(odd) { margin-bottom: 60px; }

    @media (max-width: 991px) { column-gap: 50px; }
    @media (max-width: 767px) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 80px;
        > :nth-child(even) { margin-top: 0; }
        > :nth-child(odd) { margin-bottom: 0; }
    }
}
/* WT-BLOCK:patterns END */

/* WT: inset container — content stays on the 1280 grid / 5vw gutter like live .start-container > .container */
.section-inset { --inset: .75rem; }
@media (max-width: 991px) { .section-inset { --inset: .4375rem; } }
@media (max-width: 767px) { .section-inset { --inset: .3125rem; } }
.section-inset.section-inset > .container.container:not(.container--narrow) { padding-left: max(calc(var(--gutter) - var(--inset)), calc((min(100%, var(--container-max)) - 1280px) / 2)); padding-right: max(calc(var(--gutter) - var(--inset)), calc((min(100%, var(--container-max)) - 1280px) / 2)); }

/* WT: logo line box — live logo wrapper is exactly the image height (54px), no inline descender gap */
.site-nav__logo-wrap > a, .site-nav__logo-wrap img { display: block; }

/* WT: headings overflow like live (Webflow: overflow-wrap normal). base break-word split 'Indrukwekkende' at 375px. */
h1, h2, h3, h4, h5, h6, .brxe-heading { overflow-wrap: normal; }

/* WT: no heading top margin after p (Bricks frontend :where(p:last-of-type) + h1..h6 adds 1.2em; live has none) */
p + :is(h1, h2, h3, h4, h5, h6) { margin-top: 0; }

/* WT: md pill (live .classic-btn: 16px/32px padding, 56px high, no arrow circle) */
.bricks-button.md { --button-height: 3.5rem; }

/* WT: side panels clipped to the viewport (live .collapsible-menu is a fixed full-screen layer). Without this the
   closed panel (fixed, translated 100% to the right) widened the page -> horizontal scrollbar. contain: paint makes
   the root the containing block of the fixed inner panel and clips it. */
.side-panel.brxe-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 999;
    contain: paint;
    pointer-events: none;
}

.side-panel.brxe-offcanvas.brx-open {
    pointer-events: auto;
}

/* Bricks hover-bridge (li:hover::before width:100%) sizes to .site-nav because li is static -> overflow. Span the nav instead. */
.site-nav__menu .bricks-nav-menu > li.menu-item-has-children.open:hover::before { left: 0; right: 0; width: auto; }

/* Feedback 2026-11-19: Fervent F fully out of view on hover */
.fervent-credit:hover .fervent-credit__f { transform: translateX(calc(-125px - 100%)); }

/* Feedback 2026-11-19: team slider cursor follows the real pointer inside the block (hscroll.js) */
.ts__area .ts__cursor.ts__cursor { top: 0; left: 0; opacity: 0; scale: 0.5; transition: opacity 0.15s ease, scale 0.15s ease; will-change: transform; }
.ts__area .ts__cursor.ts__cursor.is-visible { opacity: 1; scale: 1; }
/* Feedback 2026-11-19: sticky bar slides in/out by scroll direction (nav.js), replaces keyframes wt-toggle-menu */
.site-nav.site-nav.is-scrolled {
    z-index: 100;
    animation: none;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.site-nav.site-nav.is-scrolled.is-hidden {
    transform: translateY(calc(-100% - 2px));
}
@media (prefers-reduced-motion: reduce) {
    .site-nav.site-nav.is-scrolled { transition: none; }
}
/* Feedback 2026-11-23 ------------------------------------------------------- */
/* First (hero) section: square top corners, rounded bottom only */
#brx-content > section.section-inset:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Aanpak (01-04): Bricks wraps sections on mobile (flex-wrap: wrap); with the 8000px sliding title as a flex item
   the column became 8000px wide and the containers were centred off-screen (left 3804px). */
.approach.brxe-section {
    flex-wrap: nowrap;
}

/* Sticky watermark (translateY 300px) must not show outside its black block. overflow: clip keeps sticky working. */
.brxe-section:has(> .container > .watermark),
.brxe-section:has(.watermark) {
    overflow: clip;
}
/* Aanpak sliding title: left-aligned like live (.aanpak__sliding-title-wrapper), not centred in the section */
.approach .ap__slider { align-self: flex-start; }
