/* Moone School of Ballet */
:root {
  --plum: #3b014d;
  --plum-2: #55136b;
  --plum-deep: #26002f;
  --lilac: #bd97c6;
  --lilac-soft: #f2eaf4;
  --paper: #fbf8f5;
  --white: #ffffff;
  --ink: #2b1633;
  --ink-soft: #5b4763;
  --line: #e6dbe8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1000px;
  --gutter: 24px;
  --gap: clamp(56px, 8vw, 96px); /* every section uses this same gap */
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-decoration-color: var(--lilac); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--plum); }
strong { font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--plum); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--white); padding: 8px 12px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ─────────────────────────── */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.logo img { height: 68px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current] { color: var(--plum); border-bottom-color: var(--lilac); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .logo img { height: 52px; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span:not(.sr) { display: block; height: 1.5px; background: var(--plum); transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ── Buttons & links ────────────────── */
.btn {
  display: inline-block; background: var(--plum); color: var(--paper); text-decoration: none;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  padding: 14px 26px; border: 1px solid var(--plum); border-radius: var(--radius); transition: background .2s, color .2s;
}
.btn:hover { background: var(--plum-2); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--plum); border-color: var(--paper); }
.btn-light:hover { background: var(--lilac-soft); }
.more {
  display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  color: var(--plum); text-decoration: none; border-bottom: 1px solid var(--lilac); padding-bottom: 2px;
}
.more:hover { border-bottom-color: var(--plum); }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4em; font-weight: 400; }
.small { font-size: .9rem; color: var(--ink-soft); }
.links-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Sections (uniform gaps) ────────── */
.section { padding: var(--gap) 0; }
.section + .section:not(.section-tint):not(.section-cta) { padding-top: 0; }
.section-tint + .section:not(.section-tint):not(.section-cta), .section-cta + .section:not(.section-tint):not(.section-cta) { padding-top: var(--gap); }
.section-tint { background: var(--lilac-soft); }
.section-title { margin-bottom: 1.2em; }
.prose { max-width: 720px; }
.prose h2:not(:first-child) { margin-top: 1.4em; }
.lead { max-width: 760px; margin: 0 auto; text-align: center; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.5; color: var(--plum); }
.lead p { margin: 0; }
.note { margin: 32px 0 0; color: var(--ink-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ── Home hero ──────────────────────── */
.hero { padding: 48px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.hero-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); width: 100%; }
.hero-media .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-media .slide.is-on { opacity: 1; }
.hero-text h1 { margin-bottom: .35em; }
.hero-text p { font-size: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { margin: 0 auto; }
}

/* ── Inner page banner ──────────────── */
.banner { padding: 40px 0 0; }
.banner .wrap { position: relative; }
.banner-img { aspect-ratio: 2.6 / 1; overflow: hidden; border-radius: var(--radius); margin: 0 auto; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }
.banner h1 {
  position: relative; display: inline-block; margin: -44px 0 0 32px; background: var(--plum); color: var(--paper);
  padding: 16px 32px 18px; border-radius: var(--radius); font-size: clamp(2rem, 4.4vw, 3rem);
}
.banner-plain h1 { margin: 0; background: none; color: var(--plum); padding: 0; }
@media (max-width: 600px) {
  .banner { padding-top: 20px; }
  .banner-img { aspect-ratio: 16 / 9; }
  .banner h1 { margin: -28px 0 0 16px; padding: 10px 20px 12px; }
}

/* ── Features ───────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { text-decoration: none; color: var(--ink); display: block; }
.feature-img { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; max-width: 400px; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .feature-img img { transform: scale(1.03); }
.feature h2 { font-size: 1.8rem; margin-bottom: .25em; }
.feature p { color: var(--ink-soft); margin-bottom: 14px; }
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; gap: 48px; max-width: 400px; margin: 0 auto; }
}

/* ── Quote / testimonials ───────────── */
.quote { max-width: 780px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.5; color: var(--plum); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--lilac); margin-bottom: 12px; font-style: normal; }
.quote figcaption { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.testimonials { columns: 2 340px; column-gap: 32px; }
.testimonial { break-inside: avoid; margin: 0 0 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.testimonial blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.testimonial figcaption { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }

/* ── CTA band ───────────────────────── */
.section-cta { background: var(--plum); color: var(--paper); }
.cta { max-width: 640px; margin: 0 auto; text-align: center; }
.cta h2 { color: var(--paper); }
.cta p { color: var(--paper); margin-bottom: 28px; }

/* ── Callout ────────────────────────── */
.callout { max-width: 720px; }

/* ── Teachers ───────────────────────── */
.principal { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.principal-img { border-radius: var(--radius); overflow: hidden; width: 100%; }
.quals { font-size: .85rem; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 1.2em; }
@media (max-width: 760px) { .principal { grid-template-columns: 1fr; gap: 28px; } }
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; align-items: start; }
.teacher-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; max-width: 240px; }
.teacher-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.teacher h3 { margin-bottom: .15em; }
.teacher .quals { margin-bottom: .6em; }
.teacher details summary {
  cursor: pointer; list-style: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); border-bottom: 1px solid var(--lilac); display: inline-block; padding-bottom: 2px;
}
.teacher details summary::-webkit-details-marker { display: none; }
.teacher details[open] summary { margin-bottom: 14px; }
.teacher details p { font-size: .95rem; }
@media (max-width: 560px) {
  .teachers { grid-template-columns: 1fr; }
  .teacher { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
  .teacher-img { margin: 0; }
}

/* ── Classes ────────────────────────── */
.class-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.class { padding: 28px 0; border-top: 1px solid var(--line); }
.class h3 { margin-bottom: .2em; }
.class .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.class .meta span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; background: var(--lilac-soft); color: var(--plum); padding: 3px 10px; border-radius: 20px; font-weight: 400; }
.class p:last-child { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .class-list { grid-template-columns: 1fr; } }

.fees dl, .marks, .schedule { margin: 0 0 20px; }
.fees dl div, .marks div, .schedule div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fees dt, .marks dt, .schedule dt { font-weight: 300; }
.fees dd, .marks dd, .schedule dd { margin: 0; font-weight: 400; color: var(--plum); text-align: right; }
.fees .eyebrow { margin-top: -.3em; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list a { text-decoration: none; }
.link-list a::after { content: " \2192"; color: var(--lilac); }
.schedule { max-width: 640px; }
.marks { max-width: 480px; margin-top: 8px; }

/* ── Venues ─────────────────────────── */
.venues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.venue .map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--line); }
.venue iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
.venue address { margin-bottom: 14px; color: var(--ink-soft); }
@media (max-width: 860px) { .venues { grid-template-columns: 1fr; max-width: 520px; } }

/* ── Uniform ────────────────────────── */
.uniform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.uniform { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.uniform h3 { border-bottom: 1px solid var(--lilac); padding-bottom: 10px; margin-bottom: 14px; }
.uniform ul { margin: 0; padding-left: 1.1em; }
.uniform li { margin-bottom: 6px; font-size: .97rem; }
.uniform li::marker { color: var(--lilac); }
.supplier { margin-bottom: 18px; }
.supplier address { margin-bottom: 10px; color: var(--ink-soft); }

/* ── Gallery ────────────────────────── */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; transition: opacity .3s; }
.gallery a:hover img { opacity: .85; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(30, 6, 38, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 88vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); font-size: 3rem; line-height: 1; cursor: pointer; padding: 12px 18px; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ── Contact ────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card p { color: var(--ink-soft); flex: 1; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────── */
.site-footer { background: var(--plum-deep); color: var(--paper); padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--paper); text-decoration-color: rgba(251, 248, 245, .4); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1.6fr auto; gap: 40px; }
.footer-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: .4em; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(251, 248, 245, .4); border-radius: 50%; }
.social a:hover { background: var(--paper); color: var(--plum); }
.social svg { width: 18px; height: 18px; }
.rad img { width: 64px; height: 64px; background: var(--paper); border-radius: 50%; padding: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(251, 248, 245, .2); font-size: .85rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-side { align-items: flex-start; flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-base { flex-direction: column; }
}

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

/* ── In memory (Teachers page) ──────── */
.memorial { max-width: 620px; margin: 0 auto; text-align: center; }
.memorial .eyebrow { margin-bottom: 28px; }
.memorial-img { width: 200px; aspect-ratio: 4 / 5; margin: 0 auto 24px; border-radius: 50% / 40%; overflow: hidden; }
.memorial-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.memorial h2 { margin-bottom: .15em; }
.memorial .quals { margin-bottom: .4em; }
.memorial-years { color: var(--ink-soft); font-size: .95rem; }
.memorial-tribute { margin: 28px 0 20px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.6; color: var(--plum); }
.memorial-signoff { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.memorial details summary {
  cursor: pointer; list-style: none; display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); border-bottom: 1px solid var(--lilac); padding-bottom: 2px;
}
.memorial details summary::-webkit-details-marker { display: none; }
.memorial-bio { text-align: left; margin-top: 20px; }
