/*
 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
*/

/* 74 -> 32 -> font-size: clamp(2rem, 0.6875rem + 4.375vw, 4.625rem);
48 -> 32 -> font-size: clamp(2rem, 1.8125rem + 0.625vw, 2.375rem);
42 -> 28 -> font-size: clamp(1.75rem, 1.3125rem + 1.4583vw, 2.625rem);
36 -> 24 -> font-size: clamp(1.5rem, 1.125rem + 1.25vw, 2.25rem);
28 -> 22 -> font-size: clamp(1.375rem, 1.1875rem + 0.625vw, 1.75rem);
24 -> 20 -> font-size: clamp(1.25rem, 1.125rem + 0.4167vw, 1.5rem); */

/* --font-size-base: clamp(2rem, 3.944vi + 1.076rem, 4.625rem);
--font-size-base: clamp(2rem, 1.502vi + 1.648rem, 3rem);
--font-size-base: clamp(1.75rem, 1.315vi + 1.442rem, 2.625rem);
--font-size-base: clamp(1.5rem, 1.127vi + 1.236rem, 2.25rem);
--font-size-base: clamp(1.375rem, 0.563vi + 1.243rem, 1.75rem);
--font-size-base: clamp(1.25rem, 0.376vi + 1.162rem, 1.5rem); */

.heading-1{
    font-family: Aeonik, sans-serif;
    font-weight: normal;
    line-height:120%;
    font-size: clamp(2rem, 3.944vi + 1.076rem, 4.625rem);
}

.heading-2{
    font-family: Aeonik, sans-serif;
    font-weight: normal;
    line-height:120%;
    font-size: clamp(2rem, 1.502vi + 1.648rem, 3rem);
}

.heading-3{
    font-family: Aeonik, sans-serif;
    font-weight: normal;
    line-height:120%;
    font-size: clamp(1.75rem, 1.315vi + 1.442rem, 2.625rem);
}

.heading-4{
    font-family: Aeonik, sans-serif;
    font-weight: normal;
    line-height:120%;
    font-size: clamp(1.5rem, 1.127vi + 1.236rem, 2.25rem);
}

.heading-5{
    font-family: Aeonik, sans-serif;
    font-weight: normal;
    line-height:120%;
    font-size: clamp(1.375rem, 0.563vi + 1.243rem, 1.75rem);
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white p{
    color:#fff;
}

.brxe-text{
    img{
        width:100%;
        border-radius:30px; 
        max-height:500px;
    }

    ul {
        list-style: none;
        padding-left: 0;
        gap:24px;

        li {
            padding-left: 32px;
            position: relative;
            margin-block-start: 0px;
            margin-bottom:16px;

            &::before {
                content: '';
                display: inline-block;
                background-image: url('check.svg');
                background-size: contain;
                background-repeat: no-repeat;
                width: 1em;
                height: 1em;
                position: absolute;
                left: 0;
                top: 5px;
            }
        }
    }
}

body.scrolled .inner-header{
    background-color: rgba(0, 0, 0, 0.8);
    margin-top:-12px !important;

    @media(max-width: 1279px){
        margin-top:28px !important;
    }

    @media(max-width: 768px){
        margin-top:0px !important;
    }
}

/* Animations */
.image-zoom:hover img{
    transform: scale(1.05);
}

/* menu */

#brx-header .brxe-offcanvas .brx-offcanvas-inner{
    transform:none !important;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(.25, .46, .45, .94);
}

#brx-header .brxe-offcanvas.brx-open .brx-offcanvas-inner{
    opacity: 1;
}

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

.resnav-menu {
    width: 100%;
}

.resnav-menu .brx-submenu-toggle {
    display: flex;
    justify-content: space-between !important;
    width: 100% !important;
}

.resnav-menu .brx-submenu-toggle button {
    font-size: 16px !important;
}

.resnav-menu li.menu-item-has-children [aria-expanded] .menu-item-icon{
    transform:rotate(-90deg) !important;
}

.resnav-menu .menu-item-has-children {
    cursor: pointer !important;
}

.resnav-menu .menu-item-has-children {
    position: inherit !important;
}

.resnav-menu .menu-item-has-children > ul.sub-menu {
    position: absolute;
    top: 0px;
    left: 0px !important;
    right:0px;
    bottom:0px;
    width: 100vw !important;
    display: none;
    opacity: 1 !important;
    visibility: inherit !important;
    transition: all !important;
    max-height: calc(100vh - 150px) !important;
    height: calc(100vh - 150px) !important;
    overflow: visible !important;
    pointer-events: all;
    margin-top:0px;
}

.resnav-menu .menu-item-has-children > ul.sub-menu ul.sub-menu{
    top: 0px;
}

#brx-header .brxe-offcanvas .brx-offcanvas-content {
    transform: none !important;
}

/* Offcanvas altijd op positie, verbergen via opacity/visibility */
#brx-header .brxe-offcanvas,
#brx-header .brxe-offcanvas .brx-offcanvas-inner {
    transform: none !important;
}

:where(.brxe-nav-menu) .bricks-nav-menu>li.menu-item-has-children:hover:before{
    display:none !important;
}

.terug-item{
    line-height:100%;
    margin-bottom:24px;
    padding-left:0px !important;
}

.terug-item span {
    position: relative;
    padding: 0px 32px;
    color:#ffffff;
    left:32px;
    font-weight: 300;
}

.terug-item span::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="5" height="10" viewBox="0 0 5 10" fill="none"><path d="M4.87069 9.85817C4.70916 10.0353 4.45345 10.0466 4.28018 9.89156L4.24686 9.85817L0.129397 5.34205L0.0989522 5.30551C-0.0329853 5.12812 -0.0329852 4.87177 0.0989523 4.69438L0.129397 4.65783L4.24686 0.141722C4.41915 -0.0472413 4.6984 -0.0472412 4.87069 0.141722C5.04297 0.330685 5.04297 0.63698 4.87069 0.825942L1.50629 4.51607L1.13969 4.99994L1.50629 5.48381L4.87069 9.17394L4.90113 9.21049C5.04248 9.40054 5.03221 9.681 4.87069 9.85817Z" fill="%23ffffff"></path></svg>');
    position: absolute;
    left: 18px;
    top: calc(50% - 2px);
    transform: translateY(-50%);
    left:8px;
}

.resnav-menu ul.sub-menu {
    display: none;
}

/* Zorg dat diepere submenus boven hogere liggen */
.resnav-menu .menu-item-has-children > ul.sub-menu {
    z-index: 10;
}

.resnav-menu .menu-item-has-children .menu-item-has-children > ul.sub-menu {
    z-index: 20;
}

.resnav-menu .menu-item-has-children .menu-item-has-children .menu-item-has-children > ul.sub-menu {
    z-index: 30;
}

/* Items in submenu netjes onder elkaar */
.resnav-menu ul.sub-menu {
    display: none;
    flex-direction: column !important;
    padding: 0px !important;
    background: /* jouw achtergrondkleur */ #1a1a1a;
    overflow-y: auto !important;
}

.resnav-menu ul.sub-menu > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: static !important; /* ← alle submenus positioneren nu vanuit dezelfde container */
    padding: 0px 40px;
}

#brxe-bfjyds .bricks-nav-menu .sub-menu > li > .brx-submenu-toggle > *,
#brxe-bfjyds .bricks-nav-menu .sub-menu > li > a{
    color:#fff !important;
    font-size: 18px !important;
    font-family: 'aonik', sans-serif !important;
}
/* end menu */


/* slider settings */
.splide__list{
    /* gap:32px; */
    @media(min-width: 1921px){
        gap:32px;
    }

    .splide__slide{
        @media(min-width: 1921px){
            height:auto !important;
        }
    }
}

.project-slider{
    .splide__track{
        @media(min-width: 1921px){
            padding-left:40px !important;
            padding-right:140px !important;
        }

        @media(max-width: 1920px){
            padding-left:40px !important;
            padding-right:40px !important;
        }

        @media(max-width: 991px){
            padding-left:0px !important;
            padding-right:0px !important;
        }
    }
}

.project-item{
    &:hover{
        .project-item-text{
            text-decoration: underline;
        }
    }
}
/* end slider */

.logos{
    .brxe-carousel {
        .image{
            background-size: contain;
            background-repeat: no-repeat;
        }
    }
}

/* product */
.product-item:hover .brxe-icon{
    transform:translateX(15px);
}

/* search */
.brxe-search{
    position: relative;

    form{
        position: relative;

        button[type="submit"]{
            position: absolute;
            right: 50px;
            color: #fff;
            top: 5px;
            border-radius: 30px;
        }

        input{
            backdrop-filter: blur(30px);
            color:#fff;
            padding:0px 100px 0px 40px;
            height:60px;
        }
    }
}

.search-container{
    &.active{
        width:calc(100% - 500px) !important;

        @media(max-width: 991px){
            width:calc(100% - 350px) !important;
        }

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

.brxe-breadcrumbs{
    column-gap: 16px;
    row-gap: 0;
}

.horizontal-scroll{
    overflow-y: hidden !important;
    overflow-x: auto !important;
}

/* width */
.horizontal-scroll::-webkit-scrollbar {
    -webkit-appearance: none !important; /* ← dit is de fix voor Safari */
    height: 2px !important;
}

/* Track */
.horizontal-scroll::-webkit-scrollbar-track {
    -webkit-appearance: none !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 0px !important;
}

/* Handle */
.horizontal-scroll::-webkit-scrollbar-thumb {
    -webkit-appearance: none !important;
    background: #FD4319 !important;
    border-radius: 0px !important;
}

/* loop */
.bricks-pagination ul .page-numbers.prev,
.bricks-pagination ul .page-numbers.next,
.bricks-pagination ul .page-numbers.dots{
    border:none !important;
}

.bricks-pagination ul .page-numbers.prev:hover,
.bricks-pagination ul .page-numbers.next:hover,
.bricks-pagination ul .page-numbers.dots:hover{
    background-color: transparent !important;
    color:#000 !important;
}

.brxe-filter-checkbox .bricks-background-info,
#reset-filters{
    padding:0px !important;
    cursor: pointer;
}


.brxe-filter-checkbox .bricks-background-info:hover,
.brxe-filter-checkbox .bricks-background-info.brx-option-active,
#reset-filters:hover,
#reset-filters.active{
    color:#000 !important;
    text-decoration: underline !important;
}

/* accordion */
.brxe-accordion-nested .brx-open .brx-icon-transform{
    transform:rotate(270deg) !important;
}

/* gforms */
.gform_wrapper{
    label{
        color:#fff !important;
        font-family: Figtree !important;
        font-size: 16px !important;
    }

    .gform_heading{
        display:none !important;
    }

    .gform_fields{
        gap:24px !important;
    }

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

    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea{
        padding:16px 40px !important;
        border-radius: 30px !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(30px) !important;
        color:#fff !important;
        font-family: Figtree !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 150% !important;

        &::placeholder{
            color:#fff !important;
            font-family: Figtree !important;
            font-size: 16px !important;
            font-style: normal !important;
            font-weight: 400 !important;
            line-height: 150% !important;
        }

        &:focus{
            &::placeholder{
                opacity: 0.5;
            }
        }
    }

    input[type="file"]{
        padding:16px 40px !important;
        border-radius: 30px !important;
        border: 1px solid rgba(255, 255, 255, 0.10) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(30px) !important;
        color:#fff !important;
        font-family: Figtree !important;
        font-size: 16px !important;
        font-style: normal !important;
        font-weight: 400 !important;
        line-height: 150% !important;

        -webkit-appearance: none;

        &::placeholder{
            color:#fff !important;
            font-family: Figtree !important;
            font-size: 16px !important;
            font-style: normal !important;
            font-weight: 400 !important;
            line-height: 150% !important;
        }

        &:focus{
            &::placeholder{
                opacity: 0.5;
            }
        }
    }

    input[type="checkbox"]{
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.20) !important;
        backdrop-filter: blur(30px) !important;
        background: rgba(255, 255, 255, 0.05) !important;

        &::before{
            color:#fff !important;
        }
    }

    input[type="submit"]{
        color: #fff !important;
        font-size: 18px !important;
        font-family: "Figtree" !important;
        line-height: 150% !important;
        border-radius: 40px !important;
        padding: 12px 24px !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        background-color: #FD4319 !important;

        &:hover{
            background-color: #d42700;
        }
    }

    .gfield_consent_label{
        a{
            text-decoration: underline;

            &:hover{
                text-decoration: none;
            }
        }
    }
}


.hero-contentpagina + .contact-formulier{
    margin-top:-90px;

    @media(max-width: 991px){
        margin-top:-40px;
    }

    @media(max-width: 768px){
        margin-top:-64px;
    }
}

.content-image + .content{
    margin-top:130px;

    @media(max-width: 991px){
        margin-top:80px;
    }
}


.content-image{

    &.list-alt{
        ul{
            display: flex;
            flex-wrap:wrap;
            gap:24px;
        }

    }
    ul {
        list-style: none;
        padding-left: 0;

        li {
            padding-left: 32px;
            position: relative;
            margin-block-start: 0px;

            &::before {
                content: '';
                display: inline-block;
                background-image: url('check.svg');
                background-size: contain;
                background-repeat: no-repeat;
                width: 1em;
                height: 1em;
                position: absolute;
                left: 0;
                top: 4px;
            }
        }
    }
}

/* Navbar */
.main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    color: white;
    text-decoration: none;
    padding: 6px 0;
    display: block;
}

/* Dropdown panel */
.mega-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0C0C0D;
    border-radius: 30px;
    padding: 40px;
    gap: 0;
    z-index: 999;
    align-items: flex-start;
    min-width: 180px;
}

/* Alle kolommen */
.mega-menu-col-1,
.mega-menu-col-2,
.mega-menu-col-3 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-flow: column;
    align-items: stretch;

    a{
        transition: all 0.3s ease;
    }

    .current-menu-item{
        color:#DB3E37;
    }

    li:first-child{
        a{
            padding-top:0px;
        }
    }

    li:last-child{
        a{
            padding-bottom:0px;
        }
    }
}

/* Col-2 en col-3 standaard verborgen, scheidingslijn links */
.mega-menu-col-2,
.mega-menu-col-3 {
    display: none;
    padding-left: 24px;
    margin-left: 24px;
}

/* Kolom 1 */
.mega-menu-col-1 > li > a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 16px;
    white-space: nowrap;
    width: 100%;

}

.mega-menu-col-1 > li.active > a,
.mega-menu-col-1 > li:hover > a {
    color: white;
    text-decoration: underline;
    display: flex;
    gap: 24px;
    align-items: center;
}

/* Kolom 2 */
.mega-menu-col-2 > li > a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 16px;
    white-space: nowrap;
    position: relative;
}

.mega-menu-col-2 > li.active > a,
.mega-menu-col-2 > li:hover > a {
    color: white;
    text-decoration: underline;
}

/* Kolom 3 — oranje */
.mega-menu-col-3 > li > a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 16px;
    white-space: nowrap;
}

.mega-menu-col-3 > li > a:hover{
    color:#DB3E37;
    text-decoration: underline;
}

/* Als er een actief item is in col-1, dim de rest */
.mega-menu-col-1:has(li.active) > li:not(.active) {
    opacity: 0.3;
}

/* Als er een actief item is in col-2, dim de rest */
.mega-menu-col-2:has(li.active) > li:not(.active) {
    opacity: 0.3;
}

/* Als er een actief item is in col-3, dim de rest */
.mega-menu-col-3:has(li.active) > li:not(.active) {
    opacity: 0.3;
}

/* Chevron top-level items */
.main-nav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 6px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-left:16px;
}

/* Chevron omdraaien als menu open is */
.main-nav > ul > li.menu-item-has-children.open > a::after {
    transform: rotate(-135deg);
    top: 2px;
}

/* Chevron rechts bij actieve col-1 items met subitems */
.mega-menu-col-1 > li.menu-item-has-children {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
}
.mega-menu-col-1 > li.menu-item-has-children.active,
.mega-menu-col-2 > li.menu-item-has-children.active {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
}
.mega-menu-col-1 > li.menu-item-has-children.active::after,
.mega-menu-col-2 > li.menu-item-has-children.active::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    /* margin-left: 100%; */
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    vertical-align: middle;
    position: absolute;
    right: -24px;
}

.brxe-carousel .image{
    transition: all 0.3s ease;
    filter:grayscale(100%);

    &:hover{
        filter:grayscale(0);
    }
}