/*Site Header      
-------------------------------------------------------- */

.site-header,
.mobile-menu-container {
    button {
        border: 0px solid transparent;
        background-color: transparent;
        padding: 0px;
        cursor: pointer;
        img {
            display: inline;
            vertical-align: middle;
        }
        &:hover {
            background-color: transparent;
        }
    }
}
.header-brand-logo img {
    transition: all 0.2s;
    width: 232px;
    height: 59px;
}
/*
.site-header .top-menu-container {
    display: block;
    text-align: right;
}
*/
.header-search {
    margin-right: 9px;
}
.header-hamburg {
    margin-left: $gutter-width/2;
}
.top-menu-container {
    display: block;
    text-align: right;
    margin-top: 20px;
    margin-bottom: 11px;
    ul,
    p,
    button {
        display: inline-block;
        vertical-align: middle;
    }
    .btn {
        margin-left: 5px;
    }
    .menu a,
    .btn {
        padding: 0.9em 2em !important;
        min-height: 0px;
        box-sizing: border-box;
        padding: 1em !important;
        box-sizing: border-box;
        display: inline;
        height: 40px;
        &:hover {
            color: #fff;
            background-color: $green;

            border-color: transparent;
            border-top-color: transparent;
            border-bottom-color: transparent;
        }
    }
}

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #dedfeb;

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    ul {
        margin: 0px;
        li {
            display: inline-block;
            position: relative;
        }
    }
    .menu .menu li:hover > .sub-menu {
        display: block;
    }
}

.hamburger {
    width: 36px;
    // height:20px;
    padding: 10px 5px;
    display: block;
    cursor: pointer;
    span {
        display: block;
        background-color: $primary-color;
        width: 100%;
        height: 3px;
    }
    span:not(:last-child) {
        margin-bottom: 4px;
    }
    &.close {
        span:nth-child(2) {
            display: none;
        }
        span:nth-child(1) {
            //rotate
        }
        span:nth-child(3) {
            //rotate
        }
    }
    &:hover {
        span {
            background-color: darken($primary-color, 10%);
        }
    }
}

// Search bars
.header-search-form-wrapper,
.mobile-search-header {
    display: inline-block;
    overflow: hidden;
    height: 40px;
    transition: width 0.2s;
    border-radius: 20px;
    input,
    button,
    div,
    li,
    ul,
    form {
        display: inline;
    }
    // position: absolute;
    // right: 0;
    // top: 0;
    input[type="text"] {
        border-color: transparent;
        background-color: transparent;
        height: 40px;
        width: 100%;
        border-radius: 0px;
    }
}
.mobile-search-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0px 30px 0px;
    border-radius: 0px;
    form {
        width: 100%;
    }
}
.header-search-form-wrapper {
    width: 0px;

    transition: width 0.2s;
}
.header-search {
    transition: width 0.2s;
    height: 40px;
    border-radius: 20px;
    position: relative;
    width: 28px;
    .search-close {
        margin-right: 10px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        display: none;
    }
}
.header-button-menu {
    // display: flex;
    // display: flex;
    align-items: center;
    justify-content: right;
}
.header-search-wrapper {
    vertical-align: middle;
    position: relative;
    width: 100%;
    display: inline-block;
    width: 40px;
    height: 40px;
    .header-search {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        padding-top: 0px;
        .header-icon-search {
            display: block;
            padding-top: 8px;
            float: left;
        }
    }
}
.header-button-menu {
    display: inline-block;
}
.header-search.active {
    background-color: #f1f1f9;
    padding: 0px 50px 0px 10px;
    width: 340px;
    > * {
        display: inline-block;
    }
    .header-icon-search svg {
        line,
        path {
            stroke: $blue;
        }
    }
    .search-close {
        display: block;
    }
    .header-search-form-wrapper {
        background-color: transparent;
        vertical-align: middle;
        width: 250px;
    }
}
.main-menu-container {
    .menu > li {
        background-repeat: no-repeat;
        background-position: top center;
        // background-size: auto 80%;
        background-size: auto 50px;
    }
    .menu > li > a {
        border-bottom: 7px solid transparent;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.46px;
        line-height: 23px;
        text-align: center;
        text-transform: uppercase;
        color: $light-text;
        padding: 1.5em 0.5em;
        height: 58px;
        display: inline-block;

        &:hover {
            color: $blue;
            border-color: $blue;
        }
    }
    .menu > li {
        &.current-menu-item,
        &:hover,
        .current-page-parent {
            > a {
                color: $blue;
                border-color: $blue;
            }
        }
    }
}
@media screen and (min-width: 1675px) {
    .main-menu-container {
        .menu > li > a {
            padding: 1.5em 1em;
            font-size: 14px;
        }
    }
}
.bottom-menu-container {
    text-align: right;
    .menu > li > a {
        padding-top: 10px;
    }
}
.sticky-main-menu-container {
    display: none;
    margin-right: 1em;
    .menu > li > a {
        height: 82px;
        padding-top: 2.3em;
    }

    .menu > li {
        background-position: center;
    }
}

.site-header.js-is-sticky {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    .top-menu-container {
        margin: 0px;
    }
    .menu-container {
        display: flex;
        align-items: center;
    }

    .bottom-menu-container {
        display: none !important;
    }
}

.secondary-page-menu {
    height: 55px;
    text-align: center;
    background-color: $gray-dark;
    li {
        display: inline-block;
    }
    .menu {
        margin: 0px;
    }
    .menu > li > a {
        display: block;
        padding: 1.2em 0.5em 0.8em 0.5em;
        color: #ffffff;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 18px;
        border-bottom: 5px solid transparent;

        &:hover {
            color: $blue;
            border-color: $blue;
        }
    }
    .menu > li:hover {
        > a {
            color: $blue;
            border-color: $blue;
        }
    }
    li.current-menu-item {
        a {
            color: $blue;
            border-color: $blue;
        }
    }
}

@media screen and (max-width: 786px) {
    .header-button-menu {
        display: none !important;
    }
    .site-header {
        padding: 5px 0px;
        .wide-container {
            padding-left: 5px;
        }
    }
}

@media screen and (max-width: $large-screen-up) {
    .site-header .bottom-menu-container {
        display: none;
    }
    .header-hamburg {
        display: inline-block;
    }
}
@media screen and (min-width: $small-screen-up) {
    .header-brand-logo img {
        width: 235px;
        height: 60px;
    }
}
@media screen and (min-width: $large-screen) {
    .top-menu-container .header-hamburg {
        display: none;
    }

    .site-header:not(.js-is-sticky) .header-brand-logo img {
        width: 354px;
        height: 90px;
    }
    .site-header.js-is-sticky {
        .header-hamburg {
            display: inline-block;
        }
        .header-brand-logo img {
            width: 235px;
            height: 60px;
        }
        .sticky-main-menu {
            // display: block;
        }
    }
}

@media screen and (min-width: 1630px) {
    .site-header.js-is-sticky {
        .sticky-main-menu-container {
            display: block;
        }
        .header-hamburg {
            display: none;
        }
    }
}
/*Site Footer      
-------------------------------------------------------- */

.footer-main {
    padding: 42px 0px;

    color: $light-text;
    a {
        color: $light-text;
        &:hover {
            color: $primary-color;
        }
    }
    #general-enquiries {
        p {
            line-height: 1.8;
        }
    }
}

.site-info {
    color: $light-text;
    font-size: $fineprint-fontsize;
    a {
        color: $light-text;
        &:hover {
            color: $primary-color;
        }
    }
    text-align: center;
    .site-logo {
        margin: 35px auto;
    }
    padding-bottom: 42px;
}
.footer-cta {
    background-color: $primary-color;
    .btn {
        display: inline-block;
    }
    .lead-para {
        margin: 1.5em auto;
    }
}
#quick-links {
    margin: 1em auto;
    li {
        margin-bottom: 1em;
    }
    .menu {
        column-gap: $gutter-width;
        column-count: 2;
    }
    .menu a {
        color: $gray-dark;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 1.3px;
        line-height: 23px;
        text-transform: uppercase;
        &:hover {
            color: $blue;
        }
    }
}

.control-group-social-media {
    img {
        display: inline-block;
        vertical-align: middle;
        margin-right: 0.5em;
    }
}

.footer-cta .panel-content {
    text-align: center;
    overflow: hidden;
    @include coverbg;
    padding: 28px $outer-padding;
    background-image: url(../../img/footer-cta-bg-left.jpg);
    &:nth-child(odd) {
        background-color: $purple;
        background-image: url(../../img/footer-cta-bg-right.jpg);
    }
}

@media screen and (max-width: $small-screen) {
    .footer-main {
        text-align: center;
    }
}

@media screen and (min-width: $small-screen-up) {
    .header-brand-logo img {
        width: 230px;
        height: 59px;
    }
    // Footer
    .footer-main {
        overflow: hidden;
        h4 {
            margin-bottom: 1.5em;
        }
    }
    #quick-links,
    #general-enquiries {
        float: left;
    }
    #quick-links {
        width: 50%;
        padding-right: $gutter-width;
    }
    #general-enquiries {
        width: 50%;
    }

    .footer-cta {
        .entry-content {
            max-width: 400px;
            margin: 30px auto;
        }
    }
}

@media screen and (min-width: $medium-screen-up) {
    .header-brand-logo img {
        width: 354px;
        height: 90px;
    }

    // Footer
    .footer-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        .entry-content {
            max-width: 491px;
            margin: 50px auto;
        }
    }
    #quick-links {
        width: 70%;
        padding-right: $gutter-width * 2;

        .menu {
            column-count: 3;
        }
    }
    #general-enquiries {
        width: 30%;
    }
    .footer-cta .panel-content {
        background-position: left center;
        &:nth-child(odd) {
            background-position: right center;
        }
    }
}
.site-footer .container {
    max-width: 1300px;
}

// Mega menu===================================================
.sub-menu-wrap {
    display: none;
    text-align: left;
    position: absolute;
    z-index: 999;
    right: 0;
    background-color: #fff;
    border-top: 6px solid $blue;
    padding-bottom: 1em;
    padding-top: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    li {
        float: none;
        line-height: 1;
        display: block;
        a {
            line-height: 1;
            padding: 0.5em 1em;
            display: block;
            color: $light-text;
            white-space: nowrap;

            &:hover {
                color: #00d1ce;
            }
        }
    }
}

.sub-menu-wrap {
    display: none;
}

.site-header ul li.mega-wide-parent {
    position: static;
}
.menu-item-description {
    color: $light-text;
    line-height: 23px;
}
.mega-twocol {
    right: -$outer-padding;
    min-width: 631px;
    .sub-menu-container {
        max-width: 535px + $outer-padding * 2;
        margin: 0 auto;
        padding: 43px $outer-padding 74px $outer-padding;
    }
    .main-sub-menu {
        display: block;
        display: grid;
        grid-gap: $gutter-width;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}
.mega-wide {
    width: 100vw;

    .sub-menu-container {
        max-width: 1134px + $outer-padding * 2;
        margin: 0 auto;
        padding: 43px $outer-padding 74px $outer-padding;
    }
    .main-sub-menu {
        display: block;
        display: grid;
        grid-gap: $gutter-width;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(
                0,
                1fr
            );
    }
}
.menu-item-image {
    padding: 0.5em 0em;
}
.mega-twocol,
.mega-wide {
    .sub-menu-wrap {
        padding: 0px;
    }
    //top level menu items
    ul li {
        position: static;
        display: block;
        a {
            display: block;
            padding: 0.5em 0em;
        }
    }

    .main-sub-menu > li > a {
        color: #26282d;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0;
        line-height: 24px;
        &:hover {
            color: $blue;
        }
    }
}
li:hover > .sub-menu-wrap {
    // display: block;
    position: absolute;
}

#searchform input {
    border-radius: 0px;
}
// Search on mobile

.search-results-container {
    background-color: #fbfbfb;
    padding: 20px 0px;
}
