/**
 * 	Name: layout.css
 *
 *  Styling for the layout of the pages - header, footer, page sections etc.
 *
 *  T.O.C
 *
 *	=Wrap
 *	=Header Top
 *	=Header
 *	=Logo
 *	=Menu
 *		=Menu Basics
 *		=Menu Skin
 *		=DropDown
 *		=Mega Menu Section
 *		=Menu Arrows
 *	=Mobile Menu 
 *	=Mobile menu trigger
 *	=Custom search form 
 *	=Sticky Header
 *	=Content
 *	=Page Header
 *	=Fullwidth Section
 *	=Footer
 *	=Footer Bottom
 *	=Back to top
 *	=Misc 
 *
 */
 
/* ==========================================================================
   =Wrap
   ========================================================================== */

	#wrap {
		position: relative;
		background-color: #fff;
	}
	
	@media (max-width: 767px) {

		#wrap {}

	}

/* ==========================================================================
	=Header Top
	========================================================================== */
   
   #header-top {
		padding: 10px 0;
		background-color: #303030;
		color: #a9a9a9;
   }
   
   #header-top a { color: #a9a9a9; }
   #header-top a:hover { color: #0084b4; }
   
   #header-top h1,
   #header-top h2,
   #header-top h3,
   #header-top h4,
   #header-top h5,
   #header-top h6 { color: #fff; }
   
   @media (max-width: 767px) {

		#header-top { display: none; }

	}
   
/* ==========================================================================
   =Header 
   ========================================================================== */
   	
	#header {
		margin: 0 auto; 
	}
	
	.header-style-1 #header { background-color: #202020; }
	
/* ==========================================================================
   =Logo
   ========================================================================== */
   
	#logo {  
		padding: 43px 0 36px 0;
	}
	
	/**
	 * 1. we need the <a> to be only the size of it's child <img> element
	 * 2. it shouldn't extend beyond the size of it's parent if it's child <img> is very large e.g 1000x1000 px
	 */
	
	#logo a {
		display: inline-block; /* 1 */
		max-width: 100%; 	   /* 2 */
	}
	
	#logo img { display: block; }	
	
	@media (max-width: 767px) {

		/**
		 * 1. on mobile devices logo padding right needs to be the width of the
		 *	  mobile menu trigger + some spacing so as to not let the logo <a>
		 *    overlap the mobile menu trigger
		 */
	
		#logo {  
			padding-right: 50px; 	/* 1 */
		}
		
	}
	
/* ==========================================================================
   =Menu 
   ========================================================================== */

/* =Menu Basics
   ========================================================================== */
   
	.sf-menu,
	.sf-menu ul {
		padding: 0;
		margin: 0;
		list-style: none;
	}
	
	.sf-menu > li { float: left; }

	.sf-menu > li > a {
		position: relative;
		display: block;
	}
	
	/**
 	 * 1. z-index is 1025 because the sticky menu is 1020
 	 */
	
	.sf-menu .sf-mega,
	.sf-menu li.dropdown ul {
		position: absolute;
		z-index: 1025;		/* 1 */
		top: 100%;
		left: 0;
		display: none;
	}
	
	.sf-menu li.dropdown { position: relative; }
	
	.sf-menu li.dropdown ul ul {
		top: -1px;
		left: 100%;
	}
	
	.header-style-1 .sf-menu li.dropdown ul ul { top: -2px; }
	
	.sf-menu li:hover > .sf-mega,
	.sf-menu li.sfHover > .sf-mega,
	.sf-menu li.dropdown:hover > ul,
	.sf-menu li.dropdown.sfHover > ul { display: block; }

/* =Menu Skin
   ========================================================================== */
	
	.sf-menu { float: right; } 
	
	.sf-menu a {
		display: block;
		padding: 12px 0;
		border-bottom: 2px solid #898989;
		font: 14px 'Open Sans', Arial, sans-serif;
		line-height: 26px;
		color: #fff; 
		text-decoration: none;
		-webkit-transition: color 0.3s, background-color 0.3s;
				transition: color 0.3s, background-color 0.3s; 
	}
	
	.sf-menu li.dropdown a { padding: 12px 30px; }
	
	.sf-menu li:last-child > a { border-bottom: none; }
	
	.sf-menu > li > a,
	.sf-menu > li.dropdown > a {
		padding: 53px 15px;
		border-bottom: none;
		margin-right: 10px;
		color: #505050;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 1px;
		text-transform: uppercase;	
	}
	
	.menu-style-2 .sf-menu > li > a,
	.menu-style-2 .sf-menu > li.dropdown > a {
		padding: 53px 25px;
		margin-right: 1px;
	}
	
	.header-style-1 .sf-menu > li > a,
	.header-style-1 .sf-menu > li.dropdown > a { color: #fff; } 
	
	.sf-menu > li > a:before,
	.sf-menu > li.dropdown > a:before {
		position: absolute;
		top: 0;
		left: 0;
		width: 0;
		display: block;
		border-top: 9px solid #0084b4;
		content: "";
		-webkit-transition: width 0.3s;
				transition: width 0.3s;
	}
	
	.menu-style-2 .sf-menu > li > a:before,
	.menu-style-2 .sf-menu > li.dropdown > a:before {
		content: none;
	}
	
	.sf-menu > li:last-child > a,
	.sf-menu > li.dropdown:last-child > a { margin-right: 0; }
	
	.sf-menu > li a i { margin-right: 5px; }
	
	.sf-menu > li.current > a,
	.sf-menu li.sfHover > a,
	.sf-menu a:hover,
	.sf-menu li.sfHover a:hover,
	.header-style-1 .sf-menu > li.current > a,
	.header-style-1 .sf-menu li.sfHover > a,
	.header-style-1 .sf-menu a:hover,
	.header-style-1 .sf-menu li.sfHover a:hover {
		color: #0084b4;
		text-decoration: none;	
	}
	
	.menu-style-2 .sf-menu > li.current > a,
	.menu-style-2 .sf-menu li.sfHover > a,
	.menu-style-2 .sf-menu a:hover,
	.menu-style-2 .sf-menu li.sfHover a:hover {
		background-color: #0084b4;
		color: #fff;
	}
	
	.sf-menu > li.current > a:before,
	.sf-menu li.sfHover > a:before,
	.sf-menu a:hover:before,
	.sf-menu li.sfHover a:hover:before { width: 100%; }
	
	.sf-menu li ul li a:hover,
	.sf-menu li ul li.sfHover > a,
	.sf-menu li.sfHover ul li a:hover,
	.header-style-1 .sf-menu li ul li a:hover,
	.header-style-1 .sf-menu li ul li.sfHover > a,
	.header-style-1 .sf-menu li.sfHover ul li a:hover {
		background-color: #0084b4;
		color: #fff;
	}

/* =DropDown
   ========================================================================== */
	
	/**
 	 * 1. allow long menu items to determine submenu width
 	 */
	
	.sf-menu li.dropdown ul {
		min-width: 210px; 	/* 1 */	
		border: 1px solid rgba(255, 255, 255, 0.1);
		background-color: #202020;			
	}	
	
	.header-style-1 .sf-menu li.dropdown ul { border-top: 2px solid #898989; }
		
/* =Mega Menu Section
   ========================================================================== */
	
	.sf-mega {
		width: 100%;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
				box-sizing: border-box;					
		border: 1px solid rgba(255, 255, 255, 0.1);
		background-color: #202020;
		color: #fff;
	}
	
	.header-style-1 .sf-mega { border-top: 2px solid #898989; }

	.sf-mega-section {
		float: left;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
				box-sizing: border-box;
		padding: 20px;
		border-right: 2px solid #898989;
	}
	
	.sf-mega-section ul { margin: -20px; }
	
	.sf-mega-section ul li a { padding: 12px 40px; }
	
	.sf-mega-section:last-child { border-right: none; }

	/**
 	 * 1. set mega menu section size, as a percentage of the mega menu width
 	 */
	
	.sf-mega.sf-mega-1-col .sf-mega-section{ width: 100%; } /* 1 */
	
	.sf-mega.sf-mega-2-col .sf-mega-section{ width: 50%; }
	
	.sf-mega.sf-mega-3-col .sf-mega-section{ width: 33.3333333333%; }
	
	.sf-mega.sf-mega-4-col .sf-mega-section{ width: 25%; }
	
	.sf-mega-section-title {
		padding: 0 40px 15px 40px;
		border-bottom: 2px solid #898989;
		margin: 0 -20px;
		font-weight: 800;
		text-transform: uppercase;
	}
	
	.sf-mega-section-title + ul { margin-top: 0; }
	
/* =Menu Arrows
   ========================================================================== */
	
	.sf-arrows .sf-with-ul:after {
		position: absolute;
		top: 50%;
		right: 10px;
		display: none;
		width: 0;
		height: 0;
		border: 4px solid transparent;
		border-top-color: #505050;
		margin-top: -2px;
		content: "";
	}
		
	.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: #0084b4;; }
		
	.sf-arrows ul .sf-with-ul:after {
		display: block;
		border-color: transparent;
		border-left-color: #505050;
		margin-top: -5px;
		margin-right: 10px;
	}
	
	.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: #fff; }
	
	@media (min-width: 768px) and (max-width: 991px) {

		#menu { display: none; }

	}
	
	@media (max-width: 767px) {

		#menu { display: none; }
	
	}
	
/* ==========================================================================
   =Mobile Menu 
   ========================================================================== */
			
	#mobile-menu {
		border-bottom: 1px solid #e1e1e1;
		margin-bottom: 0;
		background-color: #202020;
	}
	
	#mobile-menu li {	
		display: block;
		margin: 0;
	}
		
	#mobile-menu > li > ul, 
	#mobile-menu > li > ul > li > ul {
		display: none;
		margin-left: 0;
	}
	
	#mobile-menu .sf-mega {
		display: none;
		padding: 0;
		border: none;
		margin: 0;
	}
	
	#mobile-menu .sf-mega-section {
		float: none;
		width: 100%;
		padding: 0;
		border: none;
	}
	
	#mobile-menu .sf-mega-section ul { margin: 0; }
	
	#mobile-menu .sf-mega-section .sf-mega-section-title {
		padding-top: 20px;
		border-top: 1px solid #e1e1e1;
		border-bottom-width: 1px;
	}

	#mobile-menu li a {
		position: relative;
		display: block;
		padding: 15px 25px;
		border-top: 1px solid #e1e1e1;
		color: #fff;
		font-size: 14px;
		text-align: left;
		text-decoration: none;
	}
	
	#mobile-menu > li > a { 
		font-weight: 800;
		text-transform: uppercase;
	}
	
	#mobile-menu ul a { padding-left: 45px; }
	
	#mobile-menu ul li ul a  { padding-left: 65px; }
	
	#mobile-menu .mobile-menu-submenu-arrow {
		position: absolute;
		top: 0;
		right: 0;
		width: 70px;
		height: 100%;
		border-left: 1px solid #e1e1e1;
		color: #fff;
		font-size: 20px;
		line-height: 50px;
		text-align: center;
		cursor: pointer;
	}
	
	#mobile-menu .mobile-menu-submenu-arrow:hover { background-color: #505050; }
	
	#mobile-menu li a:hover {}
	
	#mobile-menu { display: none; }

/* ==========================================================================
   =Mobile menu trigger
   ========================================================================== */
				
	#mobile-menu-trigger { 
		float: right;
		display: none;
		font-size: 32px;
	}

	@media (min-width: 768px) and (max-width: 991px) {

		#mobile-menu-trigger { 
			display: block;
			margin-top: 46px;
			margin-right: 0;
		}	

	}

	@media (max-width: 767px) {

		#mobile-menu-trigger { 
			position: absolute;
			top: 38px;
			right: 5px;
			display: block;
			padding: 10px;
			margin-top: 0;
		}

	}

	@media only screen and (min-width: 480px) and (max-width: 767px) {

		#mobile-menu-trigger {}
	
	}		
		
/* ==========================================================================
   =Custom search form 
   ========================================================================== */
	
	#custom-search-button + nav { margin-right: 40px; }
	
	#custom-search-button { 
		position: absolute;
		top: 55px;
		right: 15px;
		display: block;
		width: 17px;
		height: 17px;
		background: url(../images/bg-search-2.png) no-repeat center center;
	}
	
	.header-style-1 #custom-search-button { background-image: url(../images/bg-search-3.png); }
	
	/**
 	 * 1. z-index is 1030 because the menu has a z-index of 1025 
 	 */
	 
	#custom-search-form {
		position: absolute;
		z-index: 1030; 	/* 1 */
		top: 43px;
		right: 0;
		display: none;
	}
	
	#custom-search-submit { display: none; }
	
	#custom-search-form #s {
		width: 250px;
		height: 44px;
		padding: 8px 35px 8px 10px;
		border-radius: 0;	
		background-color: #fff;
	}
	
	.header-style-1 #custom-search-form #s { 
		background-color: #202020;
		color: #fff;
	}
	
	#custom-search-form a.close { 
		position: absolute;
		top: 10px;
		right: 10px;
		color: #505050;
		text-decoration: none;
	}
	
	.header-style-1 #custom-search-form a.close { color: #fff; }
	
	
	@media (min-width: 768px) and (max-width: 991px) {

		#custom-search-button { right: 65px; }
		#custom-search-form { right: 55px; }
		
	}
	
	@media (max-width: 767px) {

		/**
		 * Hide search on mobile
		 */
		 
		/**
		 * 1. !important is needed to overwrite the display:block added by the js
		 */ 
	
		#custom-search-form { 
			display: none !important; /* 1 */
		}
		
		#custom-search-button { display: none; }
		
	}

/* ==========================================================================
   =Sticky Header
   ========================================================================== */

	@media (min-width: 1025px) {
		
		/**
		 * 1. The height of the #header-wrap should be increased or decreased to accommodate the logo
		 */
		 
		#header-wrap {
			position: relative;
			height: 132px; /* 1 */
		}
		
		#header {
			position: absolute;
			top: 0; 					
			right: 0;
			left: 0;
			margin: 0 auto; 
			
		}
		
		/**
		 * 1. The z-index has to be 1020 so it is bigger than the back to top buttons z-index that is 1010
		 */
		
		#header.stuck {
			position: fixed;
			z-index: 1020; /* 1 */
			top: 0;
			width: 100%;
			padding: 20px 0 0 0;
			margin: 0 auto;
			box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);			
			background-color: #fff;
			-webkit-transition: padding 0.5s;
					transition: padding 0.5s;
		}
		
		.header-style-1 #header.stuck { background-color: #202020; }
		
		#header.stuck #logo { padding: 10px 0 25px; }
		
		#header.stuck .sf-menu > li > a,
		#header.stuck .sf-menu > li.dropdown > a { padding: 21px 15px 41px; }
		
		.menu-style-2 #header.stuck .sf-menu { margin-top: -20px; }
		
		.menu-style-2 #header.stuck .sf-menu > li > a,
		.menu-style-2 #header.stuck .sf-menu > li.dropdown > a { padding: 41px 25px; }
		
		#header.stuck .sf-menu > li > a:before,
		#header.stuck .sf-menu > li.dropdown > a:before { top: -20px; }

		#header.stuck .sf-arrows .sf-with-ul:after { margin-top: -12px; }
		#header.stuck .sf-arrows ul .sf-with-ul:after { margin-top: -5px; }		
	
		#header.stuck #custom-search-button { top: 23px; }
		#header.stuck #custom-search-form { top: 12px; }
	
	}
	
/* ==========================================================================
   =Content
   ========================================================================== */
   	
	#content {}

/* ==========================================================================
   =Page Header
   ========================================================================== */
   	
	#page-header { 
		padding: 140px 0 160px 0;
		margin-bottom: 100px;
		background: #f1f1f1 no-repeat center center;
		text-align: center;
	}
	
	#page-header h1 {
		margin-bottom: 0;
		text-transform: uppercase;
		word-wrap: break-word; 
	}
	
	#page-header h4 { 
		margin-bottom: 0;
		color: #898989;
		font-weight: 400;
	}
	
	#page-header h6 {
		color: #fff;
		letter-spacing: 1px;
		text-transform: uppercase;
	}
	
	#page-header.page-header-style-2 {
		padding: 45px 0;
		background-color: #0084b4;
		color: #fff;
	}
	
	#page-header.page-header-style-3 {
		padding: 45px 0;
		background-color: #303030;
		color: #fff;
		text-align: left;
	}
	
	@media (max-width: 767px) {
		
		#page-header h1 {
			font-size: 32px;
			line-height: 48px;
		}
		
	}

/* ==========================================================================
   =Fullwidth Section
   ========================================================================== */
   
    /**
 	 * Full width section
 	 *
	 * 1. background-image must be supplied using inline css as it is different for every .fullwidth-section
	 *
	 */
	 
   .fullwidth-section {
		position: relative;
		overflow: hidden;
		z-index: 0;	
		padding: 55px 0;
		margin-bottom: 100px;
		background-color: #f1f1f1;
		background-attachment: scroll;
		background-repeat: no-repeat; /* 1 */ 
		background-position: 50% 0;		
	}

	.fullwidth-section-content {
		position: relative;
		z-index: 3;
	}
   
   	.fullwidth-section-overlay {
		position: absolute;
		z-index: 2;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-repeat: repeat;
		background-position: 0 0;
		background-color: rgba(0, 132, 180, 0.85);
	}
	
	.fullwidth-section-video {
		position: absolute;
		overflow: hidden;
		z-index: 1;
		top: 0;
		width: 100%;
		height: 100%;
	}
	
	.yt-player { display: none; }
	
	/**
 	 *
	 * 1. We add background-size cover so the parallax looks ok if you provide smaller images
	 *
	 */
	
	.parallax.parallax-enabled { 
		background-attachment: fixed !important;
		-webkit-background-size: cover;
				background-size: cover;	/* 1 */
	}
	
	.horizontal-parallax { background-repeat: repeat-x; }
	
	.animated-parallax { background-repeat: repeat-x; }
	
	@media (max-width: 767px) {

		.fullwidth-section {
			-webkit-background-size: cover;
					background-size: cover;		
		}
		
	}
   
/* ==========================================================================
   =Footer
   ========================================================================== */		
	
	#footer { 
		padding: 100px 0;	
		background-color: #202020;
		color: #636363;
	}
	
	#footer a,
	#footer h1,
	#footer h2,
	#footer h3,
	#footer h4,
	#footer h5,
	#footer h6 { color: #a9a9a9; }
	
	#footer a:hover { color: #0084b4; }
	
	#footer-widget-area-1 {}
	#footer-widget-area-2 {}
	#footer-widget-area-3 {}
	#footer-widget-area-4 {}
	
	@media (max-width: 767px) {
		
		#footer-widget-area-1 + #footer-widget-area-2 { margin-top: 100px; }
		#footer-widget-area-2 + #footer-widget-area-3 { margin-top: 100px; }
		#footer-widget-area-3 + #footer-widget-area-4 { margin-top: 100px; }
		
	}
	
/* ==========================================================================
   =Footer Bottom
   ========================================================================== */	
  
	#footer-bottom { 
		padding: 45px 0;	
		background-color: #121212;	
	}
	
	#footer-bottom h1,
	#footer-bottom h2,
	#footer-bottom h3,
	#footer-bottom h4,
	#footer-bottom h5,
	#footer-bottom h6 { color: #a9a9a9; }
	
	#footer-bottom-widget-area-1 {}
	#footer-bottom-widget-area-2 {}
	#footer-bottom-widget-area-3 {}
	#footer-bottom-widget-area-4 {}
	
	@media (max-width: 767px) {
		
		#footer-bottom-widget-area-1 + #footer-bottom-widget-area-2 { margin-top: 30px; }
		#footer-bottom-widget-area-2 + #footer-bottom-widget-area-3 { margin-top: 30px; }
		#footer-bottom-widget-area-3 + #footer-bottom-widget-area-4 { margin-top: 30px; }
		
	}
	
/* ==========================================================================
   =Back to top
   ========================================================================== */

	#back-to-top {
		position: fixed;
		z-index: 1010;
		right: -40px;
		bottom: 20px;
		width: 40px;
		height: 40px;
		background-color: #202020;
		color: #fafafa;
		font-size: 24px;
		text-align: center;					
		opacity: 0.5;
		cursor: pointer;
		text-decoration: none;
		-webkit-transition: all 0.4s ease 0s;
				transition: all 0.4s ease 0s;
	}
	
	#back-to-top i {
		font-size: 24px;
		line-height: 40px;
		font-weight: normal;
		vertical-align: top;
		-webkit-transition: all 0.4s ease 0s;
				transition: all 0.4s ease 0s;
	}
	
	#back-to-top:hover { background-color: rgba(0, 0, 0, 0.7); }
	#back-to-top:hover i { color: #fff; }
	#back-to-top.visible { right: 40px; }
	#back-to-top.gone { right: -40px; }	

/* ==========================================================================
   =Misc
   ========================================================================== */
   
	.javascript-required,
	.modern-browser-required {
	    padding: 15px 0;
		background-color: #ff0030;
		color: #fff;
		font-weight: 700;
		text-align: center;
	}