/* Language switcher — PT / EN com bandeiras */

/* Footer / grupo — duas opções */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.lang-switcher__option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher__option:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-switcher__option.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.lang-switcher__flag {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.lang-switcher__flag-svg {
    display: block;
}

.lang-switcher__label {
    line-height: 1;
}

/* Header / mobile — um clique alterna idioma (discreto) */
.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
    margin-right: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-switcher__toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.lang-switcher__toggle .lang-switcher__flag-svg {
    width: 18px;
    height: auto;
}

.navbar:not(.navbar-home):not(.navbar-cadu) .lang-switcher__toggle,
.navbar.navbar-scrolled .lang-switcher__toggle {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(8, 8, 8, 0.65);
}

.navbar:not(.navbar-home):not(.navbar-cadu) .lang-switcher__toggle:hover,
.navbar.navbar-scrolled .lang-switcher__toggle:hover {
    color: rgba(8, 8, 8, 0.9);
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.04);
}

/* Footer — destaque suave no idioma ativo */
.lang-switcher--footer {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switcher--footer .lang-switcher__option.is-active {
    color: #080808;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.footer-lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-lang__label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile menu */
.lang-switcher--mobile.lang-switcher__toggle {
    width: 100%;
    justify-content: center;
    min-height: 2.5rem;
    margin-bottom: 0.5rem;
    margin-right: 0;
    font-size: 0.8125rem;
}

@media (max-width: 1023px) {
    .lang-switcher--header.lang-switcher__toggle {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lang-switcher--header.lang-switcher__toggle .lang-switcher__label {
        display: none;
    }
}
