/* Menu global — usado pela home e subpáginas via assets/js/site-nav.js */

#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

body.mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 40;
    pointer-events: none;
}

.mobile-submenu {
    max-height: 0;
    opacity: 0.7;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.mobile-submenu.open {
    max-height: 220px;
    opacity: 1;
}

.mobile-cta-group {
    padding-top: 12px;
}

.mobile-login-link {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
}

.mobile-login-link::before,
.mobile-login-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(255, 209, 0, 0.01) 0%,
        rgba(255, 209, 0, 0.04) 20%,
        rgba(255, 209, 0, 0.4) 50%,
        rgba(255, 209, 0, 0.04) 80%,
        rgba(255, 209, 0, 0.01) 100%
    );
}

.mobile-login-link::before {
    top: 0;
}

.mobile-login-link::after {
    bottom: 0;
}

.desktop-nav-850 {
    display: none;
}

.mobile-nav-850 {
    display: block;
}

@media (min-width: 850px) {
    .desktop-nav-850 {
        display: flex !important;
    }

    .mobile-nav-850 {
        display: none !important;
    }
}

@media (min-width: 850px) and (max-width: 1019px) {
    .brand-text {
        display: none !important;
    }
}

.site-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
}

#navbar {
    position: relative;
    background-color: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent !important;
    z-index: 1;
}

#navbar.navbar-solid {
    background-color: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(0.92);
    transform-origin: center;
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(
        to right,
        rgba(255, 209, 0, 0.01) 0%,
        rgba(255, 209, 0, 0.03) 20%,
        rgba(255, 209, 0, 0.48) 50%,
        rgba(255, 209, 0, 0.03) 80%,
        rgba(255, 209, 0, 0.01) 100%
    );
}

#navbar.navbar-solid::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
    z-index: 10000;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#navbar .site-nav-active {
    color: #ffd100 !important;
}
