/**
 * Logo Image
 */
#logo h1, #logo h2 {
	font-size: 24px;
	line-height: 24px;
	color: #222;
	margin-bottom:0;
	font-style: normal;
	float:left;
}
#logo h1 a, 
#logo h2 a {
	text-decoration: none;
	display:block;
	font-size: 24px !important;
	font-weight: bold;
	color:#222;
	text-transform:none;
	white-space:nowrap;
}
#logo img {
	display:block;
	max-width: 100% !important; 
	height: auto !important;  
}

#logo span {
	display:block;
}
#logo {
	padding-right:30px;
	padding-left:15px;
}
#logo, .top-ad, #menu, .searchnav {
	display: inline-block;
	vertical-align: middle;
}


/**
 * Dropdown Navigation
 */
/* Navigation Container */
.top-nav {
	position:relative;
	z-index:130;
	width:100%;

	.searchnav {
		position: absolute;
	    right:0;
	    top:50%;
	    padding:0 !important;
	    margin-top:-17px;
	}
}
.top-nav.regular-nav .top-nav-inner {
	height:100%;
}
.top-nav.regular-nav.is_stuck,
.top-nav.altnav .altcontainer.is_stuck {
	width: 100% !important;
    border-bottom: 1px solid #e3e3e3;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
html.mm-right.mm-opened.mm-opening .mm-fixed-top {
	left: auto !important;
}
.top-nav.regular-nav.is_stuck {
	left: auto !important;
}
.top-nav .container {
	position:relative;
}
.top-nav .table-cell {
	vertical-align:middle;
}
.no-bg .top-nav {
	position:relative;	
	background:#222;
}

/* Search in navbar */
.top-nav .search {
	display:inline-block;
	position: relative;
	min-width: 30px;
	min-height: 37px;
	margin-right:5px;
}
.top-nav .search input::-webkit-input-placeholder { /* WebKit browsers */
	color:#999;
	line-height:42px;
}
.top-nav .search input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
	color:#999;
	line-height:42px;
}
.top-nav .search input::-moz-placeholder { /* Mozilla Firefox 19+ */
	color:#999;
	font-size:14px;
	line-height:42px;
}
.top-nav .search input:-ms-input-placeholder { /* Internet Explorer 10+ */
	color:#999;
	font-size:14px;
	line-height:42px;
}
.top-nav input {
	font-size:14px;
	width:0;
	border:none;
	@include opacity(0);
	padding:0;
	-moz-transition:all 0.25s ease;
	-webkit-transition:all 0.25s ease;
	float: right;
	max-height:42px;
	height: 42px;
	background: #e3e3e3;
	background: rgba(0,0,0,0.075);
	color: #444;
	position: absolute;
	line-height:42px;
	right:0;
	padding: 0 15px;
	@include border-radius(999px); 
}
.searchnav {
	line-height:0;
}
.altnav .top-nav .search input {
	height: 38px;
	margin-top: 2px;
	background: #f3f3f3;
	background: rgba(0,0,0,0.075);
}
.top-nav input:focus{
  width:200px;
  right: 0;
  @include opacity(1);
}
.top-nav .search:hover input{
  width:200px;
  right: 0;
  @include opacity(1);
}
.search i.searchbutton {
	position: absolute;
	top: 1px;
	right: 10px;
	cursor: pointer;
	margin:0;
	line-height:37px;
	padding-right:5px;
}
.top-nav .container .cell {
	padding: 15px 0;
}
// sticky
.is_stuck #logo, .is_stuck .top-ad, .regular-nav.is_stuck  #menu, .regular-nav.is_stuck  .searchnav  {
	padding-top:15px;
	padding-bottom:15px;
}

/**
 * Alternative Nav Style
 */
.top-nav.altnav {
	padding:0 !important;
	position:static;

	/* Justify inline elements */
	.top-nav-inner {
	    text-align: justify;
	    line-height: 1.2em;
	    margin-bottom: -1.2em;
	}
	.top-nav-inner:after {
	    content: '';
	    display: inline-block;
	    width: 100%;
	}

	#menu > ul > li > a {
		padding: 2.5em 2.4em 2.5em 0;
	}

	#menu ul > li > a {
	    color:#555;
	}

	#menu > ul > li > a:hover,
	#menu > ul > li.sfHover > a {
		background:transparent;
	}

	#menu ul > li li > a {
	    color:#555;
	}

	// Ad section
	.top-ad {

		img {
			max-width: 100% !important;
			height: auto !important;
		}
	}

	// No longer vertically center
	#menu.table-cell {
		display:block;
	}

	// Move menu
	#menu {
		margin-left:15px;
		margin-right:15px;
		padding:0;
		margin-bottom:0;
		width:100%;
		position: relative;
	}
	
	.altcontainer {
		background:#fff;
	}
	#menu {
		background:transparent;
	}
	.sf-menu > li:hover > ul, 
	.sf-menu > li.sfHover > ul {
		top:5em;
	}

	.searchnav {
		padding: 1.25em 0 0 0;
	}

}

/**
 * Navigation Dropdown Skin
 */
.sf-menu {
	float: left;
}
.sf-menu a {
	border-left: 1px solid none;
	border-top: 1px solid none;
	padding: 2em 1.25em;
	text-decoration:none;
}
.sf-menu li {
	margin-left:1px;
}
.nomargin .sf-menu li {
	margin-left:1px;
}
.sf-menu li li, .sf-menu li li li, 
.sf-menu li li li li, 
.nomargin .sf-menu li li, 
.nomargin .sf-menu li li li, 
.nomargin .sf-menu li li li li {
	margin-left:0;
}
.sf-menu li > a {
	padding: 1.2em 1.4em;
	line-height:1em;
}
.sf-menu li li > a:hover {
	color:#000;	
}
.sf-menu li li > a {
	padding: 0.75em 1.25em;
	border-bottom:none;
}
.sf-menu li li li > a, 
.sf-menu li li:last-child li > a, 
.sf-menu li li li li > a, 
.sf-menu li li li:last-child li > a {
	border-bottom: none;
}
.sf-menu a, .sf-menu a:visited {
	/* visited pseudo selector so IE6 applies text colour*/
	color: #222;
	/* for Main nav in teal area once already clicked on */
}
.sf-menu a:hover {
	color: #222;
}
.sf-menu li li li li a:hover, 
.sf-menu li li li a:hover, 
.sf-menu li li a:hover {
	color:#222;
	background: transparent;
}
.sf-menu li li a, 
.sf-menu li li a:visited, 
.sf-menu li li li a, 
.sf-menu li li li a:visited,
.sf-menu li li li li a, 
.sf-menu li li li li a:visited, 
.sf-menu li li:last-child li a, 
.sf-menu li li li:last-child li a {
	/* visited pseudo selector so IE6 applies text colour*/
	color: #555;
	/* For drop down that appears in white space once already visited */
	font-weight:normal;
	text-transform:none;
	font-size:12px;
	letter-spacing: 0;
	line-height:14px;
}
.sf-menu li li:last-child a, .sf-menu li li li:last-child a, .sf-menu li li li li:last-child a {
	border-bottom:none;
}
.sf-menu li li a, .sf-menu li li li a, .sf-menu li li li a, .sf-menu li li li li a {
	color: #555555;
	/* text color for drop down that appears in white space */
}
.sf-menu li {
	background: none;
}
.sf-menu li li {
	background: none;
}
.sf-menu li li li {
	background: none;
}
.sf-menu li li li li {
	background: none;
}
.sf-menu li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active {
	outline: 0;
}
/* #Nav Arrows
================================================== */

/*** arrows (for all except IE7) **/
 .sf-arrows .sf-with-ul {
	padding-right: 1em;
}
.sf-menu > li.sfHover > a,
.sf-menu li > a:hover {
    background: #111;
	color: #fff;
}
.sf-menu li.sfHover li > a {
background: none;
}

/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
	content:'';
	position: absolute;
	top: 50%;
	right: -0.5em;
	margin-top: -3px;
	height: 0;
	width: 0;
	/* order of following 3 rules important for fallbacks to work */
	border: 5px solid transparent;
	border-top-color: #ccc;
	/* edit this to suit design (no rgba in IE8) */
}
.fontface .sf-arrows .sf-with-ul:after {
	content: '\f107';
	font-family: 'FontAwesome';
	@include opacity(0.5);
	padding-right: 4px;
	padding-left: 2px;
	top: 0;
	position: relative;
	border:none;
	font-weight:normal;
}
.fontface .sf-arrows > li > .sf-with-ul:focus:after, 
.fontface .sf-arrows > li:hover > .sf-with-ul:after, 
.fontface .sf-arrows > .sfHover > .sf-with-ul:after {
	text-decoration:none;
}
.fontface .sf-arrows a.sf-with-ul:hover {
	text-decoration:none;
}
.sf-arrows > li > .sf-with-ul:focus:after, 
.sf-arrows > li:hover > .sf-with-ul:after, 
.sf-arrows > .sfHover > .sf-with-ul:after {
	border-top-color: #ccc;
	/* IE8 fallback colour */
}
/* styling for right-facing arrows */
.sf-arrows ul .sf-with-ul:after {
	margin-top: -5px;
	margin-right: 12px;
	border-color: transparent;
	border-left-color: #ccc;
	/* edit this to suit design (no rgba in IE8) */
	border-left-color: rgba(0, 0, 0, 0.1);
}
.fontface .sf-arrows ul .sf-with-ul:after { 
	content: '\f105';
	padding-left: 5px;
}
.sf-arrows ul li > .sf-with-ul:focus:after, 
.sf-arrows ul li:hover > .sf-with-ul:after, 
.sf-arrows ul .sfHover > .sf-with-ul:after {
	border-left-color: #ccc;
}
.fontface .sf-arrows ul li > .sf-with-ul:focus:after, 
.fontface .sf-arrows ul li:hover > .sf-with-ul:after, 
.fontface .sf-arrows ul .sfHover > .sf-with-ul:after {
	text-decoration:none;
}
.sf-shadow ul {
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.sf-shadow ul.sf-shadow-off {
	background: transparent;
}
.navcontainer {
	z-index:10;
}
.mobile-link {
	display:none;
	text-align:right;
	font-size: 24px;

	/* Increase target size */
	a {
		padding:10px 0 10px 20px; 
	}

	a, a:hover {
		color:#222;
	}
}
/* Search Alterations */
.mm-search {
	position:relative;

	i.searchbutton {
		line-height: 45px;
		padding-right: 10px;
		position:absolute; 
		top:0;
		right:10px;
	}
}
#mobilemenu {
	display:none;
	
	&.mm-menu.mm-current {
		display:block;
	}
	&.mm-menu ul li a {
		color: #f3f3f3;
	}
}
/* Admin bar additions */
.admin-bar #mobilemenu {
	margin-top:32px;
}
.sf-menu img {
	max-width:100% !important;
	height:auto !important;
}

/**
 * Mega Menu
 */
ul.sf-menu li.megamenu {
	position:static !important;
}
.sf-menu li.megamenu li li li a:hover, 
.sf-menu li.megamenu li li a:hover, 
.sf-menu li.megamenu li a:hover {
	text-decoration:underline;
}
.sf-menu li.megamenu li:last-child a, 
.sf-menu li.megamenu li li:last-child a, 
.sf-menu li.megamenu li li li:last-child a {
	border-bottom:none;
}
.sf-menu li.megamenu:hover ul, 
.sf-menu li.megamenu.sfHover ul {
	left:auto;
	top:4.6em;
}
.regular-nav.is_stuck .sf-menu li.megamenu:hover ul,
.regular-nav.is_stuck .sf-menu li.megamenu.sfHover ul {
	top: 3.7em;
}
ul.sf-menu li.megamenu li {
    position:static;
	float: left;
	width: 150px;
}
ul.sf-menu li.megamenu li a {
	padding: 5px 0;
	margin: 0 30px 0 0;
}
ul.sf-menu li.megamenu > ul {
	max-width: 100%;
	width:auto;
	background:#fff;
	border:3px solid #e3e3e3;
	border: 3px solid rgba(0,0,0,0.1);
	padding: 25px 0 35px 35px;
	box-shadow: 10px 10px 20px rgba(0,0,0,0.25);
}
ul.sf-menu li.megamenu:hover li ul, 
ul.sf-menu li.megamenu.sfHover li ul {
    display: inherit !important;
    top:0 !important;
    border:none;
	opacity:1 !important;
	@include opacity(1);
	left:0 !important;
    position:static;
	padding:0;
	margin-left:0;
}
ul.sf-menu li.megamenu ul.sub-menu .sf-sub-indicator { 
	display: none; 
	background: none;
}
ul.sf-menu li.megamenu .menu-item-type-custom > a {
	font-weight: bold;
	color: #000;
	text-transform: uppercase;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	margin-bottom: 10px;
}
ul.sf-menu li.megamenu .menu-item-type-custom > a:hover {
    text-decoration: none;
    cursor: default;
}

ul.sf-menu li.megamenu .menu-item-type-custom .menu-item-type-custom > a {
	font-weight: bold;
	margin-top:20px;
	color:#000;
}
.customsection .custom-description {
	display: block;
	margin: 10px 30px 0 0;
}
ul.sf-menu li.megamenu ul.sub-menu li.menu-item-custom-content span.highlight { color: #5b5959 !important; background: transparent; }

ul.sf-menu li.megamenu ul.sub-menu li ul li:first-child { padding-top: 0 }

.sf-arrows li.megamenu ul .sf-with-ul:after {
	display:none;
}