﻿
.clear{clear:both;}
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@100;200;300;400;500;600;700;800&display=swap');
@import url("https://use.typekit.net/xfn2fmi.css");
/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile { display:none;}

.nav-background {
	background: linear-gradient(to right, #222 80%, #fff 20%);
}

nav.primary {
	padding: 0 15px;
	display:flex;
	margin: 0 auto;
	position:relative;
	justify-content: flex-end;
	}
nav.primary .white-background {
	text-align: right;
	width: 100%;
	max-width: 1100px;
	height: auto;
}
nav.primary .white-background:before{content:""; position:absolute; display:block; width:100%; max-width: 1100px; height:100%; clip-path: polygon(4.11% 0%, 100% 0%, 100% 100%, 0% 100%); background:#fff;}
	nav.primary ul {
		margin:0; 
		padding:0;
		}

		nav.primary ul li {
			display:inline-block;
			margin:0;
			list-style-type:none; 
			width:auto;
			padding: 15px;
			}
			nav.primary ul li a {
				color:#000;
				font-size:16px !important;
				letter-spacing: 1px;
				line-height:20px;
				text-decoration:none;
				position:relative;
				display:block;
				text-align:center;
				-webkit-transition:.2s ease-in;  
				-moz-transition:.2s ease-in;  
				-o-transition:.2s ease-in;  
				transition:.2s ease-in;	
				font-weight:700;
				padding:10px;
				font-family: 'epilogue', sans-serif;
				cursor: pointer;
				}	
			nav.primary ul li a:hover {
				background: #C80315;
				color:#fff;
				}
			/* Appearance of the sub-level links */
			nav.primary ul li li a { 
				font-size:13px;
				letter-spacing: .2px;
				line-height:24px;
				padding:15px;
				color:#fff;
				background-color: #222;
				text-align:left;
			}
			/* Appearance of the sub-level links on hover */
			nav.primary ul li li a:hover { 
				color: #fff;
				background-color:#C80315;
			}
/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul {
    display: none;
    position: absolute; 
}
nav.primary ul ul ul {
    position: absolute; 
    left: 100%;
    top:0; 
}
nav.primary ul li:hover > ul {  
    display: block;
    line-height:18px; 
    z-index: 1000;
}
nav.primary ul ul li {
    float: none; 
	width: 220px;
    position: relative;
    margin:0;
	display: block;
	padding: 0;
}

@media screen and (max-width: 1730px)  {
	nav.primary .white-background, nav.primary .white-background:before {
		max-width: 880px;
	}
	
	nav.primary ul li {
		padding-left: 5px;
		padding-right: 5px;
	}
	nav.primary ul li a {
		font-size:15px !important;
	}
}



/******** End of primary Nav ***************/

@media screen and (max-width: 1160px)  {
	.upper-text h4{
		font-size:14px;
	}
	.upper-text{
		width:60%;
	}
/*==============================
	Mobile Nav Styles			
================================*/	
nav.primary{display:none;}
	
	.mobile-nav-background {
		display: flex;
		justify-content: flex-end;
	}
	
#menu-button{ 
	width: 100%;
	display: inline-block;
	font-size: 35px;
	position: relative;
	line-height:60px; 
	z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	background: #222;
	text-align: right;
	max-width: 300px;
	height: auto;
	clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
	background-color: #fff;
	padding-top: 5px;
	padding-bottom: 5px;
	}
	#menu-button a{
		 color:#222;
		 text-decoration: none;
		 padding-right: 15px; 
		 font-weight:700;
        margin-right: 10px;
		cursor: pointer;
	  }
nav.mobile {
	display:block;
	position: fixed;
	top: 0;
	left: -250px;
	width: 250px;
	height: 100%;
	background: #222;
	z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
	overflow:auto;
}

/* MENU CLOSE 'X' BUTTON */
nav.mobile .menu-toggle {
	position: absolute;
	padding: 3px 8px 3px;
	font-family: Arial, sans-serif;
	font-size:24px;
	font-weight: bold;
	line-height: 1;
	background: #222;
	color: #fff;
	text-decoration: none;
	top:15px;
	right:15px;
}
nav.mobile .menu-toggle:hover { /* Menu close button on hoveer */
	background: #C80315;
	cursor: pointer;
}

/* MENU LIST STYLE */
nav.mobile ul {
	list-style: none;
	font-weight: 300;
	margin:0;
	padding:0;
}
	.first-ul {
		margin-top: 60px!important;
	}	
nav.mobile ul li {
	position:relative;
	font-family: 'epilogue', sans-serif;
}

/* FIRST LEVEL */
nav.mobile ul li a {
	position: relative;
	display: block;
	font-size:18px;
	padding: 15px;
	color: #fff;
	text-decoration: none;
	text-align: left;
}
nav.mobile ul li a:hover {
	background:#C80315; 
	color: #fff; 
	cursor: pointer;
}

/* SECOND LEVEL */
nav.mobile ul li li:last-child {border:none;}
nav.mobile ul li li a {
	background: #333333;
	position: relative;
	display: block;
	color: #fff;
	text-decoration: none;
}
nav.mobile ul li li a:hover {background:#C80315;}

/* THIRD LEVEL */
nav.mobile ul li li li:last-child {border:none;}
nav.mobile ul li li li a {
	background: #222;
	position: relative;
	display: block;
	padding: 15px 15px 15px 30px;
	color: #fff;
	text-decoration: none;
}
nav.mobile ul li li li a:hover {background:#C80315;}

nav.mobile ul li .click{/* dropdown menu idicator arrow be sure to include this image with your image files */ 
	position:relative;
	display: flex;
    justify-content: space-between;
	cursor:pointer;
	z-index: 12399994;
	top:0;
	right:0;
	width:auto;
	height:auto;
	padding: 15px;
	color:#fff;
	}
.nav-footer {color:#1B1B1B; position:relative; text-align:center; font-size:14px; line-height:16px; padding:15px 0;}

/* FONT AWESOME ICONS */
	nav.mobile ul li .fa-chevron-down{color: #fff !important;}
}

@media only screen and (max-width: 535px) {
	#menu-button {
		max-width: 200px;
	}
}

@media screen and (max-width:450px){
	#menu-button{max-width:120px;}
}

@media screen and (max-width:350px){
	#menu-button{max-width:100px;}
}