/* ==========================================================================
   HEADER.CSS — Navegação e cabeçalho (Fixo -> Relativo + Otimização Mobile)
   ========================================================================== */

.site-header {
    position: relative !important;
    top: 0 !important;
    width: 100% !important;
    transform: none !important;
    animation: none !important;
    z-index: 9999 !important;
    background-color: var(--portal-dark, #0D1B2A);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* --- LOGO --- */
.header-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 48px;
}
.logo-premium-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1;
}
.logo-subtitle {
    font-size: 0.625rem;
    color: var(--portal-gold, #C4A04A);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-style: italic;
    margin-top: 0.25rem;
}
@media (min-width: 768px) { .logo-title { font-size: 1.5rem; } }

/* --- NAVEGAÇÃO DESKTOP --- */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.main-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D1D5DB;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-menu a { text-decoration: none; color: inherit; transition: color 0.2s; }
.main-menu a:hover { color: var(--portal-gold, #C4A04A); }
.btn-header-desktop { padding: 0.75rem 1.5rem; font-size: 0.75rem; letter-spacing: 0.1em; }

/* --- HEADER MOBILE (Otimização de Espaço) --- */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
        padding: 0 1rem;
    }
    .header-inner {
        padding: 0.5rem 0;
    }
    .header-logo {
        flex: 1;
        max-width: 150px;
    }
    .logo-premium-img {
        max-height: 40px;
    }

    .header-actions-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .btn-header-mobile {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.65rem !important;
        font-weight: 700;
        letter-spacing: 0.05em;
        white-space: nowrap;
        border-radius: 6px;
    }

    .mobile-menu-toggle {
        padding: 0.4rem;
        margin-right: -0.5rem;
        color: #fff;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .mobile-menu-toggle svg {
        width: 28px;
        height: 28px;
    }
    
    /* Menu mobile dropdown */
    .mobile-nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0D1B2A;
        border-top: 1px solid rgba(196,160,74,0.1);
        padding: 2rem 0;
        z-index: 10000;
        box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    }
    
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .mobile-menu-list a {
        color: #fff;
        text-decoration: none;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .mobile-menu-list li.current-menu-item a {
        color: var(--portal-gold, #C4A04A);
    }
}

@media (min-width: 1024px) { 
    .header-actions-mobile { display: none; }
    .mobile-nav-wrapper { display: none !important; } 
}

/* Animações Alpine */
.mobile-menu-enter       { transition: all 0.2s ease-out; }
.mobile-menu-enter-start { opacity: 0; transform: translateY(-1rem); }
.mobile-menu-enter-end   { opacity: 1; transform: translateY(0); }