/* ===== Tokens ===== */
:root {
    --saffron: #e8741c;
    --saffron-deep: #c85a0c;
    --maroon: #6e1a10;
    --maroon-deep: #3d0d07;
    --gold: #f2b233;
    --cream: #fbf5ec;
    --paper: #ffffff;
    --ink: #22170f;
    --muted: #6b5b4e;
    --line: #eadccb;
    --wa: #25d366;
    --wa-deep: #128c7e;
    --radius: 18px;
    --shadow: 0 18px 40px -18px rgba(61, 13, 7, .35);
    --font: 'Mukta', system-ui, sans-serif;
    --display: 'Tiro Devanagari Marathi', 'Mukta', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 24px; border-radius: 999px;
    font-weight: 700; font-size: 16px; border: 2px solid transparent;
    cursor: pointer; font-family: inherit;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 10px 24px -10px var(--saffron); }
.btn-primary:hover { background: var(--saffron-deep); }
.btn-wa { background: var(--wa); color: #06331f; box-shadow: 0 10px 24px -10px var(--wa); }
.btn-wa:hover { background: #1fc35c; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Nav ===== */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(61, 13, 7, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    font-family: var(--display); font-size: 24px; color: var(--maroon-deep);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 15.5px; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta { background: var(--wa); color: #06331f; padding: 8px 18px; border-radius: 999px; }
.lang-toggle {
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45);
    padding: 6px 14px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; padding: 110px 0 70px;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(232,116,28,.45), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(242,178,51,.18), transparent 60%),
        linear-gradient(160deg, var(--maroon-deep), var(--maroon) 60%, #8a2a12);
    color: #fff; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    padding: 6px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--gold);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(232,116,28,.3); }
.hero-kicker { font-family: var(--display); font-size: clamp(20px, 2.4vw, 26px); color: var(--gold); margin: 22px 0 6px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.5px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--gold), var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-family: var(--display); font-size: clamp(19px, 2vw, 23px); margin: 18px 0 10px; color: #fff; }
.hero-desc { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { position: relative; justify-self: center; width: min(430px, 100%); }
.hero-photo .frame {
    position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1/1.08;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 4px solid rgba(255,255,255,.14);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 20%; }
.hero-photo::before {
    content: ''; position: absolute; inset: -18px -18px 18px 18px; border-radius: 32px;
    border: 2px dashed rgba(242,178,51,.45); z-index: -1;
}
.hero-badge {
    position: absolute; left: -26px; bottom: 34px; background: #fff; color: var(--ink);
    padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero-badge strong { display: block; font-size: 22px; color: var(--maroon); line-height: 1.1; }
.hero-badge span { font-size: 13.5px; color: var(--muted); }
.hero-badge .ico { width: 42px; height: 42px; border-radius: 12px; background: #fff2e4; display: grid; place-items: center; color: var(--saffron); }
.hero-badge .ico svg { width: 22px; height: 22px; }

/* ===== Stats band ===== */
.stats { margin-top: -46px; position: relative; z-index: 2; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; color: var(--saffron-deep); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; font-weight: 600; }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.tag {
    display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .5px;
    color: var(--saffron-deep); background: #fff0df; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; color: var(--maroon-deep); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 18px; }

/* ===== Legacy ===== */
.legacy-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; }
.legacy-photo { position: relative; }
.legacy-photo img { border-radius: var(--radius); filter: sepia(.25) contrast(1.05); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/5; max-height: 560px; object-fit: cover; object-position: 30% 20%; }
.legacy-photo figcaption {
    position: absolute; right: -18px; bottom: 26px; background: var(--maroon); color: #fff;
    padding: 14px 20px; border-radius: 14px; font-family: var(--display); font-size: 17px; max-width: 250px; box-shadow: var(--shadow);
}
.quote {
    font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); color: var(--maroon);
    border-left: 4px solid var(--saffron); padding: 4px 0 4px 22px; margin: 0 0 26px;
}
.lineage { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lineage li { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.lineage .dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff0df; color: var(--saffron-deep); font-weight: 800; }
.lineage b { display: block; color: var(--maroon-deep); }
.lineage span { color: var(--muted); font-size: 15.5px; }

/* ===== Role cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card::after { content: ''; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--saffron), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover::after { transform: scaleX(1); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--maroon); color: var(--gold); margin-bottom: 18px; }
.card .ico svg { width: 26px; height: 26px; }
.card .role { font-size: 13.5px; font-weight: 700; color: var(--saffron-deep); text-transform: uppercase; letter-spacing: .6px; }
.card h3 { font-size: 20px; color: var(--maroon-deep); margin: 6px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.motto {
    margin-top: 40px; padding: 26px 30px; border-radius: var(--radius); color: #fff;
    background: linear-gradient(120deg, var(--maroon), var(--saffron-deep));
    font-family: var(--display); font-size: clamp(18px, 2vw, 22px); text-align: center;
}

/* ===== Education ===== */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.edu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.edu-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.edu-item b { font-size: 32px; font-weight: 800; color: var(--saffron-deep); line-height: 1; min-width: 42px; }
.edu-item span { font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.edu-quote { background: var(--maroon-deep); color: #fff; border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden; }
.edu-quote::before { content: '“'; position: absolute; top: -30px; right: 16px; font-size: 180px; font-family: var(--display); color: rgba(242,178,51,.18); }
.edu-quote .big { font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); color: var(--gold); margin: 0 0 16px; }
.edu-quote p { color: rgba(255,255,255,.82); margin: 0; }
.edu-quote .since { display: inline-block; margin-top: 22px; font-weight: 700; background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; }

/* ===== Youth / struggle timeline ===== */
.youth-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.post-list { display: grid; gap: 14px; }
.post { border-radius: 14px; padding: 20px 22px; background: var(--cream); border: 1px solid var(--line); }
.post .role { font-size: 13.5px; font-weight: 700; color: var(--saffron-deep); }
.post h3 { font-size: 19px; color: var(--maroon-deep); margin-top: 2px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--saffron), var(--gold)); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--saffron); }
.timeline b { display: block; color: var(--maroon-deep); font-size: 17.5px; }
.timeline span { color: var(--muted); font-size: 15.5px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.07); }
.gallery-more { text-align: center; margin-top: 34px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,8,4,.92); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

/* ===== WhatsApp connect ===== */
.wa-section {
    background:
        radial-gradient(600px 400px at 100% 0%, rgba(37,211,102,.22), transparent 60%),
        linear-gradient(150deg, #0b2f24, #0f3d2e 55%, #0c5a43);
    color: #fff;
}
.wa-section .section-head h2 { color: #fff; }
.wa-section .section-head p { color: rgba(255,255,255,.75); }
.wa-section .tag { background: rgba(37,211,102,.16); color: #7df0a8; }
.wa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.wa-features { display: grid; gap: 14px; }
.wa-feature { display: flex; gap: 16px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.wa-feature .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(37,211,102,.18); color: var(--wa); display: grid; place-items: center; }
.wa-feature .ico svg { width: 24px; height: 24px; }
.wa-feature b { display: block; font-size: 17.5px; }
.wa-feature span { color: rgba(255,255,255,.7); font-size: 15.5px; }
.wa-qr { display: flex; gap: 18px; align-items: center; margin-top: 22px; padding: 18px; border-radius: 14px; background: #fff; color: var(--ink); }
.wa-qr #qr { flex: none; width: 116px; height: 116px; }
.wa-qr #qr img, .wa-qr #qr canvas { width: 116px !important; height: 116px !important; }
.wa-qr b { display: block; color: var(--wa-deep); }
.wa-qr span { font-size: 15px; color: var(--muted); }

.wa-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.wa-form h3 { font-size: 22px; color: var(--ink); }
.wa-form .sub { color: var(--muted); font-size: 15px; margin: 4px 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select, .field textarea {
    font: 16px var(--font); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdfa; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
.consent input { margin-top: 5px; accent-color: var(--wa-deep); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--wa-deep); text-decoration: underline; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; transition: transform .2s, box-shadow .2s; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--maroon); color: var(--gold); margin-bottom: 8px; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { color: var(--muted); font-weight: 600; }
.contact-card b { color: var(--maroon-deep); font-size: 17px; word-break: break-word; }

/* ===== Footer ===== */
.footer { background: var(--maroon-deep); color: rgba(255,255,255,.7); padding: 54px 0 28px; font-size: 15.5px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { margin-bottom: 10px; }
.footer p { margin: 0; max-width: 420px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding-top: 22px; font-size: 14px; }

/* ===== Floating WhatsApp ===== */
.fab-wa {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
    background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(18,140,126,.7);
    animation: pulse 2.4s infinite;
}
.fab-wa svg { width: 32px; height: 32px; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)} 70%{box-shadow:0 0 0 18px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .fab-wa { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== Legal pages ===== */
.legal-hero { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon)); color: #fff; padding: 130px 0 56px; }
.legal-hero h1 { font-size: clamp(32px, 4.4vw, 46px); }
.legal-hero p { color: rgba(255,255,255,.7); margin: 8px 0 0; }
.legal { padding: 56px 0 90px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 22px; color: var(--maroon-deep); margin: 34px 0 10px; }
.legal p, .legal li { color: #3e3127; }
.legal ul { padding-left: 22px; }
.legal .box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.back-link { display: inline-block; margin-top: 36px; font-weight: 700; color: var(--saffron-deep); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero-inner, .legacy-grid, .edu-grid, .youth-grid, .wa-grid { grid-template-columns: 1fr; }
    .hero-inner { gap: 44px; }
    .hero-photo { order: -1; width: min(340px, 86%); }
    .hero-badge { left: -12px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .legacy-photo { max-width: 440px; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--maroon-deep); padding: 10px 16px 20px; transform: translateY(-120%); transition: transform .35s; z-index: -1;
    }
    .nav-links.open { transform: none; }
    .nav-links a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav-links .nav-cta { text-align: center; margin-top: 12px; border: 0; }
    .lang-toggle { margin-top: 12px; padding: 10px; }
    .nav:has(.nav-links.open) { background: var(--maroon-deep); }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .hero { padding-top: 96px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .cards, .contact-grid, .edu-list, .field-row { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .legacy-photo figcaption { right: 10px; }
    .wa-form { padding: 22px; }
    .wa-qr { display: none; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
