/**
 * Name: layout.css
 *	
 *	T.O.C
 *
 * =Wrap
 * =Header Top
 * =Header
 * =Logo
 * =Menu
 * =Mobile Menu
 * =Mobile menu trigger
 * =Sticky Header
 * =Content
 * =Page Header
 * =Footer
 * =Footer Bottom
 * =Back to top 
 * =Page 404
 *
 */

 
/* ==========================================================================
   =Wrap
   ========================================================================== */

	#wrap {
		position: relative;
		background-color: #fff;
	}
	
	@media (max-width: 767px) {

		#wrap {}

	}
   
/* ==========================================================================
   =Header 
   ========================================================================== */
   	
	#header {}
	
/* ==========================================================================
   =Logo
   ========================================================================== */
   
	#logo { 
		display: inline-block; 
		padding: 35px 0 19px 0;
	}
	
	@media (min-width: 768px) and (max-width: 979px) {
		
		#logo { padding-top: 37px; }
		
	}
	
	@media (max-width: 767px) {
		
		#logo { padding-top: 34px; }
		
	}
	
/* ==========================================================================
   =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%;
		margin-top: -10px;
		margin-left: 10px;
	}
	
	.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;
		margin-top: 5px;
	} 
	
	.sf-menu a {
		display: block;
		padding: 10px 0;
		border: 1px solid #6dcff6;
		font: 12px 'Open Sans', Arial, sans-serif;
		color: #323232; 
		text-decoration: none;
	}
	
	.sf-menu li { margin-bottom: 3px; }
	.sf-menu li:last-child { margin-bottom: 0; }
	
	.sf-menu > li { 
		margin-right: 15px;
		margin-bottom: 0;
	}
	
	.sf-menu li.dropdown a { padding: 10px 15px; }
	
	.sf-menu > li > a,
	.sf-menu > li.dropdown > a {
		padding: 45px 0 50px 0;
		border: none;
		font-size: 11px;
		text-transform: uppercase;	
	}
	
	.sf-menu > li > a span {
		position: relative;
		z-index: 2;
		padding: 5px 5px;
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.sf-menu > li > a span:before {
		position: absolute;
		top: -5px;
		right: -5px;
		bottom: -5px;
		left: -5px;
		border: 1px solid transparent;
		content: "";
	}
	
	.sf-menu > li > a span:after {
		position: absolute;
		z-index: -1;
		top: 0;
		left: 50%;
		width: 0;
		height: 100%;
		background-color: #6891bf;
		opacity: 0;
		content: "";
		-webkit-transform: translateX(-50%);
			-ms-transform: translateX(-50%);
				transform: translateX(-50%);
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.sf-menu > li a i { margin-right: 5px; }
	
	.sf-menu > li.current > a span,
	.sf-menu li.sfHover > a span,
	.sf-menu a:hover span,
	.sf-menu li.sfHover a:hover span {
		background-color: #6891bf;
		color: #fff;
		text-decoration: none;
		-webkit-transition: none;
				transition: none;	
	}
	
	.sf-menu > li.current > a span:before,
	.sf-menu li.sfHover > a span:before,
	.sf-menu a:hover span:before,
	.sf-menu li.sfHover a:hover span:before { border-color: #6891bf; }
	
	.sf-menu > li > a:hover span:after {
		width: 100%; 
		opacity: 1; 
	}
	
	.sf-menu > li > a:hover span {
		background-color: transparent; 
		color: #fff;
	}

/* =DropDown
   ========================================================================== */
	
	/**
 	 * 1. allow long menu items to determine submenu width
 	 */
	
	.sf-menu li.dropdown ul {
		min-width: 180px; /* 1 */
		padding: 10px;
		border: 1px solid #ccc;
		background-color: #fff;		
	}

	.sf-menu > li.dropdown > ul {}
	
	.sf-menu li.dropdown ul li a {
		position: relative;
		z-index: 2;
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.sf-menu li.dropdown ul li a:after {
		position: absolute;
		z-index: -1;
		top: 0;
		left: 50%;
		width: 0;
		height: 100%;
		background-color: #6891bf;
		opacity: 0;
		content: "";
		-webkit-transform: translateX(-50%);
			-ms-transform: translateX(-50%);
				transform: translateX(-50%);
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.sf-menu li.dropdown ul li a:hover:after {
		width: 100%; 
		opacity: 1; 
	}
	
	.sf-menu li.dropdown ul li a:hover {
		background-color: transparent; 
		color: #fff;
	}	
		
/* =Mega Menu Section
   ========================================================================== */
	
	.sf-mega {
		width: 100%;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
				box-sizing: border-box;
		padding: 15px 0;
		border: 1px solid #ccc;
		background-color: #fff;
	}

	.sf-mega-section {
		float: left;
		-webkit-box-sizing: border-box;
		   -moz-box-sizing: border-box;
				box-sizing: border-box;
		padding: 0 20px;
		border-right: 1px solid #ccc;
	}
	
	.sf-mega-section:last-child { border-right: none; }
	
	.sf-mega-section ul li a {
		position: relative;
		z-index: 2;
		padding-left: 15px;
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.sf-mega-section ul li a:after {
		position: absolute;
		z-index: -1;
		top: 0;
		left: 50%;
		width: 0;
		height: 100%;
		background-color: #6891bf;
		opacity: 0;
		content: "";
		-webkit-transform: translateX(-50%);
			-ms-transform: translateX(-50%);
				transform: translateX(-50%);
		-webkit-transition: all 0.3s;
				transition: all 0.3s;
	}
	
	.sf-mega-section ul li a:hover:after {
		width: 100%; 
		opacity: 1; 
	}
	
	.sf-mega-section ul li a:hover {
		background-color: transparent; 
		color: #fff;
	}	

	/**
 	 * 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%; }
	
/* =Menu Arrows
   ========================================================================== */
	
	.sf-arrows .sf-with-ul:after {
		position: absolute;
		top: 50%;
		right: 0;
		width: 0;
		height: 0;
		border: 5px solid transparent;
		border-top-color: #999;
		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: rgba(0, 0, 0, 0.7); }
		
	.sf-arrows ul .sf-with-ul:after {
		border-color: transparent;
		border-left-color: #999;
		margin-top: -5px;
		margin-right: 4px;
	}
	
	.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: rgba(0, 0, 0, 0.7); }
	
	@media (min-width: 768px) and (max-width: 979px) {

		#menu { display: none; }
		
		.sf-mega-section ul li a:after { background-color: transparent; }

	}
	
	@media (max-width: 767px) {

		#menu { display: none; }
		
		.sf-mega-section ul li a:after { background-color: transparent; }
		
	}
	
/* ==========================================================================
   =Mobile Menu 
   ========================================================================== */
			
	#mobile-menu {
		border-bottom: 1px solid #ccc;
		margin-bottom: 0;
	}
	
	#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-left: 0; }

	#mobile-menu li a {
		position: relative;
		display: block;
		padding: 15px 25px;
		border-top: 1px solid #ccc;
		color: #323232;
		font-size: 13px;
		text-align: left;
		text-decoration: none;
	}
	#mobile-menu li a:hover { background-color: transparent; }
	
	#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 #ccc;
		color: #323232;
		font-size: 20px;
		line-height: 50px;
		text-align: center;
		cursor: pointer;
	}
	
	#mobile-menu .mobile-menu-submenu-arrow:hover { background-color: #f0f0f0; }
	
	#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: 979px) {

		#mobile-menu-trigger { 
			display: block;
			margin-top: 34px;
			margin-right: 0;
		}	

	}

	@media (max-width: 767px) {

		#mobile-menu-trigger { 
			position: absolute;
			top: 21px;
			right: 20px;
			display: block;
			padding: 10px;
			margin-top: 0;
		}

	}

	@media only screen and (min-width: 480px) and (max-width: 767px) {

		#mobile-menu-trigger { right: 30px; }
	
	}		
		
/* ==========================================================================
   =Sticky Header
   ========================================================================== */

	@media (min-width: 1025px) {
		
	/**
 	 * We want to allow the header to be sticky on resolutions > 1024. In order to do this
	 * we position it absolute and when the sticky trigger point is reached we give the #header
     * the .stuck class	and change it's positioning to fixed
	 * 
	 * 1. This value should be the height of the #header 
 	 */
		
		#wrap { 
			padding-top: 118px; 	/* 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: 5px 0 0 0;
			box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
			margin: 0 auto;
			background-color: #fff;
			-webkit-transition: padding 0.3s;
					transition: padding 0.3s;
		}
		
		#header.stuck #logo { padding: 17px 0 5px 0; }
		
		#header.stuck .sf-menu > li > a,
		#header.stuck .sf-menu > li.dropdown > a { padding: 15px 0 25px 0; }
		
		#header.stuck .sf-arrows .sf-with-ul:after { margin-top: -6px; }		
	
	}
	
/* ==========================================================================
   =Content
   ========================================================================== */
   	
	#content { padding-bottom: 50px; }

/* ==========================================================================
   =Page Header
   ========================================================================== */
   	
	#page-header {
		height: 270px;
        width:100%;
		background: no-repeat center center;
	}
   
/* ==========================================================================
   =Footer
   ========================================================================== */		
	
	#footer { 
		position: relative;
		padding: 0px 0 105px 0;
		background: #5a747e;
		color: #fff;
	}
	
	#footer a { color: #fff; }
	
	#footer .widget { margin-bottom: 30px; }
	
	#footer .widget-title {
		margin-bottom: 50px;
		font-size: 24px;
		line-height: 24px;
	}
	
	#footer-widget-area-1 {}
	#footer-widget-area-2 {}
	#footer-widget-area-3 {}
	#footer-widget-area-4 {}
	
	@media (max-width: 767px) {
		
		#footer .widget-title { margin-bottom: 20px; }
		
	}
	
/* ==========================================================================
   =Footer Bottom
   ========================================================================== */	
  
	#footer-bottom {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 30px 0;	
		background-color: rgba(0, 0, 0, 0.1);	
	}
	
	#footer-bottom .widget:last-child { margin-bottom: 0; }
	
	#footer-bottom-widget-area-1 {}
	#footer-bottom-widget-area-2 {}
	
/* ==========================================================================
   =Back to top
   ========================================================================== */

	#back-to-top {
		position: fixed;
		z-index: 1010;
		right: -40px;
		bottom: 20px;
		width: 40px;
		height: 40px;
		background-color: #323232;
		color: #fafafa;
		font-size: 30px;
		line-height: 40px;
		text-align: center;
		text-decoration: none;
		opacity: 0.5;
		cursor: pointer;
		-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; }	
	
/* ==========================================================================
   Page 404
   ========================================================================== */
	
	.error-page {
		display: inline-block;
		width: 330px;
		height: 330px;
		border: 2px solid #6dcff6;
		border-radius: 50%;
		margin-bottom: 50px;
	}
	
	.error-page h1 {
		color: #6dcff6;
		font-size: 72px;
		line-height: 330px;
	}