﻿.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;
	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; justify-content: center; align-items: stretch; 
	margin:0;position: relative; 
	list-style-type:none; 
	width:auto;
}
nav.primary ul li a {
	color:#fff;position: relative; 
	font-size:16px;font-family: 'Rethink Sans', sans-serif;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; column-gap: 4px; 
	margin:0;
	text-align:center;
	text-transform:uppercase;
	-webkit-transition:.1s ease-in;  
	-moz-transition:.1s ease-in;  
	-o-transition:.1s ease-in;  
	transition:.1s ease-in;	
	font-weight:500;
	padding:0 12px;
	cursor: pointer; 
}	
nav.primary ul li a:hover {
	color:#ef5a22;
	-webkit-transition:.2s ease-in;  
	-moz-transition:.2s ease-in;  
	-o-transition:.2s ease-in;  
	transition:.2s ease-in;	
}

nav.primary ul li a i { font-size: 16px; color: #ef5a22; transition: .2s ease all; }
nav.primary ul li a:hover i, nav.primary ul li:hover a i { transform: scaleY(-1); transition: .3s ease all; }

nav.primary > ul > li > a:before { 
	position: absolute; content: ""; bottom: 0; left: 0; width: 100%; height: 10px; opacity: 0; 
	background-image: url('/siteart/shape.png'); 
	background-size: contain; background-position: 50% 100%; background-repeat: no-repeat; 
	transition: .2s ease all; 
}
nav.primary > ul > li > a:hover:before, nav.primary > ul > li:hover > a:before { 
	opacity: 1; transition: .3s ease all; 
}

/* Appearance of the sub-level links */
nav.primary ul li li a { 
	justify-content: flex-end; min-height: 40px; 
	font-size:16px;
	line-height:16px;
	padding:10px;
	color:#fff;
	background: #333;
	text-align:right;
	border-right:none;
	border-left:none;
	border-bottom: #232323 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li:first-child a { /*border-top-left-radius: 5px; border-top-right-radius: 5px;*/ }
nav.primary ul li li:last-child a { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-bottom: none; }
nav.primary ul li li a:hover { background: #232323; }

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none;
    position: absolute; top: 100%; right: 0; 
	width: unset; border-radius: 5px; 
	box-shadow: 0 0 12px rgba(0, 0, 0, .3);
}
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: 200px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1200px) {
	nav.primary ul li a { padding: 0 10px; }
}

@media only screen and (max-width: 1100px) {
	nav.primary ul li a { font-size: 15px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1051px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1050px)  {
	
	.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 {
		color:#000; background: #ef5a22; border-radius: 5px; padding: 12px 10px; 
		font-size: 36px;
		text-decoration: none; display: flex; justify-content: center; align-items: center; text-align: center; 
		cursor: pointer; transition: .2s ease all; 
	}
	#menu-button a:hover { background: #d14310; transition: .3s ease all; }
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		left: -300px;
		width: min(100%, 300px);
		height: 100%;
		background: #333;
		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:block;
		padding: 12px 0;
		margin:50px 0 0 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: 40px;
		font-weight: bold;
		line-height: 1;
		background: #ef5a22; 
		display: flex; justify-content: center; align-items: center; text-align: center; width: 50px; height: 50px;
		color: #000; border-radius: 5px; 
		text-decoration: none;
		top: -38px;
		right: 13px; transition: .2s ease all; 
		cursor: pointer; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #d14310;
		color: #000; transition: .3s ease all; 
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-bottom: 1px solid #232323;
		position:relative;
	}
	nav.mobile ul li:first-child { border-top: 1px solid #232323; }
	nav.mobile ul ul li:last-child { border-bottom: none; }

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: flex-start; align-items: center; column-gap: 4px; min-height: 50px; 
		font-size: 17px; font-weight: 500; 
		padding: 10px;text-transform: uppercase; 
		color: #fff;font-family: 'Rethink Sans', sans-serif;
		text-decoration: none;
		border-left: 4px #333 solid;
		text-align: left; transition: .2s ease all; 
	}
	nav.mobile ul li a:hover {
		color: #ef5a22; background: #232323; transition: .3s ease all; font-weight: 800; letter-spacing: .5px; 
		border-left: 4px #ef5a22 solid; /* border highlight - Change to fit match site colors */
	}
	
	nav.mobile ul li a i { color: #ef5a22; transition: .2s ease all; }
	nav.mobile ul li a.open i { transform: scaleY(-1)!important; transition: .3s ease all; }
	nav.mobile ul li a.open i:before { content: "\f078"!important; }

	nav.mobile ul ul { background: rgba(255, 255, 255, .08); }
	
	/* SECOND LEVEL */
	nav.mobile ul li li a {
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 4px; min-height: 50px; 
		padding: 10px 10px 10px 15px;
		border-left:4px rgba(0, 0, 0, 0) solid;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; column-gap: 4px; min-height: 50px; 
		padding: 10px 10px 10px 25px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li li a:hover {}

	.nav-footer {
		color:#ccc; 
		position:relative; 
		text-align:center; 
		font-size:15px; letter-spacing: .5px; 
		line-height:1.8; 
		padding:20px 12px;
	}
}