/* Seletor PT / EN no cabeçalho */
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-switcher-desktop {
    margin-left: 14px;
}

/* Em desktop, a versão mobile fica escondida */
.language-switcher-mobile {
    display: none;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all .25s ease;
}

.language-btn:hover,
.language-btn:focus {
    background: rgba(255,255,255,.16);
    color: #fff;
    text-decoration: none;
    outline: none;
}

.language-btn.is-active {
    background: #fff;
    border-color: #fff;
    color: #111;
}

@media (max-width: 991px) {
    /* O seletor desktop está dentro do menu colapsável; não o duplicar */
    .language-switcher-desktop {
        display: none !important;
    }

    /* Logo | PT EN | hamburger */
    .language-switcher-mobile {
        display: inline-flex !important;
        margin-left: auto;
        margin-right: 12px;
        padding: 0;
        flex-shrink: 0;
    }

    .language-switcher-mobile .language-btn {
        min-width: 34px;
        height: 30px;
        padding: 0 7px;
        font-size: 12px;
    }

    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar-brand img {
        max-width: 150px;
        height: auto;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        max-width: 125px;
    }

    .language-switcher-mobile {
        gap: 4px;
        margin-right: 8px;
    }

    .language-switcher-mobile .language-btn {
        min-width: 30px;
        height: 28px;
        padding: 0 5px;
        font-size: 11px;
    }
}