:root{
	--fullscreen-menu-width: 100vw;
	--fullscreen-menu-background: var(--grounded-taupe);
	--fullscreen-menu-color: #fff;
}

#fullscreen_menu{
	display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    background: var(--fullscreen-menu-background);
    width: var(--fullscreen-menu-width);
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 100;
    padding: 0;
    animation: fullscreen-menu-in .8s;
}

#fullscreen_menu *{color: var(--fullscreen-menu-color);}

@keyframes fullscreen-menu-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

html.fullscreen-menu-active{overflow: hidden;}
html.fullscreen-menu-active #fullscreen_menu{display: block;}
html.fullscreen-menu-active #header_main .inner-container > .logo a svg *{fill: #fff;}

#fullscreen_menu > .wrap{
    display: flex;
    flex-flow: column nowrap;
	gap: 2rem;
    height: 100%;
	padding-right: 50px; 
	padding-left: 50px; 
	padding-top: 118px;
	max-width: 1820px;
	margin: auto;
}
#fullscreen_menu > .wrap > *{
    max-width: 100%;
}


/* ==========================================================================
   Main Navigation
========================================================================== */
#fullscreen_menu > .wrap > nav{
	flex-grow: 1;
    display: flex;
    align-items: center;
	position: relative;
	overflow: auto;
	width: 100%;
	max-width: 100%;
}

#fullscreen_menu > .wrap > nav > ul{
    list-style: none;
    padding: 0;
	margin: 0;
    display: inline-flex;
    gap: .2em;
    flex-direction: column;
    align-items: flex-start;
    font-size: var(--step-3);
    position: relative;
	padding-left: 3rem;
}
#fullscreen_menu > .wrap > nav > ul > li {
    opacity: 0;
    animation: fullscreen-menu-fade-in 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
#fullscreen_menu > .wrap > nav > ul > li:nth-child(1) { animation-delay: .2s; }
#fullscreen_menu > .wrap > nav > ul > li:nth-child(2) { animation-delay: .4s; }
#fullscreen_menu > .wrap > nav > ul > li:nth-child(3) { animation-delay: .6s; }
#fullscreen_menu > .wrap > nav > ul > li:nth-child(4) { animation-delay: .8s; }
#fullscreen_menu > .wrap > nav > ul > li a{text-decoration: none;}
#fullscreen_menu > .wrap > nav > ul > li > ul{
    display: none;
    white-space: nowrap;
    list-style: none;
    padding: 1em 1em 1em 10%;
	margin: 0;
    font-size: var(--step-2);
	line-height: 1.2;
}

#fullscreen_menu .sub-menu li {margin-bottom: 1rem;}

#fullscreen_menu > .wrap > nav > ul > li.active > ul{display: block;}

#fullscreen_menu > .wrap > nav > ul > li > a{
	font-family: var(--heading-font);
	font-size: var(--step-5);
    position: relative;
    padding-left: 2.5em;
	line-height: 1.2;
    display: block;
	padding: .15em 0;
	transition: .2s;
}

#fullscreen_menu > .wrap > nav > ul > li > a:before{
    content: '';
    position: absolute;
    left: -.5em;
    top: 50%;
    transform: translateY(-50%) translateX(-100%) scaleX(0);
    transform-origin: left;
    height: 1px;
    width: 2em;
    background-color: currentColor;
    transition: transform 0.3s ease;
    opacity: 1;
}

#fullscreen_menu > .wrap > nav > ul > li.active > a:before {
    transform: translateY(-50%) translateX(-100%) scaleX(1);
}

@keyframes fullscreen-menu-li-in{
    0%   {translate: 0 -20vh; opacity: 0; filter: blur(32px);}
    100% {translate: 0 0; opacity: 1; filter: blur(0);}
}

@media (max-width: 767px){
	#fullscreen_menu > .wrap{padding-left: 5%; padding-right: 5%}
}

@media (max-width: 990px){
	#fullscreen_menu > .wrap > nav{padding: 10vh 0 20vh; align-items: flex-start}
	#fullscreen_menu > .wrap > nav > ul > li > a{font-size: var(--step-4)}
}
	
@media screen and (min-width: 990px){
    #fullscreen_menu > .wrap > nav:nth-of-type(1) > ul > li > ul{
        position: absolute;
        left: 100%;
        top: 0;
        padding: .7em 0 1em 4em;
		margin: 0;
    }
}

@media screen and (min-width: 1440px){
	#fullscreen_menu > .wrap > nav > ul{padding-left: 40%}
}


/* ==========================================================================
   Footer
========================================================================== */
#fullscreen_menu > .wrap > footer{
    margin-top: auto;
	line-height: 1.6;
    padding-bottom: 0;
	max-width: 1820px;
	display: flex;
    justify-content: space-between;
    flex-flow: row wrap;
    gap: 2rem;
	padding: 8vh 0 4.5rem;
	font-size: var(--step--1)
}
#fullscreen_menu > .wrap > footer > div > span{display: inline-block; margin-right: 1rem;}
#fullscreen_menu > .wrap > footer > div > span:last-child{margin-right: 0}
#fullscreen_menu > .wrap > footer #menu-footer{display: flex; gap: 0.5em 1em; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0}
#fullscreen_menu > .wrap > footer #menu-footer li{font-size: 1em; line-height: 1.6; text-transform: uppercase}

@media (max-width: 990px){
	#fullscreen_menu > .wrap > footer{display: none}
}


/* ==========================================================================
   Burger Menu Trigger
========================================================================== */
#top .fullscreen-menu-burger{
    position: relative;
	display: flex;
	align-items: center;
	gap: 1rem 4rem;
	z-index: 101;
}
#top .fullscreen-menu-burger > .avia-button{
	margin: 0 !important;
	font-size: var(--step--1);
}

html.fullscreen-menu-active #top .fullscreen-menu-burger > .avia-button{
	color: #fff !important;
	border-color: #fff !important;
}

@media only screen and (max-width: 420px){
	#top .fullscreen-menu-burger > .avia-button{display: none}
}
	
@media only screen and (min-width: 768px){
	#top .fullscreen-menu-burger > .avia-button{font-size: var(--step-0)}
	#top .av_header_transparency .fullscreen-menu-burger > .avia-button{
		color: #fff !important;
		border-color: #fff !important;
	}
}

#top .fullscreen-menu-burger > button{
	position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 45px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

#top .fullscreen-menu-burger > button > span{
  	display: block;
  	height: 1px;
	width: 100%;
  	background-color: #000;
  	transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  	transform-origin: center;
}
#top .fullscreen-menu-burger > button > span:nth-child(1){width: 70%;}
#top .fullscreen-menu-burger > button > span:nth-child(3){width: 80%;}

html.fullscreen-menu-active #top .fullscreen-menu-burger > button > span{background-color: #fff}
html.fullscreen-menu-active #top .fullscreen-menu-burger > button > span:nth-child(1){width: 100%; transform: translate(0px, 9.5px) rotate(45deg);}
html.fullscreen-menu-active #top .fullscreen-menu-burger > button > span:nth-child(2){opacity: 0; transform: scaleX(0);}
html.fullscreen-menu-active #top .fullscreen-menu-burger > button > span:nth-child(3){width: 100%; transform: translate(0px, -9.5px) rotate(-45deg);}

@media (max-width: 989px){
	#top .fullscreen-menu-burger{
		position: absolute;
    	top: 50%;
    	right: 0;
    	translate: 0 -50%;
		gap: 1rem;
	}
}

@media only screen and (min-width: 768px){
	#top .av_header_transparency .fullscreen-menu-burger > button > span{background-color: #fff}
}
