/*
 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.1
 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/jiv7jbo.css");

body {
    font-family: 'myriad', sans-serif;
    font-weight: 400;
    font-style: normal;
}

body.logged-in .navbar {
    top: 31px !important;
}
@media (max-width: 782px) {
    body.logged-in .navbar {
        top: 46px !important;
    }   
}
.custom-logo {
    height: 80px !important;
    width: auto !important;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
    font-family: 'myriad',sans-serif;
}

.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: #31303b !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;
    }
}




.wp-block-button__link, .btn, .wp-block-madeitforms-submit-button__link {
    border: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}
.wp-block-button__link:hover, .btn:hover, .wp-block-madeitforms-submit-button__link:hover {
    box-shadow: none !important;
}
.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;
}

/* Button animation - bullet out */
.wp-block-button__link.has-primary-background-color {
    position: relative;
    overflow: hidden;
    border: none !important;
}
.wp-block-button__link.has-primary-background-color::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 10%;
    aspect-ratio: 1;
    border-radius: 50px;
    background-color: var(--wp--preset--color--primary);
    transition: transform .5s ease-in-out;
    transform: scale(0);
    z-index: -1;
}
.wp-block-button__link.has-primary-background-color:hover::after {
    transform: scale(15);
}
.wp-block-button__link.has-primary-background-color:hover {
    color: var(--wp--preset--color--default-bg) !important;
    box-shadow: none !important;
    border: none !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));
}
.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;
    }
    .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;
    }
    .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;
    }
    .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;
    }
    .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;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1320px) / 2 + 15px) !important;
    }
}

:root {
    --mouse-x: 50%;
    --mouse-y: 15%;
    --shadow-color: rgba(0, 255, 0, 0.3);
}

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

/* Mouse follow effect */
body {
    position: relative;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        #58B580 20px,  
        #78D64B 40px,
        transparent 100px
    );
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}
body.admin-bar {
    margin-top: -31px;
}
/* TODO: 
    Hover effect when on a click element, grow the circle and transparent it
*/


/* SHOW ANIMATION */
.show-on-scroll {
    animation: autoShow both;
    animation-timeline: view(40% 10%);
}

@keyframes autoShow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.show-from-left {
    transform: translateX(-20px);
    animation: showFromLeft both;
    animation-timeline: view(40% 10%);
}

@keyframes showFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.show-from-right {
    transform: translateX(20px);
    animation: showFromRight both;
    animation-timeline: view(40% 10%);
}

@keyframes showFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.zoom-in-onscroll {
    transform: scale(0.1);
    animation: zoomInOnScroll both;
    animation-timeline: view(80% 10%);
}

@keyframes zoomInOnScroll {
    from {
        opacity: 0;
        transform: scale(0.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Negative margin (box-shadow) */
.m-top-neg-5 .has-default-text-background-color {
    box-shadow: 0px -250px 0px 0px #f5f5f5ff !important;
    z-index: -1;
}


/* Table layout */
table {
    table-layout: auto !important;
    border-collapse: collapse;
    background: transparent;
    color: var(--wp--preset--color--default-bg);
    text-align: left;
    font-size: 14px;
    border-radius: 0px;
    overflow: hidden;
}

/* Header */
thead {
    border: none !important;
}
thead tr {
    color: var(--wp--preset--color--default-bg);
    text-align: center !important;
    font-weight: bold;
    border: none !important;
}
thead tr th:not(:empty) {
    background-color: var(--wp--preset--color--primary);
}

thead th {
    text-transform: uppercase;
    font-size: 15px;
    border: none !important;
    padding: 20px 0px !important;
}

/* Body */
tbody td {
    min-width: 150px;
    padding: 20px 14px !important;
    background: rgba(87, 87, 87, 0.05);
    border: none !important;
    border-left: 2px solid var(--wp--preset--color--default-text) !important;
    border-right: 2px solid var(--wp--preset--color--default-text) !important;
    border-bottom: 2px solid var(--wp--preset--color--default-text) !important;
}


/* Stappen */
@media (min-width: 768px) {
.steps_mit .wp-block-group {
    position: relative;
}
.steps_mit .wp-block-group:nth-child(3n+2):before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    background-color: var(--wp--preset--color--primary);
    border: 4px solid white;
    z-index: 1;
}
.steps_mit .wp-block-group:nth-child(3n+2):not(:nth-child(5)):not(:nth-child(11)):after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 50%;
    height: 2px;
    background-color: white;
    z-index: -1;
}
.steps_mit .wp-block-group:nth-child(3n+2):not(:nth-child(2)):not(:nth-child(8)):after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 50%;
    height: 2px;
    background-color: white;
    z-index: -1;
}

.steps_mit hr {
    transform: rotate(90deg);
    opacity: 1;

    position: absolute;
    border: none;
    width: 80%;
    height: 2px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: white !important;
}
}



/* Grid */
@media (max-width: 768px) {
    body .is-layout-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px;
    }
}