/* =====================================================
   SITE ADD-ONS — Language switcher + Visiting card popup
   Tricolor theme (matches header.css)
   ===================================================== */

/* ---------- Hide Google Translate's own UI ---------- */
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-yAWNEb-L7lbkb { display: none !important; visibility: hidden !important; }
.goog-text-highlight,
font[style*="background-color"] { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none !important; }

/* =====================================================
   1. LANGUAGE BUTTON (top bar)
   ===================================================== */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 26px;
    margin-right: 16px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.lang-btn i.fa-globe { color: #ffb36b; font-size: 13px; }
.lang-btn .lang-caret { font-size: 9px; opacity: .85; transition: transform .25s ease; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-btn:hover,
.lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .22); border-color: #ffb36b; }
.lang-btn:focus-visible { outline: 2px solid #ffb36b; outline-offset: 2px; }

/* ---------- Dropdown (fixed, positioned by JS) ---------- */
.lang-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100001;
    width: 230px;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    border-top: 3px solid var(--hs-saffron, #f07c1b);
    box-shadow: 0 16px 36px rgba(18, 26, 82, .25);
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }

.lang-menu-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 10px;
    margin-bottom: 4px;
    border-bottom: 1px dashed rgba(27, 38, 112, .15);
    color: var(--hs-blue, #2a3a9e);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.lang-menu-head i { color: var(--hs-saffron, #f07c1b); font-size: 15px; }

.lang-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}
.lang-opt:hover { background: var(--hs-blue-soft, #eceffb); }
.lang-code {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hs-saffron-soft, #fff2e6);
    color: var(--hs-saffron-dark, #d95f0b);
    font-size: 14px;
    font-weight: 800;
}
.lang-name { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.lang-name b { font-size: 15px; font-weight: 700; color: var(--hs-text, #1f2747); }
.lang-name small { font-size: 11.5px; font-weight: 600; color: var(--hs-muted, #5b6482); }
.lang-tick { font-size: 13px; color: var(--hs-green, #1f8f3a); opacity: 0; }
.lang-opt.active { background: var(--hs-blue-soft, #eceffb); }
.lang-opt.active .lang-code { background: var(--hs-blue, #2a3a9e); color: #fff; }
.lang-opt.active .lang-tick { opacity: 1; }

/* ---------- Mobile drawer chips ---------- */
.drawer-lang {
    padding: 12px;
    border-radius: 14px;
    background: var(--hs-blue-soft, #eceffb);
}
.drawer-lang-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--hs-blue, #2a3a9e);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.drawer-lang-title i { color: var(--hs-saffron, #f07c1b); }
.drawer-lang-row { display: flex; gap: 6px; }
.drawer-lang-chip {
    flex: 1;
    padding: 9px 4px;
    border: 1.5px solid rgba(42, 58, 158, .25);
    border-radius: 10px;
    background: #fff;
    color: var(--hs-text, #1f2747);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
.drawer-lang-chip.active {
    background: linear-gradient(135deg, #ff8f2e, var(--hs-saffron-dark, #d95f0b));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(217, 95, 11, .3);
}

/* ---------- Top bar fit on small screens ---------- */
@media (max-width: 767.98px) {
    .lang-btn { height: 24px; margin-right: 10px; padding: 0 9px; font-size: 12px; gap: 5px; }
}
@media (max-width: 575.98px) {
    .lang-btn .lang-btn-text { display: none; }   /* globe icon only */
    .lang-btn { padding: 0 8px; margin-right: 8px; }
}
@media (max-width: 399.98px) {
    .srnt-topbar .topbar-social { display: none !important; }
}

/* =====================================================
   2. VISITING CARD POPUP
   ===================================================== */
.vcard-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 26, 82, .72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.vcard-modal.open { opacity: 1; visibility: visible; }

.vcard-box {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    transform: scale(.88) translateY(24px);
    transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.vcard-modal.open .vcard-box { transform: none; }
.vcard-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f07c1b 0 33.33%, #ffffff 33.33% 66.66%, #1f8f3a 66.66% 100%);
    z-index: 3;
}

.vcard-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: .25s ease;
}
.vcard-close:hover { background: #f07c1b; transform: rotate(90deg); }

.vcard-head {
    flex-shrink: 0;
    padding: 20px 64px 16px 22px;
    background: linear-gradient(135deg, #1b2670, #2a3a9e);
    color: #fff;
}
.vcard-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 30px;
    background: rgba(240, 124, 27, .95);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.vcard-title {
    margin: 10px 0 0;
    font-family: 'Oswald', 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .5px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.vcard-img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: auto;
    background:
        radial-gradient(rgba(27, 38, 112, .07) 1.2px, transparent 1.2px) 0 0 / 18px 18px,
        linear-gradient(180deg, #f4f6fd, #fffaf3);
}
.vcard-img {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(27, 38, 112, .25);
}

.vcard-actions {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px dashed rgba(27, 38, 112, .14);
}
.vcard-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.vcard-btn:hover { transform: translateY(-2px); }
.vcard-btn-ghost {
    border: 2px solid #2a3a9e;
    background: #fff;
    color: #2a3a9e;
}
.vcard-btn-ghost:hover { background: #2a3a9e; color: #fff; }
.vcard-btn-main {
    border: 0;
    background: linear-gradient(135deg, #27a548, #146d2b);
    color: #fff;
    box-shadow: 0 8px 20px rgba(20, 109, 43, .35);
}
.vcard-btn:focus-visible, .vcard-close:focus-visible { outline: 3px solid #ffb36b; outline-offset: 3px; }

@media (max-width: 575.98px) {
    .vcard-box { border-radius: 18px; }
    .vcard-head { padding: 16px 58px 12px 16px; }
    .vcard-title { font-size: 19px; }
    .vcard-img-wrap { padding: 12px; }
    .vcard-img { max-height: 58vh; }
    .vcard-actions { flex-direction: column-reverse; gap: 8px; padding: 12px 14px 14px; }
    .vcard-btn { min-height: 46px; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .vcard-modal, .vcard-box, .lang-menu { transition: none !important; }
}