/**
 * Header Styles - Coast Shelter Theme
 * Contains all header, navigation, and menu-related styles
 * Uses min-width media queries for progressive enhancement
 */

/* MOBILE HEADER
================ */
.desk-header {
    display: none;
}

.site-header .mob-header {
    padding: 0;
    max-width: calc(100% - 2 * var(--horspace));
    margin: auto;
    border-radius: 6px;
}

.mob-header {
    position: relative;
    z-index: 999;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: visible;
}

.mob-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    z-index: 999;
    background: var(--light);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 990;
    width: 100%;
    /*margin-top: 24px;*/
}

/* Match header_height() before it runs, so breadcrumbs are not covered on first paint.
   Front page sets data-site-main-offset="0" and sits behind the bar. */
body[data-site-main-offset="1"] .site-main {
    margin-top: 134px;
}

/* Anchor / hash scroll offset — JS refines via scroll-padding-top after measuring the header */
html {
    scroll-padding-top: 96px;
}

@media only screen and (min-width: 1200px) {
    html {
        scroll-padding-top: 156px;
    }
}

html:has(body.admin-bar) {
    scroll-padding-top: 128px;
}

@media only screen and (min-width: 1200px) {
    html:has(body.admin-bar) {
        scroll-padding-top: 188px;
    }
}

/* Admin bar offset for all states when logged in */
body.admin-bar .site-header {
    top: 32px !important;
}

/* Hero extends behind header - remove spacer */
body.hero-behind-header .spacer {
    display: none;
}

/* Allow banner to extend to top */
body.hero-behind-header .mwa-top-banner,
body.hero-behind-header .top-banner {
    margin-top: 0;
    padding-top: 0;
}

/* Add padding to banner content to account for header */
body.hero-behind-header .mwa-top-banner .content-wrapper,
body.hero-behind-header .top-banner .content-wrapper {
    padding-top: calc(60px + 40px);
}

.mob-header .site-logo a {
    display: flex;
    align-items: center;
}

.mob-header .site-logo a svg,
.mob-header .site-logo a img {
    display: block;
    width: 160px;
    height: auto;
    max-height: 50px;
}

.mob-header .bttns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mob-header .search-bttn,
.menu-bttn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 50px;
    color: var(--navy);
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s ease;
}

.mob-header .search-bttn:hover,
.menu-bttn:hover {
    color: var(--electric);
}

.menu-bttn .bars {
    position: relative;
    width: 26px;
    height: 18px;
    border-top: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.menu-bttn .bars:after,
.menu-bttn .bars:before {
    content: "";
    position: absolute;
    top: 50%;
    margin-top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.menu-bttn .bars:before {
    -webkit-transition: all 0.1s ease;
    -moz-transition: all 0.1s ease;
    -ms-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

.menu-bttn.on .bars {
    border-color: transparent;
}

.menu-bttn.on .bars:after {
    transform: rotate(-45deg);
}

.menu-bttn.on .bars:before {
    transform: rotate(45deg);
}

/* MOBILE MENU BACKDROP - Full screen white background */
body.overlay-on::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 10;
}

/* MOBILE MENU OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
    padding-top: calc(64px + 12px);
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    background: #ffffff;
    transform: translateX(100%);
    opacity: 0;
    visibility: visible;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Cover any content above the menu overlay */
.menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /*height: calc(64px + 24px);*/
    background: #ffffff;
    z-index: -1;
}

.menu-overlay>* {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.on {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.4s ease;
    pointer-events: auto;
}

.menu-overlay.on>* {
    opacity: 1;
    transition: opacity 0.3s ease 0.4s;
}

.menu-overlay nav {
    position: relative;
    margin-bottom: 30px;
}

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

.menu-overlay nav a {
    display: block;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-overlay nav>ul>li>a {
    position: relative;
    z-index: 1;
    padding: 16px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(36, 61, 115, 0.1);
    text-align: left;
}

.menu-overlay nav>ul>li:last-child>a {
    border-bottom: none;
}

.mob-header .menu-overlay .sub-menu {
    padding-top: 10px;
}

.mob-header .menu-overlay .sub-menu li>a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 8px 0 8px 0;
    font-weight: 400;
    font-size: 18px;
    color: rgba(12, 35, 58, 0.7);
    border-bottom: none;
    text-align: left;
}

.mob-header .menu-overlay .sub-menu .sub-menu .menu-item a {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 6px 0 6px 40px;
    font-size: 16px;
    font-weight: 400;
}

.menu-overlay li.menu-item-has-children>a {
    position: relative;
}

.menu-overlay li.menu-item-has-children>a:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.menu-overlay li.menu-item-has-children.active>a:after {
    transform: translateY(-50%) rotate(180deg);
}

/* Nested submenu items - remove arrows and keep open by default */
.mob-header .menu-overlay .sub-menu li.menu-item-has-children>a:after {
    content: none;
}

.mob-header .menu-overlay .sub-menu .sub-menu {
    display: block;
}

.menu-overlay .sub-menu {
    display: none;
    position: relative;
    padding-bottom: 10px;
}

.menu-overlay .sub-menu li {
    position: relative;
}

.menu-overlay .sub-menu img {
    display: none;
}

/* Active menu states */
.mob-header .menu-overlay>nav>ul>.current-menu-item>a,
.mob-header .menu-overlay .current-menu-ancestor>a {
    color: var(--electric);
}

.mob-header .menu-overlay .sub-menu .current-menu-item>a {
    color: var(--electric);
    font-weight: 600;
}

/* Donate button in mobile menu */
.donate-bttn-mobile {
    padding: 20px 0;
    text-align: center;
}

.donate-bttn-mobile {
    padding: 0 !important;
    width: 100% !important;
}

.donate-bttn-mobile .bttn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--yellow, #F5C842);
    color: var(--navy);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.donate-bttn-mobile .bttn-donate::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../img/donate-heart.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.donate-bttn-mobile .bttn-donate:hover {
    background: var(--yellow-dark, #E6B732);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* SEARCH BAR - Mobile */
.site-header .search-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 999;
    padding: 6px 20px;
    background: #ffffff;
    color: var(--navy);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s, z-index 0s 0.3s, display 0s 0.3s;
}

.site-header .search-bar.on {
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s ease, visibility 0s, z-index 0s, display 0s;
    border-radius: 6px;
    padding: 6px 20px;
}

.mwa-search-form {
    padding: 0;
    width: 100%;
}

.site-header .search-bar form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.site-header .search-bar input[type="search"] {
    flex: 1;
    outline: 0;
    background-color: #ffffff;
    padding: 0;
    font-size: 16px;
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
    border-radius: 0px;
    height: 48px;
}

.site-header .search-bar input[type="search"]:focus {
    background-color: #ffffff;
    border-color: var(--navy);
    outline: none;
}

.site-header .search-submit {
    margin: 0;
    padding: 10px 12px;
    background-color: var(--light);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    height: 48px;
}

.site-header .search-submit:hover {
    color: var(--electric);
}

.site-header .close-bttn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.site-header .close-bttn:hover {
    color: #ffffff;
    background-color: var(--navy);
}

/* DESKTOP HEADER
================== */
@media only screen and (min-width: 1200px) {
    .mob-header {
        display: none;
    }

    /* Completely hide menu overlay on desktop */
    .menu-overlay {
        display: none;
        pointer-events: none;
        visibility: hidden;
    }

    /* Admin bar offset - both regular and sticky states */
    body.admin-bar .site-header,
    body.admin-bar .site-header.fixed,
    body.admin-bar .site-header.show,
    body.admin-bar .site-header.trans {
        top: 32px !important;
    }

    .desk-header {
        position: relative;
        z-index: 99;
        display: flex;
        justify-content: center;
        padding: 20px var(--horspace, 32px);
    }

    .desk-header .header-container {
        position: relative;
        max-width: var(--wrap-wide, 1640px);
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        /*padding-left: var(--horspace, 32px);*/
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: stretch;
        gap: 20px;
        border-radius: 12px;
        transition: max-width 0.3s ease, border-radius 0.3s ease;
        max-width: 100%;
    }

    /* Full width when header is fixed on scroll */
    .site-header.fixed .desk-header .header-container {
        max-width: 100%;
        border-radius: 12px;
    }

    .site-header.fixed .desk-header .bttn-donate {
        border-radius: 0 12px 12px 0;
    }

    .desk-header .site-logo {
        display: flex;
        align-items: center;
        padding: 20px 40px;
        border-right: solid 1px rgba(12, 35, 58, 0.2)
    }

    .desk-header .site-logo a {
        display: flex;
        align-items: center;
    }

    .desk-header .site-logo svg,
    .desk-header .site-logo img {
        display: block;
        width: 200px;
        height: auto;
        max-height: 65px;
    }

    /* MAIN MENU */
    .desk-header .nav-menu-main {
        justify-self: end;
        padding: 30px 0;
    }

    /* HEADER ACTIONS - Search & Donate */
    .desk-header .header-actions {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: stretch;
        gap: 20px;
    }

    .desk-header .search-bttn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        background: transparent;
        border-radius: 50%;
        color: rgba(12, 35, 58, 0.7);
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        align-self: center;
        flex-shrink: 0;
    }

    .desk-header .search-bttn:hover {
        color: var(--navy);
    }

    .desk-header .bttn-donate {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 40px;
        background: var(--bumblebee, #F5C842);
        color: var(--navy);
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 500;
        font-size: 18px;
        text-decoration: none;
        border-radius: 0 12px 12px 0;
        white-space: nowrap;
        transition: all 0.3s ease;
        min-width: 180px;
    }

    .desk-header .bttn-donate::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url('../img/donate-heart.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .desk-header .bttn-donate:hover {
        background: var(--lemon);
    }

    /* NAVIGATION STYLES */
    .desk-header nav>ul>li>a {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 500;
        white-space: nowrap;
        transition: color 0.2s ease;
        color: rgba(12, 35, 58, 0.6);
        font-size: 16px;
        background-image: linear-gradient(var(--navy), var(--navy)), linear-gradient(transparent, transparent), linear-gradient(var(--navy), var(--navy));
        background-size: 0 2px, 0 2px, 0 2px;
        background-position: 100% 100%, 50% 100%, 0 100%;
        background-repeat: no-repeat;
        padding-bottom: 4px;
    }

    .desk-header nav>ul>li>a:hover {
        color: var(--navy);
        animation-duration: 0.6s;
        animation-name: nav-link-underline;
        animation-timing-function: ease-in-out;
        animation-fill-mode: forwards;
    }

    /* Active states for top-level menu items */
    .desk-header nav>ul>li.current-menu-item>a,
    .desk-header nav>ul>li.current-menu-ancestor>a {
        color: var(--navy);
        font-weight: 500;
        background-size: 100% 2px, 0 2px, 0 2px;
    }

    @keyframes nav-link-underline {
        0% {
            background-size: 0 2px, 0 2px, 0 2px;
        }

        50% {
            background-size: 0 2px, 100% 2px, 0 2px;
        }

        100% {
            background-size: 0 2px, 0 2px, 100% 2px;
        }
    }

    /* Active states for mega menu (3-level) level-1 items */
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li.current-menu-item>a,
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li.current_page_item>a,
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li.current-menu-ancestor>a {
        color: var(--electric);
        font-weight: 700;
    }

    /* Active states for mega menu (3-level) level-2 items */
    .desk-header .nav-menu-main>ul>li.has-mega-menu .sub-menu .sub-menu li.current-menu-item a,
    .desk-header .nav-menu-main>ul>li.has-mega-menu .sub-menu .sub-menu li.current_page_item a {
        color: var(--electric);
    }

    /* Active states for simple dropdown (2-level) items */
    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu>li.current-menu-item>a,
    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu>li.current_page_item>a {
        color: var(--navy);
        font-weight: 500;
    }

    .desk-header .nav-menu-main>ul {
        display: flex;
        align-items: center;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .desk-header .nav-menu-main>ul>li {
        display: inline-flex;
        align-items: center;
        position: relative;
    }

    /*.desk-header .nav-menu-main>ul>li>a {
        padding: 12px 18px;
        display: block;
    }*/

    /* MEGA MENU / SUBMENU - Base styles for all dropdowns */
    .desk-header .nav-menu-main>ul>li>.sub-menu {
        position: absolute;
        z-index: 10;
        top: 100%;
        transform: scaleY(0);
        transform-origin: center top;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        box-sizing: border-box;
        border-radius: 6px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    /* MEGA MENU - 3-level layout with columns */
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu {
        left: 50%;
        transform: translateX(-50%) scaleY(0);
        width: 100%;
        max-width: var(--wrap, 1420px);
        display: flex;
        background: #ffffff;
        padding: 40px;
        margin-top: 10px;
    }

    /* SIMPLE DROPDOWN - 2-level vertical layout */
    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu {
        left: -30px;
        transform: scaleY(0);
        min-width: 280px;
        display: block;
        background: #ffffff;
        padding: 30px;
        margin-top: 10px;
    }

    /* Show dropdowns on hover */
    .desk-header .nav-menu-main>ul>li:hover>.sub-menu,
    .desk-header .nav-menu-main>ul>li:focus-within>.sub-menu {
        opacity: 1;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu:hover>.sub-menu,
    .desk-header .nav-menu-main>ul>li.has-mega-menu:focus-within>.sub-menu {
        transform: translateX(-50%) scaleY(1);
    }

    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu):hover>.sub-menu,
    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu):focus-within>.sub-menu {
        transform: scaleY(1);
    }

    /* Mega Menu Columns - only for 3-level menus */
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li {
        flex: 1;
        padding: 0 30px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li:first-child {
        padding-left: 0;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li:last-child {
        padding-right: 0;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li+li {
        border-left: 1px solid rgba(36, 61, 115, 0.1);
    }

    /* Simple Dropdown Items - for 2-level menus */
    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu>li {
        display: block;
        width: 100%;
    }

    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu>li+li {
        margin-top: 20px;
    }

    /* Desktop: Hide mobile-only duplicate menu items */
    .desk-header .nav-menu-main .mobile-only-duplicate {
        display: none;
    }

    /* Remove margin from first visible item after hidden duplicate */
    .desk-header .nav-menu-main .mobile-only-duplicate+li {
        margin-top: 0;
    }

    /* Mega Menu Column Heading (First Level Link in 3-level menu) */
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li>a {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: var(--navy);
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 16px;
        padding: 0;
        text-decoration: none;
        transition: color 0.2s ease;
        display: block;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li>a:hover {
        color: var(--electric);
    }

    /* Simple Dropdown Links (2-level menu) */
    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu>li>a {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: rgba(12, 35, 58, 0.6);
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
        padding: 0;
        text-decoration: none;
        transition: color 0.2s ease;
        display: block;
    }

    .desk-header .nav-menu-main>ul>li:not(.has-mega-menu)>.sub-menu>li>a:hover {
        color: var(--navy);
    }

    /* Sub-submenu Container - only for mega menus (3-level) */
    .desk-header .nav-menu-main>ul>li.has-mega-menu>.sub-menu>li>.sub-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0;
        position: static;
        background: transparent;
        opacity: 1;
        transform: none;
        box-shadow: none;
    }

    /* Sub-submenu Items - only for mega menus */
    .desk-header .nav-menu-main>ul>li.has-mega-menu .sub-menu .sub-menu li {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu .sub-menu .sub-menu a {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: rgba(36, 61, 115, 0.7);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.5;
        padding: 0;
        display: block;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .desk-header .nav-menu-main>ul>li.has-mega-menu .sub-menu .sub-menu a:hover {
        color: var(--navy);
    }

    /* Hide images in mega menu */
    .desk-header .nav-menu-main .sub-menu img {
        display: none;
    }

    /* DESKTOP SEARCH BAR */
    .desk-header .search-bar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0 var(--horspace, 32px);
        background: var(--light);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        display: none;
        align-items: center;
        gap: 20px;
        grid-column: 1 / -1;
    }

    .desk-header .search-bar.on {
        display: flex;
    }

    .desk-header .search-bar form {
        flex: 1;
        gap: 15px;
    }

    .desk-header .search-bar input[type="search"] {
        height: 50px;
        font-size: 16px;
    }

    .desk-header .search-submit {
        height: 50px;
        padding: 10px 12px;
    }

    .desk-header .search-bar .close-bttn {
        margin-left: auto;
    }

    /* Hero extends behind header on desktop */
    body.hero-behind-header .mwa-top-banner .content-wrapper,
    body.hero-behind-header .top-banner .content-wrapper {
        padding-top: calc(106px + 60px);
    }
}

@media only screen and (min-width: 1440px) {
    .desk-header .header-container {
        gap: 20px;
    }

    .desk-header .nav-menu-main>ul {
        gap: 40px;
    }
}

@media only screen and (min-width: 1600px) {

    .desk-header .site-logo svg,
    .desk-header .site-logo img {
        width: 220px;
        max-height: 75px;
    }
}

/* IMPORTANT: Admin bar offset override - ensure this always applies */
body.admin-bar .site-header,
body.admin-bar .site-header.fixed,
body.admin-bar .site-header.show,
body.admin-bar .site-header.trans,
body.admin-bar .site-header.fixed.show,
body.admin-bar .site-header.fixed.trans,
body.admin-bar .site-header.fixed.show.trans {
    top: 32px !important;
}

/* ================================================
   FLOATING ACTION BUTTONS (Desktop Only)
   ================================================ */
.floating-action-buttons {
    display: none;
}

@media only screen and (min-width: 992px) {
    .floating-action-buttons {
        position: fixed;
        right: var(--horspace, 32px);
        top: 180px;
        z-index: 980;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: top 0.3s ease;
    }

    /* Quick Exit Button - Vertical with text */
    .quick-exit-bttn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 24px 13px;
        background: var(--electric);
        color: var(--light);
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 500;
        font-size: 18px;
        border: none;
        border-radius: 500px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .quick-exit-bttn i {
        font-size: 14px;
        width: 14px;
        height: 14px;
        display: inline-block;
        background: currentColor;
        -webkit-mask: url(/wp-content/themes/coastshelter/svg/link-arrow.svg) center / contain no-repeat;
        mask: url(/wp-content/themes/coastshelter/svg/link-arrow.svg) center / contain no-repeat;
    }

    .quick-exit-bttn i::before {
        content: none;
    }

    .quick-exit-bttn span {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        white-space: nowrap;
        transform: rotate(180deg);
    }

    .quick-exit-bttn:hover {
        background: var(--navy);
    }

    /* Accessibility Button - Circle with icon only */
    .accessibility-bttn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        padding: 0;
        background: var(--electric);
        color: var(--light);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .accessibility-bttn i {
        font-size: 54px;
        transition: opacity 0.2s ease;
    }

    .accessibility-bttn:hover {
        background: var(--navy);
    }

    /* Loading state for accessibility button */
    .accessibility-bttn.loading i {
        opacity: 0;
    }

    .accessibility-bttn.loading::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 24px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Admin bar adjustment */
    body.admin-bar .floating-action-buttons {
        top: 172px;
    }
}

@media only screen and (min-width: 1400px) {
    .floating-action-buttons {
        /*right: 60px;*/
    }
}