/* Cores principais*/
:root{
    --blue-dark:#0d2a52;
    --blue-dark2:#0d2d50;
    --blue-light:#1e3a8a;
    --orange:#fca311;
    --white:#ffffff;
    --black:#000000;
    --red-orange:#ff7f50;
    --bright-red:#9b111e;
    --gray:#666666;
    --light-gray:#e8e9eb;
}

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--white);
}

header{
    display: flex;
    padding: 1rem 2rem;
    background-color: var(--white);
    color: var(--gray);
    justify-content: space-between;
    align-items: center;
}

.logo img{
    max-width: 100%;
    width: 150px;
    height: auto;
}

.header-section{
    justify-content: space-between;
}

.nav-links{
    list-style: none;
    display: flex;
    gap: 1.5em;
}

nav ul{
    margin: 0;
    padding: 0;

}

nav ul li:last-child{
    font-weight: bold;
}

nav a{
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover{
    color: var(--blue-light);
}

.title{
    color: var(--white);
    font-size: 40px;
}

/* Estilos Base (Aplicados em todas as telas, mas focados em Desktop) */
.head-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    color: black;
}

.head-section a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: bold;
}

/* Estilos do Hamburger (Escondido no Desktop) */
.hamburger {
    display: none; 
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s linear;
}

/* Estilo do Seletor de Idioma no Desktop */
.language-selector {
    margin-left: 20px; 
    display: flex;
    align-items: center;
}

.language-selector a {
    padding: 5px;
    font-weight: bold;
}

.language-selector a.active {
    color: #ff9900; /* Laranja de destaque */
}

.language-selector .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

/*
 * ====================================
 * RESPONSIVIDADE PARA O HEADER (Mobile)
 * ====================================
 */
 @media (max-width: 768px) {
    /* Mostra o ícone Hamburger */
    .hamburger {
        display: flex; 
        z-index: 30; /* Garante que o ícone fique por cima do menu */
    }

    /* Esconde os Links de Navegação */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh; /* Ocupa a altura total da tela */
        width: 60%; /* Ocupa 60% da largura da tela */
        background-color: #1a4a82; 
        
        flex-direction: column;
        justify-content: flex-start; /* Alinha o menu ao topo */
        padding-top: 80px;
        
        /* NOVO: Para esconder o menu fora da tela */
        transform: translateX(100%); 
        transition: transform 0.3s ease-in-out;
        z-index: 20;
    }

    /* Estilo dos itens no menu mobile */
    .nav-links li {
        text-align: left;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Estado Ativo/Aberto (Controlado por JavaScript) */
    .nav-links.nav-active {
        transform: translateX(0); /* Move o menu para dentro da tela */
    }

    /* Ajuste para o Seletor de Idioma no Mobile */
    .language-selector {
        /* Move o seletor para dentro da área de links se for pequeno */
        position: absolute;
        top: 20px;
        right: 80px; 
        font-size: 0.9em;
    }
}