﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0;
	display:flex; flex-direction: row; justify-content: flex-end; align-items: stretch; 
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	margin:0; 
	padding:0;
	position: relative; 
	display:flex; flex-direction: row; justify-content: flex-end; align-items: stretch; 
}
nav.primary ul li {
	display:flex; justify-content: center; align-items: stretch; 
	position: relative; 
	margin:0;
	list-style-type:none; 
	width:auto;
}
nav.primary > ul > li > a:not(.btnclass) {
	color:#000;
	position: relative; 
	font-size:16px;
	text-decoration:none;
	display:flex; justify-content: center; align-items: center; 
	margin:0;
	text-align:center;
	-webkit-transition:.3s ease-in;  
	-moz-transition:.3s ease-in;  
	-o-transition:.3s ease-in;  
	transition:.3s ease-in;	
	font-weight:700;
	padding:0 20px;
	cursor: pointer; 
	font-family: 'tablet-gothic', sans-serif; letter-spacing: .5px; 
}	
nav.primary > ul > li > a:not(.btnclass):before {
	position: absolute; content: ""; bottom: 0; left: 51%; right: 51%; height: 3px; 
	background: #184231; transition: .15s ease all; 
}

nav.primary ul li.nav-btnclass-holder { 
	align-items: center; 
	padding-left: 20px; /* pad-left = L/R padding of nav.primary ul li a */
}
nav.primary ul li a.btnclass {}
nav.primary > ul > li > a.btnclass:after, nav.primary > ul > li > a.btnclass:hover:after { 
	/*display: none!important; opacity: 0!important; width: 0!important; */
}
nav.primary ul li a.btnclass:hover {}

nav.primary ul li a:not(.btnclass):hover {
	color:#184231; 
}
nav.primary ul li a:not(.btnclass):hover:before {
	left: 18px; right: 18px; transition: .3s ease all; 
}
/* Appearance of the sub-level links */
nav.primary ul li li a { 
	position: relative; 
	text-decoration:none;
	margin:0;
	-webkit-transition:.3s ease-in;  
	-moz-transition:.3s ease-in;  
	-o-transition:.3s ease-in;  
	transition:.3s ease-in;	
	font-weight:700;
	cursor: pointer; 
	font-family: 'tablet-gothic', sans-serif; letter-spacing: .5px; 
	
	font-size:16px;
	line-height:16px;
	padding:12px;
	color:#000;
	background: #fff;
	text-align:right;
	display: flex; justify-content: flex-end; align-items: center; 
	border-right:none;
	border-left:none;
	border-bottom: #bbb solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #cfaa3a; color: #000!important; 
}

nav.primary ul li li:first-of-type a { border-top-left-radius: 8px; border-top-right-radius: 8px; }
nav.primary ul li li:last-of-type a { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border-bottom: none; }

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); 
    position: absolute; top: calc(100% - 10px); 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: 220px;
    position: relative;
    margin:0;
	display: block;
}

@media only screen and (max-width: 1500px) {
	nav.primary > ul > li > a:not(.btnclass) { padding: 0 18px; }
	nav.primary ul li.nav-btnclass-holder { padding-left: 18px; }
}

@media only screen and (max-width: 1240px) {
	nav.primary > ul > li > a:not(.btnclass) { font-size: 15px; padding: 0 16px; }
	nav.primary ul li a:not(.btnclass):hover:before { left: 16px; right: 16px; }
	nav.primary ul li.nav-btnclass-holder { padding-left: 16px; }
}

@media only screen and (max-width: 1180px) {
	nav.primary > ul > li > a:not(.btnclass) { padding: 0 14px; }
	nav.primary ul li a:not(.btnclass):hover:before { left: 14px; right: 14px; }
	nav.primary ul li.nav-btnclass-holder { padding-left: 14px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1141px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1140px)  {
	
	.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; height: 100%; 
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a { position: relative; 
		color:#000; text-align: right; display: flex; justify-content: center; align-items: center; column-gap: 12px; 
		font-size: 23px; padding: 0 24px; 
		text-decoration: none;
		cursor: pointer; transition: .3s ease all; 
	}
	
	#menu-button a span {
		color:#000;
		font-size:16px;
		font-weight:700;
		font-family: 'tablet-gothic', sans-serif; letter-spacing: .5px; 
	}
	
	#menu-button a:before {
		position: absolute; content: ""; bottom: 0; left: 51%; right: 51%; height: 3px; 
		background: #184231; transition: .15s ease all; 
	}
	#menu-button a:hover:before {
		left: 20px; right: 20px; transition: .3s ease all; 
	}
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		right: -320px;
		width: min(100%, 320px);
		height: 100%;
		background: #0c2219;
		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: 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: 24px;
		font-weight: bold;
		line-height: 1;
		background: #000;
		color: #fff;
		text-decoration: none;
		top: -38px;
		right: 13px;
		cursor: pointer; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #fff;
		color: #000;
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-bottom: 1px solid #151515;
		position:relative;
	}

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;
		cursor: pointer; 
		display: flex; justify-content: flex-start; align-items: center; min-height: 42px; column-gap: 12px; 
		font-size: 16px;
		padding: 10px;
		color: #fff;
		text-decoration: none;
		text-align: right;
		font-weight:700;
		font-family: 'tablet-gothic', sans-serif; letter-spacing: .5px; 
	}
	nav.mobile ul li a:hover {
		color: #cfaa3a; 
	}

	nav.mobile ul li li:last-of-type { border-bottom: none; }
	
	/* SECOND LEVEL */
	nav.mobile ul li li a {
		display: flex; justify-content: flex-start; align-items: center; min-height: 42px; column-gap: 12px; 
		background: #102d22;
		position: relative;
		padding: 10px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		background: #184231;
		position: relative;
		display: flex; justify-content: flex-start; align-items: center; min-height: 42px; column-gap: 12px; 
		padding: 10px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		font-family: 'adelle', sans-serif; letter-spacing: 1px; 
		color:#d9bb63; 
		position:relative; 
		text-align:center; 
		font-size:14px; 
		line-height:1.5; 
		padding:24px 16px;
	}
}

@media only screen and (max-width: 650px) {
	nav.mobile.open { width: 100%; }
}

@media only screen and (max-width: 400px) {
	#menu-button a span { display: none!important; }
}