#brx-header {
    position: relative;
    z-index: 99990 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1240px;
    width: calc(100% - 2rem);
    border-radius: 0.5rem;
    margin: 2rem auto;
    padding: 0.8rem 1rem;

    @media (min-width: 768px) {
        position: sticky;
        top: 1rem;
        z-index: 100 !important;
        justify-content: space-between;
        margin: 4rem auto;
        background-color: rgba(0, 0, 0, 0.80);
        border: 1px solid var(--color-blue);
        transform: translateY(0);
        transition: transform 0.3s ease;
        will-change: transform;
    }
}

@media (min-width: 768px) {
    #brx-header.esa-header-is-hidden {
        transform: translateY(calc(-100% - 5rem));
    }
}

.site-header__logo {
    img {
        height: 3rem;
    }
}

.site-header__nav {
    position: relative;
    z-index: 99990 !important;

    .bricks-mobile-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .bricks-mobile-menu-toggle {
        position: fixed;
        right: auto;
        bottom: 60px;
        left: 50%;
        width: 64px;
        height: 64px;
        background-color: transparent;
        background-image: url("/wp-content/uploads/2026/06/open-mobile.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transform: translateX(-50%);
        z-index: 100030 !important;

        span {
            display: none;
        }
    }

    .bricks-mobile-menu-wrapper {
        --esa-mobile-menu-y: 100%;
        top: calc(var(--wp-admin--admin-bar--height, 0px) + (var(--bricks-vh, 1vh) * 10));
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: calc((var(--bricks-vh, 1vh) * 90) - var(--wp-admin--admin-bar--height, 0px));
        transform: translate3d(0, var(--esa-mobile-menu-y), 0) !important;
        transition: none;
        will-change: transform;
        z-index: 100020 !important;
    }

    .bricks-mobile-menu-overlay {
        z-index: 100010 !important;
    }

    .bricks-mobile-menu,
    .bricks-mobile-menu .menu-item {
        width: 100%;
        a {
            line-height: 1;
        }
    }

    .bricks-mobile-menu {
        .menu-item-has-children {
            cursor: pointer;
            display: block;
            width: 100%;

            > .brx-submenu-toggle {
                align-items: center;
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                width: 100%;
                line-height: 1;

                > a,
                > .esa-mobile-parent-toggle {
                    align-items: center;
                    background: transparent;
                    border: 0;
                    color: inherit;
                    cursor: pointer;
                    display: flex;
                    flex: 1;
                    font: inherit;
                    text-align: inherit;
                    text-transform: inherit;
                }
            }
        }
    }

    @media (min-width: 768px) {
        z-index: auto !important;

        .bricks-nav-menu {
            align-items: center;
            gap: 2rem;

            a {
                font-family: var(--font-labels);
                font-size: var(--text-cta);
                line-height: 1.5;
                letter-spacing: 1.2px;
                text-transform: uppercase;
            }

            button {
                width: 16px;
                height: 16px;
                margin-left: 8px;
                transition: color 0.25s, transform 0.25s;
            }

            > .menu-item:not(:last-child):hover {
                > a,
                > .brx-submenu-toggle > a {
                    color: var(--color-blue-two);
                    text-decoration: underline;
                }

                > .brx-submenu-toggle > button {
                    color: var(--color-blue-two);
                }
            }

            > .menu-item-has-children {
                position: relative;
                z-index: 101;

                &:hover > .brx-submenu-toggle button {
                    transform: rotate(180deg);
                }

                > .sub-menu {
                    top: calc(100% + 1.75rem + 8px);
                    left: -24px;
                    background-color: rgba(0, 0, 0, 0.80);
                    padding: 1.5rem;
                    border-radius: 6px;
                    z-index: 1000;
                }

                > .sub-menu::before {
                    content: "";
                    position: absolute;
                    right: 0;
                    bottom: 100%;
                    left: 0;
                    height: calc(1.75rem + 8px);
                }
            }

            > .menu-item:last-child > a {
                text-decoration: none;
            }
        }

        .bricks-mobile-menu-wrapper {
            display: none !important;
            transform: none !important;
        }

        .sub-menu .menu-item:hover {
            > a,
            > .brx-submenu-toggle > a {
                color: var(--color-blue-two);
                text-decoration: underline;
            }

            > .brx-submenu-toggle > button {
                color: var(--color-blue-two);
            }
        }
    }
}

.site-header__nav.show-mobile-menu {
    .bricks-mobile-menu-toggle {
        background-image: url("/wp-content/uploads/2026/06/close-mobile.svg");
        transform: translateX(-50%);
        z-index: 100030 !important;
    }

    .bricks-mobile-menu-wrapper {
        padding: 4rem 2rem;
        transform: translate3d(0, var(--esa-mobile-menu-y), 0) !important;
        z-index: 100020 !important;
    }

    .bricks-mobile-menu-overlay {
        z-index: 100010 !important;
    }
}

.site-header__nav.esa-mobile-menu-is-opening .bricks-mobile-menu-wrapper,
.site-header__nav.esa-mobile-menu-is-closing .bricks-mobile-menu-wrapper {
    opacity: 1 !important;
    pointer-events: auto;
    visibility: visible !important;
    z-index: 100020 !important;
}

.bricks-mobile-menu {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-black);

    svg {
        height: 24px;
    }

    .open svg {
        transform: rotate(180deg);
    }

    .sub-menu {
        padding-top: 1.5rem;
        padding-left: 1.5rem;

        .menu-item {
            color: var(--color-black);
        }
    }
}

.sub-menu {
    .menu-item {
        margin-bottom: 16px;
    }

    .menu-item:last-child {
        margin-bottom: 0;
    }
}

.brxe-nav-menu {
    .bricks-mobile-menu-wrapper::before {
        background-color: var(--color-blue) !important;
    }
}