/* ============================================================
   MAHAYAAN Urban Cooperative Credit & Thrift Society
   Modern Animated Theme
   ============================================================ */

:root {
    /* Primary — logo maroon */
    --navy: #5c0021;
    --navy-dark: #3e0016;
    --navy-light: #7d1040;

    /* Brand maroon (same as primary now) */
    --maroon: #5c0021;
    --maroon-dark: #3e0016;

    /* Accent — warm gold */
    --accent: #c9922a;
    --accent-light: #f0c060;

    /* Supporting */
    --green: #2e8b57;
    --ink: #1a0a0e;
    --muted: #6b5055;
    --bg: #fffaf7;
    --bg-soft: #fdf3ec;
    --white: #ffffff;

    /* Shadows now tinted with maroon */
    --radius: 18px;
    --shadow-sm: 0 6px 18px rgba(92, 0, 33, 0.08);
    --shadow-md: 0 14px 40px rgba(92, 0, 33, 0.14);
    --shadow-lg: 0 26px 70px rgba(92, 0, 33, 0.22);
    --tr: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --font: "Poppins", "Segoe UI", system-ui, sans-serif;
    --serif: "Playfair Display", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.section { padding: 90px 0; position: relative; }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ---------- Section titles ---------- */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--ink);
}
.sec-head h2 span { color: var(--navy); }
.sec-head .bar {
    width: 90px; height: 4px; margin: 18px auto 0;
    background: linear-gradient(90deg, var(--maroon), var(--navy));
    border-radius: 4px;
}
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: linear-gradient(90deg, var(--maroon-dark), var(--maroon));
    color: #fff;
    font-size: 0.85rem;
}
.topbar .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 8px 0; flex-wrap: wrap;
}
.topbar .tinfo { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar .tinfo a { display: inline-flex; align-items: center; gap: 8px; opacity: 0.95; transition: var(--tr); }
.topbar .tinfo a:hover { opacity: 1; transform: translateY(-1px); }
.topbar .tinfo i { color: var(--accent); }
.btn-login {
    background: var(--accent); color: var(--ink); font-weight: 700;
    padding: 6px 18px; border-radius: 30px; font-size: 0.82rem;
    transition: var(--tr); box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    transition: var(--tr);
}
.nav .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo {
    width: 56px; height: 56px; border-radius: 12px;
    display: grid; place-items: center; overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--accent);
    flex-shrink: 0;
}
.brand .logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand .btxt strong { font-size: 1.05rem; color: var(--navy); letter-spacing: 1px; display: block; line-height: 1.1; }
.brand .btxt small { font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; }

.menu { display: flex; gap: 6px; align-items: center; }
.menu a {
    padding: 10px 15px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
    border-radius: 10px; position: relative; transition: var(--tr);
}
.menu a::after {
    content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px;
    height: 2px; background: var(--maroon); transform: scaleX(0);
    transform-origin: left; transition: transform var(--tr);
}
.menu a:hover { color: var(--navy); }
.menu a:hover::after { transform: scaleX(1); }
.menu .cta {
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    color: #fff; margin-left: 8px;
}
.menu .cta::after { display: none; }
.menu .cta:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.burger span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: var(--tr); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
    padding: 100px 0 120px;
}
.hero .blob {
    position: absolute; border-radius: 50%; filter: blur(2px);
    opacity: 0.30; animation: float 9s ease-in-out infinite;
}
.hero .blob.b1 { width: 340px; height: 340px; background: var(--accent-light); top: -80px; right: -60px; }
.hero .blob.b2 { width: 220px; height: 220px; background: var(--accent); bottom: -60px; left: 8%; animation-delay: 2s; }
.hero .blob.b3 { width: 160px; height: 160px; background: rgba(255,255,255,0.2); top: 30%; right: 22%; animation-delay: 4s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-26px) } }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.14); padding: 8px 16px; border-radius: 30px;
    font-size: 0.82rem; font-weight: 600; margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero .badge i { color: var(--accent); }
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1;
    margin-bottom: 18px;
}
.hero h1 .grad {
    background: linear-gradient(90deg, var(--accent-light), #ffd700);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 1.1rem; opacity: 0.9; max-width: 520px; margin-bottom: 30px; }
.hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 28px; border-radius: 40px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; border: none; transition: var(--tr);
}
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-light)); color: #fff; box-shadow: 0 10px 26px rgba(201,146,42,0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(201,146,42,0.55); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }

.hero-card {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px; padding: 30px; backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite;
}
.hero-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.hero-card p { opacity: 0.85; font-size: 0.9rem; margin-bottom: 20px; }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rate {
    background: rgba(255,255,255,0.12); border-radius: 14px; padding: 16px;
    text-align: center; transition: var(--tr); border: 1px solid rgba(255,255,255,0.1);
}
.rate:hover { transform: translateY(-4px); background: rgba(255,255,255,0.22); }
.rate .num { font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.rate .lbl { font-size: 0.78rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }

/* wave divider */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.wave svg { width: 100%; height: 90px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; justify-content: center; }
.stat {
    background: #fff; border-radius: var(--radius); padding: 34px 24px; text-align: center;
    box-shadow: var(--shadow-sm); transition: var(--tr); border-bottom: 4px solid transparent;
}
.stat:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--maroon); }
.stat .ico {
    width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.5rem; color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.stat .count { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.stat .txt { color: var(--muted); font-weight: 600; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.svc {
    border-radius: var(--radius); padding: 34px 24px; color: #fff; position: relative;
    overflow: hidden; transition: var(--tr); box-shadow: var(--shadow-sm);
}
.svc::before {
    content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%;
    background: rgba(255,255,255,0.12); top: -50px; right: -40px; transition: var(--tr);
}
.svc:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.svc:hover::before { transform: scale(2.4); }
.svc .ico { font-size: 2.2rem; margin-bottom: 18px; position: relative; z-index: 1; }
.svc h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; position: relative; z-index: 1; }
.svc p { font-size: 0.88rem; opacity: 0.95; margin-bottom: 20px; position: relative; z-index: 1; }
.svc a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; position: relative; z-index: 1; transition: var(--tr); }
.svc a:hover { gap: 12px; }
.svc.c1 { background: linear-gradient(160deg, #7d1040, var(--navy-dark)); }
.svc.c2 { background: linear-gradient(160deg, var(--maroon), var(--maroon-dark)); }
.svc.c3 { background: linear-gradient(160deg, var(--accent), #a06b15); }
.svc.c4 { background: linear-gradient(160deg, #8b4513, #5c2d0a); }
.svc.c5 { background: linear-gradient(160deg, var(--navy-light), var(--navy)); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; margin-bottom: 20px; }
.about-text h2 span { color: var(--navy); }
.about-media { position: relative; }
.about-media .circle {
    aspect-ratio: 1; border-radius: 50%; overflow: hidden;
    border: 8px solid var(--bg-soft); box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: grid; place-items: center; color: #fff; text-align: center; padding: 40px;
}
.about-media .circle i { font-size: 4rem; margin-bottom: 14px; color: var(--accent); }
.about-media .circle h4 { font-size: 1.4rem; }
.about-media .float-tag {
    position: absolute; background: #fff; padding: 14px 20px; border-radius: 14px;
    box-shadow: var(--shadow-md); font-weight: 700; color: var(--navy);
    display: flex; align-items: center; gap: 10px; animation: float 6s ease-in-out infinite;
}
.about-media .float-tag i { color: var(--maroon); }
.about-media .t1 { top: 10%; left: -20px; }
.about-media .t2 { bottom: 12%; right: -10px; animation-delay: 2s; }

/* ============================================================
   SCHEMES / RATE TABLES
   ============================================================ */
.schemes { background: var(--bg-soft); }
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
    padding: 12px 26px; border-radius: 40px; border: 2px solid var(--navy);
    background: transparent; color: var(--navy); font-weight: 700; cursor: pointer;
    transition: var(--tr); font-family: var(--font);
}
.tab-btn.active, .tab-btn:hover { background: var(--navy); color: #fff; }
.tab-panel { display: none; animation: fade 0.5s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }

.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 26px; }
.table-wrap h4 {
    background: linear-gradient(90deg, var(--navy), var(--navy-light)); color: #fff;
    padding: 16px 22px; font-size: 1.05rem;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid #f0e8e0; font-size: 0.9rem; }
th { background: #fdf0e8; color: var(--navy); font-weight: 700; }
tbody tr { transition: var(--tr); }
tbody tr:hover { background: #fdf8f4; }
td:first-child { font-weight: 600; }

/* Horizontal scroll wrapper for wide tables on mobile */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-scroll table { min-width: 440px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.note { display:flex; gap:10px; align-items:flex-start; color: var(--muted); font-size:0.9rem; margin-top:8px; }
.note i { color: var(--green); margin-top:4px; }

/* ============================================================
   LOAN CARDS
   ============================================================ */
.loans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.loan-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: var(--tr); border-top: 5px solid var(--maroon);
}
.loan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.loan-card .head { padding: 26px 28px 18px; background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; }
.loan-card .head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.loan-card .head span { opacity: 0.9; font-size: 0.85rem; }
.loan-card .body { padding: 24px 28px 30px; }
.loan-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e6e9f2; }
.loan-card .row:last-of-type { border: none; }
.loan-card .row .k { color: var(--muted); font-weight: 600; }
.loan-card .row .v { font-weight: 700; color: var(--navy); text-align: right; }
.loan-card ol { margin: 14px 0 0 18px; color: var(--muted); font-size: 0.88rem; }
.loan-card ol li { margin-bottom: 6px; }

/* ============================================================
   JOIN CTA
   ============================================================ */
.join { position: relative; overflow: hidden; }
.join-box {
    background: linear-gradient(120deg, var(--navy), var(--navy-light));
    border-radius: 28px; padding: 60px; text-align: center; color: #fff;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.join-box::before, .join-box::after {
    content:""; position:absolute; border-radius:50%; background: rgba(255,255,255,0.08);
}
.join-box::before { width: 260px; height: 260px; top: -80px; left: -60px; }
.join-box::after { width: 200px; height: 200px; bottom: -70px; right: -40px; }
.join-box h2 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; position: relative; z-index: 1; }
.join-box .sub { font-size: 1.3rem; margin-bottom: 18px; position: relative; z-index: 1; }
.join-box p { max-width: 560px; margin: 0 auto 28px; opacity: 0.9; position: relative; z-index: 1; }
.join-box .btn { position: relative; z-index: 1; }

/* ============================================================
   COMMITTEE
   ============================================================ */
.committee { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; }
.committee .sec-head h2, .committee .sec-head h2 span { color: #fff; }
.committee .sec-head .bar { background: var(--accent); }
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member {
    background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px 20px;
    text-align: center; transition: var(--tr); border: 1px solid rgba(255,255,255,0.12);
}
.member:hover { transform: translateY(-6px); background: rgba(255,255,255,0.16); }
.member .av {
    width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
    background: var(--accent); color: var(--maroon-dark);
}
.member h4 { font-size: 1.05rem; letter-spacing: 0.5px; }
.member span { font-size: 0.8rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
    background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
    position: relative; transition: var(--tr); border-left: 4px solid var(--navy);
}
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi .quote { font-size: 2.4rem; color: var(--maroon); opacity: 0.25; line-height: 1; }
.testi p { color: var(--muted); font-style: italic; margin: 8px 0 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--navy),var(--navy-light)); color:#fff; display:grid; place-items:center; font-weight:700; }
.testi .who h5 { color: var(--navy); }
.testi .who .stars { color: var(--accent); font-size: 0.8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .ci {
    display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 22px;
    border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; transition: var(--tr);
}
.contact-info .ci:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.contact-info .ci .ico { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg,var(--navy),var(--navy-light)); color:#fff; display:grid; place-items:center; font-size:1.2rem; flex-shrink:0; }
.contact-info .ci h4 { color: var(--navy); font-size: 1rem; }
.contact-info .ci p { color: var(--muted); font-size: 0.92rem; }

.contact-form { background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form h3 { color: var(--navy); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 16px; border: 1.5px solid #e2e7f0; border-radius: 12px;
    font-family: var(--font); font-size: 0.92rem; transition: var(--tr); background: var(--bg-soft);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; }
.contact-form .btn { width: 100%; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #cfd4e3; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; position: relative; padding-bottom: 10px; }
.footer h4::after { content:""; position:absolute; left:0; bottom:0; width:40px; height:3px; background: var(--maroon); border-radius:3px; }
.footer p { font-size: 0.9rem; margin-bottom: 12px; }
.footer .fbrand { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.footer .fbrand .logo { width:50px; height:50px; border-radius:10px; background:#fff; display:grid; place-items:center; border:2px solid var(--accent); overflow:hidden; flex-shrink:0; }
.footer .fbrand .logo img { width:100%; height:100%; object-fit:contain; padding:4px; }
.footer .fbrand strong { color:#fff; font-size:1rem; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.9rem; transition: var(--tr); display:inline-flex; gap:8px; align-items:center; }
.footer ul li a:hover { color: var(--accent); transform: translateX(4px); }
.footer ul li a i { color: var(--maroon); font-size: 0.7rem; }
.footer .fcontact li { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; font-size:0.9rem; }
.footer .fcontact li i { color: var(--accent); margin-top:4px; }
.socials { display:flex; gap:12px; margin-top:18px; }
.socials a { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,0.08); display:grid; place-items:center; transition:var(--tr); }
.socials a:hover { background: var(--maroon); transform: translateY(-4px); }
.fcta { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.fcta-btn { display:inline-flex; align-items:center; gap:9px; padding:11px 20px; border-radius:50px; font-size:0.9rem; font-weight:600; color:#fff; transition:var(--tr); box-shadow:0 6px 18px rgba(0,0,0,0.25); }
.fcta-btn i { font-size:1rem; }
.fcta-call { background: var(--maroon); }
.fcta-call:hover { color:#fff; transform:translateY(-3px); box-shadow:0 10px 24px rgba(0,0,0,0.35); filter:brightness(1.1); }
.fcta-wa { background:#25D366; }
.fcta-wa:hover { color:#fff; transform:translateY(-3px); box-shadow:0 10px 24px rgba(37,211,102,0.4); filter:brightness(1.05); }
.footbar { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding: 22px 0; text-align:center; font-size:0.85rem; }

/* back to top */
.top-btn {
    position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy); color:#fff; display:grid; place-items:center; cursor:pointer;
    box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(20px);
    transition: var(--tr); z-index: 90; border: none; font-size: 1.1rem;
}
.top-btn.show { opacity: 1; pointer-events: auto; transform: none; }

/* floating contact (always visible) */
.float-contact {
    position: fixed; left: 24px; bottom: 24px; z-index: 95;
    display: flex; flex-direction: column; gap: 14px;
}
.float-btn {
    width: 54px; height: 54px; border-radius: 50%; color: #fff;
    display: grid; place-items: center; font-size: 1.5rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.3); transition: var(--tr);
}
.float-btn:hover { color:#fff; transform: translateY(-4px) scale(1.06); }
.float-wa { background: #25D366; }
.float-wa:hover { box-shadow: 0 12px 28px rgba(37,211,102,0.5); }
.float-call { background: var(--maroon); }
.float-call:hover { box-shadow: 0 12px 28px rgba(136,14,79,0.5); }
.float-call { animation: float-ring 2s ease-in-out infinite; }
@keyframes float-ring {
    0%, 100% { box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 0 0 rgba(136,14,79,0.5); }
    50% { box-shadow: 0 8px 22px rgba(0,0,0,0.3), 0 0 0 12px rgba(136,14,79,0); }
}

/* ============================================================
   RESPONSIVE — COMPLETE MOBILE-FIRST OVERHAUL
   ============================================================ */

/* ---- Tablet landscape: 1024px ---- */
@media (max-width: 1024px) {
    .container { width: 94%; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .comm-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .loans-grid { grid-template-columns: 1fr 1fr; }
    .loans-grid-3 { grid-template-columns: 1fr 1fr; }
    .membership-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: 36px; }
}

/* ============================================================
   HINDI CONTENT STYLES
   ============================================================ */

/* Hindi font stack — includes Google Noto Sans Devanagari fallback */
[lang="hi"], .hindi-block, .hindi-highlight {
    font-family: "Noto Sans Devanagari", "Mangal", "Devanagari MT", var(--font);
    line-height: 1.9;
}

/* Hindi text block in About */
.hindi-block {
    margin-top: 22px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(92,0,33,0.04), rgba(201,146,42,0.06));
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.hindi-block p { color: var(--ink); margin-bottom: 12px; font-size: 0.95rem; }
.hindi-block p:last-child { margin-bottom: 0; }
.hindi-block p.hindi-highlight { color: #fff !important; margin-bottom: 0; }

.hindi-highlight {
    display: block;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    color: #fff !important;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 6px;
    font-weight: 600;
    line-height: 1.8;
}
.hindi-highlight strong { color: #fff; font-weight: 700; }

/* ============================================================
   MEMBERSHIP SECTION (JOIN)
   ============================================================ */
.join { background: var(--bg-soft); }
.join-box {
    background: linear-gradient(120deg, var(--navy), var(--navy-light));
    border-radius: 28px; padding: 50px 60px; text-align: center; color: #fff;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
    margin-bottom: 40px;
}
.join-box::before, .join-box::after {
    content:""; position:absolute; border-radius:50%; background: rgba(255,255,255,0.07);
}
.join-box::before { width: 260px; height: 260px; top: -80px; left: -60px; }
.join-box::after { width: 200px; height: 200px; bottom: -70px; right: -40px; }
.join-box h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); font-weight: 800; position: relative; z-index: 1; }
.join-box .sub { font-size: 1.1rem; margin: 10px 0 16px; position: relative; z-index: 1; opacity: 0.9; }
.join-box p { max-width: 560px; margin: 0 auto; opacity: 0.85; position: relative; z-index: 1; font-size: 0.95rem; }

.membership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.mem-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 26px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
    transition: var(--tr);
}
.mem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mem-icon {
    width: 58px; height: 58px; border-radius: 16px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: grid; place-items: center; color: var(--accent-light); font-size: 1.5rem;
}
.mem-card h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px;
    font-family: "Noto Sans Devanagari", var(--font);
}
.mem-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }

/* ============================================================
   LOAN CARD — GOLD LOAN
   ============================================================ */
.loans-grid-3 { grid-template-columns: repeat(3, 1fr); }

.loan-card-gold { border-top-color: var(--accent); }
.loan-card-gold .head {
    background: linear-gradient(135deg, var(--accent), #8b5e10);
}
.gold-info {
    font-size: 0.86rem; color: var(--muted); margin-top: 12px; line-height: 1.8;
    font-family: "Noto Sans Devanagari", var(--font);
}
.gold-note {
    font-size: 0.83rem; color: var(--navy); background: rgba(92,0,33,0.06);
    border-radius: 8px; padding: 10px 14px; margin-top: 10px; line-height: 1.8;
    font-family: "Noto Sans Devanagari", var(--font);
}
.gold-note i { color: var(--accent); margin-right: 6px; }

/* ============================================================
   COMMITTEE — OFFICER ROW & ELECTION NOTICE
   ============================================================ */
.officer-row {
    display: flex; gap: 28px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap;
}
.officer-card {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius); padding: 28px 36px; text-align: center;
    min-width: 220px; transition: var(--tr);
}
.officer-card:hover { background: rgba(255,255,255,0.22); transform: translateY(-5px); }
.officer-card .av {
    width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.6rem;
}
.officer-card .av.gold { background: linear-gradient(135deg, var(--accent), #f0c060); color: var(--navy); }
.officer-card .av.silver { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: var(--navy); }
.officer-card h4 { font-size: 1.05rem; margin-bottom: 4px; font-family: "Noto Sans Devanagari", var(--font); }
.officer-card span { font-size: 0.82rem; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; display: block; }
.officer-card small { font-size: 0.75rem; opacity: 0.7; font-family: "Noto Sans Devanagari", var(--font); }

.committee .member h4 { font-family: "Noto Sans Devanagari", var(--font); font-size: 0.95rem; }
.committee .member span { font-family: "Noto Sans Devanagari", var(--font); }

.election-notice {
    display: flex; gap: 18px; align-items: flex-start;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius); padding: 24px 28px; margin-top: 40px; color: #fff;
}
.election-notice > i { font-size: 2rem; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.election-notice strong { display: block; font-size: 1rem; margin-bottom: 8px; }
.election-notice p { font-size: 0.88rem; opacity: 0.85; line-height: 1.8; font-family: "Noto Sans Devanagari", var(--font); }

/* ============================================================
   RESPONSIVE OVERRIDES — TABLET PORTRAIT 860px
   ============================================================ */
@media (max-width: 860px) {
    /* --- Topbar --- */
    .topbar .container { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
    .topbar .tinfo { flex-wrap: wrap; gap: 10px; }
    .btn-login { align-self: flex-start; }

    /* --- Navbar / mobile menu --- */
    .menu {
        position: fixed; inset: 0 0 0 auto;
        width: min(80vw, 300px); height: 100vh;
        background: #fff; flex-direction: column;
        padding: 80px 20px 30px; gap: 4px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: var(--tr); z-index: 99;
        overflow-y: auto;
    }
    .menu.open { transform: none; }
    .menu a { width: 100%; padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
    .menu .cta { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }
    .burger { display: flex; z-index: 100; }

    /* --- Hero --- */
    .hero { padding: 70px 0 90px; }
    .hero .container { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero .badge { margin: 0 auto 20px; }
    .hero .lead { margin: 0 auto 28px; }
    .hero .hero-cta { justify-content: center; }
    .hero-card { max-width: 420px; margin: 0 auto; }
    .hero .blob.b1 { width: 220px; height: 220px; }
    .hero .blob.b2 { width: 140px; height: 140px; }

    /* --- Sections --- */
    .section { padding: 60px 0; }
    .sec-head { margin-bottom: 40px; }

    /* --- Stats --- */
    .stats-grid { gap: 16px; }
    .stat { padding: 24px 16px; }

    /* --- Services --- */
    .services-grid { gap: 16px; }
    .svc { padding: 26px 20px; }

    /* --- About --- */
    .about-grid { grid-template-columns: 1fr; gap: 0; }
    .about-media { display: none; }

    /* --- Schemes --- */
    .two-col { grid-template-columns: 1fr; gap: 20px; }
    .tabs { gap: 8px; }
    .tab-btn { padding: 10px 18px; font-size: 0.88rem; }

    /* --- Loans --- */
    .loans-grid,
    .loans-grid-3 { grid-template-columns: 1fr; }

    /* --- Join / Membership --- */
    .join-box { padding: 36px 22px; }
    .join-box h2 { font-size: 1.5rem; }
    .join-box .sub { font-size: 1rem; }
    .membership-grid { grid-template-columns: 1fr; gap: 20px; }

    /* --- Committee --- */
    .comm-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .officer-row { flex-direction: column; align-items: center; gap: 16px; }
    .officer-card { min-width: unset; width: 100%; max-width: 320px; padding: 22px 24px; }
    .election-notice { flex-direction: column; gap: 12px; }

    /* --- Testimonials --- */
    .testi-grid { grid-template-columns: 1fr; gap: 18px; }

    /* --- Contact --- */
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }

    /* --- Footer --- */
    .footer { padding: 48px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    /* --- Hindi --- */
    .hindi-block { padding: 16px 18px; }
    .hindi-highlight { font-size: 0.88rem; padding: 10px 14px; }
}

/* ============================================================
   RESPONSIVE OVERRIDES — MOBILE 600px
   ============================================================ */
@media (max-width: 600px) {
    /* --- Topbar: hide address --- */
    .topbar .tinfo span { display: none; }
    .topbar .tinfo { gap: 12px; }
    .topbar .tinfo a { font-size: 0.8rem; }

    /* --- Navbar brand --- */
    .brand .logo { width: 44px; height: 44px; border-radius: 8px; }
    .brand .btxt strong { font-size: 0.92rem; }
    .brand .btxt small { font-size: 0.65rem; }

    /* --- Hero --- */
    .hero { padding: 56px 0 80px; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
    .hero .lead { font-size: 0.95rem; }
    .hero .badge { font-size: 0.78rem; padding: 6px 12px; }
    .hero .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
    .hero .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
    .rate-grid { gap: 10px; }
    .rate .num { font-size: 1.6rem; }
    .rate .lbl { font-size: 0.72rem; }
    .wave svg { height: 50px; }

    /* --- Stats --- */
    .stats-grid { gap: 12px; }
    .stat { padding: 20px 12px; }
    .stat .ico { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 12px; }
    .stat .count { font-size: 1.9rem; }
    .stat .txt { font-size: 0.82rem; }

    /* --- Services --- */
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
    .svc { padding: 22px 18px; }
    .svc h3 { font-size: 1rem; }

    /* --- Section heading --- */
    .sec-head h2 { font-size: 1.7rem; }
    .sec-head p { font-size: 0.92rem; }
    .section { padding: 48px 0; }

    /* --- Tables: horizontal scroll container --- */
    .table-wrap { border-radius: 12px; }
    .table-wrap h4 { font-size: 0.92rem; padding: 12px 16px; }
    .table-wrap > table,
    .table-wrap .table-responsive-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
    table { min-width: 440px; font-size: 0.82rem; }
    th, td { padding: 10px 11px; }

    /* --- Loan cards --- */
    .loan-card .head { padding: 20px 20px 14px; }
    .loan-card .head h3 { font-size: 1.05rem; }
    .loan-card .body { padding: 18px 20px 22px; }
    .loan-card .row .k,
    .loan-card .row .v { font-size: 0.86rem; }
    .loan-card ol { font-size: 0.83rem; }

    /* --- Join / Membership --- */
    .join-box { padding: 28px 18px; border-radius: 20px; }
    .join-box h2 { font-size: 1.3rem; }
    .join-box .sub { font-size: 0.88rem; }
    .mem-card { padding: 24px 18px; }
    .mem-card h3 { font-size: 1rem; }
    .mem-icon { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 12px; }

    /* --- Committee --- */
    .comm-grid { grid-template-columns: 1fr; gap: 14px; }
    .member { padding: 22px 16px; }
    .member .av { width: 60px; height: 60px; font-size: 1.2rem; }
    .member h4 { font-size: 0.9rem; }
    .election-notice { padding: 18px 16px; }
    .election-notice strong { font-size: 0.92rem; }
    .election-notice p { font-size: 0.82rem; }

    /* --- Testimonials --- */
    .testi { padding: 22px 18px; }
    .testi .quote { font-size: 1.8rem; }
    .testi p { font-size: 0.88rem; }

    /* --- Contact --- */
    .contact-info .ci { padding: 16px; gap: 12px; }
    .contact-info .ci .ico { width: 42px; height: 42px; font-size: 1rem; border-radius: 10px; }
    .contact-form { padding: 22px 18px; }
    .field input, .field textarea, .field select { padding: 11px 14px; font-size: 0.88rem; }

    /* --- Footer --- */
    .footer { padding: 36px 0 0; }
    .footer h4 { font-size: 1rem; margin-bottom: 14px; }
    .footer p, .footer ul li a, .footer .fcontact li { font-size: 0.85rem; }
    .footbar { font-size: 0.78rem; padding: 16px 0; margin-top: 32px; }

    /* --- Back to top --- */
    .top-btn { width: 42px; height: 42px; right: 16px; bottom: 16px; font-size: 1rem; }
    .float-contact { left: 16px; bottom: 16px; gap: 12px; }
    .float-btn { width: 48px; height: 48px; font-size: 1.3rem; }

    /* --- Hindi --- */
    .hindi-block p { font-size: 0.88rem; }
    .hindi-highlight { font-size: 0.82rem; padding: 8px 12px; }
    .gold-info, .gold-note { font-size: 0.82rem; }
}

/* ============================================================
   RESPONSIVE OVERRIDES — VERY SMALL 380px
   ============================================================ */
@media (max-width: 380px) {
    .container { width: 96%; }
    .hero h1 { font-size: 1.6rem; }
    .brand .btxt small { display: none; }
    .stat .count { font-size: 1.6rem; }
    .btn { padding: 11px 20px; font-size: 0.88rem; }
    .tab-btn { padding: 8px 14px; font-size: 0.82rem; }
}

/* ============================================================
   LANGUAGE SWITCH + LTD BADGE
   ============================================================ */
.topbar-right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
    display: inline-flex; background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 30px;
    padding: 3px; gap: 2px;
}
.lang-btn {
    border: none; background: transparent; color: #fff;
    font-weight: 700; font-size: 0.78rem; padding: 4px 12px;
    border-radius: 30px; cursor: pointer; transition: var(--tr);
    font-family: "Noto Sans Devanagari", var(--font);
    line-height: 1.4;
}
.lang-btn:hover { background: rgba(255,255,255,0.15); }
.lang-btn.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* Ltd badge in logo text */
.brand .btxt strong .ltd,
.footer .fbrand strong .ltd {
    font-size: 0.62em; font-weight: 700; color: var(--accent);
    vertical-align: super; letter-spacing: 0.5px;
}

/* When Hindi is active, apply Devanagari font site-wide for readability */
body.lang-hi {
    font-family: "Noto Sans Devanagari", "Poppins", "Segoe UI", system-ui, sans-serif;
}
body.lang-hi .hero h1,
body.lang-hi .sec-head h2,
body.lang-hi .join-box h2 {
    line-height: 1.4;
}

/* ============================================================
   RESPONSIVE — LANGUAGE SWITCH
   ============================================================ */
@media (max-width: 860px) {
    .topbar-right { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
    .lang-btn { font-size: 0.72rem; padding: 4px 10px; }
    .topbar-right { gap: 10px; }
}
