/* ==================================================
   HEADER — BASE (DESKTOP LARGO) - v0.5
================================================== */

.sr-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    background: transparent;
}

.header-flex {
    width: 1200px;
    max-width: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Botão Mobile (hambúrguer) — base */
.header-mobile-btn {
    display: none; /* desktop */
    width: 32px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.header-mobile-btn span {
    height: 2px;
    width: 100%;
    background: #ffffff;
    border-radius: 2px;
}

/* Logo */
.header-logo img {
    height: 110px;
}

/* Menu */
.header-menu {
    display: flex;
    align-items: center;
}

.header-menu a {
    margin: 0 14px;
    font-size: 20px;
    font-weight: 500;
}

/* CTA */
.btn-menu-blue {
    background: #0066ff;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

/* Idioma */
.lang-switch {
    position: relative;
    margin-left: 16px;
}

.lang-current {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.lang-current img {
    width: 28px;
}

.lang-label {
    display: none;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* Dropdown desktop */
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10,17,36,0.95);
    border-radius: 14px;
    padding: 8px;
    min-width: 180px;
    flex-direction: column;
    gap: 4px;
}

/* ==================================================
   DROPDOWN DE IDIOMA — DESKTOP (FIX DEFINITIVO)
================================================== */

.lang-dropdown button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    color: #ffffff;
    white-space: nowrap;
}

.lang-dropdown button:hover {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}

.lang-dropdown img {
    width: 22px;
    height: auto;
    flex-shrink: 0;
}

.lang-dropdown span {
    line-height: 1;
}


@media (min-width: 951px) {
    .lang-switch:hover .lang-dropdown {
        display: flex;
    }
}

/* ==================================================
   HEADER COMPACTO — ≤1100px (ATÉ 751px)
================================================== */
@media (max-width: 1100px) {

    .header-logo img {
        height: 80px;
    }

    .header-menu a {
        font-size: 16px;
        margin: 0 10px;
    }

    .btn-menu-blue {
        font-size: 15px;
        padding: 10px 20px;
        border-radius: 18px;
    }

    .lang-label {
        display: inline-block;
        font-size: 14px;
        color: #ffffff;
    }
}

/* ==================================================
   MOBILE — ≤950px (menu vira hambúrguer)
================================================== */
@media (max-width: 950px) {

    .header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10,17,36,0.98);
        padding: 24px;
        flex-direction: column;
        gap: 12px;
    }

    .header-menu.open {
        display: flex;
    }

    .header-mobile-btn {
        display: flex;
    }
}

/* ==================================================
   OVERLAY IDIOMA
================================================== */

.lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,17,36,0.98);
    display: none;
    z-index: 999;
}

.lang-overlay.active {
    display: flex;
}

.lang-overlay-inner,
.lang-overlay-inner * {
    color: #ffffff !important;
}
