#site-header {
	z-index: 101;
    display: flex;
    flex-flow: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s ease-out;
}

body.has-sticky-header #site-header,
body.featured-media-none #site-header {
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    background-color: #005460;
}

body.nav-up #site-header {
    transform: translateY(-100%);
}

.site-header-inner {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
    flex: 1;
    width: 100%;
    padding: 20px 20px 25px;
    margin: 0 15px;
}


/* ============================================================= */
/* Logo
/* ============================================================= */

#header-logo-wrapper {
    grid-area: logo;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 34px;
}

#header-logo-wrapper a {
    display: flex;
    width: auto;
    height: 100%;
}

#header-logo-wrapper svg {
    height: 100%;
    width: auto;
}

/* ============================================================= */
/* Navigation Burger
/* ============================================================= */

#header-burger-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#header-burger-wrapper .nav-burger {
    cursor: pointer;
}

#header-burger-wrapper .nav-burger .bar {
    width: 45px;
    height: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background-color: #fff;
    border-radius: 0;
    margin: 0;
}

#header-burger-wrapper .nav-burger .bar:not(:first-child) {
    margin-top: 10px;
}

/* ============================================================= */
/* Navigation Menus
/* ============================================================= */

#site-header .navigation-wrapper {
    display: none;
    width: auto;
    align-items: center;
}

#site-header ul.menu {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#site-header ul.menu li {
    position: relative;
    cursor: default;
}

#site-header ul.menu a {
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 2px 3px rgba(0,0,0,0.4);
}

/* Sub Menu
/* ------------------------------------------------------------- */

#site-header ul.sub-menu {
    display: none;
}

/* Primary Left
/* ------------------------------------------------------------- */

#site-header #navigation-primary-left-wrapper {
    grid-area: nav-primary-left;
    justify-content: flex-end;
}

/* Primary Right
/* ------------------------------------------------------------- */

#site-header #navigation-primary-right-wrapper {
    grid-area: nav-primary-right;
}


/* ============================================================= */
/* Menu Modal
/* ============================================================= */

#menu-modal {
    z-index: 101;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #005460;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    overflow-y: auto;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

.menu-modal-inner {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Menu Modal Logo
/* ------------------------------------------------------------- */

#menu-modal-logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 34px;
    margin: 50px 0 25px;
}

#menu-modal-logo-wrapper a {
    display: flex;
    width: auto;
    height: 100%;
}

#menu-modal-logo-wrapper svg {
    height: 100%;
    width: auto;
}

/* Menu Modal Burger
/* ------------------------------------------------------------- */

#menu-modal-burger-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 35px;
}

#menu-modal-burger-wrapper .nav-burger {
    cursor: pointer;
}

#menu-modal-burger-wrapper .nav-burger .bar {
    width: 45px;
    height: 4px;
    background-color: #fff;
    border-radius: 0;
    margin: 0;
}

#menu-modal-burger-wrapper  .nav-burger .bar:not(:first-child) {
    margin-top: 10px;
}

#menu-modal-burger-wrapper .nav-burger .bar:nth-child(1) {
    transform: translateY(14px) rotate(45deg);
}

#menu-modal-burger-wrapper .nav-burger .bar:nth-child(2) {
    opacity: 0;
}

#menu-modal-burger-wrapper .nav-burger .bar:nth-child(3) {
    transform: translateY(-14px) rotate(-45deg);
}

/* Menu Modal Navigation
/* ------------------------------------------------------------- */

#menu-modal-navigation-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

#menu-modal ul {
    display: flex;
    flex-flow: column nowrap;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    list-style: none;
    padding: 0 0 50px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

#menu-modal ul li {
    font-size: 26px;
    text-align: center;
    padding: 0 0.5em;
    margin: 0 20px;
	cursor: pointer;
}

#menu-modal ul.menu li.search-button {
    margin-top: 20px;
}

#menu-modal ul a {
    display: inline-block;
    position: relative;
    color: #fff;
    font-family: "Spezia Serif", "Brown LL", Roboto, Arial, sans-serif;
    font-size: 1em;
    font-weight: 900;
    line-height: 1.25;
    text-transform: none;
    text-decoration: none;
    text-underline-offset: 2px;
	cursor: pointer;
}

#menu-modal ul.menu li.search-button a {
    border: 1px solid currentColor;
    font-family: "Brown LL", Roboto, Arial, sans-serif;
    font-size: 0.8em;
    font-weight: 400;
    padding: 0.2em 0.5em;
}

#menu-modal ul.menu li.current-menu-item > a,
#menu-modal ul.menu li.current-menu-ancestor > a {
    font-style: italic;
    text-decoration: underline;
}

#menu-modal ul.menu li.menu-item-has-children > a:after {
    content: "\e903";
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: calc(100% + 0.6em);
    height: 100%;
    font-family: 'toferer-icons' !important;
    font-size: 0.5em;
    font-style: normal;
    font-weight: normal;
    transform: translateY(8%);
}

#menu-modal ul.menu li.nav-back-button a:before {
    content: "\e902";
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: calc(100% + 0.6em);
    height: 100%;
    font-family: 'toferer-icons' !important;
    font-size: 0.5em;
    font-style: normal;
    font-weight: normal;
    transform: translateY(8%);
}

/* Menu Modal Background Logo
/* ------------------------------------------------------------- */

#menu-modal-bg-logo-wrapper {
    display: flex;
    justify-content: center;
    z-index: -1;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 200px;
    width: 100%;
    opacity: 0.15;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#menu-modal-bg-logo-wrapper svg {
    height: 100%;
    width: auto;
    transform: translateY(5%);
}


/* ============================================================= */
/* Search
/* ============================================================= */

.search-button > a {
    position: relative;
    border: 1px solid currentColor;
    padding: 0.2em 0.5em;
}

.search-button > a:before {
    content: "\e910";
    display: inline-block;
    font-family: 'toferer-icons' !important;
    font-size: 0.8em;
    margin-right: 0.5em;
}

#search-modal {
    display: flex;
    align-items: center;
    z-index: 1000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    background-color: #fff;
    transform: translate(0,-100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

#search-modal.search-active {
    transform: translate(0,0);
    opacity: 1;
}

.search-modal-inner > .row {
    align-items: center;
}

#search-modal .search-field {
    -webkit-box-shadow: none;
    box-shadow: none;
    background: none;
    border: none;
    border-radius: 0;
    outline: 0;
    color: inherit;
    font-size: 20px;
    height: 100%;
    width: 100%;
}

#search-modal .search-field::-ms-clear {
    display: none;
}

#search-modal .search-submit {
    position: absolute;
    right: -999990px;
}

#search-modal .search-close-icon {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
}

#search-modal .search-close-icon .bar {
    width: 30px;
    height: 4px;
    background-color: #005460;
    border-radius: 0;
    margin: 0;
    transform: translate(0, 2px) rotate(45deg);
    transition: background-color 0.15s linear;
}

#search-modal .search-close-icon .bar:not(:first-child) {
    transform: translate(0, -2px) rotate(-45deg);
}

#search-modal .search-close-icon:hover .bar {
    background-color: #cdce00;
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .site-header-inner {
        padding-top: 35px;
        padding-bottom: 35px;
        margin-left: 40px;
        margin-right: 40px;
    }

    #header-logo-wrapper {
        height: 34px;
    }


    /* ============================================================= */
    /* Menu Modal
    /* ============================================================= */

    /* Menu Modal Navigation
    /* ------------------------------------------------------------- */

    #menu-modal ul li {
        font-size: 36px;
    }

}

/* Medium devices (tablets, 768px and up, orientation portrait) */
@media (orientation: portrait) and (min-width: 768px) {

    /* ============================================================= */
    /* Menu Modal
    /* ============================================================= */

    /* Menu Modal Burger
    /* ------------------------------------------------------------- */

    #menu-modal-burger-wrapper {
        margin-bottom: 120px;
    }

}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

    .site-header-inner {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* ============================================================= */
    /* Navigation Burger
    /* ============================================================= */

    #header-burger-wrapper {
        display: none;
    }

    /* ============================================================= */
    /* Navigation Menus
    /* ============================================================= */

    #site-header #navigation-primary-left-and-right-wrapper {
        display: flex;
        width: 100%;
    }

    #site-header #navigation-primary-left-and-right-wrapper > nav {
        width: 100%;
    }

    #site-header #navigation-primary-left-and-right-wrapper ul.menu {
        justify-content: space-between;
    }

    #site-header ul.menu a {
        position: relative;
        font-size: 20px;
    }

    body.has-sticky-header #site-header ul.menu a,
    body.featured-media-none #site-header ul.menu a {
        text-shadow: none;
    }

    #site-header ul.menu li.current-menu-ancestor > a,
    #site-header ul.menu li.current-menu-item > a,
    #site-header ul.menu li:hover > a,
    #site-header ul.menu a:hover,
    #site-header ul.menu a:active,
    #site-header ul.menu a:focus {
        color: #005460;
    }

    body.has-sticky-header #site-header ul.menu li.current-menu-ancestor > a,
    body.has-sticky-header #site-header ul.menu li.current-menu-item > a,
    body.has-sticky-header #site-header ul.menu li:hover > a,
    body.has-sticky-header #site-header ul.menu a:hover,
    body.has-sticky-header #site-header ul.menu a:active,
    body.has-sticky-header #site-header ul.menu a:focus,
    body.featured-media-none #site-header ul.menu li.current-menu-ancestor > a,
    body.featured-media-none #site-header ul.menu li.current-menu-item > a,
    body.featured-media-none #site-header ul.menu li:hover > a {
        color: #cdce00;
    }

    #site-header ul.menu li:not(.search-button) > a:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        border-bottom: 1px solid #005460;
        background-color: transparent;
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
        transition: opacity 0.15s linear;
        opacity: 0;
    }

    body.has-sticky-header #site-header ul.menu li:not(.search-button) > a:after,
    body.featured-media-none #site-header ul.menu li:not(.search-button) > a:after {
        border-bottom-color: #cdce00;
        box-shadow: none;
    }

    #site-header ul.menu li.current-menu-ancestor:not(.search-button) > a:after,
    #site-header ul.menu li.current-menu-item:not(.search-button) > a:after,
    #site-header ul.menu li:not(.search-button):hover > a:after {
        opacity: 1;
    }

    /* Sub Menu
    /* ------------------------------------------------------------- */

    #site-header .sub-menu-wrapper {
        display: flex;
        position: absolute;
        top: calc(100% + 40px);
        width: 700px;
        min-height: 280px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.2);
        background-color: #005460;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-out;
    }

    body.has-sticky-header #site-header .sub-menu-wrapper,
    body.featured-media-none #site-header .sub-menu-wrapper {
        top: calc(100% + 60px);
    }

    #site-header li:hover > .sub-menu-wrapper {
        opacity: 1;
        visibility: visible;
    }

    #site-header .sub-menu-wrapper:before {
        content: "";
        position: absolute;
        bottom: 100%;
        left: 0;
        display: block;
        width: 100%;
        height: 40px;
        opacity: 0;
    }

    body.has-sticky-header #site-header .sub-menu-wrapper:before,
    body.has-sticky-header #site-header .sub-menu-wrapper:before {
        height: 60px;
    }

    #site-header .sub-menu-wrapper:after {
        z-index: -1;
        content: "";
        display: block;
        position: absolute;
        bottom: 100%;
        border: 20px solid transparent;
        border-bottom-color: #005460;
        transform: scale(1, 1.8);
    }

    #site-header ul.sub-menu {
        flex: 1;
        display: block;
        list-style: none;
        padding: 35px 30px;
        margin: 0;
    }

    #site-header ul.sub-menu li.parent {
        display: none;
    }

    #site-header ul.sub-menu a {
        font-size: 20px;
        text-transform: none;
        text-shadow: none;
    }

    #site-header ul.sub-menu li.current-menu-ancestor > a,
    #site-header ul.sub-menu li.current-menu-item > a,
    #site-header ul.sub-menu li:hover > a,
    #site-header ul.sub-menu a:hover,
    #site-header ul.sub-menu a:active,
    #site-header ul.sub-menu a:focus {
        color: #cdce00;
    }

    #site-header ul.sub-menu li:not(.search-button) > a:after {
        border-bottom-color: #cdce00;
        box-shadow: none;
    }

    #site-header .sub-menu-image-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
    }

    #site-header .sub-menu-image {
        width: 200px;
        height: 200px;
        background-image: url("../images/toferer-inspired-by-mountains.png");
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Sub Menu - Primary Left
    /* ------------------------------------------------------------- */
    #site-header #navigation-primary-left-wrapper .sub-menu-wrapper {
        left: 0;
    }

    #site-header #navigation-primary-left-wrapper .sub-menu-wrapper:after {
        left: 15px;
    }

    /* Sub Menu - Primary Right
    /* ------------------------------------------------------------- */
    #site-header #navigation-primary-right-wrapper .sub-menu-wrapper {
        right: 0;
    }

    #site-header #navigation-primary-right-wrapper .sub-menu-wrapper:after {
        right: 15px;
    }

    #site-header #navigation-primary-right-wrapper .sub-menu-image-wrapper {
        order: -1;
    }


}

@media (min-width: 1560px) {

    .site-header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto;
        grid-template-areas:
        "nav-primary-left  logo  nav-primary-right";
        grid-gap: 45px;
    }


    /* ============================================================= */
    /* Navigation Menus
    /* ============================================================= */

    #site-header #navigation-primary-left-wrapper,
    #site-header #navigation-primary-right-wrapper {
        display: flex;
    }

    #site-header #navigation-primary-left-and-right-wrapper {
        display: none;
    }

    #site-header nav {
        width: 100%;
    }

    #site-header ul.menu {
        justify-content: space-between;
        gap: 25px;
    }

}