/*** Navigation ***/

#mobile_navigation {
    display: none;
}
#navigation_tray {
    display: none;
}
#desktop_navigation {
    display: block;
}

/*** -------------------- DESKTOP -------------------- ***/
header {
    overflow-x: hidden;
    -webkit-transition: all .25s ease-out;
    -o-transition: all .25s ease-out;
    transition: all .25s ease-out;
}
header.sticky {
    overflow: hidden;
}
#desktop_navigation {
    /*background-color: var(--white);*/
    width: 100%;
    max-width: 100%;
}
#desktop_navigation .desktop_menu_flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    /*transition: ease all .2s;*/
    /*padding-left: 30px;*/
    /*padding-right: 30px;*/
    /* before sticky */
    padding-top: 25px;
    padding-bottom: 25px;
    /*border-bottom: 1px solid #D8D8D8;*/
    /*-webkit-transition: all .25s ease-out;*/
    /*-o-transition: all .25s ease-out;*/
    /*transition: all .25s ease-out;*/
}
#desktop_navigation .right_section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
/*** --------- Transparent Nav ---------- ***/
header.transparent_nav #desktop_navigation {
    background-color: transparent;
}

/***  Desktop Sticky  ***/
header.sticky #desktop_navigation {
    background-color: #FFFFFF;
}
header.sticky #desktop_navigation .desktop_menu_flex {
    padding-top: 5px;
    padding-bottom: 5px;
}





/* Logo */
header .main_logo {
    background-image: url('../assets/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    /*min-width: 276px;*/
    width: 230px;
    height: 64px;
    max-height: 64px;
    /*position: relative;*/
    max-width: 230px;
    /*-webkit-transition: all .25s ease-out;*/
    /*-o-transition: all .25s ease-out;*/
    /*transition: all .25s ease-out;*/
}
header.solid_black_nav .main_logo {
    background-image: url('../assets/logo-dark.svg');
}
header.solid_black_nav {
    background: var(--white);
}
header.sticky .main_logo {
    background-image: url('../assets/logo-dark.svg');
    /*transition: ease all 0.6s;*/
    /*height: 54px;*/
}
/*header .main_logo {*/
/*position: relative;*/
/*}*/
header .main_logo a {
    margin: 0 auto;
    display: block;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 64px;
    max-height: 64px;
}
#desktop_navigation .main_logo img {
    opacity: 0;
    /*width: 165px;*/
    /*height: auto;*/
}

/* Main Links */
#desktop_navigation .main_links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
#desktop_navigation .main_links a {
    margin-right: 30px;
    margin-left: 30px;
    font-size: 20px;
    color: #2A2A2A;
    text-decoration: none;
    font-weight: 500;
}
#desktop_navigation .main_links a:hover {
    color: var(--tangy);
}
#desktop_navigation .main_links li:first-of-type a {
    margin-left: 0;
}
#desktop_navigation .main_links li:last-of-type a {
    margin-right: 0;
}
#desktop_navigation .desktop_menu_flex a.button.tertiary {
    margin-right: 30px;
}
#desktop_navigation .desktop_menu_flex a.button.primary {
    margin-right: 0px;
}




/*** ------------------ NAVIGATION TRAY ---------------- ***/

/* No Scroll Class When Tray is Open */
html.no_scroll {
    overflow-y: hidden!important;
    overflow-x: hidden!important;
}

/*** Nav Tray Backdrop ***/
.navigation_tray_backdrop {
    z-index: 5000000;
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.navigation_tray_backdrop::before { /* For backdrop compatibility */
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: #000000;
    opacity: 0.4;
}
.navigation_tray_backdrop.open {
    opacity: 1;
    visibility: visible;
}

/*** Tray Styles - Open/Close ***/
#navigation_tray {
    z-index: 50000001;
    position: fixed;
    top: 0;
    right: -570px;
    width: 570px;
    max-width: calc(100% - 30px);
    height: 100%;
    background-color: #FFFFFF;
    opacity: 0.4;
    -webkit-transition-delay: 0.2s;
    -o-transition-delay: 0.2s;
    transition-delay: 0.2s;
    -webkit-transition-timing-function: ease;
    -o-transition-timing-function: ease;
    transition-timing-function: ease;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;

    padding: 60px 55px;

    -webkit-box-shadow: -30px 1px 100px 0px rgba(0,0,0,0.15);
    box-shadow: -30px 1px 100px 0px rgba(0,0,0,0.15);
}
#navigation_tray.open {
    right: 0;
    opacity: 1;
}
button.open_tray,
button.close_tray {
    background: transparent;
    border: 0px;
}
/*** Tray Sections ***/
#navigation_tray .tray_top .tray_buttons {
    margin-bottom: 80px;
}
#navigation_tray .tray_center ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.tray_bottom a.button.primary {
    /*width: 100%;*/
    margin-right: 0;
}
.tray_bottom a.button.primary > span:before {
    right: -152%;
}
/** Nav colours **/
header.solid_white_nav #desktop_navigation .main_links a {
    color: var(--white);
}
header.solid_white_nav .button.secondary {
    border-color: var(--white);
    color: var(--white);
}
header.solid_white_nav .button.secondary:hover {
    background-color: var(--mere);
    border-color: var(--mere);
}
header.solid_white_nav.sticky #desktop_navigation .main_links a {
    color: var(--text-black);
}
header.solid_white_nav.sticky .button.secondary {
    border-color: var(--ashtone);
    color: var(--ashtone);
}
header.solid_white_nav.sticky .button.secondary:hover {
    background-color: var(--mere);
    border-color: var(--mere);
    color: var(--white);
}
/*header #desktop_navigation .main_links ul li:first-of-type:hover a {*/
/*color: var(--mere);*/
/*}*/
/*header #desktop_navigation .main_links ul li:nth-child(2):hover a {*/
/*color: var(--cabernet);*/
/*}*/
header #desktop_navigation .main_links ul li a:hover, header #desktop_navigation .main_links ul li:hover a {
    color: var(--mustard)!important;
}
@media(max-width: 1599.98px){
    #desktop_navigation .main_links a {
        font-size: 18px;
        margin-right: 20px;
    }
}
@media(max-width: 1299.98px){
    /*#desktop_navigation .main_links a {*/
    /*margin-right: 15px;*/
    /*margin-left: 15px;*/
    /*font-size: 20px;*/
    /*}*/
    #mobile_navigation .main_logo {
        width: 220px;
        max-height: 30px;
    }
    #desktop_navigation .main_links a {
        font-size: 18px;
    }

    #desktop_navigation {
        display: none!important;
    }
    #mobile_navigation {
        display: block;
    }
    header {
        overflow-x: unset;
    }

    #mobile_navigation {
        /*background-color: var(--white);*/
        width: 100%;
    }
    header.sticky  #mobile_navigation {
        background-color: var(--white);
    }
    header.solid_white_nav button.open_tray img {
        -webkit-filter: invert(100%);
        filter: invert(100%);
    }
    header.solid_white_nav.sticky button.open_tray img {
        -webkit-filter: unset;
        filter: unset;
    }
    #mobile_navigation .mobile_menu_flex {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-transition: ease all .4s;
        -o-transition: ease all .4s;
        transition: ease all .4s;
        padding-left: 30px;
        padding-right: 30px;
        /* before sticky */
        padding-top: 15px;
        padding-bottom: 15px;
    }


    /* Logo */
    /*#mobile_navigation .main_logo {*/
    /*background-image: url('../assets/logo.svg');*/
    /*background-size: contain;*/
    /*background-repeat: no-repeat;*/
    /*background-position: left center;*/
    /*min-width: 267px;*/
    /*height: 64px;*/
    /*}*/
    #mobile_navigation .main_logo img {
        opacity: 0;
        width: auto;
        height: auto;
    }
    #navigation_tray .nav a {
        font-size: 25px;
        line-height: 33px;
        color: #2A2A2A;
        text-decoration: none;
        display: block;
        margin-bottom: 20px;
    }
    #navigation_tray .tray_bottom {
        margin-top: 30px;
    }
    header.solid_white_nav .button.secondary {
        border-color: unset;
        color: unset;
        margin-bottom: 20px!important;
    }
    div#navigation_tray a.button.primary,
    div#navigation_tray a.button.secondary {
        font-size: 20px;
        padding: 20px;
    }

}
@media(max-width: 767.98px){
    #mobile_navigation .main_logo {
        width: 180px;
        /*height: 40px;*/
    }
    div#navigation_tray a.button.secondary {
        margin-bottom: 15px !important;
    }
    header .main_logo a {
        height: 30px;
    }
}
@media(max-width: 575.98px){
    #mobile_navigation .mobile_menu_flex {
        padding-left: 15px;
        padding-right: 15px;
    }
    #mobile_navigation .main_logo {
        min-width: 200px;
        height: 30px;
    }
    .tray_bottom a.button {
        width: 100%;
    }
}
