/* ============================================================
   i18n.css — Language toggle styles for Beauty Atelier IN
   ============================================================ */

/* ---- Language Toggle — pill capsule style ---- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 3px;
    margin-left: 16px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    vertical-align: middle;
    flex-shrink: 0;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
}

.lang-toggle__option {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1.2;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
}

.lang-toggle__option.active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.lang-toggle__option:hover:not(.active) {
    color: rgba(255, 255, 255, 0.82);
}

/* hide the old divider — not needed with pill design */
.lang-toggle__divider {
    display: none;
}

/* ---- Mobile nav version ---- */
.mobile-nav__lang {
    padding: 12px 0 4px;
    display: flex;
    align-items: center;
}

.mobile-nav__lang .lang-toggle {
    margin-left: 0;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

/* ---- Smooth content transition on language switch ---- */
body {
    transition: opacity 0.15s ease;
}

body.lang-switching {
    opacity: 0;
}

/* ---- Responsive: hide topbar toggle on small screens ---- */
@media (max-width: 991px) {
    .topbar-one .lang-toggle {
        display: none;
    }
}

/* ---- Footer copyright ---- */
.main-footer__copyright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    padding: 18px 0 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    text-align: center;
}

.footer-cr__copy {
    white-space: nowrap;
}

.footer-cr__links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.footer-cr__links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-cr__links a:hover {
    color: var(--mediox-base, #C49A45);
}

.footer-cr__sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
}

.footer-cr__credit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.4);
}

.footer-cr__credit a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.footer-cr__credit a:hover {
    color: var(--mediox-base, #C49A45);
}

@media (max-width: 576px) {
    .main-footer__copyright {
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
    }
}

/* ============================================================
   Mobile background fixes — Appointment & FAQ sections
   ============================================================ */

/* -- Appointment "Запази час" section --
   Jarallax uses position:fixed internally which gets clipped by
   overflow:hidden on iOS. On mobile we fall back to a static cover. */
@media (max-width: 767px) {
    .appointment-one {
        overflow: visible;
    }

    /* Jarallax container: switch to absolute so it isn't clipped */
    .appointment-one__bg .jarallax-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .appointment-one__bg .jarallax-container img,
    .appointment-one__bg .jarallax-container video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: none !important;
    }

    /* Ensure the bg div itself fills the section */
    .appointment-one__bg {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
    }
}

/* -- FAQ section (faq-two) --
   Multiple conflicting filter/blend-mode !important rules in
   mediox.css fight each other on mobile. Simplify to a clean render. */
@media (max-width: 767px) {
    .faq-two__inner__bg {
        filter: brightness(0.55) !important;
        mix-blend-mode: multiply !important;
        opacity: 1 !important;
    }

    .faq-two__inner__bg::before {
        background: rgba(0, 0, 0, 0.35) !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
    }

    /* Ensure text stays readable on top */
    .faq-two__content,
    .faq-two .sec-title {
        position: relative;
        z-index: 2;
    }
}

/* ============================================================
   Comprehensive mobile fixes — Beauty Atelier IN
   ============================================================ */

/* ---- Footer contact info card (gold strip) ---- */
@media (max-width: 575px) {
    /* Tighten the gold strip padding */
    .main-footer__info {
        padding: 28px 18px;
        border-radius: 14px;
    }

    /* Stack icon + text vertically on small phones */
    .main-footer__contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Reduce oversized contact text (stays 18px until 575px) */
    .main-footer__contact__text,
    .main-footer__contact__text a {
        font-size: 15px;
    }

    /* Reduce label above contact text */
    .main-footer__contact__title {
        font-size: 12px;
    }
}

/* ---- Footer copyright — remove nowrap on tiny phones ---- */
@media (max-width: 420px) {
    .footer-cr__copy,
    .footer-cr__credit {
        white-space: normal;
        text-align: center;
    }

    .footer-cr__links {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ---- Page header (breadcrumb banner) — tighter padding on mobile ---- */
@media (max-width: 480px) {
    .page-header__inner {
        padding-top: 58px;
        padding-bottom: 60px;
    }
}

/* ---- Section spacing — extra step at 480px ---- */
@media (max-width: 480px) {
    .section-space {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-space-top {
        padding-top: 60px;
    }

    .section-space-bottom {
        padding-bottom: 60px;
    }
}

/* ---- Footer bottom margin ---- */
@media (max-width: 575px) {
    .main-footer__bottom {
        margin-top: 24px;
    }
}
