:root {
    --primary-color: #0b2246;      /* Azul escuro de fundo */
    --secondary-color: #1a3862;    /* Tom de hover e fundo mobile */
    --accent-color: #ffb800;       /* Amarelo do botão/número */
    --text-color: #ffffff;
    --border-color: #173b70;      /* Linha azul clara inferior */
}

.site-header {
    background-color: var(--primary-color);
    width: 100%;
    height: 65.5px;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.header-container {
    max-width: 1152px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* 1 - Área do Logotipo */
.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
}

.logo-ball-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.candidate-number {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.2rem;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: -0.01em;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 900;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: #8da4c4;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.header-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* 2 e 3 - Áreas de Menu e Social */
.header-menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.header-nav {
    display: flex;
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav a, 
.header-nav a:active, 
.header-nav a:visited {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Efeito Hover do Menu (conforme Imagem 2) */
.header-nav a:hover,
.header-nav .current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 3 - Área Social */
.header-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__social-icon {
    color: #ffffff;
    font-size: 1.1rem;
    transition: opacity 0.2s ease;
}

.header-action a:hover .header__social-icon {
    opacity: 0.8;
}

/* Mobile Hamburguer */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
}

/* Responsivo */
@media (max-width: 991px) {
    .mobile-menu-toggle { 
        display: flex; 
    }

    .header-menu-wrapper {
        position: absolute;
        top: 65.5px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
        gap: 0;
    }

    .header-menu-wrapper.is-active {
        max-height: 500px;
        padding: 20px 0;
        transition: max-height 0.4s ease-in-out;
    }

    .header-nav { 
        width: 100%; 
    }

    .header-nav ul { 
        flex-direction: column; 
        width: 100%; 
        gap: 8px; 
    }

    .header-nav li { 
        width: 100%; 
        text-align: center; 
    }

    .header-nav a { 
        display: block; 
        padding: 10px 20px; 
    }

    .header-action { 
        margin-top: 15px; 
        justify-content: center;
        width: 100%;
        gap: 20px;
    }
    
    .header__social-icon {
        font-size: 1.3rem;
    }
}