/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* FONTS */
.h1-mega{
    font-size: clamp(3.75rem, 8.638vi + 1.725rem, 9.5rem);
    font-weight: 800;
    line-height: 80%;
    font-family: "Alumni Sans";

    strong{
        background-color: #F26A38;
        color:#fff;
        text-transform: uppercase;
        line-height:80%;
        padding:0px 16px;
        transform: rotate(-3.237deg);
        z-index: 0;
        display: inline-block;
        position: relative;

        @media screen and (max-width: 991px) {
            padding: 0px 12px;
        }
    }
}

h1,
.heading-1,
h2,
.heading-2,
h3,
.heading-3,
h4,
.heading-4,
h5,
.heading-5,
h6,
.heading-6{
    font-weight:800 !important;

    strong,
    span{
        background-color: #F26A38;
        color:#fff;
        text-transform: uppercase;
        line-height:80%;
        padding:0px 16px;
        transform: rotate(-3.237deg);
        z-index: 0;
        display: inline-block;
        position: relative;
        font-weight:800 !important;
    }
}

.heading-1{
    font-weight:800;
    line-height:90%;
    font-family: "Alumni Sans";
    color: #161549;
    font-size:clamp(3.75rem, 4.695vi + 2.65rem, 6.875rem);
}

.heading-1.heading-1--small{
    font-size:clamp(3.25rem, 2.629vi + 2.634rem, 5rem);
}

.heading-2{
    font-weight:800;
    line-height:90%;
    font-family: "Alumni Sans";
    color: #161549;
    font-size: clamp(3.5rem, 2.254vi + 2.972rem, 5rem);
}

h2.heading-2-small,
brxe-text.heading-2-small,
.heading-2-small h2{
    font-size:clamp(1.75rem, 1.878vi + 1.31rem, 3rem);
}

.heading-3{
    font-weight:800;
    line-height:90%;
    font-size: 80px;
    font-family: "Alumni Sans";
    color: #161549;
    font-size:clamp(2rem, 2.629vi + 1.384rem, 3.75rem);
}

.heading-4{
    font-weight:800;
    line-height:90%;
    font-family: "Alumni Sans";
    color: #161549;
    font-size:clamp(1.75rem, 1.878vi + 1.31rem, 3rem);
}

.heading-5{
    font-weight:800;
    line-height:90%;
    font-family: "Alumni Sans";
    color: #161549;
    font-size:clamp(1.5rem, 0.751vi + 1.324rem, 2rem);
}

.heading-6{
    font-weight:800;
    line-height:90%;
    font-family: "Alumni Sans";
    color: #161549;
    font-size:clamp(1.25rem, 0.376vi + 1.162rem, 1.5rem);
}

#brxe-ajbuik .bricks-nav-menu .brx-submenu-toggle button svg{
    color:#00C89C;
}


.brxe-text {
    ul{
        list-style: none;
        padding-left:35px;
        gap:24px;
        display: flex;
        flex-direction: column;
        margin-block-start: 24px;
        margin-block-end: 24px;

        li{
            position: relative;

            &::before{
                content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M20 6L9 17L4 12" stroke="%2300C89C" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
                position: absolute;
                left: -35px;
                top: 0;
            }
        }
    }

    &.list-plus{
        li{
            &::before{
                content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M12 5V19" stroke="%2300C89C" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M5 12H19" stroke="%2300C89C" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            }
        }
    }
}

/* Buttons: the icon is a mask filled with --btn-icon, so it follows the text colour on the ghost hover */
.bricks-button{
    --btn-icon: currentColor;
    --btn-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M7 17L17 7" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 7H17V17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');

    &::after{
        content:'';
        position: relative;
        width:24px;
        height:24px;
        min-width:24px;
        min-height:24px;
        background-color: var(--btn-icon);
        -webkit-mask: var(--btn-icon-mask) no-repeat center / contain;
        mask: var(--btn-icon-mask) no-repeat center / contain;
        transition: background-color 0.3s cubic-bezier(.25, .46, .45, .94);
    }

    &.bricks-background-primary,
    &.bricks-background-light{
        --btn-icon: var(--groen);
    }

    &:hover{
        --btn-icon: currentColor;
    }

    &.btn-download{
        --btn-icon: var(--groen);
        --btn-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M7 10L12 15L17 10" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 15V3" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');

        &:hover{
            --btn-icon: currentColor;
        }
    }

    &.btn-route{
        --btn-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M20 10C20 16 12 22 12 22C12 22 4 16 4 10C4 7.87827 4.84285 5.84344 6.34315 4.34315C7.84344 2.84285 9.87827 2 12 2C14.1217 2 16.1566 2.84285 17.6569 4.34315C19.1571 5.84344 20 7.87827 20 10V10Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    }

    &.btn-send{
        --btn-icon-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M22 2L11 13" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 2L15 22L11 13L2 9L22 2Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    }

    &.no-icon{
        &::after{
            display:none !important;
        }
    }
}
address {
    font-style: normal;
}

blockquote{
    border-left-style: none;
    border-left-width: 0px;
    font-family: "Alumni Sans";
    margin: 0px 0px 40px 0px;
    padding: 0px;
    position: relative;
}

dd{
    margin-left: 0px;
}

.bricks-search-form{
    position: relative;

    input{
        padding-left:60px;
        color:rgba(0, 0, 0, 1);
        font-family: "Alumni Sans";
        font-size: 20px;
        font-style: normal;
        font-weight: 700;

        &::placeholder{
            color:rgba(0, 0, 0, 0.5);
            font-family: "Alumni Sans";
            font-size: 20px;
            font-style: normal;
            font-weight: 700;
        }
    }

    button{
        left:0px;
        top:0px;
        position: absolute;
        background: transparent;
        height: 100%;
        height: calc(100% - 2px);
        top: 1px;
        left: 1px;
    }
}

/* images */
.image-clip-top{
    clip-path: polygon(70% 0, 100% 10%, 100% 100%, 0 100%, 0 25%);
}

.image-clip-left{
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 20% 65%);
    max-width: calc(100% + 1px);

    @media(max-width: 991px){
        clip-path: polygon(70% 0, 100% 10%, 100% 100%, 0 100%, 0 25%);
    }
}

.image-clip-right{
    clip-path: polygon(100% 0, 0 0, 0 100%, 88% 100%, 80% 65%);

    @media(max-width: 991px){
        clip-path: polygon(70% 0, 100% 10%, 100% 100%, 0 100%, 0 25%);
    }
}

/* nav menu */
.brxe-nav-menu li:last-of-type a{
    border-right:0px !important;
}

/* Filters */
.product-filters .bricks-button::after{
    display:none;
}

.brx-option-active.bricks-button{
    color:#fff !important;
    background-color: #00C89C !important;
    border:1px solid #00C89C !important;
}

.page-numbers{
    svg{
        width:24px;
        height:24px;
    }

    a{
        &:hover svg path{
            stroke:#fff;
        }
    }

    &.prev{
        svg{
            transform:rotate(180deg);
        }
    }
}

.swiper-button{
    &.bricks-swiper-button-prev{
        left: max(80px, calc((100vw - 1580px) / 2));

        &::after{
            content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M25.3327 16H6.66602" stroke="%23161549" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.9993 25.3333L6.66602 16L15.9993 6.66663" stroke="%231E2C35" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            position: relative;
        }

        i{
            display:none;
        }
    }

    &.bricks-swiper-button-next{
        right: max(80px, calc((100vw - 1580px) / 2));

        &::after{
            content:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M6.66732 16H25.334" stroke="%23161549" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.0007 25.3333L25.334 16L16.0007 6.66663" stroke="%231E2C35" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            position: relative;
        }

        i{
            display:none;
        }
    }
}

/* Single product - Toepassingen */
.toepassingen-lijst {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0px;
    padding-left: 0px;

    .toepassing-blok {
        padding:6px 19px;
        width: auto;
        background-color: #EBE6D6;
        color: #161549;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        list-style: none;
    }
}


.toepassingen-raw {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0px;
    padding-left: 0px;

    .toepassing-blok {
        padding:6px 19px;
        width: auto;
        background-color: #E1D9C2;
        color: #161549;
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        list-style: none;
    }
}


/* FAQ */
.brxe-accordion-nested svg path:first-child{
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.25s ease;
}

.brxe-accordion-nested .brx-open svg path:first-child{
    transform:rotate(90deg);
}

/* gforms */
.gform_wrapper{
    .gform_heading{
        display:none !important;
    }

    .gform_fields{
        gap: 16px !important;
    }

    .gfield--type-checkbox{
        margin-bottom:24px !important;

        .gfield_checkbox {
            display: flex !important;
            flex-wrap:wrap !important;
            gap:10px !important;
            flex-direction: row !important;

            legend{
                color:#161549 !important;
                font-family: "TASA Orbiter" !important;
                font-size: 14px !important;
                font-style: normal !important;
                font-weight: 400 !important;
                line-height: 120% !important;
            }

            .gchoice{
                input{
                    display: none !important;

                    &:checked + label{
                        color:#fff !important;
                        background-color: #F26A38 !important;
                    }
                }

                label{
                    background-color: #E1D9C2 !important;
                    padding:5px 20px !important;
                    color: #161549 !important;
                    font-family: "TASA Orbiter" !important;
                    font-size: 14px !important;
                    font-style: normal !important;
                    font-weight: 500 !important;
                    line-height: 150% !important;
                    text-transform: uppercase !important;
                    margin-left:0px !important;
                    cursor:pointer !important;
                    transition: all 0.3s cubic-bezier(.25, .46, .45, .94);

                    &:hover{
                        color:#fff !important;
                        background-color: #F26A38 !important;
                    }
                }
            }
        }
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    textarea{
        border:1px solid rgba(0, 0, 0, 0.1) !important;
        color: #161549 !important;
        font-family: "TASA Orbiter" !important;
        font-size: 14px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 120% !important;
        padding:22px 14px !important;
        border-radius:0px !important;
        box-shadow: unset !important;

        @media screen and (max-width: 767px) {
            padding: 18px 10px !important;
        }

        &::placeholder{
            color: rgba(0, 0, 0, 0.50) !important;
            font-family: "TASA Orbiter" !important;
            font-size: 14px !important;
            font-style: normal !important;
            font-weight: 400 !important;
            line-height: 120% !important;
        }
    }

    > label{
        color:#161549 !important;
        font-family: "TASA Orbiter" !important;
        font-size: 14px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 120% !important;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"]{
        height:60px !important;

        @media screen and (max-width: 767px) {
            height: 48px !important;
        }
    }

    .gfield--type-consent{
        label{
            color: rgba(0, 0, 0, 0.50) !important;
            font-family: "TASA Orbiter" !important;
            font-size: 14px !important;
            font-style: normal !important;
            font-weight: 400 !important;
            line-height: 120% !important;

            a{
                color:#F26A38;
                font-family: "TASA Orbiter" !important;
                font-size: 14px !important;
                font-style: normal !important;
                font-weight: 800 !important;
                line-height: 120% !important;
            }
        }
    }

    .submit-container{
        display: flex;
        justify-content: center;
        align-items: center;
        gap:24px;
        flex-wrap:wrap;

        .gform-custom-submit-button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 10px !important;
            padding: 16px 32px !important;
            background: #00C89C !important;
            color: #ffffff !important;
            font-weight: 700 !important;
            font-size: 18px !important;
            line-height: 1 !important;
            border: none !important;
            border-radius: 0px !important;
            cursor: pointer !important;
            transition: all 0.3s cubic-bezier(.25, .46, .45, .94) !important;

            @media screen and (max-width: 478px) {
                width: 100% !important;
            }
        }

        .submit-link{
            color:#161549;
            font-family: "Alumni Sans";
            font-size: 32px;
            font-style: normal;
            font-weight: 800;
            line-height: 90%;

            &:hover{
                text-decoration: underline;
            }

            span{
                color:#F26A38;
            }
        }
    }
}

body {
    &:has(#brx-header .brx-nav-nested .brxe-offcanvas.brx-open) {
        overflow: hidden;
    }
}

#brx-header {
    .brxe-offcanvas {
        &.brx-open {
            opacity: 100%;
        }
    }

    .brxe-toggle {
        .brxa-wrap {
            width: 2rem;
            height: 2rem;

            display: flex;
            justify-content: center;
            align-items: center;
        }

        .brxa-inner {
            --brxe-toggle-bar-width: 1.5rem;

            display: inline-flex;
            justify-content: center;
            align-items: center;

            position: relative;
            top: unset;
            margin-top: unset;

            &:before {
                top: -8px;

                transition: transform cubic-bezier(.25, .46, .45, .94) 0.3s, top cubic-bezier(.25, .46, .45, .94) 0.3s;
            }

            &:after {
                bottom: -8px;

                transition: transform cubic-bezier(.25, .46, .45, .94) 0.3s, bottom cubic-bezier(.25, .46, .45, .94) 0.3s;
            }
        }

        &.is-active {
            .brxa-inner {
                background-color: transparent;

                &:before {
                    top: 0px;
                    transform: rotate(45deg);
                }

                &:after {
                    bottom: 0px;
                    transform: rotate(-45deg);
                }
            }
        }
    }
    
    .brxe-search {
        @media screen and (max-width: 991px) {
            pointer-events: none;
        }
    }

    &:has(.brxe-offcanvas.brx-open) {
        .brxe-search {
            pointer-events: auto;
            
            .bricks-search-form {
                opacity: 100%;
                pointer-events: auto;
            }
        }

        .brxe-logo {
            opacity: 0%;
        }
    }

    .brxe-nav-nested {
        #brxe-hsudth, .brxe-hsudth {
            > .brxe-nav-menu {
                .bricks-nav-menu {
                    > .menu-item {
                        &:not(:last-child) {
                            padding-bottom: 0.875rem;
                            border-bottom: 1px solid rgba(0, 0, 0, 0.10);
                        }

                        .brx-submenu-toggle {
                            width: 100%;
                
                            justify-content: space-between;
                            gap: 3rem;

                            svg {
                                transition: transform cubic-bezier(.25, .46, .45, .94) 0.3s;
                            }
                        }

                        &.menu-item-has-children {
                            height: 100%;
                            max-height: var(--cHeight);
                            transition: max-height cubic-bezier(.25, .46, .45, .94) 0.3s;

                            overflow: clip;

                            &.open {
                                max-height: var(--fHeight);
                            }
                        }

                        .sub-menu {
                            position: relative;
                            top: unset;
                            visibility: unset;
                            opacity: 100%;
                            white-space: normal;

                            margin-top: 0.875rem;

                            li {
                                &:not(:last-child) {
                                    margin-bottom: 0.75rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.brxe-breadcrumbs {
    .item {
        @media screen and (max-width: 767px) {
            font-size: 16px !important;
        }
    }
}

/* Lenis smooth scroll (base CSS from Lenis; also overrides Bricks' scroll-behavior: smooth while Lenis runs) */
html.lenis,
html.lenis body {
    height: auto;
}

html.lenis {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}
