/* Kala Vaibhav Sangeet Academy — colours taken from the academy logo */
:root {
  --maroon: #6e1a1a;
  --maroon-deep: #3d0d0d;
  --saffron: #d9731a;
  --gold: #c8962e;
  --gold-soft: #f3e3bd;
  --cream: #fbf6ee;
  --paper: #ffffff;
  --ink: #2b1a14;
  --muted: #6f5d52;
  --line: #eadfcf;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(61, 13, 13, .25);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marathi: "Tiro Devanagari Marathi", "Mukta", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--maroon-deep); }
h3 { font-size: 1.4rem; }
[lang="mr"] { font-family: var(--marathi); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
svg { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.4em; border-radius: 999px; border: 2px solid var(--saffron);
  background: var(--saffron); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; font: 600 1rem var(--body); transition: transform .15s, background .15s; }
.btn:hover { background: #c0610f; border-color: #c0610f; transform: translateY(-1px); }
.btn-small { padding: .45em 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost-dark:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.btn-light { background: var(--gold-soft); color: var(--maroon-deep); border-color: var(--gold-soft); }
.btn-light:hover { background: #fff; border-color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon-deep); }
.brand img { border-radius: 50%; }
.brand strong { display: block; font: 700 1.3rem/1.1 var(--display); }
.brand small { display: block; font-size: .9rem; color: var(--saffron); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--saffron); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--maroon-deep); transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; justify-content: center; }
  .brand strong { font-size: 1.1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--maroon-deep); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(61,13,13,.95) 20%, rgba(110,26,26,.55) 70%, rgba(217,115,26,.25)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); max-width: 760px; margin-left: max(16px, (100% - 1160px) / 2); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
.hero-mr { display: block; font-size: .55em; color: var(--gold-soft); margin-bottom: .2em; font-weight: 400; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 600; color: var(--saffron); margin: 0 0 .6em; }
.eyebrow[lang="mr"] { text-transform: none; letter-spacing: .02em; font-size: 1rem; }
.hero .eyebrow { color: var(--gold-soft); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 0 0 1.4em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.hero-badges { list-style: none; padding: 0; margin: 2.2em 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--gold); width: 1.3em; height: 1.3em; }

/* ---------- stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 26px 18px; border-left: 1px solid var(--line); }
.stats-grid div:first-child { border-left: 0; }
.stats strong { display: block; font: 700 2.1rem/1 var(--display); color: var(--maroon); margin-bottom: 6px; }
.stats span { font-size: .95rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stats-grid div:nth-child(3) { border-left: 0; } .stats-grid div { border-top: 1px solid var(--line); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--maroon-deep); color: #f4e9dc; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-lead { max-width: 680px; font-size: 1.12rem; color: var(--muted); margin: 0 0 2em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 1.6em; }
.section-head .section-title { margin: 0; }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .45em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.course { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-icon { width: 48px; height: 48px; color: var(--saffron); margin-bottom: 14px; }
.course h3 { margin-bottom: .1em; }
.course-mr { color: var(--gold); margin: 0 0 .6em; }
.course p:last-child { margin: 0; color: var(--muted); }

/* ---------- learn modes ---------- */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mode-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mode-card > div { padding: 24px 28px 18px; }
.mode-card h3 { display: flex; align-items: center; gap: 10px; }
.mode-card h3 svg { color: var(--saffron); }
@media (max-width: 760px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---------- exams ---------- */
.exams { background: linear-gradient(135deg, var(--gold-soft), #fff6e4 60%); }
.exams-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.levels { list-style: none; margin: 0; padding: 24px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.levels li { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px dashed var(--line); font-weight: 500; }
.levels li:last-child { border-bottom: 0; }
.levels span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; font-size: .9rem; flex: none; }
@media (max-width: 860px) { .exams-grid { grid-template-columns: 1fr; } }

/* ---------- events ---------- */
.event-list { display: grid; gap: 20px; }
.event-list-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.event-card { display: grid; grid-template-columns: 300px 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; }
.event-card:target { box-shadow: 0 0 0 3px var(--saffron); }
.event-list-compact .event-card { grid-template-columns: 1fr; }
.event-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.event-list-compact .event-media img, .event-card .event-media img { min-height: 100%; }
.event-list-compact .event-media img { height: auto; min-height: 0; }
.event-body { padding: 22px 24px; display: flex; flex-direction: column; }
.event-body h3 { font-size: 1.35rem; }
.event-body p { margin: 0 0 .8em; color: var(--muted); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; font-size: .92rem; color: var(--muted); }
.event-meta time { display: inline-flex; align-items: center; gap: 6px; }
.event-where { display: flex; align-items: flex-start; gap: 6px; }
.event-where svg { margin-top: .3em; }
.event-where { color: var(--ink) !important; font-weight: 500; }
.event-where svg { color: var(--saffron); }
.mode { color: var(--muted); font-weight: 400; }
.event-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.badge { padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--gold-soft); color: var(--maroon-deep); }
.badge-exam { background: var(--maroon); color: #fff; }
.badge-concert { background: #fde1c4; color: #8a3f00; }
.badge-admission { background: #dcefd9; color: #23552a; }
.badge-upcoming { background: var(--saffron); color: #fff; }
.past-title { margin-top: 1.6em; }
.empty-state { background: var(--paper); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 28px; text-align: center; }
.empty-state p { margin-top: 0; }
@media (max-width: 760px) { .event-card { grid-template-columns: 1fr; } }

/* ---------- share + social ---------- */
.share { display: inline-flex; align-items: center; gap: 6px; }
.share-label { font-size: .85rem; color: var(--muted); margin-right: 2px; }
.share a, .share button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--maroon); cursor: pointer; transition: .15s; padding: 0; }
.share a:hover, .share button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.share svg { width: 16px; height: 16px; }
.page-hero .share-label { color: var(--gold-soft); }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 1em; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--maroon); color: #fff; transition: .15s; }
.social a:hover { background: var(--saffron); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; }

/* ---------- faculty ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.teacher { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.teacher img, .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon), var(--saffron)); color: #fff; font: 700 2.6rem var(--display); }
.teacher-q { color: var(--saffron); font-weight: 600; margin: 0; }
.teacher .muted { margin: 0 0 .8em; font-size: .95rem; }
.teacher p:last-child { margin-bottom: 0; }

/* ---------- outreach ---------- */
.outreach { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.outreach-photos { display: grid; gap: 14px; }
.outreach-photos img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.outreach-photos img:nth-child(2) { width: 80%; margin-left: auto; margin-top: -60px; border: 6px solid var(--maroon-deep); }
@media (max-width: 860px) { .outreach { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 16px; font: 500 .95rem var(--body); cursor: pointer; }
.chip:hover { border-color: var(--saffron); }
.chip.is-active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.chip .count { opacity: .65; margin-left: 4px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gallery-item { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--line); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 26px 12px 9px; font-size: .85rem; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(30,6,6,.85)); }
.gallery-item[hidden] { display: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 6, 6, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-height: 100vh; padding: 48px 0 24px; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #f4e9dc; padding-top: 12px; text-align: center; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; line-height: 1; padding: 10px; }
.lb-close { position: absolute; top: 6px; right: 14px; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 40px 1fr 40px; } .lightbox button { font-size: 2.2rem; } }

/* ---------- page hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--maroon-deep), var(--maroon) 70%, #8a3a12); color: #f4e9dc; padding: 64px 0 52px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .social a { background: rgba(255,255,255,.12); }
.page-hero .social a:hover { background: var(--saffron); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-list svg { color: var(--saffron); width: 22px; height: 22px; margin-top: 3px; }
.follow-title { font-size: 1.25rem; }
.enquiry { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-self: start; }
.enquiry label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.enquiry input:not([type=radio]), .enquiry select, .enquiry textarea { font: 400 1rem var(--body); padding: 11px 13px; border-radius: 10px; border: 1px solid #d9cbb6; background: var(--paper); color: var(--ink); width: 100%; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--saffron); outline-offset: 1px; }
.enquiry fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.enquiry legend { font-weight: 500; font-size: .95rem; margin-bottom: 6px; width: 100%; }
.enquiry .radio { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.enquiry .btn { justify-content: center; }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.map { margin-top: 48px; }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: #24090a; color: #d9c8b8; padding: 56px 0 90px; } /* room for the floating WhatsApp button */
.site-footer h3 { color: #fff; font: 600 1.05rem var(--body); margin: 0 0 .6em; }
.site-footer a { color: var(--gold-soft); }
.site-footer .muted { color: #a8907e; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.brand-light strong { color: #fff; }
.brand-light small { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .9rem; color: #a8907e; }
.site-footer .social a { background: rgba(255,255,255,.1); }
.credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.credit a:hover { text-decoration: underline; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #1ebe5b; }
.wa-float-label { width: auto; padding: 0 22px 0 16px; border-radius: 999px; display: flex; gap: 10px; font-weight: 600; text-decoration: none; animation: wa-pulse 2.4s ease-out 1.5s 3; }
.wa-float-label svg { width: 26px; height: 26px; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55), 0 8px 24px rgba(0,0,0,.25); } 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 8px 24px rgba(0,0,0,.25); } }
@media (max-width: 480px) { .wa-float-label span { display: none; } .wa-float-label { width: 56px; padding: 0; justify-content: center; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
