/* CD AUTO HIDE HEADER */
.cd-auto-hide-header {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #efefee;
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-transition: -webkit-transform .5s;
    transition: -webkit-transform .5s;
    transition: transform .5s;
    transition: transform .5s, -webkit-transform .5s;
}
.cd-auto-hide-header::after {
    clear: both;
    content: "";
    display: block;
}
.cd-auto-hide-header.is-hidden {
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
}
@media only screen and (min-width: 992px) {
    .cd-auto-hide-header {
        height: 80px;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .cd-auto-hide-header.is-scrolling{
        background: #fff;
        border-bottom: 1px solid #efefee;
    }
}

/* LOGO */
.cd-auto-hide-header .logo,
.cd-auto-hide-header .nav-trigger {
    position: absolute;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.cd-auto-hide-header .logo{
    left: 15px;
}
.cd-auto-hide-header .logo a, 
.cd-auto-hide-header .logo h1{
    display: block;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -3px;
    text-decoration: none;
    color: #053393;
    color: #303030;
    font-size: 28px;
    font-weight: 700;
    
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
}
.cd-auto-hide-header .logo h1 span{
    color: #FFC81D;
    display: none;
}
@media only screen and (min-width: 992px) {
    .cd-auto-hide-header .logo{
        left: 4%;
    }
    .cd-auto-hide-header .logo a, 
    .cd-auto-hide-header .logo h1{
        font-size: 38px;
        color: #fff;
    }
    .cd-auto-hide-header.is-scrolling .logo a, 
    .cd-auto-hide-header.is-scrolling .logo h1{
        color: #303030;
    }
}
@media only screen and (min-width: 1120px) {
    .cd-auto-hide-header .logo{
        left: 6.5%;
    }
}

/* NAV TRIGGER */
.cd-auto-hide-header .nav-trigger {
    /* vertically align its content */
    display: table;
    height: 100%;
    padding: 0 1em;
    font-size: 12px;
    text-transform: none;
    text-decoration: none;
    color: #25283D;
    font-weight: 700;
    right: 0;
    border-left: 1px solid #f2f2f2;
}
.cd-auto-hide-header .nav-trigger span {
    /* vertically align inside parent element */
    display: table-cell;
    vertical-align: middle;
}
.cd-auto-hide-header .nav-trigger em, 
.cd-auto-hide-header .nav-trigger em::after, 
.cd-auto-hide-header .nav-trigger em::before {
    /* this is the menu icon */
    display: block;
    position: relative;
    height: 2px;
    width: 22px;
    background-color: #25283D;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.cd-auto-hide-header .nav-trigger em {
    /* this is the menu central line */
    margin: 6px auto 14px;
    -webkit-transition: background-color .2s;
    transition: background-color .2s;
}
.cd-auto-hide-header .nav-trigger em::before, 
.cd-auto-hide-header .nav-trigger em::after {
    position: absolute;
    content: '';
    left: 0;
    -webkit-transition: -webkit-transform .2s;
    transition: -webkit-transform .2s;
    transition: transform .2s;
    transition: transform .2s, -webkit-transform .2s;
}
.cd-auto-hide-header .nav-trigger em::before {
    /* this is the menu icon top line */
    -webkit-transform: translateY(-6px);
    -ms-transform: translateY(-6px);
    transform: translateY(-6px);
}
.cd-auto-hide-header .nav-trigger em::after {
    /* this is the menu icon bottom line */
    -webkit-transform: translateY(6px);
    -ms-transform: translateY(6px);
    transform: translateY(6px);
}
@media only screen and (min-width: 992px) {
    .cd-auto-hide-header .nav-trigger {
        display: none;
    }
}
.cd-auto-hide-header.nav-open .nav-trigger em {
    /* transform menu icon into a 'X' icon */
    background-color: rgba(255, 255, 255, 0);
}
.cd-auto-hide-header.nav-open .nav-trigger em::before {
    /* rotate top line */
    -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.cd-auto-hide-header.nav-open .nav-trigger em::after {
    /* rotate bottom line */
    -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}

/* CD PRIMARY NAV */
.cd-primary-nav {
    display: inline-block;
    float: right;
    height: 100%;
    padding-right: 15px;
}
.cd-primary-nav > ul {
    position: absolute;
    z-index: 2;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.cd-primary-nav > ul a {
    /* target primary-nav links */
    display: block;
    margin: 0;
    padding: 12px 15px;
    color: #303030;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
    
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
}
.cd-primary-nav > ul a:hover, 
.cd-primary-nav > ul a.active {
    opacity: 0.75;
}
@media only screen and (min-width: 992px) {
    .cd-primary-nav {
        /* vertically align its content */
        display: table;
        padding-right: 4%;
    }
    .cd-primary-nav > ul {
        /* vertically align inside parent element */
        display: table-cell;
        vertical-align: middle;
        /* reset mobile style */
        position: relative;
        width: auto;
        top: 0;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }
    .cd-primary-nav > ul::after {
        clear: both;
        content: "";
        display: block;
    }
    .cd-primary-nav > ul li {
        display: inline-block;
    }
    .cd-primary-nav > ul li:last-of-type {
        margin-right: 0;
    }
    .cd-primary-nav > ul a {
        /* reset mobile style */
        height: auto;
        line-height: normal;
        margin: 0 0 0 20px;
        padding: 0;
        border: none;
        font-size: 16px;
        color: #fff;
    }
    .cd-primary-nav > ul a.book-a-charter{
        padding: 8px 18px;
        background: #053393;
        color: #fff;
        font-size: 14px;
        font-weight: 700;

        -webkit-border-radius: 4px;
        -moz-border-radius: 35px;
        border-radius: 35px;
    }
    .cd-primary-nav > ul a.phone{
        margin: 0 0 0 18px;
    }
    .cd-auto-hide-header.is-scrolling .cd-primary-nav > ul a{
        color: #303030;
    }
    .cd-auto-hide-header.is-scrolling .cd-primary-nav > ul a.book-a-charter{
        color: #fff;
    }
}
@media only screen and (min-width: 1120px) {
    .cd-primary-nav {
        padding-right: 7%;
    }
}

.nav-open .cd-primary-nav ul,
.cd-primary-nav ul:target {
    /* 
    show primary nav - mobile only 
    :target is used to show navigation on no-js devices
    */
    display: block;
}
@media only screen and (min-width: 992px) {
    .nav-open .cd-primary-nav ul,
    .cd-primary-nav ul:target {
        display: table-cell;
    }
}

/* -------------------------------- 

1. CD HERO

-------------------------------- */
.cd-hero {
    /* vertically align its content */
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 0;
    height: 575px;
    box-shadow: inset 0 -1px 0 rgba(210, 210, 210, 0.5);
}
.cd-hero .cd-hero-content {
    /* vertically align inside parent element */
    /* display: table-cell;
    vertical-align: middle; */
    display: block;
    text-align: center;
}
.cd-hero .main-promo .item{
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    height: 575px;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
}
.cd-hero .main-promo .item .overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
}
.cd-hero .main-promo .item h1{
    position: relative;
    display: block;
    margin: 165px 0 0;
    padding: 0;
    font-size: 68px;
    font-weight: 900;
    color: #fff;
}
.cd-hero .main-promo .item h2{
    position: relative;
    display: block;
    margin: 12px 0 0;
    padding: 0;
    font-size: 28px;
    font-weight: 400;
    color: #fff;
}
.cd-hero .main-promo .item a{
    position: relative;
    display: inline-block;
    margin: 50px 8px 0;
    padding: 14px 22px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    background: #053393;
    text-decoration: none;
    
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    border-radius: 30px;
}
.cd-hero .main-promo .item a.secondary{
    padding: 14px 30px;
    background: #fff;
    color: #303030;
}
@media only screen and (max-width: 1200px) {
    .cd-hero .main-promo .item h1{
        font-size: 58px;
    }
    .cd-hero .main-promo .item h2{
        font-size: 26px;
    }
}
@media only screen and (max-width: 992px) {
    .cd-hero {
        height: 315px;
        margin-top: 60px;
    }
    .cd-hero .main-promo .item{
        height: 350px;
    }
    .cd-hero .main-promo .item h1{
        margin: 60px 0 0;
        font-size: 32px;
    }
    .cd-hero .main-promo .item h2{
        margin: 10px 0 0;
        font-size: 21px;
    }
    .cd-hero .main-promo .item a{
        margin: 35px 4px 0;
        padding: 12px 20px;
        color: #fff;
        font-size: 12px;
    }
    .cd-hero .main-promo .item a.secondary{
        padding: 12px 24px;
    }
}
@media only screen and (max-width: 768px) {
    .cd-hero {
        height: 315px;
    }
    .cd-hero .main-promo .item h1{
        margin: 35px auto 0;
        max-width: 300px;
        font-size: 36px;
        line-height: 1.1;
    }
    .cd-hero .main-promo .item h2{
        margin: 10px auto 0;
        max-width: 250px;
        font-size: 14px;
        line-height: 1.4;
    }
}

.cd-hero .owl-prev,
.cd-hero .owl-next{
    position: absolute;
    top: 270px;
	display: inline-block;
	zoom: 1;
	*display: inline;/*IE7 life-saver */
	margin: 0;
	padding: 0;
    height: 55px;
    width: 55px;
	font-size: 38px;
	-webkit-border-radius: 100%;
	-moz-border-radius: 100%;
	border-radius: 100%;
	background: transparent;
    color: #a3a3a3;
    background: #fff;
    cursor: pointer;
    
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    
    opacity: 0.25;
}
.cd-hero .owl-prev{
    left: 50px;
    text-indent: -2px;
}
.cd-hero .owl-next {
    right: 50px;
    text-indent: 2px;
}
.cd-hero .owl-prev:hover,
.cd-hero .owl-next:hover{
    opacity: 1;
    color: #053393;
}
.cd-hero .owl-prev .fa,
.cd-hero .owl-next .fa{
    line-height: 55px;
}
@media screen and (max-width: 992px){
    .cd-hero .owl-prev,
    .cd-hero .owl-next{
        display: none;
    }
}

.cd-hero .owl-dots{
    position: absolute;
    display: inline-block;
    bottom: 35px;
    left: 0;
    right: 0;
}
.cd-hero .owl-dots .owl-dot{
    display: inline-block;
    margin: 0 5px;
    height: 6px;
    width: 55px;
    background: #fff;
    cursor: pointer;
    
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    transition: all 0.25s;
}
.cd-hero .owl-dots .owl-dot.active{
    background: #053393;
    border-color: #053393;
}
@media screen and (max-width: 992px){
    .cd-hero .owl-dots{
        bottom: 60px;
    }
    .cd-hero .owl-dots .owl-dot{
        margin: 0 4px;
        height: 4px;
        width: 40px;
    }
}

/* -------------------------------- 

2. Auto-Hiding Navigation - with Sub Nav

-------------------------------- */
.cd-secondary-nav {
    position: relative;
    z-index: 1;
    clear: both;
    width: 100%;
    height: 50px;
    
    /* Force Hardware Acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-transition: -webkit-transform .5s;
    transition: -webkit-transform .5s;
    transition: transform .5s;
    transition: transform .5s, -webkit-transform .5s;
    
    background: #fff;
    box-shadow: inset 0 -1px 0 rgba(210, 210, 210, 0.5);
}
.cd-secondary-nav::after {
    /* gradient on the right - to indicate it's possible to scroll */
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    height: 100%;
    width: 35px;
    background: transparent;
    background: -webkit-linear-gradient(right, #25283D, rgba(37, 40, 61, 0));
    background: linear-gradient(to left, #25283D, rgba(37, 40, 61, 0));
    pointer-events: none;
    -webkit-transition: opacity .2s;
    transition: opacity .2s;
    
    display: none;
}
.cd-secondary-nav.nav-end::after {
    opacity: 0;
}
.cd-secondary-nav ul, 
.cd-secondary-nav li, 
.cd-secondary-nav a {
    height: 100%;
}
.cd-secondary-nav ul {
    /* enables a flex context for all its direct children */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cd-secondary-nav ul::after {
    clear: both;
    content: "";
    display: block;
}
.cd-secondary-nav li {
    display: inline-block;
    float: left;
    /* do not shrink - elements float on the right of the element */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}
.cd-secondary-nav li:last-of-type {
    padding-right: 20px;
}
.cd-secondary-nav a {
    display: block;
    color: #212121;
    opacity: .6;
    line-height: 50px;
    padding: 0;
    margin: 0 20px 0 0;
    text-decoration: none;
}
.cd-secondary-nav a:hover, 
.cd-secondary-nav a.active {
    opacity: 1;
}
@media only screen and (min-width: 992px) {
    .cd-secondary-nav {
        height: 70px;
        overflow: visible;
    }
    .cd-secondary-nav::after{
        display: none;
    }
    .cd-secondary-nav ul {
        /* reset mobile style */
        display: block;
        text-align: left;
    }
    .cd-secondary-nav li {
        /* reset mobile style */
        float: none;
        -webkit-flex-shrink: 1;
        -ms-flex-negative: 1;
        flex-shrink: 1;
    }
    .cd-secondary-nav li.get-a-quote{
        float: right;
        padding: 0;
    }
    .cd-secondary-nav a {
        margin: 0 25px 0 0;
        line-height: 70px;
        font-size: 16px;
        font-weight: 700;
    }
    .cd-secondary-nav a.active {
        /* box-shadow: inset 0 -3px #8F3985; */
    }
    .cd-secondary-nav li.get-a-quote a{
        margin: 16px 0 0;
        margin-right: 0;
        padding:10px 18px;
        line-height: 1;
        font-size: 14px;
        font-weight: 700;
        background: #053393;
        color: #fff;
        -webkit-border-radius: 35px;
        -moz-border-radius: 35px;
        border-radius: 35px;
        opacity: 1;
    }
}

/* -------------------------------- 

3. Auto-Hiding Navigation - with Sub Nav + Hero Image

-------------------------------- */
.cd-secondary-nav.fixed {
    position: fixed;
    top: 60px;
}
.cd-secondary-nav.slide-up {
    -webkit-transform: translateY(-60px);
    -ms-transform: translateY(-60px);
    transform: translateY(-60px);
}
@media only screen and (min-width: 992px) {
    .cd-secondary-nav.fixed {
        top: 80px;
        /* fixes a bug where nav and subnab move with a slight delay */
        box-shadow: 0 -6px 0 #25283D;
        box-shadow: inset 0 -1px 0 rgba(210, 210, 210, 0.5);
    }
    .cd-secondary-nav.slide-up {
        -webkit-transform: translateY(-80px);
        -ms-transform: translateY(-80px);
        transform: translateY(-80px);
    }
}

/* -------------------------------- 

Main content

-------------------------------- */
.cd-main-content {
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
}
.cd-main-content section{
    padding: 50px 0;
}
.cd-main-content.sub-nav {
    /* to be used if there is sub nav */
    padding-top: 110px;
}
.cd-main-content.sub-nav-hero {
    /* to be used if there is hero image + subnav */
    padding-top: 0;
}
.cd-main-content.sub-nav-hero.secondary-nav-fixed {
    margin-top: 50px;
}
@media only screen and (min-width: 992px) {
    .cd-main-content {
        padding-top: 80px;
    }
    .cd-main-content section{
        padding: 25px 0;
    }
    .cd-main-content.sub-nav {
        padding-top: 150px;
    }
    .cd-main-content.sub-nav-hero.secondary-nav-fixed {
        margin-top: 70px;
    }
}

/*
	adjust the positioning of in-page links
	http://nicolasgallagher.com/jump-links-and-viewport-positioning/
*/
.cd-main-content.sub-nav :target::before,
.cd-main-content.sub-nav-hero :target::before {
    display: block;
    content: "";
    margin-top: -50px;
    height: 50px;
    visibility: hidden;
}
@media only screen and (min-width: 992px) {
    .cd-main-content.sub-nav :target::before,
    .cd-main-content.sub-nav-hero :target::before {
        margin-top: -70px;
        height: 70px;
    }
}