/* 
	Mobile menu: max-width: 1100px
	Desktop menu: min-width: 1100px
*/

header#header {
	text-transform: uppercase;
	font-weight: 400;
	font-size: 1.6rem;
	position: absolute;
	/* position: sticky; */
	/* background: #fff;  */
	/* background: rgba(255,255,255,.8);
	backdrop-filter: blur(5px);
	 -webkit-backdrop-filter: blur(5px); */
	font-weight: 500;
	top: 0;
	z-index: 80; }

header#header .mc {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	max-width: 100%;
	z-index: 120;
	padding: 0 var(--spacing__x); }

header#header a,
header#header a:visited,
header#header a:active,
header#header a:hover {
	color: var(--color__white);
	transition: all .3s; }

header#header a:hover { }

/* Control height of header and ensure dropdowns are flush with header bottom */
header#header #header__nav ul li a {
	padding: .5em 1.5em; }

#branding {
	width: 150px;
	margin-right: auto;
	flex-shrink: 0; }

#branding a {
	line-height: 0;
	padding: 3rem 0;
	text-align: left;
	display: block; }

#branding img {
	width: 100%;
	transition: width .6s; }

#header__nav__wrapper {
	flex-grow: 1;
	text-align: right;
	display: flex;
	justify-content: flex-end; }

#header__nav {
	margin-left: auto;
	transform: translateX(1.5rem); }

#header__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex; }

#header__nav ul li {
	position: relative; }

#header__nav ul li a {
	text-decoration: none;
	padding: 0.75em;
	display: block; }


		

/* Nav items as buttons */
#header__nav ul li.button a {
	border-radius: 10em;
	background: rgba(22, 22, 22, .6); }

#header__nav ul li.button a:after {
	content: '';
	position: relative;
	display: inline-block;
	width: 8px;
	height: 12px;
	z-index: 1;
	margin-left: 8px;
   background-image: url("data:image/svg+xml,%3Csvg width='8px' height='12px' viewBox='0 0 8 12' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpolygon fill='%23FFFFFF' fill-rule='nonzero' points='1.71584978 12 1.19104726e-12 10.2959481 4.33785429 6 1.19015908e-12 1.70405187 1.71584978 1.3280964e-16 7.7695916 5.99994337'%3E%3C/polygon%3E%3C/g%3E%3C/svg%3E"); }






		
/* header__nav__toggle */
#header__nav__toggle {
	z-index: 2000;
	display: none;
	background: none;
	border: none;
	height: 4rem;
	width: 4rem;
	cursor: pointer;
	position: absolute;
   right: 10px;
	  top: 10px; }

#header__nav__toggle .menu-icon,
#header__nav__toggle .menu-icon:before,
#header__nav__toggle .menu-icon:after {
	background: var(--color__white);
	content: '';
	display: block;
	height: 3px;
	position: absolute;
	transition: background ease .3s, top ease .3s .3s, transform ease .3s;
	width: 4rem; }
			
#header__nav__toggle .menu-icon {
	left: 0;
	top: 2rem; }

#header__nav__toggle .menu-icon::before {
	top: -12px; }
	
#header__nav__toggle .menu-icon::after {
	top: 12px; }
	
#header__nav__toggle.open .menu-icon {
	background: transparent; }
	
#header__nav__toggle.open .menu-icon::before {
	transform: rotate(45deg); }
	
#header__nav__toggle.open .menu-icon::after {
	transform: rotate(-45deg); }
	
#header__nav__toggle.open .menu-icon::before,
#header__nav__toggle.open .menu-icon::after {
	top: 0;
	transition: top ease .3s, transform ease .3s .3s; }
	
	


@media (max-width: 1200px) {
	
}





/* Handling sub navigations desktop / mobile */
@media (max-width: 1099px) {
	
	/* #header__nav ul li.menu-item-has-children > ul {
		max-height: 0;
		opacity: 0;
		visibility: hidden;
		overflow: hidden;
		transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s; }

	#header__nav ul li.menu-item-has-children.open > ul {
		max-height: 500px;
		opacity: 1;
		visibility: visible;
		overflow: visible;	}

	#header__nav ul li.menu-item-has-children:hover > ul {
		opacity: 1;	} */
}


/* Scrolled */
/* header#header.scrolled #header__nav ul li a {
	padding-top: 1.5em;
   padding-bottom: 1.5em; }
	
header#header.scrolled #header__nav ul li ul li a {
	padding-top: 0.5em;
	padding-bottom: 0.5em; }
	
header#header.scrolled  #branding img {
	width: 250px; } */
	
	
	
/* ===============
   SUB NAVIGATIONS
   =============== */	

/* Desktop - small */
@media (min-width: 1200px) and (max-width: 1300px) {
	
	/* Reduce padding */
	header#header #header__nav ul li a {
		padding: .5em 1em; }
	   
}


   
   
/* Desktop */
@media (min-width: 1200px) {
	
/* Dropdown Styles */
#header__nav ul li ul.sub-menu {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 100%;
	background: rgba(255,255,255,.95);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
	text-align: center;
	display: none;
	display: block;
	flex-direction: column;
	border-radius: var(--border-radius);
	overflow: hidden;
	min-width: 150px;
	z-index: 100; }

#header__nav ul li ul li {
	white-space: nowrap; }

header#header #header__nav ul li ul li a {
	padding: 1em 1em;}

header#header #header__nav ul li ul li a:hover {
	background: var(--color__white); }

#header__nav ul li ul.sub-menu a,
#header__nav ul li ul.sub-menu:visited,
#header__nav ul li ul.sub-menu:active,
#header__nav ul li ul.sub-menu:hover {
	color: var(--color__gray__dark); }
		
#header__nav ul li:hover > ul {
	display: flex; }
	
/* Dropdown top */
header#header #header__nav ul li.menu-item-has-children ul::before {
	content: '';
	position: absolute;
	top: -8px;
	left: 50%;
	z-index: 90;
	transform: translateX(-50%);
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #fff; }
	
/* Parent items with children */
header#header #header__nav ul li.menu-item-has-children > a {
	position: relative;
	padding-right: calc(1.5em + 6px); }
	
#header__nav ul li.menu-item-has-children > a::after {
	content: '';
	position: absolute;
	margin-left: 6px;
	top: calc(50% - .2em);
	width: 0;
	height: 0;
	display: inline-block;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid var(--color__white);
	border-bottom: none; }

#header__nav ul li.menu-item-has-children.open > a::after {
	transform: translateY(-50%) rotate(180deg); }	
	
}



/* Mobile */
@media all and (max-width: 1200px) {
	
#header__nav__toggle {
	display: block; }

header#header .mc {
	padding: 0;
	flex-wrap: wrap;
	justify-content: flex-start; }
	
header#header #branding {
	margin: 10px; }
	
header#header #branding a {
	padding: 0; }
			
.header__nav__wrapper {
	width: 100%;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	display: flex;
	z-index: 999;
	flex-direction: column;
	transform: translateY(-10px);
	pointer-events: none;
	transition: max-height 0.6s ease-in-out, 
		opacity 0.4s ease,
		visibility 0.2s 0.4s,
		transform 0.4s ease;
	}
	
.header__nav__wrapper.open {
	max-height: 500px;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition: max-height 0.6s ease-in-out,
		opacity 0.4s ease,
		visibility 0s,
		transform 0.4s ease;
	}

#header__nav {
	transform: translateX(0);
	width: 100%;	
	margin: 0; }
	
#header__nav ul {
	flex-direction: column;
	text-align: center;
	background: #fff;
	width: 100%; }

#header__nav ul li {
	width: 100%; }

header#header #header__nav ul li a {
	padding: 1em;
	box-sizing: border-box;
	display: block;
	width: 100%; }

#header__nav ul li ul {
	position: relative;
	top: 0;
	display: none;
	box-sizing: border-box;
	border: none;
	width: 100%; }

#header__nav ul li ul li {
	background: var(--color-gray-light); }
			
#header__nav ul li:hover > ul {
	display: block; }

#header__nav__wrapper.open {
	display: flex;
	flex-direction: column; }

}