/* ============================================================
   Nrityananda School of Kuchipudi — site styles
   Palette: ivory/cream, deep burgundy, subtle gold
   Type: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

:root {
  --ivory: #faf6ec;
  --cream: #f4ecdc;
  --cream-deep: #ece1c9;
  --burgundy: #6e1e2b;
  --burgundy-deep: #471118;
  --burgundy-ink: #3a0d14;
  --gold: #b98a2f;
  --gold-soft: #d3af5e;
  --ink: #2c2420;
  --muted: #6f6355;
  --line: #e3d6ba;
  --white: #fffdf8;
  --shadow: 0 18px 45px -18px rgba(58, 13, 20, 0.28);
  --radius: 14px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--burgundy-ink);
  letter-spacing: 0.01em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 780px; margin: 0 auto; }

/* ---------- Header ---------- */
.gold-rule { height: 4px; background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft)); }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 246, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 64px; width: auto; display: block; }
.brand-name {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--burgundy-ink); letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 10.5px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-top: 3px;
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); padding: 10px 13px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--cream); color: var(--burgundy); }
.nav a.active { color: var(--burgundy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta {
  border: 1.5px solid var(--burgundy); color: var(--burgundy) !important;
  border-radius: 999px !important; padding: 9px 20px !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--burgundy); color: var(--ivory) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--burgundy-ink); margin: 6px 0; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  background: var(--burgundy-ink); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 5%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,8,13,0.25) 0%, rgba(40,8,13,0.05) 35%, rgba(40,8,13,0.78) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 84px; color: var(--ivory); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-kicker {
  font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  color: var(--ivory); font-size: clamp(44px, 6.4vw, 84px); font-weight: 600;
  max-width: 14ch; margin-bottom: 20px;
}
.hero p { max-width: 56ch; font-size: 18px; color: #f3e9d2; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 14px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 32px; border-radius: 999px; transition: 0.25s; cursor: pointer; border: none;
}
.btn-solid { background: var(--burgundy); color: var(--ivory); }
.btn-solid:hover { background: var(--burgundy-deep); color: var(--ivory); transform: translateY(-1px); }
.btn-gold { background: transparent; color: var(--gold-soft); border: 1.5px solid var(--gold-soft); }
.btn-gold:hover { background: var(--gold-soft); color: var(--burgundy-ink); }
.btn-outline { background: transparent; color: var(--burgundy); border: 1.5px solid var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--ivory); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--cream); }
.kicker {
  font-size: 12.5px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px; text-align: center;
}
.section-title { font-size: clamp(34px, 4vw, 52px); text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 54px; font-size: 18px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 40px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 120px; background: var(--gold); opacity: 0.7; }
.ornament i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); display: block; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.two-col h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 18px; }
.two-col p { color: var(--muted); margin-bottom: 18px; }
.frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 10px 30px -18px rgba(58,13,20,0.25); transition: 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); font-weight: 700;
}
.card-date::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }
.card h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card-meta { font-size: 14px; color: var(--muted); }
.card-link { font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); margin-top: 6px; }
.card-link:hover { color: var(--gold); }

.empty-state {
  text-align: center; padding: 60px 30px; border: 1.5px dashed var(--gold);
  border-radius: var(--radius); background: var(--white); max-width: 720px; margin: 0 auto;
}
.empty-state h3 { font-size: 30px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Quote band ---------- */
.band {
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy) 60%, #7d2534);
  color: var(--ivory); padding: 90px 0; text-align: center; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(211,175,94,0.35);
  border-radius: 4px; pointer-events: none;
}
.band blockquote { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 40px); max-width: 22ch; margin: 0 auto 18px; line-height: 1.4; }
.band cite { font-style: normal; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Gallery ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.album {
  cursor: pointer; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 10px 30px -18px rgba(58,13,20,0.3); background: var(--burgundy-ink); transition: 0.3s; border: none; padding: 0;
  font-family: var(--sans); text-align: left; width: 100%;
}
.album:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.album img { width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: 0.92; }
.album-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 24px 20px; color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(40,8,13,0.88));
}
.album-label h3 { color: var(--ivory); font-size: 26px; margin-bottom: 2px; }
.album-label span { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }
.album-count {
  position: absolute; top: 14px; right: 14px; background: rgba(250,246,236,0.92); color: var(--burgundy-ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; padding: 6px 14px; border-radius: 999px;
}
.album-view-head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; flex-wrap: wrap; }
.album-view-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-grid button { border: none; padding: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; background: var(--cream-deep); }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: 0.4s; }
.photo-grid button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(30,6,10,0.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(250,246,236,0.12); border: 1px solid rgba(211,175,94,0.5);
  color: var(--ivory); font-size: 22px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; transition: 0.25s;
}
.lightbox .lb-close { top: 26px; right: 30px; }
.lightbox .lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: var(--gold); color: var(--burgundy-ink); border-color: var(--gold); }
.lb-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--gold-soft); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.video-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -18px rgba(58,13,20,0.25); }
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--burgundy-ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-body { padding: 22px 26px 26px; }
.video-body h3 { font-size: 24px; margin-bottom: 6px; }
.video-body p { color: var(--muted); font-size: 15px; }
.video-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: var(--gold-soft); text-align: center; padding: 30px;
}
.video-soon .vicon {
  width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy)); color: var(--ivory); padding: 84px 0 70px; text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(211,175,94,0.3); border-radius: 4px; pointer-events: none; }
.page-hero h1 { color: var(--ivory); font-size: clamp(40px, 5.4vw, 66px); margin-bottom: 12px; }
.page-hero p { color: #ecd9ac; max-width: 60ch; margin: 0 auto; font-size: 18px; }

/* ---------- Timeline / bio ---------- */
.bio-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: start; }
.bio-grid .frame img { aspect-ratio: 3/4; }
.bio-grid h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 6px; }
.bio-role { font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 22px; }
.bio-grid p { color: var(--muted); margin-bottom: 18px; }
.milestones { margin-top: 34px; border-top: 1px solid var(--line); }
.milestone { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.milestone .yr { font-family: var(--serif); font-size: 24px; color: var(--burgundy); font-weight: 700; }
.milestone p { margin: 0; font-size: 16px; }

/* ---------- Class levels ---------- */
.levels { display: grid; gap: 22px; margin-top: 10px; }
.level {
  display: grid; grid-template-columns: 240px 1fr; gap: 34px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; align-items: start;
}
.level h3 { font-size: 30px; margin-bottom: 4px; }
.level .ages { font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.level p { color: var(--muted); font-size: 16px; margin: 0; }
.checklist { list-style: none; margin-top: 8px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.checklist li::before { content: "◆"; color: var(--gold); font-size: 12px; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: 0 10px 30px -18px rgba(58,13,20,0.2); }
.contact-row { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--cream);
  border: 1px solid var(--gold); color: var(--burgundy); display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.contact-row h4 { font-size: 20px; margin-bottom: 2px; }
.contact-row p { color: var(--muted); font-size: 15.5px; margin: 0; }
.form label { display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--burgundy-ink); margin: 18px 0 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 16px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 24px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--burgundy-ink); color: #e9d9b8; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer-logo { height: 84px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand { font-family: var(--serif); font-size: 32px; color: var(--ivory); margin-bottom: 4px; }
.footer-tag { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.site-footer p { font-size: 15px; color: #cdbb96; }
.site-footer h4 { color: var(--ivory); font-size: 20px; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #cdbb96; font-size: 15px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(211,175,94,0.25); padding: 24px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: #a68f63; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .album-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .bio-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .video-grid { grid-template-columns: 1fr; }
  .level { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); padding: 10px 20px 20px; gap: 2px;
    box-shadow: 0 24px 40px -20px rgba(58,13,20,0.3);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 8px; border-bottom: 1px solid var(--cream-deep); }
  .nav a.active { box-shadow: none; border-left: 3px solid var(--gold); padding-left: 12px; }
  .nav-cta { margin: 12px 0 0; text-align: center; }
  .hamburger { display: block; }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .cards, .album-grid, .photo-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 78vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .milestone { grid-template-columns: 70px 1fr; }
}
