﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary { 
	position: relative; width: 100%; padding: 0; margin: 0; 
	display: flex; justify-content: flex-end; align-items: stretch; 
}
nav.primary ul { 
	position: relative; width: 100%; padding: 0; margin: 0; 
	display: flex; justify-content: flex-end; align-items: stretch; 
}
nav.primary ul li { 
	position: relative; padding: 0; margin: 0; list-style-type: none;
	display: flex; align-items: stretch; 
}
nav.primary ul li a:not(.btnclass) {
	color: var(--dblue);
	font-size: 15px;
	font-weight: 400;
	text-align: center;
	padding: 0 20px; 
	position: relative; width: 100%; 
	display: flex; justify-content: center; align-items: center; 
	text-decoration:none; letter-spacing: .75px; 
	-webkit-transition: .2s ease-in; 
	-moz-transition: .2s ease-in; 
	-o-transition: .2s ease-in; 
	transition: .2s ease-in;
	cursor: pointer; margin: 0; 
}	
nav.primary ul li a:not(.btnclass):hover { color: var(--mblue); }

nav.primary ul li a:not(.btnclass):before { position: absolute; z-index: -1; content: ""; bottom: 18px; right: 20px; width: 0px; height: 2px; background: var(--mblue); opacity: 0; transition: .25s ease all; }
nav.primary ul li a:not(.btnclass):hover:before { opacity: 1; width: calc(100% - 40px); transition: .25s ease all, opacity .1s ease, width .25s ease-in-out; }

nav.primary ul li a.btnclass { margin: auto 0 auto 20px; }

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	justify-content: flex-start; 
	text-align: left; 
	font-size: 16px;
	padding: 12px;
	color: #fff;
	background: var(--dblue);
	border-bottom: #303030 solid 1px;
	border-right: none; border-left: none;
}
nav.primary ul li li:last-child a { border-bottom: none; }

/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { background: var(--mblue); }

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul { display: none; width: unset; position: absolute; top: 100%; left: 0; }
nav.primary ul ul ul { position: absolute; left: 100%; top: 0; }
nav.primary ul li:hover > ul { display: block; line-height: 18px; z-index: 100; }
nav.primary ul ul li { width: 240px; position: relative; display: block; float: none; margin: 0; }

@media only screen and (max-width: 1450px) {
	nav.primary ul li a:not(.btnclass) { padding: 0 16px; }
	nav.primary ul li a:not(.btnclass):before { right: 16px; }
	nav.primary ul li a:not(.btnclass):hover:before { width: calc(100% - 32px); }
	nav.primary ul li a.btnclass { margin-left: 16px; }
}

@media only screen and (max-width: 1280px) {
	nav.primary ul li a:not(.btnclass) { padding: 0 12px; }
	nav.primary ul li a:not(.btnclass):before { right: 12px; }
	nav.primary ul li a:not(.btnclass):hover:before { width: calc(100% - 24px); }
	nav.primary ul li a.btnclass { margin-left: 12px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1221px) {
	.menu-toggle.exit-click { display: none !important; }
}

@media screen and (max-width: 1220px) {
	.mobile + .menu-toggle.exit-click{
		position: fixed !important; z-index: 1007; pointer-events: none; opacity: 0; 
		top: 0 !important;left: 0 !important;right: 0 !important;bottom: 0 !important; 
		background: rgba(36,32,33,0.33); transition: ease opacity 0.3s; 
	}
	.mobile.open + .menu-toggle.exit-click{
		pointer-events: auto; opacity: 1;
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
	}
/*==============================
	Mobile Nav Styles			
================================*/	
	nav.primary{display:none;} 
	
	#menu-button { 
		position: relative; display: flex; justify-content: flex-end; align-items: center; 
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		position: relative; cursor: pointer; 
	}
	#menu-button a i { font-size: 20px; }
	#menu-button a span {}
	
	#menu-button a:hover {}
	#menu-button a:hover span {}
	
	
	nav.mobile {
		position: fixed; z-index: 1008; /* needs to be higher than #menu-button, adjust as needed */
		top: 0; left: -410px; display: block; overflow: auto; height: 100%; 
		width: min(100%, 390px); 
		background: var(--dblue);
	}
	/* MENU HEADER STYLES */
	nav.mobile .mobile_top {
		position: relative; padding: 0; display: flex; justify-content: flex-start; align-items: flex-start; margin: 50px 0 10px 0; 
	}
	
	.mobile-header-logo { margin-top: -40px; margin-left: 12px; position: relative; height: auto; width: min(240px, calc(100% - 100px)); }
	.mobile-header-logo img { width: min(240px, 100%); height: auto; object-fit: contain; object-position: 0% 50%; }

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute; display: flex; justify-content: center; align-items: center; 
		font-family: Arial, sans-serif; text-decoration: none; cursor: pointer; 
		width: 50px; height: 50px; top: -36px; right: 16px; font-size: 32px; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hover */
		
	}

	/* MENU LIST STYLE */
	nav.mobile ul {list-style:none;padding:0;margin:0;}
	nav.mobile ul li {
		position:relative;
		/*border-top: 1px solid #454545;*/
		border-bottom: 1px solid var(--dblue);
	}
	nav.mobile > ul > li:first-child { border-top: 1px solid var(--dblue); }
	nav.mobile ul ul li:last-child {border-bottom:none;}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative; padding: 12px;
		display: flex; justify-content: flex-start; align-items: center; min-height: 50px; 
		font-size: 17px; letter-spacing: .5px; 
		color: #fff;
		text-align: left; text-decoration: none; cursor: pointer; transition: .25s ease all; 
	}
	nav.mobile ul li a:hover {
		color: #fff; padding-left: 20px; 
	}
	
	nav.mobile ul li a:before { position: absolute; content: ""; z-index: -1; top: 0; left: 0; width: 0; height: 100%; background: var(--mblue); transition: .25s ease all; }
	nav.mobile ul li a:hover:before { width: 100%; transition: .4s ease all; }
	
	nav.mobile ul li a:after { position: relative; z-index: -1; content: "\f061"; font-family: 'Font Awesome 6 Free', icon; font-weight: 900; font-size: 14px; color: #fff; opacity: 0; transition: .1s ease-in all; margin-left: -8px; margin-top: 2px; }
	nav.mobile ul li a:hover:after { opacity: 1; margin-left: 12px; transition-delay: .1s; }

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; min-height: 50px; 
		padding: 12px 12px 12px 15px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover { color: #fff; padding-left: 23px; }

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		position: relative; text-decoration: none;
		color: #fff;
		display: flex; justify-content: flex-start; align-items: center; min-height: 50px; 
		padding: 12px 12px 12px 25px;
	}
	nav.mobile ul li li li a:hover { color: #fff; padding-left: 32px; }

	nav.mobile ul li .click.open i:before { content: "\f068"; }

	.nav-footer {
		position:relative; text-align:center; 
		color:var(--xlblue); 
		font-size:17px; 
		padding:24px 12px; letter-spacing: 1px; 
	}
}

@media only screen and (max-width: 520px) {
	#menu-button { width: 100%; }
	#menu-button a { width: 100%; padding: 0 5vw; }
	/*#menu-button a span { display: none!important; }*/
}

@media only screen and (max-width: 399px) {
	nav.mobile ul li a:after, nav.mobile ul li a:hover:after { display: none!important; }
}