/* Navigation - Desktop */
/* Source: http://osvaldas.info/drop-down-navigation-responsive-and-touch-friendly */

#nav {
	display:block;
	width:100%;
	height: 42px;
	text-align:center;
	top: 0;
	background-color: #8a0e04;
	font-weight: bold;
	z-index: 99;
  margin-bottom: 32px;
}

ul, ol, li { 
	list-style: none; 
	font-size: 100%;
	font-family: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	vertical-align: baseline;
	border: 0;
	outline: 0;
	padding: 0;
	margin: 0;
}

#nav > ul {
	display:inline-block;
	text-align:left;
}

#nav > ul > li {
	float:left;
	z-index: 99;
}

#nav span {
	display: none; /* Hide Navigation Text */
}

#nav > a {
	display: none;
}

#nav li {
	position: relative;
}
	#nav li a {
		color: #fff;
		text-transform: uppercase;
		text-decoration: none;
		display: block;
	}
	/* On Click State */
	#nav li a:active {
		background-color: #8b0e04 !important;
	}

#nav span:after {
	width: 0;
	height: 0;
	border: 0;
	border-bottom: none;
	border-top-color: #efa585;
	content: '';
	vertical-align: middle;
	display: inline-block;
	position: relative;
	right: -0.313em; /* 5 */
}

/* =============================================================================
   Main Menu
   ========================================================================== */
#nav > ul {
	height: 42px; 
	background-color: #8a0e04;
}
	#nav > ul > li {
		width: auto;
		height: 100%;
		float: left;
	}
		#nav > ul > li > a {
			padding: 0 10px;
			margin: 0 2px; /* Adds a divier between nav items */
			height: 100%;
			font-size: 13px;
			line-height: 41px; 
			text-align: center;
		}
		#nav > ul > li > a.active-page {
			background-color: #b4a06e;
		}
			#nav > ul > li:not( :last-child ) > a {
				border-right: 0;
			}
			#nav > ul > li:hover > a,
			#nav > ul:not( :hover ) > li.active > a {
				background-color: #b4a06e;
			}
			
@media only screen and ( max-width: 960px ) {
	/* Main Menu */
	#nav > ul > li > a {
		padding: 0 8px;
		font-size: 12px;
	}
	/* Hide Home Button */
	.hidden-mobile {
		display: none;
	}
}

@media only screen and ( max-width: 768px ) {
	/* Main Menu */
	#nav > ul > li > a {
		padding: 0 8px;
		font-size: 10px;
	}
}

/* =============================================================================
   Sub-Navigation
   ========================================================================== */
	#nav li ul {	
		padding: 10px 0;
		background-color: #d2c5a5;
		display: none;
		position: absolute;
		top: 100%;
		min-width: 260px;
		margin: 0 2px; /* Adds a divier between nav items */
	}
		#nav li:hover ul {
			display: block;
		}
			#nav li:not( :first-child ):hover ul {
				/*left: -1px;*/
			}
			#nav li ul a {
				color: /*#222*/ #000;
				font-size: 12px;
				/*font-weight: normal;*/
				border-top: 0;
				line-height: 1.2em;
				padding: 8px 10px; /* 15 (20) */
			}
				#nav li ul li a:hover,
				#nav li ul:not( :hover ) li.active a {	
					color: #ffffff;
					background-color: #8a0e04;
				}
	/* Move Dropdown left so it fits on the page */
	#nav li ul.last-dropdown {
		right: 0px;
	}

@media only screen and ( max-width: 960px ) {
	/* Sub-Navigation */
	#nav li ul a {
		font-size: 12px;
		padding: 8px 8px;
	}
}

@media only screen and ( max-width: 768px ) {
	/* Sub-Navigation */
	#nav li ul {	
		min-width: 200px;
	}
	#nav li ul a {
		font-size: 10px;
		padding: 6px 8px;
	}
}

/* =============================================================================
   iPhone (Landscape & Smaller)
   ========================================================================== */
@media only screen and ( max-width: 640px ) {
	/* Show Home Button */
	.hidden-mobile {
		display: block;
	}
	html {
	/*	font-size: 75%; /* 12 */
	}
	* {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
	}
	#nav {
		width: 100%;
		background-color: #8a0e04;
		color: #ffffff;
		position: relative;
		top: auto;
		left: auto;
		padding: 0 20px;
		z-index: 99;
	}
		/* Navigation Text */
		#nav span {
			display: block;
			font-family: arial;
			font-weight: bold;	
			line-height: 41px;
			padding: 0;
			float: left;
		}
		/* Navigation Icon */
		#nav > a {
			width: 100%;
			height: 41px;
			text-indent: -9999px;
			background-color: #8a0e04;
			position: relative;
			background: url('../img/universal/nav-icon.png') no-repeat center right;
		}
			#nav > a:before,
			#nav > a:after {
			}
			#nav > a:after {
			}
	
		#nav:not( :target ) > a:first-of-type,
		#nav:target > a:last-of-type {
			display: block;
		}

/* Main Menu */
#nav > ul {
	height: auto;
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	border-top: 1px solid #6e0c03;
	padding-top: 8px;
	padding-bottom: 40px;
}
	#nav:target > ul {
		display: block;
	}
	#nav > ul > li {
		width: 100%;
		float: none;
	}
		#nav > ul > li > a {
			font-size: 13px;
			height: 40px;
			text-align: left;
			padding: 0 20px; /* 20 (24) */
		}
		#nav > ul > li > a.active-page {
			background-color: #8a0e04;
		}
			#nav > ul > li:not( :last-child ) > a {
				border-right: none;
				border-bottom: 0;
			}
			#nav > ul > li:hover > a,
			#nav > ul:not( :hover ) > li.active > a {
				background-color: #8a0e04;
			}

	/* Sub-Navigation */
	#nav li ul {
		position: static;
		display: block;
		padding: 0 5px;
		margin-left: 40px;
		border-left: 1px solid #fff;
		background: transparent;
	}
	#nav li ul a {
		color: #fff;
		font-size: 13px;
	}
}