/* ============================================
   COMPONENT: Language switcher (dropdown)
   Compact dropdown (current flag + short code) built by
   js/components/language_switcher.js on top of the hidden
   GTranslate widget (.lang-switcher__engine).
   ============================================ */

.lang-switcher {
    position: relative;
    margin-left: 16px;
    margin-right: 16px;   /* breathing room before the Get In Touch button */
    flex-shrink: 0;
    min-width: 92px;    /* reserves space while the widget boots */
    min-height: 36px;
}

/* The GTranslate-rendered flag links: kept for the JS to click,
   never shown. (Not display:none — keep layout/img loading sane.) */
.lang-switcher__engine {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ----- Toggle button ----- */
.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);   /* #ffebf0 */
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #3e2e2d;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.lang-switcher__btn:hover {
    border-color: rgba(255, 100, 133, 0.45);
    box-shadow: var(--shadow-card);
}
.lang-switcher__btn img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: block;
}
.lang-switcher__chevron {
    display: inline-flex;
    color: #acb6bb;
}
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
    transform: rotate(180deg);
}

/* ----- Menu ----- */
.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 200;   /* above the sticky navbar content */
    min-width: 124px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(12, 39, 51, 0.14);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lang-switcher__menu[hidden] {
    display: none;
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    border-radius: 7px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #3e2e2d;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}
.lang-switcher__item:hover {
    background: #f8f8f8;
}
.lang-switcher__item[aria-selected="true"] {
    background: var(--color-primary-light);
    font-weight: var(--font-weight-semibold);
}
.lang-switcher__item img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: block;
}

/* Hide Google Translate's injected top banner frame if it appears */
.skiptranslate iframe {
    display: none !important;
}
body {
    top: 0 !important;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .lang-switcher {
        margin-left: 10px;
    }
}

@media (max-width: 1024px) {
    /* Mobile bar: logo · dropdown · CTA · burger */
    .lang-switcher {
        order: 2;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        min-width: 0;
    }
    .lang-switcher__btn {
        padding: 5px 8px;
        gap: 5px;
    }
}
