﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary {
	padding:0;
	display:flex; justify-content: stretch; align-items: stretch; 
	margin:0;
	width:100%;
	position:relative;
}
nav.primary ul {
	margin:0; position:relative;
	padding:0; width: 100%; 
	display:flex; justify-content: center; align-items: stretch; 
}
nav.primary ul li {
	display:flex; justify-content: stretch; align-items: stretch; 
	margin:0;
	list-style-type:none;position:relative; 
	
	width: calc(16.67% - 59px); 
	/* calc(((1 / [total number of top-level nav links])[ this value as a % ]) - ([width of .nav-spacer] / [total number of top-level nav links]) */
}

nav.primary ul li.nav-spacer { width: 350px; }

nav.primary ul li a {
	color:#fff; pointer-events: all; cursor: pointer; width: 100%; 
	font-size:19px;font-family: 'new-frank', sans-serif; position:relative;
	text-decoration:none;
	display:flex; justify-content: center; align-items: flex-end; 
	margin:0;
	text-align:center;
	text-transform:uppercase;
	-webkit-transition:.35s ease-in;  
	-moz-transition:.35s ease-in;  
	-o-transition:.35s ease-in;  
	transition:.35s ease-in;	
	font-weight:500;
	padding:8px 12px;
}	
nav.primary ul li a:hover {
	color:#ff9100;
}
/* Appearance of the sub-level links */
nav.primary ul li li a { 
	font-size:16px;justify-content: flex-start; 
	line-height:16px;
	padding:10px;
	color:#fff;
	background: #181818;
	text-align:left;
	border-right:none;
	border-left:none;
	border-bottom: #303030 solid 1px;
}
/* Appearance of the sub-level links on hover */
nav.primary ul li li a:hover { 
	background: #000; 
}

/* 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%; left: 50%; transform: translateX(-50%); 
	width: unset;
	border-left: #303030 solid 1px;
}

nav.primary ul.righty li a { 
	justify-content: flex-end; 
	text-align:right;
}

nav.primary ul ul ul {
    position: absolute; 
    left: 100%;
    top:0; 
	transform: none; 
}
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: 1500px) {
	nav.primary ul li a { font-size: 18px; }
}

@media only screen and (max-width: 1420px) {
	nav.primary ul li.nav-spacer { width: 264px; }
	nav.primary ul li { width: calc(16.67% - 44px); /* calc(((1 / [total number of top-level nav links])[ this value as a % ]) - ([width of .nav-spacer] / [total number of top-level nav links]) */}
}

@media only screen and (max-width: 1340px) {
	nav.primary ul li a { font-size: 17px; }
}

/******** 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: flex-end; 
		position: relative;
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color:#fff; height: 80px; padding: 20px 24px 0 24px; 
		font-size: 19px; display: flex; justify-content: center; align-items: center; column-gap: 12px; 
		text-decoration: none; cursor: pointer; pointer-events: all; transition: .3s ease all; 
	}
	#menu-button a span { margin-top: 7px; font-family: 'new-frank', sans-serif; font-size: 18px; text-transform: uppercase;line-height: 18px;  }
	#menu-button a:hover, #menu-button a:hover i { color: #ff9100; }
	
	
	
	
	
	nav.mobile {
		display: block;
		position: fixed;
		top: 0;
		right: -320px;
		width: min(100%, 320px);
		height: 100%;
		background: #0d0d0d;
		z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
		overflow:auto;
		pointer-events: all; 
	}

	/* 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: #999;
		text-decoration: none;
		top: -38px;
		right: 13px;cursor: pointer; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
		background: #222;
		color: #fff;cursor: pointer; 
	}

	/* MENU LIST STYLE */
	nav.mobile ul {
		list-style: none;
		margin:0;
		padding:0;
	}
	nav.mobile ul li {
		border-top: 1px solid #454545;
		border-bottom: 1px solid #151515;
		position:relative;
	}
	nav.mobile ul ul { display: none; }

	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative;cursor: pointer; 
		display: flex; justify-content: space-between; align-items: center; min-height: 42px; 
		font-family: 'new-frank', sans-serif; text-transform: uppercase; 
		font-size: 17px;
		padding: 10px;
		color: #fff;
		text-decoration: none;
		border-left: 4px #0d0d0d solid;
		text-align: left;
	}
	nav.mobile ul li a:hover {
		color: #fff; 
		border-left: 4px #ff9100 solid; /* border highlight - Change to fit match site colors */
	}
	nav.mobile ul li a.listed { justify-content: flex-start; }
	nav.mobile ul li a.listed:hover { color: #ff9100; }

	/* SECOND LEVEL */
	nav.mobile ul li li:last-child {border-bottom:none;}
	nav.mobile ul li li a {
		background: #444;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 42px; 
		padding: 10px 10px 10px 15px;
		border-left:4px #444 solid;
		color: #ccc;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover {}

	/* THIRD LEVEL */
	nav.mobile ul li li li:last-child {border-bottom:none;}
	nav.mobile ul li li li a {
		background: #555;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 42px; 
		padding: 10px 10px 10px 25px;
		color: #ccc;
		text-decoration: none;
		border-left: 4px #555 solid;
	}
	nav.mobile ul li li li a:hover {}

	nav.mobile ul li .click.open i:before{
		content: "\f068";
	}

	.nav-footer {
		font-family: 'eixample-villa', sans-serif; 
		color:#777; 
		position:relative; 
		text-align:center; 
		font-size:14px; 
		line-height:16px; 
		padding:15px 0;
	}
}

@media only screen and (max-width: 420px) {
	#menu-button a { height: 50px; padding-top: 0; }
}

@media only screen and (max-width: 280px) {
	#menu-button { width: 100%; }
	#menu-button a { width: 100%; height: 50px; padding-top: 0; }
}