/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	font-family: "Gotham SSm A", "Gotham SSm B", "Open Sans";
}

a {
	text-decoration:none;
}

a:hover,
a:focus {
	color: #23527c;
	text-decoration: underline;
}
a:focus {
	outline: thin dotted;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}

#page {

}

/*Conditionally float sidebar*/
.has-sidebar #main {
	float:left;
	width:70%;
}

.has-sidebar #side {
	float:right;
	width:30%;
}


#nav .subnav a {
	min-width: 150px;
}

/* ==========================================================================
   Responsive breakpoints. All break points are cascading
   ========================================================================== */

/**
 * 	Extra Large devices
 */
@media only screen and (max-width: 1200px) {

}

/**
 * 	Large devices
 */
@media only screen and (max-width: 1024px) {

}

/**
 * 	Medium devices
 */
@media only screen and (max-width: 992px) {

}

/**
 * 	Small devices
 */
@media only screen and (max-width: 768px) {

}

/**
 * 	Extra small devices
 */
@media only screen and (max-width: 600px) {

}

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

}

@media only screen and (max-width: 320px) {

}

/* ==========================================================================
   Utility classes
   ========================================================================== */

.pull-right {
	float: right !important;
}

.pull-left {
	float: left !important;
}

.affix {
	position: fixed;
}

.center-block {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.cleanlist {
	list-style:none;
	padding:0;
	margin:0;
}

.text-hide {
	font: 0/0 a;
	color: transparent;
	text-shadow: none;
	background-color: transparent;
	border: 0;
}

.flex-container {
    padding: 0;
    margin: 0;
    list-style: none;
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
}

.flex-container.nowrap  { 
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.flex-container.wrap    { 
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}  

.flex-container.space-between {
    -webkit-box-pack: justify;
	-webkit-justify-content: space-between;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.max-width{
    max-width:1300px;
    margin:0 auto;
    padding-left:60px;
    padding-right:60px;
}
@media only screen and (max-width: 1680px){
    .max-width{
        max-width:1250px;
    }
}
@media only screen and (max-width: 1366px){
    .max-width{
        max-width:1000px;
    }
}
@media only screen and (max-width: 1024px){
    .max-width{
        max-width:none;
    }
}

@media only screen and (max-width: 768px){
    .max-width{
        padding-left:40px;
        padding-right:40px;
    }
}

@media only screen and (max-width: 480px){
    .max-width{
        padding-left:20px;
        padding-right:20px;
    }
}

.max-width .max-width{
    padding-left:0px;
    padding-right:0px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screen readers: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-o-min-device-pixel-ratio: 5/4),
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

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

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

h1{
	font-size:2em;
}

h2{
	font-size:1.75em;
}

h3{
	font-size: 1.5em;
}

h4{
	font-size: 1.35em;
}

h5{
	font-size: 1.15em;
}

@media only screen and (max-width:650px){
	h1{
		font-size:1.85em;
	}
}

@media only screen and (max-width:480px){
	h1{
		font-size:1.7em;
	}

	h2{
		font-size:1.55em;
	}

	h3{
		font-size: 1.4em;
	}

	h4{
		font-size: 1.25em;
	}

	h5{
		font-size: 1.05em;
	}
}

@media only screen and (max-width:360px){
	h1{
		font-size:1.5em;
	}

	h2{
		font-size:1.37em;
	}

	h3{
		font-size: 1.25em;
	}

	h4{
		font-size: 1.15em;
	}

	h5{
		font-size: 1.0em;
	}
}

/*------------------------------------------------------------------------------
*                               Header
*-----------------------------------------------------------------------------*/
body.inner header#header{
    background-image: url(../images/background/header_bg.jpg);
    background-size: cover;
    background-position: 50% 65%;
	margin-bottom:35px;
}

body.inner header#header #header-wrapper{
    min-height:35vh;
    width:100%;
    position:relative;
    overflow:visible;
    display:inline-block;
}

header#header div.nav-wrapper{
    width:100%;
    padding: 0px 60px;
    background-color: rgba(255, 255, 255, 0.48);
    height:100px;
	/*display:none;*/
}

/* Logo */
header#header div.nav-wrapper a.logo{
    float:left;
    width:20%;
    margin:25px 0px;
}

header#header div.nav-wrapper a.logo img{
    width:90%;
}

/* Nav */
header#header div.nav-wrapper nav{
    width:80%;
    float:left;
    height:inherit;
}

header#header div.nav-wrapper nav > ul{
    height:inherit;
    padding-left:80px;
    overflow:visible;
}

header#header div.nav-wrapper nav > ul > li{
    height:inherit
}

header#header div.nav-wrapper nav > ul > li.current-item{
}

header#header div.nav-wrapper nav > ul > li > a{
    height:inherit;
    padding:50px 25px 20px;
    font-size:1.3em;
    color: black;
    font-weight:300;
    text-transform: uppercase;
}

header#header div.nav-wrapper nav > ul > li.has-current > a,
header#header div.nav-wrapper nav > ul > li.current-item > a{
    height:115px;
}

header#header div.nav-wrapper nav ul li.has-current > a,
header#header div.nav-wrapper nav ul li.current-item > a{
    color:#04b376;
    background-color:#fff;
}

header#header div.nav-wrapper div.head-menu-button{
    display:none;
    line-height: 75px;
    font-size: 2.7em;
    text-align: center;
    width: 15%;
    float:left;
    cursor: pointer;
}

@media only screen and (max-width:1366px){
    header#header div.nav-wrapper a.logo{
        margin:30px 0px;
    }
    header#header div.nav-wrapper > nav > ul{
        padding-left:40px;
    }
    header#header div.nav-wrapper > nav > ul > li > a{
        padding: 50px 15px 20px;
    }
}

@media only screen and (max-width:1280px){
    header#header div.nav-wrapper{
        height:75px;
    }
    header#header div.nav-wrapper a.logo{
        margin:20px 0px;
    }
    header#header div.nav-wrapper nav ul li a{
        padding:30px 15px 15px;
        font-size:1.1em;
    }
    header#header div.nav-wrapper nav ul li.current-item a{
        height:85px;
    }
}

@media only screen and (max-width: 1024px){
    header#header div.nav-wrapper{
        padding: 0px 30px;
    }

    header#header div.nav-wrapper a.logo{
        display:none;
    }
    header#header div.nav-wrapper nav{
        width:100%;
		text-align: center;
    }
	header#header div.nav-wrapper > nav > ul{
        padding-left:0px;
		display:inline-block;
    }
}

@media only screen and (max-width: 768px){
    header#header div.nav-wrapper{
        padding:0px;
        height:auto;
        overflow:hidden;
    }
    header#header div.nav-wrapper a.logo{
        display:block;
        margin: 0%;
        width: 100%;
        background-color: #fff;
        padding: 10px 20% 20px;
    }
    header#header div.nav-wrapper a.logo img{
        width:100%;
    }
    header#header div.nav-wrapper nav{
        display:none;
    }
    header#header div.nav-wrapper div.head-menu-button{
        display:block;
    }
}

@media only screen and (max-width:480px){
    header#header div.nav-wrapper a.logo{
        padding: 10px 15% 20px;
    }
    header#header div.nav-wrapper div.head-menu-button{
        width:25%;
        line-height:55px;
        font-size:2.3em;
    }
}

@media only screen and (max-width:480px){
    header#header div.nav-wrapper a.logo{
        padding: 10px 10% 20px;
    }
}

/*----- Mobile Nav -----*/
header#header nav.mobile-nav{
    background-color:#fff;
    width:100%;
    position:absolute;
    top:75px;
    left:0px;
    z-index:10;
    border-bottom: 3px solid #000;
	visibility:hidden;
}

header#header nav.mobile-nav ul{
    list-style: none;
    padding-left:0;
    clear:left;
}

header#header nav.mobile-nav li{
    list-style: none;
    border-top:2px solid #000;
    overflow:hidden;
}

header#header nav.mobile-nav li a{
    padding: 10px 30px;
    color:#000;
    text-transform: uppercase;
    font-weight:300;
    font-size:1.4em;
    width:100%;
    display:block;
    text-align:left;
}

header#header nav.mobile-nav li ul li.current-item > a,
header#header nav.mobile-nav li.has-current > a,
header#header nav.mobile-nav li.current-item > a{
    color:#04b376;
}

header#header nav.mobile-nav > ul > li.has-sub > a{
    width:85%;
    float:left;
}

header#header nav.mobile-nav > ul > li:last-child > a{
    text-align: center;
    width:100%;
}

header#header nav.mobile-nav > ul > li > div{
    width: 15%;
    float: right;
    line-height: 48px;
    font-size: 1.8em;
    text-align: center;
    border-left: 2px solid #000;
    cursor: pointer;
}

header#header nav.mobile-nav > ul > li > div i{
    font-weight:bold;
    transition: 0.35s;
}

header#header nav.mobile-nav > ul > li.open > div i{
    transform: rotateX(180deg);
}

header#header nav.mobile-nav .subnav{
    display:none;
    background-color:#ddd;
}

/*----- Logo and Moto -----*/
body.inner header#header div.logo-moto{
    position: relative;
    margin-bottom:50px;
    margin-top:75px;
}

body.inner header#header div.logo-moto div.text-moto{
    text-align:center;
    color:#fff;
}

body.inner header#header div.logo-moto div.text-moto h2{
    font-size:3em;
    text-shadow:0 2px 10px #4c4e51;
    font-weight:200;
}
body.inner header#header div.logo-moto div.text-moto h2 span{
    font-weight:400;
}

@media only screen and (max-width: 1024px){
    body.inner header#header div.logo-moto div.text-moto h2{
        font-size:2em;
    }
}

@media only screen and (max-width: 768px){
    body.inner header#header div.logo-moto{
        margin-top:25px;
    }
    body.inner header#header div.logo-moto div.text-moto h2{
        font-size:1.75em;
    }
}

@media only screen and (max-width: 480px){
    body.inner header#header div.logo-moto{
        margin-bottom:25px;
    }
}

@media only screen and (max-width: 360px){
    body.inner header#header div.logo-moto div.text-moto h2{
        font-size:1.5em;
    }
}

/*------------------------------------------------------------------------------
*                               Body
*-----------------------------------------------------------------------------*/



/*------------------------------------------------------------------------------
*                               Footer
*-----------------------------------------------------------------------------*/
footer#footer{
    margin-top:70px;
    border-top:1px solid #979797;
    border-bottom:2px solid #979797;
    margin-bottom:80px;
    overflow:hidden;
}

footer#footer nav{
    float:left;
    width:100%;
	text-align:center;
}

footer#footer nav ul{
    display:inline-block;
}

footer#footer nav ul li a{
    font-size:1.25em;
    color: #979797;
    padding:15px 30px;
}

footer#footer nav ul li.current-item a{
    color:#04b376;
}

@media only screen and (max-width: 980px){
	footer#footer nav ul li a{
		padding:15px 20px;
	}
}

@media only screen and (max-width: 768px){
	footer#footer{
		border:none;
		margin-top:0px;
	}
	
	footer#footer nav{
		display:none;
	}
}