:root {
    --main: #313067;
    --secondary: #9c1d3f;
    --third: #009257;
}

body, html {
    height: 100%;
}

body {
    margin: 0;
    background: #fff;
    min-width: 250px;
}

html, body, p, li, dd, td, input, select, textarea {
    color: #666;
    line-height: 150%;
    font-size: 1.0em;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

b, strong {
    font-weight: 800;
}

#preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff url(../images/preloader.svg) center center no-repeat;
}

img a, a img {
    border: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    max-width: 1440px;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

/* Header                                           */
/* ------------------------------------------------ */
#header {
    height: 90px;
    background: #fff;
}

#header .wrapper {
    padding: 0;
    position: relative;
}

#headerlogo {
    position: absolute;
    top: 20px;
    left: 25px;
    max-width: 340px;
    height: auto;
}

#headerpic {
    height: 600px;
}

.flexslider, .flex-viewport, ul.slides, ul.slides li {
    /* 170px is the header height + the navbar height */
    height: -moz-calc(100vh - 170px);
    height: -webkit-calc(100vh - 170px);
    height: -o-calc(100vh - 170px);
    height: calc(100vh - 170px);
    overflow: hidden;
    background: #000;
}

.flexslidersubpage {
    max-height: 700px;
}

.flexslidersubpage ul.slides li {
    transform: translate(0%, -20%);
}

.flexslider img {
    width: 100%;
    position: relative;
}

.slides, .slides > li, .singleslide {
    margin: 0;
    padding: 0;
    list-style: none;
    display: -webkit-box!important;
    display: -moz-box!important;
    display: -ms-flexbox!important;
    display: -webkit-flex!important;
    display: flex!important;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.flexslider {
    position: relative;
}

.flexslider > .wrapper {
    text-align: right;
    box-sizing: border-box;
    position: absolute;
    top: 20px;
    padding-right: 36px;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 99;
}

#headerpic {
    font-size: 34px;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

#headerpic .wrapper, .flex-caption .wrapper {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#headerpic h1, .flexslider h1 {
    color: #fff;
    font-size: 64px;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}

#headerbooknow {
    position: relative;
}

#headerbooknow .wrapper {
    text-align: right;
    left: 50%;
    transform: translate(-50%, -0%);
    position: absolute;
    box-sizing: border-box;
    top: 20px;
    padding-right: 36px;
    z-index: 10;
}

.flexslider a.readmore, #headerpic a.readmore, #contactstrip a.readmore {
    color: #fff;
    border: 2px solid #fff;
    background: var(--secondary) url(../images/right-arrow-white.png) no-repeat;
    background-position: right 14px center;
    background-size: 20px;
}

.flexslider a.readmore:hover, #headerpic a.readmore:hover, #contactstrip a.readmore:hover {
    color: #fff;
    border: 2px solid #fff;
    background: var(--main) url(../images/right-arrow-white.png) no-repeat;
    background-position: right 8px center;
    background-size: 20px;
}

/* Emergency message                                */
/* ------------------------------------------------ */
#emergency-message {
    background: var(--third);
    padding: 20px;
    overflow: hidden;
}

#emergency-message-content {
    padding-right: 30px;
}

#emergency-message-content * {
    color: #fff;
}


#emergency-message-content p {
    margin: 0 0 5px 0;
    font-size: 15px;
    padding: 0;
}

#emergency-message-content h5 {
    font-size: 20px;
    margin: 0 0 6px 0;
    line-height: 120%;
}

#emergency-message-content span {
    height: 5px;
    width: 10px;
    display: block;
}

#emergency-message-content br {
    height: 100px;
}

#closepopup {
    cursor: pointer;
}

#closepopup img {
    width: 26px;
    height: auto;
    position: absolute;
    right: 30px;
    top: -4px;
}

.emergencyhidden {
    display: none;
}

/* Hamburger menu                                   */
/* ------------------------------------------------ */
#menu-toggle {
    display: none;
    float: right;
    margin-right: 0;
}

#hamburger-text {
    float: right;
    padding-left: 10px;
    line-height: 30px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--main);
    width: 35px;
}

#hamburger-text span {
    display: none;
}

#hamburger-text.is-active div {
    display: none;
}

#hamburger-text.is-active span {
    display: block;
}

.hamburger {
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 10px 25px 0 25px;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger-box {
    width: 36px;
    height: 30px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 100%;
    height: 4px;
    background-color: var(--main);
    border-radius: 2px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -11px;
}

.hamburger-inner::after {
    bottom: -11px;
}


.hamburger .hamburger-inner {
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger .hamburger-inner::before {
    transition: top 0.2s 0.14s ease, opacity 0.2s ease;
}

.hamburger .hamburger-inner::after {
    transition: bottom 0.2s 0.14s ease, transform 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    transition-delay: 0.14s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.2s ease, opacity 0.2s 0.14s ease;
}
.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.2s ease, transform 0.2s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Menu                                             */
/* ------------------------------------------------ */
#navbar {
    height: 50px;
    padding: 20px 25px 0 0;
    position: relative;
    float: right;
    clear: right;
}

header ul.menu, header ul.menu ul {
    padding: 0;
    list-style-type: none;
    margin: 0 auto;
    display: block;
    /*text-align: center;*/
}

header ul.menu ul:after {
    content: ""; clear: both; display: block;
}

header ul.menu li {
    padding: 0;
    background: none;
    display: block;
}

header ul.menu > li {
    display: inline-block;
    *display: inline;
    zoom: 1;
    margin-right: -4px; /* remove the 4px gap inline elements have */
}

header ul.menu li a {
    color: var(--main);
    text-decoration: none;
    line-height: 50px;
    padding: 0 15px;
    font-size: 18px;
    display: block;
    -webkit-transition: background-color 0.2s ease-out;
    -moz-transition: background-color 0.2s ease-out;
    -ms-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}


/* header ul.menu li:first-child a {
    padding-left: 0;
} */


header ul.menu li a:hover, header ul.menu li.current-menu-item > a:hover, header ul.menu li.current-menu-parent > a:hover {
    color: var(--secondary);
}

header ul.menu li.current-menu-item > a, header ul.menu li.current-menu-parent > a, header ul.menu li.current-menu-ancestor > a {
    font-weight: bold;
    color: var(--secondary);
}

header ul.menu li.menu-item-has-children, header ul.menu li.menu-item-has-children > a, header ul.menu ul.sub-menu li.menu-item-has-children > a {
    position: relative;
}

header ul.menu li.menu-item-has-children > a, header ul.menu ul.sub-menu li.menu-item-has-children > a {
    padding-right: 30px;
}

/* give the dropdowns an indicator */
header ul.menu li.menu-item-has-children > a:after {
    width: 14px;
    top: 4%;
    content: url("../images/submenu-down-dark.svg");
    right: 10px;
    position: absolute;
}

header ul.menu li.menu-item-has-children > a.close:after {
    content: url("../images/submenu-up-dark.svg");
}

/* dropdowns */
header ul.menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 50px;
    min-width: 200px;
    z-index: 9999;
}

header ul.menu ul.sub-menu > li {
    position: relative;
    background: #fff;
    border-bottom: 1px solid #ddd;
    text-align: left;
    float: none;
}

header ul.menu ul.sub-menu li.menu-item-has-children > a:after {
    content: url("../images/submenu-down-dark.svg");
    right: 8px;
}

header ul.menu ul.sub-menu li.menu-item-has-children > a.close:after {
    content: url("../images/submenu-up-dark.svg");
}

/* the last dropdown */
header ul.menu li.menu-item-has-children:last-child ul.sub-menu li {
    min-width: 250px;
}

header ul.menu li.menu-item-has-children:last-child ul.sub-menu {
    right: 0;
}

header ul.menu ul.sub-menu > li a:after {
    height: 22px;
    line-height: 22px;
}

header ul.menu li > ul {
    -moz-box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
}

header ul.menu ul.sub-menu > li a {
    background: none;
    color: #666;
    font-size: 16px;
    text-shadow: none;
    padding: 15px 20px;
    display: block;
    line-height: 25px;
    text-decoration: none;
}


header ul.menu ul.sub-menu > li.current-menu-item > a, header ul.menu ul.sub-menu > li.current-menu-parent > a, header ul.menu ul.sub-menu > li.current-menu-ancestor > a {
    color: var(--main);
}

header ul.menu ul.sub-menu > li a:hover {
    background: var(--main);
    color: #fff;
}

header ul.menu ul.sub-menu > li:last-child {
    border-bottom: 0;
}


/*sub submenus  */
header ul.menu ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
}

header ul.menu ul.sub-menu ul.sub-menu > li a {
    min-width: 160px;
}

@media screen and (min-width: 971px) {
    header ul.menu {
        display: block !important;
    }
}

@media screen and (max-width: 970px) {
    #navbar {
        float: none;
    }

    #navbar nav > ul {
        display: none;
    }

    #navbar .wrapper {
        padding: 0;
    }

    #menu-toggle {
        display: block;
    }

    header ul.menu {
        display: none;
        position: absolute;
        top: 90px;
        width: 100%;
        z-index: 99;
        -moz-box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
        -webkit-box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    }

    header ul.menu li, header ul.menu ul.sub-menu > li {
        text-align: center;
    }

    header ul.menu li {
        float: none;
        display: block;
        list-style: none;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #ddd;
        background-color: #fff;
    }

    header ul.menu li a {
        line-height: 150%;
        padding: 14px 60px;
        margin: 0;
        color: #666;
        box-sizing: border-box;
    }

    header ul.menu > li {
        margin-right: 0; /* clear the 4px negative margin set above */
    }

    header ul.menu li a, header ul.menu li.menu-item-has-children > a, header ul.menu ul.sub-menu li.menu-item-has-children > a {
        padding: 14px 60px;
    }

    header ul.menu li.current_page_item > a, header ul.menu > li.current-menu-parent > a, header ul.menu li.current-menu-ancestor > a {
        color: var(--main);
        background: none;
    }

    /* plus and minus when in responsive mode */
    header ul.menu li.menu-item-has-children > a:after, header ul.menu ul.sub-menu li.menu-item-has-children > a:after {
        content: '\002B';
        top: auto;
        right: 16px;
        font-size: 24px;
    }

    header ul.menu li.menu-item-has-children > a.close:after, header ul.menu ul.sub-menu li.menu-item-has-children > a.close:after {
        content: '\2012';
        top: auto;
    }

    header ul.menu li a:hover, header ul.menu ul.sub-menu > li a:hover, header ul.menu li.current-menu-item > a:hover, header ul.menu li.current-menu-parent > a:hover {
        color: #fff;
        background: var(--main);
    }

    header ul.menu li:last-child {
        border-bottom: none;
    }

    /*submenu items */
    header ul.menu ul.sub-menu, header ul.menu ul.sub-menu ul.sub-menu {
        position: relative;
        left: auto;
        top: auto;
    }

    header ul.menu li:hover > ul {
        display: none;
    }


    /*header ul.menu ul.sub-menu > li {
        padding: 0;
        text-align: left;

    }*/

    header ul.menu ul.sub-menu > li a {
        font-size: 18px;
        padding: 12px 40px;
    }

    header ul.menu li > ul {
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    header ul.menu ul.sub-menu > li:last-child, header ul.menu ul.sub-menu > li:first-child {
        padding: 0;
    }

    header ul.menu ul > li:first-child {
        border-top: 1px solid #cccccc;
    }

    /*sub sub menus */
    header ul.menu ul.sub-menu ul.sub-menu > li a {
        padding-left: 60px;
    }
}

@media screen and (max-width: 400px) {
    #hamburger-text {
        display: none;
    }
}

/* Responsive elements                              */
/* ------------------------------------------------ */
@media screen and (max-width: 1920px) {
    .flexslider, .flexslidersubpage, .flex-viewport, ul.slides, ul.slides li {
        max-height: 700px;
        height: auto;
    }

    .flexslidersubpage ul.slides li {
        transform: translate(0%, 0);
    }
}

@media screen and (max-width: 1200px) {
    #headerpic h1, .flex-caption h1 {
        font-size: 42px;
    }
}

@media screen and (max-width: 970px) {
    body.home #headerpic {
        height: 600px;
        text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
    }

    body:not(.home) #headerpic {
        height: 200px;
    }
}

@media screen and (max-width: 620px) {
    .wrapper {
        padding: 0 30px;
    }

    #headerlogo {
        width: 200px;
        margin: 14px 0 0 -14px;
    }

    #headerpic h1, .flex-caption h1 {
        font-size: 28px;
    }
}

/* iOS */
@media screen and (max-width: 380px) {

}