
/* ==========================================
   CABEÇALHO
========================================== */

.site-header {
    position: relative;
    background: var(--senado-marinho);
    min-height: 56px;
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

/* Logo */
.site-header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo {
    display: block;
    width: 168px;
    height: auto;
}

/* ==========================================
   NAVEGAÇÃO PRINCIPAL
   Bootstrap 3.4.1
========================================== */

.site-header__navigation {
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Container */
.site-header__navigation .container-fluid {
    padding: 0;
}

/* Container dos links */
.site-header__navigation .navbar-collapse {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Lista */
.site-header__navigation .site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    float: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Itens */
.site-header__navigation .site-header__nav > li {
    margin: 0;
    padding: 0;
}

/* Links */
.site-header__navigation .site-header__nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    color: #fff!important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    background: transparent;
    transition: color 0.2s ease;
}

/* Hover e foco */
.site-header__navigation .site-header__nav-link:hover,
.site-header__navigation .site-header__nav-link:focus {
    color: #7ab5df;
    background: transparent;
    text-decoration: none;
}

/* Link ativo */
.site-header__navigation .site-header__nav-link--active,
.site-header__navigation .site-header__nav-link--active:hover,
.site-header__navigation .site-header__nav-link--active:focus {
    color: #fff;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: #fff;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}

/* Acessibilidade */
.site-header__navigation .site-header__nav-link:focus-visible {
    outline: 2px solid #7ab5df;
    outline-offset: 3px;
}

/* ==========================================
   BOTÃO HAMBURGER
========================================== */

.site-header__navigation .navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    float: none;
    margin: 0;
    padding: 10px 12px;
    color: #fff;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 0;
    box-shadow: none;
}

.site-header__navigation .navbar-toggle:hover,
.site-header__navigation .navbar-toggle:focus {
    color: #fff;
    background: transparent;
    border-color: #7ab5df;
}

/* Ícone */
.site-header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-header__navigation .site-header__hamburger .icon-bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0;
    background: #fff;
    border-radius: 0;
}

/* Texto Menu */
.site-header__menu-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

/* ==========================================
   MOBILE - ATÉ 767px
   Bootstrap 3.4.1
========================================== */

@media (max-width: 767px) {

    /* Cabeçalho */
    .site-header {
        min-height: 56px;
    }

    /* Container principal */
    .site-header .site-header__container {
        display: block;
        position: relative;
        width: 100%;
        min-height: 56px;
    }

    /* ======================================
       LOGO - MANTÉM A POSIÇÃO
    ====================================== */

    .site-header .site-header__brand {
        position: absolute;
        top: 0;
        left: 28%;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        max-width: calc(100% - 120px);
        height: 56px;
        margin: 0;
        padding: 0;
    }

    .site-header .site-header__logo {
        display: block;
        width: 190px;
        max-width: 100%;
        height: auto;
    }

    /* ======================================
       NAVEGAÇÃO
    ====================================== */

    .site-header .site-header__navigation {
        display: block;
        position: static;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* Container Bootstrap */
    .site-header__navigation .container-fluid {
        margin: 0;
        padding: 0;
    }

    /* Linha do botão Menu */
    .site-header__navigation .navbar-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 56px;
        margin: 0;
        padding: 0;
    }

    /* Botão hamburger */
    .site-header__navigation .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        float: none;
        margin: 0;
        padding: 12px;
        color: #fff;
        background-color: #0a4c7b;
        border: none;        
        border-radius: 3px;
    }

    .site-header__navigation .navbar-toggle:hover,
    .site-header__navigation .navbar-toggle:focus {
        color: #fff;
        background-color: #0a4c7b;
        border-color: #7ab5df;
    }

    /* ======================================
       MENU EXPANSÍVEL
    ====================================== */

    .site-header__navigation .navbar-collapse {
        position: static;
        clear: both;
        width: 100%;
        max-height: none;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /*
       O Bootstrap controla automaticamente:
       .collapse
       .collapsing
       .collapse.in

       Não definir display ou height
       nesses estados.
    */

    /* Animação de abertura e fechamento */
    .site-header__navigation .navbar-collapse.collapsing {
        transition: height 0.35s ease;
    }

    /* ======================================
       LINKS DO MENU
    ====================================== */

    .site-header__navigation .site-header__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        float: none !important;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 8px 0;
    }

    /* Itens */
    .site-header__navigation .site-header__nav > li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    /* Links */
    .site-header__navigation .site-header__nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        color: #fff!important;
        min-height: 44px;
        padding: 12px 0;
        font-size: 14px;
        line-height: 1.4;
        white-space: normal;
        text-align: left;
    }

    /* Acessibilidade: movimento reduzido */
    @media (prefers-reduced-motion: reduce) {
        .site-header__navigation .navbar-collapse.collapsing {
            transition: none;
        }
    }
}
