/* =========================================================
   SHAHU URBAN — LANGUAGE SWITCH + MARATHI TYPOGRAPHY
   html[lang="mr"] is set by _Layout when Marathi is chosen.
========================================================= */

/* ---------- switch pill (shared by the fixed button and the navbar) ---------- */
.su-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(22, 21, 15, .82);
    border: 1px solid rgba(201, 166, 106, .45);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    font-family: 'Work Sans', 'Noto Sans Devanagari', sans-serif;
}

    .su-lang-switch a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        padding: 7px 12px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: .04em;
        color: rgba(255, 255, 255, .72);
        text-decoration: none;
        white-space: nowrap;
        transition: background-color .3s ease, color .3s ease;
    }

        .su-lang-switch a:hover {
            color: #fff;
        }

        .su-lang-switch a.is-active {
            background: #c9a66a;
            color: #1b1c14;
            pointer-events: none;
        }

/* ---------- fixed button (top-right, always reachable) ---------- */
.su-lang-fab {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

/* once the floating navbar slides in it carries its own switch */
.su-floating-nav.is-visible ~ .su-lang-fab {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

/* inline version inside the floating navbar */
.su-floating-nav .su-lang-switch {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}

    .su-floating-nav .su-lang-switch a {
        padding: 7px 10px;
        min-width: 34px;
        font-size: 11px;
    }

/* phones: the navbar is full of links, so keep the fixed button and move it to the bottom */
@media (max-width: 600px) {
    .su-floating-nav .su-lang-switch {
        display: none;
    }

    .su-floating-nav.is-visible ~ .su-lang-fab {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .su-lang-fab {
        top: auto;
        bottom: 14px;
        right: 12px;
    }
}

/* ---------- Marathi (Devanagari) typography ---------- */
html[lang="mr"] {
    --font-display: 'Noto Serif Devanagari', 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans Devanagari', 'Work Sans', sans-serif;
    --font-mono: 'Noto Sans Devanagari', 'JetBrains Mono', monospace;
}

    /* letter-spacing breaks Devanagari conjuncts/matras — switch it off everywhere */
    html[lang="mr"] body *,
    html[lang="mr"] body *::before,
    html[lang="mr"] body *::after {
        letter-spacing: normal !important;
    }

    /* tall matras get clipped by the tight Latin line-heights */
    html[lang="mr"] .su-display,
    html[lang="mr"] h1,
    html[lang="mr"] h2,
    html[lang="mr"] h3 {
        line-height: 1.3 !important;
        font-weight: 600;
    }

    html[lang="mr"] h4,
    html[lang="mr"] h5,
    html[lang="mr"] p,
    html[lang="mr"] li,
    html[lang="mr"] .su-copy,
    html[lang="mr"] .su-page-hero-lead,
    html[lang="mr"] .su-hero-lead {
        line-height: 1.75;
    }

    html[lang="mr"] .su-floating-link strong,
    html[lang="mr"] .su-nav-name,
    html[lang="mr"] .su-btn span,
    html[lang="mr"] .su-kicker {
        line-height: 1.5;
    }

    /* Latin-only decorative watermark words are translated, allow them to wrap safely */
    html[lang="mr"] .su-statement-word,
    html[lang="mr"] .su-promise-word-mark,
    html[lang="mr"] .su-final-word {
        line-height: 1.1 !important;
    }
