/*
 Theme Name:     My Design Team
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Sarah F.
 Author URI:     https://mydesignteam.ch
 Template:       Divi
 Version:        2024
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/* Global Colors */

:root {
	--gray1: #1F2933;
	--gray2: #323F4B;
	--gray3: #3E4C59;
	--gray4: #52606D;
	--gray5: #616E7C;
	--gray6: #7B8794;
	--gray7: #9AA5B1;
	--gray8: #CBD2D9;
	--gray9: #E4E7EB;
	--gray10: #F5F7FA;
}

/* Text Module */

.mdt-text h1,
.mdt-text h2,
.mdt-text h3,
.mdt-text h4,
.mdt-text h5,
.mdt-text h6 {
    padding-bottom: .70em;
}

.mdt-text h1:not(:first-child),
.mdt-text h2:not(:first-child),
.mdt-text h3:not(:first-child),
.mdt-text h4:not(:first-child),
.mdt-text h5:not(:first-child),
.mdt-text h6:not(:first-child) {
    padding-top:1.25em;
}

.mdt-text ul li,
.mdt-text ol li {
    padding-bottom: .5em;
}

.mdt-text p:last-of-type {
    padding-bottom: 1em;
}
.mdt-text p:last-child {
    padding-bottom: 0;
}
.mdt-text blockquote p:last-of-type {
	padding-bottom:0;
}

.mdt-text blockquote {
    background: var(--gray10);
    padding: 25px 35px;
}
.mdt-text blockquote {
    position:relative;
}

.mdt-text blockquote:before {
    content: '“';
    position: absolute;
    font-size: 5em;
    top: .15em;
    left: 0;
    color:var(--gray9);
}
.mdt-text blockquote:after {
    content: '”';
    position: absolute;
    font-size: 5em;
    bottom: -0.45em;
    right: 0.25em;
    color:var(--gray9);
}


/* Buttons */
.mdt-btn.et_pb_button {
    line-height: 1!important;
}


/*
______________________
   
   Header
______________________

*/
   
/* Column alignment */   
#mdt-header .et_pb_row {
    align-items: baseline;
}
#mdt-header .et_pb_row .et_pb_column:first-child {
    align-self: flex-end;
}

/* Hide CTA for small phones */
@media (max-width:430px) {
    #mdt-header .et_pb_column:nth-child(3) {
        display:none;
    }
}

/* Sticky Section background */
#mdt-header {
    backdrop-filter: blur(17px);
}

/* Main Menu Module */
#mdt-header .et_pb_menu .et-menu>li {
    padding:10px 20px;
}

#mdt-header .et_pb_menu .et-menu>li a:hover {
    opacity:1;
}

/* Top Level Menu Hover Effect */
#mdt-header .et_pb_menu .et-menu > li a {
    position:relative;
}

#mdt-header .et_pb_menu .et-menu > li > a:before {
    content:'';
    display:block;
    position:absolute;
    bottom:-20px;
	left:0;
	right:0;
	height:10px;
	background:url(img/zigzag.svg) repeat-x;
	animation: zigzagPlay 3s infinite linear;
	opacity:0;
	transition:all .3s ease-in-out;
} 

@keyframes zigzagPlay {
	0% {
		background-position: 0;
	}
	100% {
		background-position:-70px;
	}
}

#mdt-header .et_pb_menu .et-menu > li > a:hover:before {
	opacity:1;
	bottom:-10px;
}

/* Submenu */
#mdt-header .sub-menu {
    border:none;
    border-radius:2px;
    padding:20px;
    width:200px;
    transition:all .3s ease-in-out;
    top:calc(100% + 9px);
}

#mdt-header .sub-menu li {
    width:100%;
    padding:0;
}

#mdt-header .sub-menu li a {
    padding:0 0 10px;
    font-family:"Barlow", sans-serif;
    font-wieght:700;
    font-size:16px;
    text-transform:none;
    letter-spacing:0;
    background:none;
    transition:all .3s ease-in-out;
}

#mdt-header .sub-menu li:last-child a {
    padding:0;
}

#mdt-header .sub-menu li a:hover {
    padding-left:5px;
}

#mdt-header .nav li:hover > ul, #maya-header .nav li.et-touch-hover > ul {
    top:calc(100% - 1px)
}  
  

/* Mobile Header Structure & Menu */
@media (max-width:980px) {

    #mdt-header .et_pb_row {
        display: flex;
        align-items:center;
    }
    #mdt-header .et_pb_column {
        margin-bottom:0;
    }
    #mdt-header .et_pb_column:nth-child(1) {
        order:1;
    }
    #mdt-header .et_pb_column:nth-child(2) {
        order:3;
    }
    #mdt-header .et_pb_column:nth-child(3) {
        order:2;
    }

    #mdt-header .et_pb_menu__wrap {
        justify-content:flex-end;
    }
    
    /* Mobile Menu */

    #mdt-header .mobile_menu_bar:before {
        font-size: 40px;
    }

    #mdt-header .opened .mobile_menu_bar:before {
        content:'\4d';
    }

    #mdt-header .et_mobile_menu {
        position: fixed;
        display: block!important;
        margin: 0!important;
        height: 100%!important;
        min-height: 100vh;
        padding: 100px 0 0!important;
        max-width: 300px;
        left: auto;
        right: -300px;
        top: 0;
        z-index: 39;
        transition: all 1s ease-in-out;
    }

    #mdt-header .opened .et_mobile_menu {
        right: 0;
    }

    #mdt-header .mobile_menu_bar {
        z-index: 40;
    }
	
	/* Position "Fixed" inside the Sticky Section fix */
    #mdt-header.et_pb_sticky * {
        transform:none!important;
    }
	
	/* Mobile Sub-menu */
    #mdt-header .sub-menu {
        width:auto;
        padding:0;
    }
    #mdt-header .sub-menu li a,
    #mdt-header .sub-menu li a:hover,
    #mdt-header .sub-menu li:last-child a {
        padding:10px 25px 10px 35px;
    }

}

