body.admin-bar {
    --adminbar-h: 32px;
}

@media only screen and (max-width: 782px) {
    body.admin-bar {
        --adminbar-h: 46px;
    }

    body.admin-bar #wpadminbar {
        position: fixed;
        top: 0;
        bottom: auto;
        z-index: 99999;
    }
}

header {
    position: fixed;
    top: var(--adminbar-h);
    left: 0;
    right: 0;
    z-index: 900;
    box-shadow: none;
    height: var(--header-h);
    transition: background .25s ease, box-shadow .25s ease;
}

body.header-floating header {
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

body.header-floating header .header-wrapper .logo {
    background-color: var(--color-coconut-husk);
    width: 7rem;
    mask-image: var(--logo-horizontal-url);
    -webkit-mask-image: var(--logo-horizontal-url);

    @media only screen and (max-width: 1023px) {
        width: 7rem;
        height: 3rem;
    }
}

body.header-floating header .header-wrapper,
body.header-floating header .header-wrapper a,
body.header-floating header .header-wrapper .menu-title {
    color: var(--color-coconut-husk);
}

body.header-floating header .header-wrapper .menu-toggle .menu-icon,
body.header-floating header .header-wrapper .menu-toggle .close-icon {
    background-color: var(--color-coconut-husk);
}

header .button-outline-light,
header .button-outline {
    border: 1px solid var(--color-sea-salt-white);
    color: var(--color-sea-salt-white);
    background: transparent;
    transition: all .3s ease;
}

header .button-outline-light:hover,
header .button-outline:hover {
    background: var(--color-sea-salt-white);
    color: var(--color-coconut-husk);
}

body.header-floating header .button-outline-light,
body.header-floating header .button-outline {
    border-color: var(--color-coconut-husk);
    color: var(--color-sea-salt-white) !important;
    background: var(--color-coconut-husk) !important;
}

body.header-floating header .button-outline-light:hover,
body.header-floating header .button-outline:hover {
    border: 1px solid var(--color-coconut-husk) !important;
    background: transparent !important;
    color: var(--color-coconut-husk) !important;

}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;

    @media only screen and (max-width: 1023px) {
        flex-direction: row-reverse;
        background-color: white;
    }
}

.header-wrapper a {
    @media only screen and (max-width: 1023px) {
        display: none;
    }
}

.header-wrapper .logo {
    display: inline-block;
    width: 5rem;
    height: 5rem;
    background-color: white;
    mask-image: var(--logo-url);
    -webkit-mask-image: var(--logo-url);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;

    @media only screen and (max-width: 1023px) {
        width: 7rem;
        height: 3rem;
        background-color: var(--color-coconut-husk);
        mask-image: var(--logo-horizontal-url);
        -webkit-mask-image: var(--logo-horizontal-url);
    }
}

.header-wrapper .menu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;

    @media only screen and (max-width: 1023px) {
        &:hover .menu-icon {
            transform: none;
        }

        &:hover .close-icon {
            transform: none;
        }
    }
}

.header-wrapper .menu-toggle .menu-icon {
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background-color: white;
    mask-image: var(--menu-icon);
    -webkit-mask-image: var(--menu-icon);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transition: transform 0.25s ease;

    @media only screen and (max-width: 1023px) {
        transition: none;
        background-color: var(--color-coconut-husk);
    }
}

.header-wrapper .menu-toggle:hover .menu-icon {
    transform: scaleX(1.2);

    @media only screen and (max-width: 1023px) {
        transform: none;
    }
}

.header-wrapper .menu-toggle .close-icon {
    display: inline-block;
    width: 1.8rem;
    height: 1.8rem;
    background-color: var(--color-coconut-husk);
    mask-image: var(--x-icon);
    -webkit-mask-image: var(--x-icon);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transition: transform 0.35s ease;

    @media only screen and (max-width: 1023px) {
        transition: none;
    }
}

.header-wrapper .menu-toggle:hover .close-icon {
    transform: rotate(90deg);

    @media only screen and (max-width: 1023px) {
        transform: none;
    }
}

.header-wrapper .menu-toggle .menu-title {
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.3px;
    color: white;

    @media only screen and (max-width: 1023px) {
        display: none;
    }
}

.menu-overlay {
    position: fixed;
    inset: 0;
    top: var(--adminbar-h);
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms cubic-bezier(.2, .7, .2, 1);
    z-index: 998;
}

.menu-panel {
    position: fixed;
    top: var(--adminbar-h);
    left: 0;
    width: 100vw;
    height: calc(100dvh - var(--adminbar-h));
    background: white;
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(.2, .7, .2, 1);
    z-index: 999;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    display: block;
}

.menu-panel .menu-panel-close {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;

    @media only screen and (max-width: 1023px) {
        justify-content: end;
        margin-bottom: 0;

        &:hover .close-icon {
            transform: none;
        }
    }
}

.menu-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    @media only screen and (max-width: 1023px) {
        grid-template-columns: 1fr;
    }
}

.menu-col-left {
    min-width: 0;
    min-height: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    @media only screen and (max-width: 1023px) {
        gap: 1rem;
        justify-content: flex-start;
        padding: 1rem 1rem 0 1rem;
    }
}

.menu-col-left .inner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: end;
    padding: 0 2rem 0 0;
    flex: 1; /* Add this - allows it to shrink */
    min-height: 0; /* Add this - allows flexbox to shrink below content size */
    overflow-y: auto;

    @media only screen and (max-width: 1023px) {
        align-items: start;
        padding: 0;
    }
}

.menu-col-right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: var(--menu-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;

    @media only screen and (max-width: 1023px) {
        padding: 2rem;
    }
}

.menu-col-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 0;
    pointer-events: none;
}

.menu-col-right > * {
    position: relative;
    z-index: 1;
}

.menu-col-right h5,
.menu-col-right p {
    color: var(--color-sea-salt-white);

    @media only screen and (max-width: 1023px) {
        display: none;
    }
}

.menu-col-right h5 {
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: .6px;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.menu-col-right p {
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    max-width: 46ch;
    margin: 0 0 1.25rem 0;
}

.menu-panel .primary-nav {
    @media only screen and (max-width: 1023px) {
        width: 100%;
    }
}

.menu-panel .primary-nav .menu {
    list-style: none;
    margin: 0 0 6rem 0;
    padding: 3rem 0 0 0;
    text-align: end;

    @media only screen and (max-width: 1023px) {
        margin: 0;
        padding: 3rem 0 0 0;
        text-align: start;
        width: 100%;
    }
}

.menu-panel .primary-nav .menu > li {
    @media only screen and (max-width: 1023px) {
        display: block;
        width: 100%;
    }
}

.menu-panel .primary-nav .menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 0;
    text-transform: uppercase;
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-coconut-husk);
    text-decoration: none;
    letter-spacing: 0.7px;
    transition: color 300ms cubic-bezier(.2, .8, .2, 1);

    @media only screen and (max-width: 1023px) {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0;
        transition: none;

        &::before {
            content: none !important;
            width: 0;
            height: 0;
            opacity: 0 !important;
            transform: none !important;
            transition: none !important;
        }

        &::after {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }

        &:hover::before,
        &:focus-visible::before {
            content: none !important;
            opacity: 0 !important;
            transform: none !important;
        }

        &:hover::after,
        &:focus-visible::after {
            opacity: 1 !important;
            transform: none !important;
        }
    }
}

.menu-panel .primary-nav .menu > li > a::after,
.menu-panel .primary-nav .menu > li > a::before {
    content: "";
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-color: currentColor;
    margin-left: 0.1rem;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 50% 50%;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: 50% 50%;
    mask-size: contain;
    backface-visibility: hidden;
    pointer-events: none;
}

.menu-panel .primary-nav .menu > li > a::after {
    -webkit-mask: var(--arrow-right-icon) no-repeat 50% 50% / contain;
    mask: var(--arrow-right-icon) no-repeat 50% 50% / contain;
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: opacity 260ms cubic-bezier(.22, .61, .36, 1), transform 420ms cubic-bezier(.22, .61, .36, 1);
}

.menu-panel .primary-nav .menu > li > a::before {
    -webkit-mask: var(--arrow-long-right-icon) no-repeat 50% 50% / contain;
    mask: var(--arrow-long-right-icon) no-repeat 50% 50% / contain;
    position: absolute;
    right: 0;
    width: 1.8em;
    height: 1.8em;
    opacity: 0;
    transform: translateX(-12px) translateY(0);
    transition: opacity 360ms cubic-bezier(.22, .61, .36, 1) 40ms, transform 420ms cubic-bezier(.22, .61, .36, 1) 40ms;
}

.menu-panel .primary-nav .menu > li > a:hover::after,
.menu-panel .primary-nav .menu > li > a:focus-visible::after {
    opacity: 0;
    transform: translateX(18px) translateY(0);
}

.menu-panel .primary-nav .menu > li > a:hover::before,
.menu-panel .primary-nav .menu > li > a:focus-visible::before {
    opacity: 1;
    transform: translateX(18px) translateY(0);
}

.menu-panel .menu-panel-close .close-icon {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--color-coconut-husk);
    mask-image: var(--x-icon);
    -webkit-mask-image: var(--x-icon);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transition: transform 0.35s ease;

    @media only screen and (max-width: 1023px) {
        transition: none;
    }
}

.menu-panel .menu-panel-close:hover .close-icon {
    transform: rotate(90deg);

    @media only screen and (max-width: 1023px) {
        transform: none;
    }
}

.menu-panel .menu-panel-close .menu-title-close {
    font-family: var(--font-family), sans-serif;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.3px;
    color: var(--color-coconut-husk);

    @media only screen and (max-width: 1023px) {
        display: none;
    }
}

.menu-panel .menu-footer {
    display: flex;
    flex-direction: column;
    border-bottom: 0.05rem solid var(--color-coconut-husk);

    @media only screen and (max-width: 1023px) {
        border-bottom: 0;
        border-top: 0.1rem solid var(--color-coconut-husk);
    }
}

.menu-footer a {
    position: relative;
    color: var(--color-coconut-husk);
    text-decoration: none;
    transition: color 0.25s ease;

    @media only screen and (max-width: 1023px) {
        transition: none;
    }
}

.menu-footer a:hover {
    color: var(--color-coconut-husk);
}

.menu-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 0.5px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;

    @media only screen and (max-width: 1023px) {
        display: none;
    }
}


.menu-footer a:hover::after,
.menu-footer a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;

    @media only screen and (max-width: 1023px) {
        transform: none;
    }
}

.menu-footer a:not(:hover)::after {
    transform-origin: right;

    @media only screen and (max-width: 1023px) {
        transform-origin: unset;
    }
}

.menu-panel .menu-footer h5 {
    @media only screen and (max-width: 1023px) {
        padding: 1rem 0 0 0;
    }
}

.menu-panel .menu-footer div {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding-bottom: 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);

    @media only screen and (max-width: 1023px) {
        flex-direction: column;
        align-items: start;
    }
}

.menu-panel .menu-footer div > div {
    max-width: 33.333%;

    @media only screen and (max-width: 1023px) {
        max-width: 100%;
    }
}

.menu-panel .logo {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    background-color: var(--color-coconut-husk);
    mask-image: var(--logo-url);
    -webkit-mask-image: var(--logo-url);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    flex-shrink: 0 !important;
}

body.menu-open .menu-panel {
    transform: translateX(0);
}

body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.lock-scroll {
    position: fixed;
    overflow: hidden;
    inline-size: 100%;
}