﻿
.topheader{
	
    font-family: bai jamjuree, sans-serif;
	letter-spacing: 1px;
	display: flex;
    width: 100%;
    box-sizing: border-box;
	font-size: 14px;
	line-height: 40px;
	background: #242021;
	text-transform: uppercase;
}
.topheader i{

	-moz-transition: ease-in-out all 0.2s;
	-o-transition: ease-in-out all 0.2s;
	-webkit-transition: ease-in-out all 0.2s;
	transition: ease-in-out all 0.2s;
}
.topheader a{
    color: #fff !important;
	
	-moz-transition: ease-in-out all 0.2s;
	-o-transition: ease-in-out all 0.2s;
	-webkit-transition: ease-in-out all 0.2s;
	transition: ease-in-out all 0.2s;
}
.topheader a:hover, .topheader a:hover i, .topheader .phones:hover > i {
    color: #64aa32  !important;
}
.topheader .contact-links{
    display: flex;
    justify-content: space-between;
    padding-right: 2.8%;
    padding-left: 2.8%;
    width: 75%;
    box-sizing: border-box;
}
.topheader .contact-links .phones {
    display: inline-block;
    white-space: nowrap;
    padding-right: 40px;
}
.topheader .searchbox{
   width: 25%;
    box-sizing: border-box;
}
.topheader a.click {
    width: 100%;
    line-height: 40px;
    display: block;
}
.searchbox form{
	position: relative;
}
.searchbox input{
	width: 100%;
    font-family: bai jamjuree, sans-serif;
	font-size: 14px !important;
	color: #242021;
	line-height: 40px !important;
	height: 40px !important;
	box-sizing: border-box;
	padding: 0 2.8% !important;
	letter-spacing: 1px;
	border: none !important;
	outline: none !important;
	border-radius: 0 !important;
}
.searchbox button{
	width: 40px;
	text-align: center;
	background: #64aa32 !important;
	border: none !important;
	outline: none !important;
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	cursor: pointer;
	border-radius: 0 !important;
}

.topheader .contact-links > a:first-child{
	padding-left: 0;
}
.topheader .contact-links a {
    display: inline-block;
    padding-right: 2.8%;
    white-space: nowrap;
}
.topheader .contact-links .phones a:last-child {
    padding-left: 2.8%;
}
.topheader .contact-links i{
	padding-right: 10px;
	padding-top: 1px;
    color: #fff;
}

.header{
	padding: 2.8% 5.6% 2.8% 2.8%;
	display: flex;
	align-items: center;
	justify-content: space-between;
		
}


.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;
	margin:0;
	width:100%;
	position:relative;
    font-family: bai jamjuree, sans-serif;
	}
	nav.primary ul {
		margin:0; 
		padding:0;
		}
	nav.primary > ul {

		display: flex;
		justify-content: space-between;
		min-width: 75%;

		}
		nav.primary ul li {
			display:inline-block;
			margin:0;
			list-style-type:none; 
			width:auto;
			}
			nav.primary ul li a {
				color:#242021;
				font-size:16px;
				line-height:60px;
				text-decoration:none;
				display:block;
				margin:0;
				text-align:center;
				text-transform:uppercase;
				-webkit-transition:.2s ease-in;  
				-moz-transition:.2s ease-in;  
				-o-transition:.2s ease-in;  
				transition:.2s ease-in;	
				font-weight:400;
				padding:0 12px;
				}	
			nav.primary ul li a:hover {
				color:#64aa32;
				}
			/* Appearance of the sub-level links */
			nav.primary ul li li a { 
				font-size:16px;
				
    			line-height: 1;
				
				padding:20px;
				color:#fff;
				background: #333;
				text-align:left;
				border-right:none;
				border-left:none;
			}
			/* Appearance of the sub-level links on hover */
			nav.primary ul li li a:hover { 
			}
/* 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: 100;
}
nav.primary ul ul li {
    float: none; 
	width: 270px;
    position: relative;
    margin:0;
	display: block;
}


/******** End of primary Nav ***************/

@media screen and (min-width: 1024px)  {
		
	.menu-toggle.exit-click{
		display: none !important;
	}
}

@media screen and (max-width: 1023px)  {

	.topheader{
		display: none !important;
	}
	.header .logo{
    	margin: 0 auto;
	}
	
	.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.5);
				opacity: 0;	
		transition: ease opacity 0.3s;
	}
	.mobile.open + .menu-toggle.exit-click{
		pointer-events: auto;
		opacity: 1;
	}
/*==============================
	Mobile Nav Styles			
================================*/	
nav.primary{display:none;}
#menu-button{ 
	width: 100%;
	box-sizing: border-box;
	display: flex;
	font-size: 16px;
	position: relative;
	line-height:40px; 
	z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	background: #242021;
	color: #fff;
	padding: 0 0 0 20px;
	justify-content: space-between;
	}
#menu-button > div{ 
	display: flex;
	}
#menu-button > div > *:first-child{ 
	border-left: #62696a solid 1px;
	}
#menu-button > div a{ 
	color: #fff !important;
	}
#menu-button > div > a, #menu-button > div > div .click{ 

    width: 60px;
    height: 40px;
    display: block;
	}
#menu-button .list {
    position: absolute;
    z-index: 999;
    display: block;
    top: 40px;
    background: #333;
    padding: 20px;
    text-align: left;
    font-size: 14px;
    font-family: bai jamjuree, sans-serif;
    letter-spacing: 0.5px;
}
	.searchbox .list{
		left: 0;
		right: 0;
	}
#menu-button > div > *{ 
	width: 60px;
	text-align: center;
	border-right: #62696a solid 1px;
	}
	#menu-button > a{
		 color:#fff;
			background: #64aa32;
		 text-decoration: none;
		 padding:0 40px; 
		 font-weight:normal;
	  }
nav.mobile {
	display:block;
	position: fixed;
	top: 0;
	left: -250px;
	width: 250px;
	height: 100%;
	background: #242021;
	z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
	overflow:auto;
    font-family: bai jamjuree, sans-serif;
	text-transform: uppercase;
}
/* MENU HEADER SOCIAL MEDIA */
	nav.mobile .social-media {
		position: relative;
		text-decoration: none;
		display: inline-block;
		font-size:16px;
		word-spacing:13px;
		padding:0 0 0 15px;
		color: #fff !important;
	}
	
	nav.mobile .social-media a:link, nav.mobile .social-media a:visited {color:#fff; text-decoration:none;}
	nav.mobile .social-media a:hover, nav.mobile .social-media a:active {color:#fff; text-decoration:underline;}

/* MENU HEADER STYLES */
nav.mobile .mobile_top {
	position: relative;
	display:block;
	padding: 0;
	margin:50px 0 10px 0;
	color: #fff;
	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;
	color: #fff;
	text-decoration: none;
	top:-38px;
	right:13px;
}
nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hoveer */
	color: #fff;
}

/* MENU LIST STYLE */
nav.mobile ul {
	list-style: none;
	font-weight: 300;
	margin:0;
	padding:0;
}
nav.mobile ul li {
	position:relative;
}

/* FIRST LEVEL */
nav.mobile ul li a {
	position: relative;
	display: block;
	font-size:14px;
	padding: 20px;
	color: #fff;
	text-decoration: none;
	text-align: left;
}
nav.mobile ul li a:hover {
	color: #64aa32; 
}

/* SECOND LEVEL */
nav.mobile ul li li:last-child {border:none;}
nav.mobile ul li li a {
	background: #333;
}

/* THIRD LEVEL */
nav.mobile ul li li li:last-child {border:none;}
nav.mobile ul li li li a {
	background: #555;
}

nav.mobile ul li .click i{/* dropdown menu idicator arrow be sure to include this image with your image files */ 
	position:absolute;
	display:block;
	cursor:pointer;
	z-index: 12399994;
	top:0;
	right:0;
	width:auto;
	height:auto;
	padding: 22px 24px;
	color:#fff;

}
nav.mobile ul li .click.open i:before{
    content: "\f068";
}
	
.nav-footer {color:#fff; position:relative; text-align:center; font-size:14px; line-height:16px; padding:15px 0;}

/* FONT AWESOME ICONS */
nav.mobile ul li a .fa{
	width:25px;
	font-weight:100;
	padding:8px 3px;
	margin:0 6px 0 0;
	text-align:center;
	background:#292929;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}


nav.mobile ul li .fa-chevron-down {color:#999;}
}


@media screen and (max-width: 1020px)  {
	#menu-button{width:100%;}
}

@media screen and (max-width:767px){
	.header{
		padding: 30px 2.8%;
	}
}