/* =========================================
   Header - Estilos Institucionais UEMS (Padrão Helios UEMS)
   ========================================= */

.site-header,
.site-header-exact {
    background-color: #ffffff;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .site-header,
    .site-header-exact {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header,
    .site-header-exact {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.site-header__container,
.site-header-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-header__brand,
.site-header-brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__logo-link {
    opacity: 1;
    display: inline-flex;
    align-items: center;
    transition: opacity 150ms ease-in-out;
}

.site-header__logo-link:hover {
    opacity: 0.8;
}

.site-header__logo,
.site-header-logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-header__title-wrapper,
.site-header-title-divider {
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
}

.site-header__title-link {
    display: block;
    text-decoration: none;
}

.site-header__title,
.site-header-title-text {
    font-family: 'Maven Pro', 'Work Sans', system-ui, -apple-system, sans-serif !important;
    font-weight: 700 !important;
    color: #1f6795 !important;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
    border-bottom: 1px solid transparent;
    display: inline-block;
    transition: border-color 150ms ease-in-out, color 150ms ease-in-out;
    margin-bottom: 0;
    line-height: 1.2;
    text-transform: uppercase;
    font-size: 30px !important;
}

.site-header__title-link:hover .site-header__title,
.site-header__title-link:hover .site-header-title-text {
    border-bottom-color: #93c5fd;
    color: #004a99 !important;
}

@media (max-width: 768px) {
    .site-header__title,
    .site-header-title-text {
        font-size: 20px !important;
    }
    .site-header__logo,
    .site-header-logo-img {
        height: 2.25rem;
    }
}


/* =========================================
   Seletor de Idiomas (i18n)
   ========================================= */

.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switcher__container {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px;
    gap: 2px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-family: 'Maven Pro', 'Work Sans', system-ui, -apple-system, sans-serif;
    font-size: 0.775rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 150ms ease-in-out;
    line-height: 1;
}

.lang-pill:hover {
    color: #1f6795;
    background-color: rgba(31, 103, 149, 0.08);
}

.lang-pill--active {
    background-color: #1f6795 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(31, 103, 149, 0.3);
}

.lang-pill__flag {
    font-size: 0.85rem;
    line-height: 1;
}

.lang-pill__label {
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    .site-header__container,
    .site-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .site-header__lang-switcher {
        align-self: flex-end;
    }
}
