﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0;
	display:flex; justify-content: flex-end; align-items: stretch; 
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	margin:0; 
	padding:0;position: relative; 
	display:flex; justify-content: flex-end; align-items: stretch; 
}
nav.primary ul li {
	display:flex; align-items: stretch; 
	margin:0; position: relative; 
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	color:#fff;
	font-size:17px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:center; letter-spacing: 1px; 
	text-transform:uppercase;
	-webkit-transition:.2s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
	font-weight:500;
	padding:0 22px;
	cursor: pointer; 
}	

/*nav.primary > ul > li > a:before {
	position: absolute; content: ""; bottom: 4px; left: 50%; transform: translateX(-50%); width: 0px; height: 2px; 
	background: #fff; opacity: 0; transition: .2s ease all; 
}
nav.primary > ul > li > a:hover:before { width: 60px; background: #478ad7; opacity: 1; transition: .3s ease all; }*/

nav.primary > ul > li > a:hover {
	color: #478ad7; transition: .3s ease all; background: rgba(0, 0, 0, .1); 
}

.headernav-plusminus { width: 10px; }

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px; font-weight: 400; 
	line-height:1.25; letter-spacing: 1px; 
	padding:12px 16px; min-height: 44px;
	color:#fff; display: flex; justify-content: flex-end; align-items: center; 
	background: #181818;
	text-align:right;
	border-right:none;
	border-left:none;
	border-bottom: #303030 solid 1px;
}
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: rgba(0, 0, 0, .2); 
}

nav.primary ul li li a:before {
	position: absolute; content: ""; bottom: 0; left: unset; right: 0; width: 0px; height: 2px; 
	background: #fff; opacity: 0; transition: .2s ease all; 
}
nav.primary ul li li a:hover:before { width: 100%; background: #478ad7; opacity: 1; transition: .4s ease all; }

nav.primary ul li li a:hover {
	color: #478ad7; transition: .3s ease all; 
}

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none;background: #181818;
    position: absolute; top: 100%; right: 0; 
	width: unset;
}
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 {
    float: none; 
	width: 212px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1600px) {
	nav.primary ul li a { font-size: 16px; padding: 0 18px; }
}

@media only screen and (max-width: 1300px) {
	nav.primary ul li a { padding: 0 16px; }
}

@media only screen and (max-width: 1200px) {
	nav.primary ul li a { font-size: 15px; padding: 0 12px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1121px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1120px)  {
	
	.mobile + .menu-toggle.exit-click{
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 499;
		pointer-events: none;
		background: rgba(36,32,33,0.33);
		opacity: 0;	
		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 { 
		display: flex; justify-content: flex-end; align-items: stretch; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		display: flex; justify-content: center; align-items: center; column-gap: 12px; padding: 0 clamp(12px, 5vw, 32px); 
		color:#fff;
		font-size: 22px;
		text-decoration: none;
		cursor: pointer; 
		-webkit-transition:.2s ease-in;  
		-moz-transition:.2s ease-in;  
		-o-transition:.2s ease-in;  
		transition:.2s ease-in;	
	}
	#menu-button a span { 
		font-size: 16px; text-transform: uppercase; color:#fff;
		text-decoration:none;
		text-align:right; letter-spacing: 1px; 
		-webkit-transition:.2s ease-in;  
		-moz-transition:.2s ease-in;  
		-o-transition:.2s ease-in;  
		transition:.2s ease-in;	
		font-weight:500;
		cursor: pointer; 
	}
	
	#menu-button a:hover, #menu-button a:hover span {
		color: #478ad7; transition: .3s ease all; background: rgba(0, 0, 0, .1); 
	}
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -300px;
		width: min(100%, 300px);
		height: 100%;
		background: #181818;
		z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
		overflow:auto;
	}

	/* MENU HEADER STYLES */
	nav.mobile .mobile_top {
		position: relative;
		display:flex; height: 12px; 
		padding: 0;
		margin:50px 0 10px 0;
		color: #999;
		font-size: 18px;
		font-weight: 400;
	}

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute;
		padding: 3px 8px 3px;
		font-family: Arial, sans-serif;
		font-size: 44px;
		line-height: 1;
		background: #222;
		color: #fff;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; 
		display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #478ad7;
		color: #000;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-bottom: 1px solid #303030;
		position:relative;
	}
	nav.mobile ul li li {
		border-bottom: 1px solid #222;
		position:relative;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; text-transform: uppercase; letter-spacing: 1px; 
		display: flex; justify-content: flex-start; align-items: center; column-gap: 8px; min-height: 50px; 
		font-size: 15px;
		padding: 10px;
		color: #fff;
		text-decoration: none;
		border-left: 4px #181818 solid;
		text-align: left;
	}
	nav.mobile ul li a:hover {
		color: #478ad7; transition: .3s ease all; background: rgba(0, 0, 0, .1); 
		border-left: 4px #478ad7 solid; /* border highlight - Change to fit match site colors */
	}

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: rgba(0, 0, 0, .2);
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 8px; min-height: 50px; 
		padding: 10px 10px 10px 24px;
		border-left:4px rgba(0, 0, 0, .3) solid;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {background: rgba(0, 0, 0, .3);}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: rgba(0, 0, 0, .4);
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 8px; min-height: 50px; 
		padding: 10px 10px 10px 30px;
		color: #fff;
		text-decoration: none;
		border-left: 4px rgba(0, 0, 0, .4) solid;
	}
	nav.mobile ul li li li a:hover {background: rgba(0, 0, 0, .5);}

	nav.mobile ul li i{
		font-size: 9px;
	}
	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		color:#ccc; 
		position:relative; 
		text-align:center; 
		font-size:15px; 
		line-height:1.4; 
		padding:15px 24px;
	}
}

@media only screen and (max-width: 280px) {
	#menu-button a span { display: none!important; }
}