﻿.clear{clear:both;}

/***** Start of primary nav ******/
#menu-button{display: none;}
nav.mobile {display:none;}

nav.primary { position: relative; width: 100%; padding: 0; margin: 0; display: flex; justify-content: flex-end; align-items: stretch; }
nav.primary ul { position: relative; width: 100%; padding: 0; margin: 0; display: flex; justify-content: flex-end; align-items: stretch; }
nav.primary ul li { position: relative; padding: 0; margin: 0; list-style-type: none; display: flex; align-items: stretch; }

nav.primary ul li.loc-li { flex-direction: column; align-items: flex-end; }

nav.primary ul li:not(.loc-li) a:not(.btnclass):not(.location-name):not(.footnav-a) {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	padding: 0 10px; min-height: 50px; 
	position: relative; width: 100%; 
	display: flex; justify-content: center; align-items: center; 
	text-decoration:none; text-transform: uppercase;
	-webkit-transition: .2s ease-in; 
	-moz-transition: .2s ease-in; 
	-o-transition: .2s ease-in; 
	transition: .2s ease-in;
	cursor: pointer; margin: 0; 
}	
nav.primary ul li a:not(.btnclass) i { font-size: 13px; margin-left: 3px; transition: .3s ease all; }

nav.primary ul li:not(.loc-li):hover > a:not(.btnclass) > i, nav.primary ul li:hover > a:not(.btnclass) > i { transform: rotateX(180deg); color: #e91801!important; }

nav.primary ul li a:not(.btnclass):hover { color: #e91801!important; }

nav.primary ul li a.btnclass { margin: auto 0 auto 5px; }

/* Appearance of the sub-level links */
nav.primary ul li:not(.loc-li) li a:not(.btnclass):not(.location-name):not(.footnav-a) { 
	justify-content: flex-end!important; 
	text-align: right!important; 
	font-size: 15px;
	padding: 12px 16px;
	color: #fff;
	background: #181818;
	border-bottom: #303030 solid 1px;
	border-right: none; border-left: none;
}
nav.primary ul li li:last-child a:not(.btnclass) { border-bottom: none; }

nav.primary ul li li:first-child a:not(.btnclass) { border-top-left-radius: 8px; border-top-right-radius: 8px; }
nav.primary ul li li:last-child a:not(.btnclass) { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }

nav.primary ul li:not(.loc-li) li li a:not(.btnclass):not(.location-name):not(.footnav-a) { justify-content: flex-start!important; text-align: left!important; border-left: #303030 solid 1px!important; }
nav.primary ul li li:not(.loc-li):hover > a:not(.btnclass) > i { transform: rotateY(180deg); }

/* Appearance of the sub-level links on hover */
nav.primary ul li li a:not(.btnclass):hover {}

/* This controls the Primary nav dropdowns for sublinks. Should not have to edit this too muuch */
nav.primary ul ul { display: none; width: unset; position: absolute; top: calc(100% - 12px); right: 0; }
nav.primary ul ul ul { position: absolute; left: calc(100% - 2px); top: 0; }
nav.primary ul li:hover > ul { display: block; line-height: 18px; z-index: 100; }
nav.primary ul ul li { min-width: 150px; position: relative; display: block; float: none; margin: 0; }

/* fancy location dpdown

<li class="loc-li">
	<a class="location-name" href="/belle-center.htm">
		<span class="loc-addr">14041 St Rt 235</span>
		<span class="loc-name">Belle Center, Ohio</span>
		<span class="loc-note">Ag &amp; Outdoor Power</span>
	</a>
	<!--<a class="location-addr" href="/belle-center.htm">
		<span>14041 St Rt 235 <br>Belle Center, OH 43310</span>
	</a>-->
	<a class="btnclass" href="tel:+1-937-597-1298" title="Call (937) 597-1298">(937) 597-1298</a>
	<a class="footnav-a with-after" href="/belle-center.htm">View Location</a>
</li>

*/

nav.primary ul li.loc-li { min-width: 280px!important; display: flex; flex-direction: column; align-items: flex-end; background: #181818; }
nav.primary ul li.loc-li *{ transition: .25s ease all; }
nav.primary ul li.loc-li:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
nav.primary ul li.loc-li:last-child { border-top: 1px solid #303030!important; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
nav.primary ul li.loc-li > a { width: unset; }
nav.primary ul li.loc-li > .location-name { position: relative; padding: 12px 20px; width: 100%; display: flex; flex-direction: column; align-items: flex-end; row-gap: 5px; border: none!important; }
.location-name { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; row-gap: 5px; }
nav.primary ul li.loc-li .location-name span { text-align: right; }
nav.primary ul li.loc-li .location-name span, .location-name span { color: #fff; }
nav.primary ul li.loc-li .location-name span.loc-addr, span.loc-addr { color: #ddd; font-size: 13px; }
nav.primary ul li.loc-li .location-name span.loc-name, .location-name span.loc-name { font-size: 24px; font-weight: 900; /*text-transform: uppercase;*/ margin-bottom: 6px; display: flex; justify-content: flex-end; align-items: center; }
nav.primary ul li.loc-li .location-name span.loc-name i, .location-name span.loc-name i { font-size: 16px; margin: 2px 12px 0 0; }
nav.primary ul li.loc-li .location-name span.loc-note, .loc-note { color: #ccc; font-style: italic; }
.loc-note i { font-size: 12px; }
nav.primary ul li.loc-li a.location-name:hover {  }
nav.primary ul li.loc-li a.location-name:hover span, a.location-name:hover span, .location-name a:hover, .location-name a:hover span { color: #e91801; }
nav.primary ul li.loc-li .btnclass { margin: 0 16px 12px 16px; }
nav.primary ul li.loc-li .footnav-a { width: 100%; min-height: 50px; border: none!important; justify-content: flex-end; text-align: right; }

@media only screen and (max-width: 1280px) {
	nav.primary > ul > li:not(.loc-li) > a:not(.btnclass):not(.location-name):not(.footnav-a) { font-size: 14px; padding: 0 8px; }
	nav.primary > ul > li:not(.loc-li) > a:not(.btnclass):not(.location-name):not(.footnav-a) i { font-size: 11px; margin-left: 2px; margin-bottom: 2px; }
	nav.primary ul li a.btnclass { margin-left: 4px; }
}

/******** End of primary Nav ***************/

@media screen and (min-width: 1181px) {
	.menu-toggle.exit-click { display: none !important; }
}

@media screen and (max-width: 1180px) {
	.mobile + .menu-toggle.exit-click{
		position: fixed !important; z-index: 499; pointer-events: none; opacity: 0; 
		top: 0 !important;left: 0 !important;right: 0 !important;bottom: 0 !important; 
		background: rgba(36,32,33,0.33); 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 { 
		position: relative; display: flex; justify-content: flex-end; align-items: stretch; 
		z-index: 400; /* needs to be lower than nav.mobile, adjust as needed */
	}
	#menu-button a {
		color: #fff;
		font-size: 20px; padding: 0 max(12px, min(24px, 5vw));min-height: 50px; 
		position: relative; display: flex; justify-content: center; align-items: center; column-gap: 12px; 
		cursor: pointer; text-decoration: none; transition: .25s ease all; 
	}
	#menu-button a span { font-size: 16px; color: #fff; text-transform: uppercase; font-family: 'urw-form', sans-serif!important; }
	
	#menu-button a:hover { color: #e91801; }
	#menu-button a:hover span { color: #e91801; }
	
	
	nav.mobile {
		position: fixed; z-index: 500; /* needs to be higher than #menu-button, adjust as needed */
		top: 0; left: -400px; display: block; overflow: auto; height: 100%; 
		width: min(100%, 380px); 
		background: #000;
	}
	/* MENU HEADER STYLES */
	nav.mobile .mobile_top {
		position: relative; padding: 20px 66px 20px 16px; display: flex; justify-content: flex-start; align-items: center; 
	}
	
	.mobilenav-logo {}
	.mobilenav-logo img { object-position: 0% 50%; max-height: 45px; }

	/* MENU CLOSE 'X' BUTTON */
	nav.mobile .menu-toggle:not(.exit-click) {
		position: absolute; display: flex; justify-content: center; align-items: center; 
		font-family: Arial, sans-serif; text-decoration: none; cursor: pointer; 
		width: 50px; height: 50px; top: 16px; right: 14px; 
		font-size: 22px; /*font-weight: bold; */
		background: #000; color: #fff; border-radius: 25px; border: 2px solid #fff;
		transition: .25s ease all; 
	}
	nav.mobile .menu-toggle:not(.exit-click):hover { /* Menu close button on hover */
		background: #fff; color: #000; 
	}

	/* MENU LIST STYLE */
	nav.mobile ul {list-style:none;padding:0;margin:0;}
	nav.mobile ul li {
		position:relative;
		/*border-top: 1px solid #454545;*/
		border-bottom: 1px solid #1b1b1b;
	}
	nav.mobile ul li:first-child { border-top: 1px solid #1b1b1b; }
	nav.mobile ul ul li:first-child { border-top: 1px solid #2b2b2b; }
	nav.mobile ul ul ul li:first-child { border-top: 1px solid #3b3b3b; }
	nav.mobile ul ul li:last-child {border-bottom:none;}

	nav.mobile ul ul li {border-bottom: 1px solid #2b2b2b;}
	nav.mobile ul ul ul li {border-bottom: 1px solid #3b3b3b;}
	
	/* FIRST LEVEL */
	nav.mobile ul li a {
		position: relative; padding: 12px 16px 12px 16px;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		font-size: 17px; text-transform: uppercase; 
		color: #fff; letter-spacing: 1px;
		border-left: 4px #000 solid;
		text-align: left; text-decoration: none; cursor: pointer; transition: .25s ease all; 
	}
	nav.mobile ul li a:hover {
		color: #e91801; background: #0b0b0b; 
		border-left: 4px #e91801 solid; /* border highlight - Change to fit match site colors */
	}
	
	nav.mobile ul li a i { transition: .3s ease all; }
	nav.mobile ul li .open > i { transform: rotateX(180deg); }

	/* SECOND LEVEL */
	nav.mobile ul li li a {
		background: #111;
		border-left: 4px #111 solid;
		position: relative;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		padding: 12px 16px 12px 20px;
		color: #fff;
		text-decoration: none;
	}
	nav.mobile ul li li a:hover { background: #1b1b1b; }

	/* THIRD LEVEL */
	nav.mobile ul li li li a {
		position: relative; text-decoration: none;
		color: #fff;
		background: #222;
		border-left: 4px #222 solid;
		display: flex; justify-content: space-between; align-items: center; min-height: 50px; 
		padding: 12px 16px 12px 30px;
	}
	nav.mobile ul li li li a:hover { background: #2b2b2b; }

	/*nav.mobile ul li .click.open i:before { content: "\f068"; }*/

	.nav-footer { position: relative; text-align: center; padding: 24px 12px; }
	.nav-footer, .nav-footer span { font-family: 'Noka', sans-serif; font-size:15px; color:#bbb!important; font-weight: 900; letter-spacing: 1px; }
}

@media only screen and (max-width: 800px) {
	#menu-button a { padding: 0 max(12px, min(16px, 5vw)); }
}

@media only screen and (max-width: 380px) {
	#menu-button { width: 100%; }
	#menu-button a { width: 100%; min-height: 60px; padding: 12px 4px; flex-wrap: wrap; }
}