/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

/* Centraliza todo o conteúdo do header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

/* Estilo da Logo */
.logo {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

.logo img {
    width: 150px;
    height: auto;
}

/* Reduz tamanho da logo em telas menores */
@media (max-width: 768px) {
    .logo img {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 100px;
    }
}

/* Estilos do Menu */
.navlist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.navlist a {
    color: var(--text-color);
    font-size: var(--p-font);
    transition: all 0.6s ease;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

/* Hover no menu normal (Desktop) */
.navlist a:hover {
    background: rgba(255, 255, 255, 0.3); /* Faixa branca transparente */
    color: var(--main-color);
}

/* Ajuste para telas maiores */
@media (min-width: 1024px) {
    .header-container {
        justify-content: space-between;
    }

    .navlist {
        flex-grow: 1;
        justify-content: center;
    }
}

/* Menu Hambúrguer (aparece em telas menores) */
#menu-icon {
    font-size: 30px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

/* Responsividade: Ativar Menu Hambúrguer em telas menores */
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    /* Esconder lista padrão */
    .navlist {
        position: fixed;
        top: 60px;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    /* Estilo dos links no menu mobile */
    .navlist a {
        color: #fff;
        font-size: 1.5rem;
        text-decoration: none;
        padding: 15px 30px;
        width: 100%;
        text-align: center;
        display: block;
        position: relative;
        transition: background 0.3s ease;
    }

    /* Hover no menu mobile: Faixa branca transparente */
    .navlist a:hover {
        background: rgba(255, 255, 255, 0.3);
        color: #fff;
        border-radius: 5px;
    }

    /* Ativar menu */
    .navlist.active {
        transform: translateX(0);
    }
}
