/* Navarasa · School of Indian Dance
   Palette taken from the peacock logo: deep indigo, peacock blue, saffron. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --tint: #f4eee5;
  --ink: #1c1a2e;
  --muted: #5f5b6d;
  --line: #e7dfd3;
  --indigo: #2a2c7c;
  --peacock: #0e5a97;
  --saffron: #e8630c;
  --saffron-deep: #c94f04;
  --saffron-soft: #fdeadb;
  --dark: #15142a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 26, 46, .06), 0 12px 32px -12px rgba(28, 26, 46, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; color: var(--saffron-deep); }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--peacock); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron-deep);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }

/* Placeholder content: clearly marked until Ranjith supplies the real text */
.ph {
  background: #fff3d6;
  color: #8a5300;
  border: 1px dashed #e0a43c;
  border-radius: 6px;
  padding: 0 .35em;
  font-size: .92em;
  font-style: normal;
  white-space: normal;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .9rem; }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-deep); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #18773f; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; border-color: var(--line); }
.text-link { color: var(--peacock); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(28, 26, 46, .4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 600 1.3rem/1 var(--serif); letter-spacing: .01em; }
.brand-text small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-deep); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--tint); }
.nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; font: 600 .78rem/1 var(--sans); letter-spacing: .06em; color: var(--muted); padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 38px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(232, 99, 12, .12), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font: 500 1.2rem/1.2 var(--serif); }
.hero-facts span { font-size: .88rem; color: var(--muted); }
.hero-media { position: relative; padding: 0 0 56px 0; }
.hero-main { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-inset {
  margin: 0; position: absolute; left: -28px; bottom: 0; width: 44%;
  border-radius: 14px; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); aspect-ratio: 1;
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-peacock { position: absolute; right: -14px; top: -34px; width: 92px; transform: rotate(8deg); filter: drop-shadow(0 6px 12px rgba(0,0,0,.08)); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #f3efe8; }
.section-dark .eyebrow { color: #ffa25e; }
.section-dark .section-sub { color: #b9b4c9; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* School */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.prose p { font-size: 1.12rem; }
.prose p:first-child::first-letter { font-family: var(--serif); font-size: 3.2em; float: left; line-height: .9; margin: .06em .1em 0 0; color: var(--indigo); }
.rasas { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.rasas li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 10px; text-align: center; display: flex; flex-direction: column; gap: 4px; transition: transform .2s ease, border-color .2s ease; }
.rasas li:hover { transform: translateY(-3px); border-color: var(--saffron); }
.rasas b { font: 500 1rem/1.2 var(--serif); color: var(--indigo); }
.rasas span { font-size: .8rem; color: var(--muted); }

/* Classes */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease; }
.card:hover { transform: translateY(-4px); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 22px 26px; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-body .card-origin { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--peacock); margin-bottom: 8px; }
.card-body h3 { margin-bottom: .4em; }

/* Schedule */
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sched-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--saffron-soft); color: var(--saffron-deep); }
.pill-blue { background: #e1edf7; color: var(--peacock); }

/* Teacher */
.teacher { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.teacher-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.teacher-copy h2 { margin-bottom: .1em; }
.teacher-copy .role { color: var(--saffron-deep); font-weight: 600; margin-bottom: 1.4em; }
.teacher-copy p { font-size: 1.08rem; }

/* Performances */
.videos { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.video { margin: 0; }
.video figcaption { margin-top: 12px; color: #b9b4c9; font-size: .95rem; }
.video figcaption strong { color: #fff; font-weight: 600; display: block; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt:hover img { opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--saffron); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s; }
.play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt:hover .play { transform: scale(1.08); }
.video-portrait video { width: 100%; max-height: 560px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #000; }
.section-dark .ph { background: rgba(255, 196, 120, .12); color: #ffcf8f; border-color: rgba(255, 196, 120, .5); }

/* Gallery */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; border-radius: 12px; overflow: hidden; break-inside: avoid; background: var(--tint); }
.gallery img { width: 100%; transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Latest event */
.featured { margin-bottom: clamp(36px, 5vw, 56px); }
.featured-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.featured-head h3 { margin: 0; font-size: 1.5rem; }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 12px; }
.featured-grid a { border-radius: 12px; overflow: hidden; background: var(--tint); }
.featured-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-grid a:hover img { transform: scale(1.04); }
.featured-grid .f-wide { grid-column: span 2; grid-row: span 2; }
.featured-grid .f-tall { grid-row: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 13, 28, .94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; width: auto; border-radius: 8px; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.steps b { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font: 500 .95rem/1 var(--serif); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }

.sched-card h3 { font-size: 1.8rem; margin: 14px 0 18px; }
.rows { margin: 0; display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 3px; }
.rows dd { margin: 0; }
.rows-plain { margin-top: 32px; }
.fees { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--saffron-soft); border-radius: var(--radius); padding: 18px 24px; }
.fees p { margin: 0; }
.fees strong { margin-right: .5em; }
.quote { margin: 0 0 1.2em; padding-left: 20px; border-left: 3px solid var(--saffron); font: italic 400 1.35rem/1.45 var(--serif); color: var(--indigo); }

/* Enquiry form */
.contact-card h3 { margin-bottom: .3em; }
.small { font-size: .95rem; }
.tiny { font-size: .8rem; margin: 12px 0 0; text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peacock); background: #fff; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.hint { font-size: .8rem; color: var(--muted); margin: -6px 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b03a2e; font-size: .9rem; margin: 0 0 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.reveal-contact:focus { outline: none; }
.reveal-contact .rows { margin: 18px 0; }
.reveal-contact .rows a { font-weight: 600; font-size: 1.05rem; word-break: break-all; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.footer-logo { width: 120px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rasas { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 980px) {
  .header-cta { display: none; }
  .menu-btn { display: inline-block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(28,26,46,.3);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 1.05rem; padding: 14px 12px; border-radius: 10px; }
  .nav .nav-cta-mobile { display: flex; margin-top: 10px; color: #fff; }
  .nav .nav-cta-mobile:hover { background: var(--saffron-deep); color: #fff; }
  .header-actions { margin-left: auto; }
  .hero-grid, .split, .teacher, .contact, .videos { grid-template-columns: 1fr; }
  .hero-media { max-width: 620px; margin-left: 28px; }
  .teacher-photo { max-width: 520px; aspect-ratio: 4 / 4.2; }
  .video-portrait { max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  :root { --header-h: 64px; }
  .brand-text small { display: none; }
  .brand img { width: 34px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .hero-facts strong { font-size: 1.02rem; }
  .hero-facts span { font-size: .78rem; }
  .hero-media { margin-left: 16px; padding-bottom: 40px; }
  .hero-inset { left: -16px; width: 42%; border-width: 4px; }
  .hero-peacock { width: 64px; right: -6px; top: -26px; }
  .cards { grid-template-columns: 1fr; }
  .rasas { grid-template-columns: repeat(3, 1fr); }
  .sched-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .featured-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
  .gallery a { margin-bottom: 10px; }
  .contact-ctas .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .rows > div { grid-template-columns: 76px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
