/*------------------------------------*\
    
    Header CSS
 
    eg: Header, Navigation, Ubermenu, Masthead 
    Page head.............The main page header.
    Navigation............Navigation elements + Ubermenu.
    Masthead..............Page title/image/slideshow header block.
    Breadcrumbs...........Breadcrumbs navigation typically near the masthead/page heading

\*------------------------------------*/

/**
 * Page-head
 */

.page-header {
    background-color: #fff;
    position: relative;
    z-index: 5;
}

@media (min-width: 1025px) {
    .page-header--sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }
}

/* Fix sticky header position for when admin bar visible
   TODO: Uncomment if design has sticky header */

/* .admin-bar .page-header {
    top: 32px;
}

@media screen and (max-width: 1200px) {
    .admin-bar .page-header {
        top: 0;
    }
} */

@media (-webkit-min-device-pixel-ratio: 2) and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px),
    (-webkit-min-device-pixel-ratio: 2) and (min-resolution: 192dpi) and (max-width: 1024px) {
    /* TODO: Add Retina-specific logo here - see instructions https://app.getguru.com/card/cgKzjo5i/How-to-make-a-highres-logo-load-for-2x-resolution-devices */
}

.site-logo,
.site-logo:hover {
    border: 0;
}

/**
 * Navigation
 */

/* General Styling */

.page-header-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 24px 0 23px;
}

.site-logo-container {
    order: 1;
    flex: 1;
    margin-right: 10px;
}

.nav-primary {
    display: none;
    background-color: #fff;
    left: 0;
    order: 2;
    position: absolute;
    top: 100%;
    width: 100%;
}

.nav-primary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-primary li {
    cursor: pointer;
    padding: 0 25px;
    position: relative;
}

.nav-primary li:before,
.nav-primary li:after {
    display: none; /* hide any custom bullet styling */
}

.nav-primary a {
    border-bottom: 2px solid transparent;
    display: block;
    position: relative;
    text-decoration: none;
    z-index: 1;
}

.btn.btn-contact {
    padding: 0 16px;
}

.btn.btn-contact:after {
    content: none;
}

.btn.btn-contact img {
    margin-left: 10px;
}

@media (max-width: 599px) {
    .btn.btn-contact {
        font-size: 14px;
        height: 46px;
        padding: 0 10px;
    }

    .btn.btn-contact img {
        margin-left: 5px;
    }
}

.nav-primary .main-menu-list > .current-menu-item > a,
.nav-primary .main-menu-list > .current-menu-parent > a,
.nav-primary .main-menu-list .sub-menu > .current-menu-item {
    background-color: #cce4ff;
    border-bottom: 2px solid #84b9f5;
}

@media (min-width: 1200px) {
    .nav-primary .main-menu-list .current-menu-item > a,
    .nav-primary .main-menu-list .current-menu-parent > a {
        background-color: #fff;
        border-bottom: 2px solid #84b9f5;
    }

    .nav-primary .main-menu-list .sub-menu > .current-menu-item {
        background-color: #fff;
        border-bottom: 1px solid #e7eff5;
    }

    .nav-primary a:hover,
    .nav-primary .main-menu-list > .current-menu-item > a {
        border-bottom: 2px solid #84b9f5;
    }
}

/* 1st Level */

.nav-primary > .menu > li {
    display: inline-block;
}

/* Sub Menus */

.nav-primary .sub-menu {
    display: none;
}

.nav-primary .sub-menu li {
    display: block;
}

/* 3rd Level Sub Menus */

.nav-primary .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* Responsive Menu */
.toggle-menu {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    order: 4;
    overflow: hidden;
    padding: 10px;
    width: 45px;
}

.toggle-menu span {
    background-color: #141517;
    display: block;
    height: 3px;
    margin: 3px 0;
    position: relative;
    transition: all ease 0.3s;
    width: 100%;
}

.toggle-menu.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 7px);
}

.toggle-menu.is-active span:nth-child(2) {
    transform: translateX(50px);
}

.toggle-menu.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

.btn.btn-contact {
    order: 3;
}

.dropdown-indicator {
    display: none;
}

@media (max-width: 1199px) {
    body {
        padding-top: 103px;
    }

    .page-header {
        background-color: #fff;
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
    }

    .admin-bar .page-header {
        top: 32px;
    }

    .nav-primary {
        box-shadow: 0 3px 18px rgba(0, 0, 0, 0.16);
    }

    .main-menu-list li {
        border-top: 1px solid #e7eff5;
        padding: 0;
    }

    .main-menu-list .sub-menu li {
        padding: 0 20px;
    }

    .main-menu-list li a {
        padding: 8px 20px;
    }

    /* .main-menu-list li:last-child {
        border-bottom: 1px solid #E7EFF5;
    } */

    .main-menu-list li a,
    .main-menu-list li a:hover {
        border: 0;
    }

    .menu-item-has-children > .dropdown-indicator {
        align-items: center;
        display: flex;
        height: 44px;
        justify-content: center;
        position: absolute;
        right: 20px;
        top: 0;
        width: 44px;
        z-index: 999;
    }

    .dropdown-indicator.is-opened i:before {
        content: "\e912";
    }

    .dropdown-indicator i {
        font-size: 12px;
    }
}

@media (max-width: 782px) {
    .admin-bar .page-header {
        top: 46px;
    }
}

/* controls sticky bar menu icon and overlay on mobile */
.sticky-bar .menu-is-active .fa-bars:before {
    content: "X"; /* TODO: change this to be an icon from the icon font on the site */
}

body:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: -1000;
}

body.menu-is-active:after {
    z-index: 1000;
    display: block;
}

@media (max-width: 1024px) {
    .sticky-bar {
        z-index: 2000 !important;
    }
}

/* Modern IPhone Fixes */
@media screen and (width: 375px) and (height: 813px) {
    .sticky-bar {
        /* ^ TODO: change classname to match mobile sticky bar class */

        /* prevents 'home indicator' overlap */
        padding-bottom: 34px;

        /* prevents content from being cut off in screen rounded corners */
        padding-left: 16px;
        padding-right: 16px;
    }
}

/**
 * Ubermenu Styling - Custom Styles
 */

/**
 * Masthead
 */

.masthead {
    /* background-color: #CCE4FF; */
    overflow: hidden;
    padding: 55px 0;
    position: relative;
    z-index: 1;
}

.masthead > img {
    display: none;
}

.masthead > .container {
    position: relative;
    z-index: 2;
}

.masthead-blob,
.masthead-dots-left,
.masthead-dots-right,
.masthead-round {
    position: absolute;
    z-index: 1;
}

.masthead-blob {
    right: -64px;
    opacity: 0.1;
    top: -29px;
}

.masthead-dots-left {
    left: 39px;
    top: -29px;
}

.masthead-dots-right {
    opacity: 0.5;
    right: 326px;
    top: 46px;
}

.masthead-round {
    bottom: -109px;
    left: 76px;
}

@media (min-width: 1025px) {
    .masthead > img {
        display: block;
    }
}

/**
 * Breadcrumbs
 */

.breadcrumbs li {
    list-style-type: none;
    display: inline-block;
    margin-right: 3px;
    font-size: 0;
    margin-bottom: 0;
}

.breadcrumbs a {
    text-decoration: none;
    font-size: 17px;
}

.breadcrumbs li :not(:nth-last-child(2)),
.breadcrumbs li :after {
    display: none;
    visibility: hidden;
    content: none;
}

.breadcrumbs li a:before {
    content: "< Go to ";
}

@media (min-width: 767px) {
    .breadcrumbs li a:before {
        content: none;
    }

    .breadcrumbs li :not(:nth-last-child(2)),
    .breadcrumbs li :after {
        display: inline-block;
        visibility: visible;
        content: initial;
    }

    .breadcrumbs li {
        font-size: 16px;
    }
}

.breadcrumbs {
    text-transform: uppercase;
    color: #00316a;
    font-size: 17px;
    font-weight: 700;

    a {
        color: #00316a;
    }

    span:has(> a):after {
        content: "";
        display: inline-block;
        background-color: currentColor;
        width: 7px;
        height: 12px;
        position: relative;
        top: 1px;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-image: var(--arrow-icon);
        mask-image: var(--arrow-icon);
        margin-left: 10px;
        margin-right: 6px;
    }
}

span.breadcrumb_last {
    font-size: 17px;
}

/* New header */

.menu-item a {
    color: #00316a;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-align: center;
}

.menu-item {
    list-style: none;
    position: relative;
}

.main_menu {
    padding: 0;
}

.main_menu > .menu-item a {
    color: #00316a;
    padding-block: 10px;
    padding-inline: 30px;
}

.header__nav {
    display: none;
    background-color: #edf9f8;
}

.menu-trigger {
    border: none;
    background-color: transparent;
    width: 50px;
}

.menu-trigger svg {
    width: 90%;
    height: auto;
}

.menu-trigger__exit {
    display: none;
    scale: 1.3;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
}

.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 20px;
    gap: 44px;
}

.header__logo-box {
    height: 110px;
}

.header__logo-box img {
    height: 100%;
}

.menu-trigger__text {
    text-transform: uppercase;
    color: #00316a;
    font-size: 13px;
    font-weight: bold;
    display: block;
}

.menu-item-has-children > a:after {
    content: "";
    height: 15px;
    width: 10px;
    display: block;
    -webkit-mask-image: var(--arrow-icon);
    mask-image: var(--arrow-icon);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: currentColor;
    rotate: 90deg;
}

.header__nav {
    padding-block: 20px;

}

@media (max-width: 1200px) { 
    .is-active {
        svg.menu-trigger__open {
            display: none;
        }
    
        svg.menu-trigger__exit {
            display: block;
        }
    
    }

    .admin-bar {
        .header__nav {
            top: 27px;
            box-shadow: 1px -4px 4px 1px #0000000d;
        }
    }

    .header__nav {
        display: block;
        position: fixed;
        width: 50%;
        height: 100%;
        left: -60%;
        z-index: 99;
        top: 0;
        opacity: 0;
        transition: all ease-in .2s;
    }
    
    .header__nav.is-visible {
        left: 0;
        opacity: 1;
    }
}

@media (max-width: 600px) {
        .header__nav {
            width: 80%;
            left: -80%;
        }
}

@media (min-width: 1200px) {
    .header__logo-box {
        height: 150px;
    }

    .header__nav {
        display: block;
        border-radius: 20px 0px 0px 20px;
        padding-block: 0;
        padding-inline: 52px 10px;
    }

    .main_menu > .menu-item a {
        min-width: 135px;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .header__nav ul {
        display: flex;
        justify-content: space-between;
    }

    .menu-trigger {
        display: none;
    }

    .header__nav-box {
        flex-shrink: 0;
        flex-grow: 1;
    }

    .menu-item {
        text-align: center;
        flex-grow: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .sub-menu .menu-item {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main_menu > .menu-item a {
        padding-block: 35px;
    }

    .header__nav {
        position: relative;

        &:after {
            content: "";
            z-index: -1;
            display: block;
            background-color: #edf9f8;
            top: 0;
            left: 100%;
            height: 100%;
            width: 500px;
            position: absolute;
        }
    }

    ul:not(.sub-menu) > .menu-item > a:before {
        content: "";
        display: block;
        width: 201px;
        height: 8px;
        position: absolute;
        width: 100%;
        bottom: 25px;
        opacity: 0;
        transition: all ease-in 0.3s;
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="175.161" height="8.49" viewBox="0 0 175.161 8.49"><path id="Path_359" data-name="Path 359" d="M1.9.816A1.363,1.363,0,0,0,.449,2.073,1.368,1.368,0,0,0,1.913,3.316ZM174.154,2.358l.05,1.249a1.353,1.353,0,0,0,1.406-1.265,1.365,1.365,0,0,0-1.443-1.234ZM48.74,7.013l-.312-1.221a1.284,1.284,0,0,0-1.136,1.361,1.4,1.4,0,0,0,1.46,1.11ZM132.5,8.923a1.37,1.37,0,0,0,1.471-1.238,1.361,1.361,0,0,0-1.444-1.261ZM88.536,1.683l.013-1.25h-.021ZM174.1,1.109c-23.249.7-50.8,1.157-74.521,1.8-11.842.319-22.712.683-31.561,1.144A176.7,176.7,0,0,0,48.429,5.792l.623,2.442A174.5,174.5,0,0,1,68.2,6.544C77,6.086,87.839,5.723,99.673,5.4c23.632-.637,51.311-1.1,74.531-1.8ZM48.752,8.263c34.141-.241,62.356.492,83.75.661l.027-2.5c-21.313-.168-49.632-.9-83.8-.661ZM1.913,3.316l86.63-.383-.015-2.5L1.9.816Zm86.609-.383,85.618.675.027-2.5L88.549.433Z" transform="translate(-0.449 -0.433)" fill="%236adfd7"/></svg>');
    }

    ul:not(.sub-menu) > .menu-item:hover > a:before {
        opacity: 1;
    }

    .current-menu-item > a:before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='201.103' height='8.49' viewBox='0 0 201.103 8.49'%3E%3Cpath id='Path_360' data-name='Path 360' d='M2.113.816C1.189.82.444,1.382.449,2.073S1.206,3.32,2.13,3.316ZM199.88,2.358l.058,1.249c.909-.024,1.626-.586,1.614-1.265a1.509,1.509,0,0,0-1.657-1.234ZM55.893,7.013l-.358-1.221c-.837.137-1.4.724-1.3,1.361a1.578,1.578,0,0,0,1.676,1.11Zm96.168,1.91c.925.006,1.681-.548,1.689-1.238s-.733-1.255-1.658-1.261Zm-50.478-7.24L101.6.433h-.024Zm98.24-.574c-26.692.7-58.326,1.157-85.558,1.8-13.6.319-26.075.683-36.236,1.144-10.118.458-18.056,1.017-22.493,1.743l.715,2.442C60.395,7.556,68.078,7,78.23,6.544c10.111-.458,22.551-.821,36.138-1.14,27.133-.637,58.911-1.1,85.57-1.8ZM55.906,8.263c39.2-.241,71.591.492,96.154.661l.031-2.5c-24.469-.168-56.983-.9-96.212-.661ZM2.13,3.316l99.46-.383-.017-2.5L2.113.816Zm99.436-.383,98.3.675.031-2.5L101.6.433Z' transform='translate(-0.449 -0.433)' fill='%23207de9'/%3E%3C/svg%3E%0A")!important;
        opacity: 1!important;
    }

    .menu-item:hover {
        ul.sub-menu {
            display: block;
        }
    }

    ul.sub-menu {
        display: none;
        position: absolute;
        padding: 10px 0;
        min-width: 200px;
        background-color: #fef4d1;
        border-radius: 10px;
        box-shadow: 0px 3px 3px 0px #00000003;
        margin-top: 0;
        top: 90%;
        .menu-item a {
            display: block;
            padding: 10px 20px;
            text-align: left;
        }

        .menu-item a:hover {
            color: #37aca4;
        }

        .menu-item:after {
            display: none;
        }
    }
}
