/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
    flex-shrink: 0;
    z-index: 1100; /* Garante que fique acima do menu mobile */
}

.dot { color: var(--primary-color); }

/* Container que agrupa Menu + Idioma + Lua no Mobile */
.nav-wrapper-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style: none;
}

.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-main); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
}

.lang-btn {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-nav {
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ÍCONE MENU HAMBÚRGUER */
.mobile-menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.mobile-menu-icon .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* --- RESPONSIVIDADE (MENU GAVETA) --- */
@media (max-width: 768px) {
    .mobile-menu-icon { display: flex; }

    /* Transformação para o 'X' */
    .mobile-menu-icon.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-icon.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-icon.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido */
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1050;
    }

    .nav-links.active { right: 0; }

    /* Removemos o display:none para os links aparecerem na gaveta */
    .nav-links li:not(.nav-actions) { display: block !important; }
    
    /* Fazemos com que os botões de ação NÃO sumam da barra principal */
    .nav-actions {
        position: relative;
        z-index: 1100;
    }

    .nav-links a {
        font-size: 1.5rem; /* Links maiores na gaveta */
    }

    /* Esconde o botão de orçamento flutuante se necessário */
    .btn-nav { border: none; padding: 0; }

    .logo { font-size: 1.2rem; }
    .theme-btn, .lang-btn { transform: scale(0.9); }

    /* Ajustes Hero */
    #home { padding-top: 130px; text-align: center; }
    h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
}