/*
 Theme Name:   Made I.T. - WEBSITE_URL
 Theme URI:    https://www.madeit.be
 Description:  Child theme of Made I.T.
 Author:       Made I.T.
 Author URI:   https://www.madeit.be
 Template:     madeit
 Version:      0.1.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  THEME_NAME
*/

@import url("https://use.typekit.net/ptj7rru.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.custom-logo {
    height: 100px !important;
    width: auto !important;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
}

.navbar a {
    font-weight: 400;
}
.navbar-dark .navbar-nav .nav-link {
    color: white;
}
.navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active {
    color: var(--wp--preset--color--primary);
    border-bottom: 1px solid var(--wp--preset--color--primary);
}

body {
    font-size: var(--wp--preset--font-size--normal);
    line-height: var(--wp--custom--line-height--body);
}
h1, .h1 {
    font-size: var(--wp--preset--font-size--h-1);
}
@media (max-width: 767px) {
    h1, .h1, .has-h-1-font-size {
        font-size: 2.5rem !important;
    }
}

h2, .h2 {
    font-size: var(--wp--preset--font-size--h-2);
}

h3, .h3 {
    font-size: var(--wp--preset--font-size--h-3);
}

h4, .h4 {
    font-size: var(--wp--preset--font-size--h-4);
}

h5, .h5 {
    font-size: var(--wp--preset--font-size--h-5);
}
h6, .h6 {
    font-size: var(--wp--preset--font-size--h-6);
}

h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: 100px;
}


#googlemaps {
    height: 350px;
    width: 100%;
}

form .required {
    color: var(--wp--preset--color--danger);
}

/* Woocommerce Cart */
.menu-item.shopping-menu-item {
    position: relative;
}
.menu-item.shopping-menu-item svg {
    height: 16px !important;
    margin-left: 0 !important;
    fill: white;
}
.menu-item.shopping-menu-item .shopping-cart-count {
    position: absolute;
    top: -10px;
    right: -9px;
    background-color: var(--wp--preset--color--danger);
    color: white;
    border-radius: 50px;
    padding: 0px 2px;
    aspect-ratio: auto;
    width: 15px;
    height: 15px;
    font-size: xx-small;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* MENU COLOR */
.navbar.bg-white {
    background-color: transparent !important;
    box-shadow: none !important;
}
.menu li.active a.nav-link {
    color: var(--wp--preset--color--primary);
    background-color: transparent;
}
.dropdown-toggle.nav-link.show {
    color: var(--wp--preset--color--primary);
    background-color: transparent;
}

@media(min-width: 768px) {
    .menu li > a.nav-link {
        transition: all 0.2s ease-in-out;
        background-color: transparent;
        color: white;
    }
    .menu li.active > a.nav-link {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
    .menu li > a.nav-link:hover {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
}

/* Dropdown */
@media(min-width: 768px) {
    .menu .dropdown-menu {
        border: none;
        border-top: 2px solid var(--wp--preset--color--primary);
        background-color: #2d2c36;
        margin-top: 28px;
        border-radius: 0;
    }
    .menu .dropdown-menu li a.nav-link {
        color: white;
        background-color: transparent;
        border: none;
    }
    .menu .dropdown-menu li:hover a.nav-link {
        color: var(--wp--preset--color--primary);
    }
    .menu .dropdown-menu li.active a.nav-link {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }

    /* Animation from down to up */
    .menu .dropdown-menu {
        animation: dropdownFromTop 0.3s ease-in-out both;
    }
    @keyframes dropdownFromTop {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Offcanvas */
@media (max-width: 991px) {
    .admin-bar .offcanvas {
        top: 46px;
    }
    .offcanvas {
        background-color: #dedede;
        position: absolute;
        height: 100vh;
    }
    .offcanvas .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .offcanvas .offcanvas-header .offcanvas-logo {
        max-width: 150px;
    }

    
    .offcanvas nav li > a.nav-link {
        transition: all 0.2s ease-in-out;
        background-color: transparent;
        color: #31303b;
    }
    .offcanvas nav li.active > a.nav-link {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
    .offcanvas nav li > a.nav-link:hover {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
}

@media only screen and (min-width: 783px) {
    body.logged-in .navbar.fixed-top {
        top: 0px !important;
    }
}

body.logged-in .navbar.fixed-top {
    top: 0px !important;
}



.flex-grow {
    overflow-x: clip;
}

.wp-block-madeitforms-submit-button__width-100 button {
    width: 100%;
}
.wp-block-button__link, .btn, .wp-block-madeitforms-submit-button__link {
    text-transform: uppercase;
    border: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}
.wp-block-button__link.has-success-background-color:hover, .wp-block-madeitforms-submit-button__link.has-success-background-color:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--success) !important;
    border-color: var(--wp--preset--color--success) !important;
}
.wp-block-button__link.has-primary-background-color:hover, .btn-primary:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--primary) !important;
    border-color: var(--wp--preset--color--primary) !important;
}
.wp-block-button__link.has-secondary-background-color:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--secondary) !important;
    border-color: var(--wp--preset--color--secondary) !important;
}
.wp-block-button__link.has-danger-background-color:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--danger) !important;
    border-color: var(--wp--preset--color--danger) !important;
}
.btn-white {
    background-color: white;
    color: black;
    border: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}
.btn-white:hover {
    background-color: var(--wp--preset--color--primary) !important;
    color: black !important;
}


/* Column max container size UPDATE*/
.wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
    padding-right: calc(var(--bs-gutter-x));
    padding-left: calc(var(--bs-gutter-x));
	margin-left: 0 !important;
	max-width: unset;
}
.wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
    padding-right: calc(var(--bs-gutter-x));
    padding-left: calc(var(--bs-gutter-x));
}
@media (min-width: 576px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 540px) / 2 + 15px) !important;
        padding-right: calc((100vw - 540px) / 2 + 15px) !important;
		margin-left: 0 !important;
		max-width: unset !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 540px) / 2 + 15px) !important;
        padding-left: calc((100vw - 540px) / 2 + 15px) !important;
    }
}

@media (min-width: 768px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 720px) / 2 + 15px) !important;
        padding-right: calc((100vw - 720px) / 2 + 15px) !important;
		margin-left: 0 !important;
		max-width: unset !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 720px) / 2 + 15px) !important;
        padding-left: calc((100vw - 720px) / 2 + 15px) !important;
    }
}

@media (min-width: 992px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 960px) / 2 + 15px) !important;
        padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
		margin-left: 0 !important;
		max-width: unset !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 960px) / 2 + 15px) !important;
        padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    }
}

@media (min-width: 1200px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 1140px) / 2 + 15px) !important;
		margin-left: 0 !important;
		max-width: unset !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1140px) / 2 + 15px) !important;
    }
}

@media (min-width: 1400px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 1320px) / 2 + 15px) !important;
		margin-left: 0 !important;
		max-width: unset !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1320px) / 2 + 15px) !important;
    }
}




/* realizatie-swiper */
.realizatie-swiper .swiper-slide a {
    border-radius: var(--wp--custom--border-radius--default);
    overflow: hidden;
}
.realizatie-swiper .swiper-slide:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--wp--custom--border-radius--default);
    background-image: linear-gradient(to top, transparent 0% , transparent 50%),
                      linear-gradient(to top, transparent 0%, transparent 100%);
    transition: all 0.3s ease-in-out;
}
.realizatie-swiper .swiper-slide:hover:after {
    border-radius: var(--wp--custom--border-radius--default);
    background-image: linear-gradient(to top, var(--wp--preset--color--secondary) 0%, transparent 50%),
                      linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    transition: all 0.3s ease-in-out;
}
.realizatie-swiper .swiper-slide .group {
    position: relative;
    z-index: 2;

    transform: translateY(150%);
    transition: all 0.3s ease-in-out;
}
.realizatie-swiper .swiper-slide:hover .group {
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}