/* ============================================================
   Enescu School of Music
   style.css — tokens → base → layout → components → sections
   ============================================================ */

/* ── TOKENS ── */
:root {
  --black: #0A0A0A;
  --surface: #141414;
  --surface-2: #1E1E1E;
  --border: #2A2A2A;
  --gold: #C9A252;
  --gold-dim: #8a6e37;
  --gold-glow: rgba(201, 162, 82, 0.15);
  --white: #F0EDE8;
  --white-dim: rgba(240, 237, 232, 0.6);
  --white-faint: rgba(240, 237, 232, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --text-hero: clamp(3rem, 6vw, 5.5rem);
  --text-h2: clamp(2rem, 4vw, 3rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --radius: 3px;
  --radius-lg: 6px;
  --max-w: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 260ms;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

p {
  max-width: 62ch;
}

:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

/* ── TYPE ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
  color: var(--white);
}

h1 {
  font-size: var(--text-hero);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

em {
  font-style: italic;
  color: var(--gold);
}

/* ── LAYOUT ── */
.container {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}

/* Gold rule — the brand signature device */
.rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rule::before,
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.rule::before {
  max-width: 60px;
}

.rule-left {
  justify-content: flex-start;
}

.rule-left::before {
  display: none;
}

.rule-center {
  justify-content: center;
}

/* Section spacing */
.section {
  padding-block: 6rem;
}

.section-sm {
  padding-block: 4rem;
}

/* Section header */
.section-head {
  margin-bottom: 3.5rem;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered p {
  margin-inline: auto;
}

.section-head h2 {
  margin-top: 0.75rem;
}

.section-head p.lead {
  margin-top: 1rem;
  color: var(--white-dim);
  font-size: var(--text-lg);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #dbb86a;
  border-color: #dbb86a;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(240, 237, 232, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background var(--t) var(--ease), backdrop-filter var(--t) var(--ease);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  transition: flex-direction var(--t) var(--ease);
}

/* Expanded: logo on top, links below */
.nav-logo {
  padding-top: 1.5rem;
  transition: padding var(--t) var(--ease);
}

.nav-logo img {
  height: 56px;
  width: auto;
  transition: height var(--t) var(--ease);
  display: block;
}

.nav-links-row {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-block: 0.85rem 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white-dim);
  letter-spacing: 0.04em;
  transition: color var(--t) var(--ease);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  transition: background var(--t) var(--ease) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #dbb86a !important;
}

/* Scrolled: single row, logo left, links right */
.site-header.scrolled .nav-wrap {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-header.scrolled .nav-logo {
  padding-top: 0;
  order: 0;
}

.site-header.scrolled .nav-logo img {
  height: 32px;
}

.site-header.scrolled .nav-links-row {
  padding-block: 0;
  width: auto;
  flex: 1;
  justify-content: flex-end;
}

.site-header.scrolled .nav-toggle {
  order: 3;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* ============================================================
   HERO — video background
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.85) 40%, rgba(10, 10, 10, 0.4) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  padding-block: 10rem 6rem;
  max-width: 720px;
}

.hero-content .rule {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: var(--text-hero);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--white-dim);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-cue span {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.hero-scroll-cue::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gold);
  animation: lineDown 2s var(--ease) infinite;
}

@keyframes lineDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  40% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  80% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2.75rem;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.trust-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 0.35rem;
}

/* ============================================================
   ABOUT / STORY
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-imgs {
  position: relative;
  aspect-ratio: 4/5;
}

.about-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-img-inset {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 52%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 3px solid var(--black);
}

.about-text .rule {
  margin-bottom: 1rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--white-dim);
  margin-bottom: 1.25rem;
}

.about-text .btn {
  margin-top: 0.75rem;
}

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs {
  background: var(--surface);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.program-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3/4;
  cursor: pointer;
}

.last-program-card {
  grid-column: span 3;
  aspect-ratio: 3;
}

.program-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease), filter 500ms var(--ease);
  filter: brightness(0.45) saturate(0.7);
}

.program-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.3) saturate(0.5);
}

.program-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
  transition: background var(--t) var(--ease);
}

.program-card:hover .program-card-body {
  background: linear-gradient(to top, rgba(10, 10, 10, 0.97) 0%, rgba(10, 10, 10, 0.5) 100%);
}

.program-card-body .rule {
  margin-bottom: 0.75rem;
}

.program-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.program-card p {
  font-size: var(--text-sm);
  color: var(--white-dim);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease), opacity 400ms var(--ease);
  opacity: 0;
}

.program-card:hover p {
  max-height: 6rem;
  opacity: 1;
}

.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.program-card:hover .program-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   VIDEO FEATURE
   ============================================================ */
.video-feature {
  background: var(--black);
  padding-block: 0;
}

.video-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.video-pane {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.video-pane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-pane::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
}

.video-text-pane {
  background: var(--surface);
  display: flex;
  align-items: center;
  padding: 4rem;
  border-left: 1px solid var(--border);
}

.video-text-pane .rule {
  margin-bottom: 1rem;
}

.video-text-pane h2 {
  margin-bottom: 1.5rem;
}

.video-text-pane p {
  color: var(--white-dim);
  margin-bottom: 1.25rem;
}

.video-text-pane .btn {
  margin-top: 0.5rem;
}

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 4px;
  overflow: hidden;
}

.photo-mosaic-item {
  overflow: hidden;
}

.photo-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.8);
  transition: filter 500ms var(--ease), transform 500ms var(--ease);
}

.photo-mosaic-item:hover img {
  filter: saturate(1) brightness(0.95);
  transform: scale(1.04);
}

.photo-mosaic-item.tall {
  grid-row: span 2;
}

.photo-mosaic-item.wide {
  grid-column: span 2;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--surface);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tcard {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--t) var(--ease);
}

.tcard:hover {
  border-color: var(--gold-dim);
}

.tcard-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
  font-size: var(--text-sm);
}

.tcard blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--white-dim);
  line-height: 1.65;
  flex: 1;
}

.tcard-author {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 5rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0.75rem 0 1rem;
}

.cta-band p {
  color: var(--white-dim);
  font-size: var(--text-lg);
  margin-bottom: 2.5rem;
  margin-inline: auto;
}

.cta-band-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand img {
  height: 240px;
  width: auto;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--white-dim);
  line-height: 1.9;
  max-width: none;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--white-dim);
  transition: color var(--t) var(--ease);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-size: var(--text-xs);
  color: rgba(240, 237, 232, 0.25);
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-block: 10rem 5rem;
  overflow: hidden;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.5);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}

.page-hero-content .rule {
  margin-bottom: 1rem;
}

.page-hero-content h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero-content p {
  font-size: var(--text-lg);
  color: var(--white-dim);
  max-width: 56ch;
}

/* ============================================================
   INSTRUMENTS PAGE
   ============================================================ */
.instrument-section {
  padding-block: 5rem;
  border-bottom: 1px solid var(--border);
}

.instrument-section:last-of-type {
  border-bottom: none;
}

.instrument-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.instrument-layout.reversed {
  direction: rtl;
}

.instrument-layout.reversed>* {
  direction: ltr;
}

.instrument-media {
  position: relative;
}

.instrument-img-wrap {
  aspect-ratio: 9/16;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t) var(--ease);
}

.instrument-img-wrap:hover {
  border-color: var(--gold-dim);
}

.instrument-img-wrap .instrument {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instrument-piano-img {
  object-position: 15% 50%;
}

.instrument-violin-img {
  transform: scale(1.4);
}

.instrument-cello-img {
  object-position: 15% 50%;
  transform: scale(1.1);
}

.instrument-drums-img {
  object-position: 20% 50%;

}

.instrument-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.instrument-text .rule {
  margin-bottom: 1rem;
}

.instrument-text h2 {
  margin-bottom: 1.25rem;
}

.instrument-text p {
  color: var(--white-dim);
  margin-bottom: 1rem;
}

.levels-list {
  margin-block: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.level-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--white-dim);
}

.level-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   INSTRUCTORS PAGE
   ============================================================ */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.instructor-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t) var(--ease);
}

.instructor-card:hover {
  border-color: var(--gold-dim);
}

.instructor-card-img {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: filter var(--t) var(--ease);
}

.instructor-card:hover .instructor-card-img {
  filter: saturate(1);
}

.instructor-card-body {
  padding: 1.5rem;
}

.instructor-card-body .rule {
  margin-bottom: 0.5rem;
}

.instructor-card h3 {
  margin-bottom: 0.25rem;
}

.instructor-card-role {
  font-size: var(--text-sm);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.instructor-card p {
  font-size: var(--text-sm);
  color: var(--white-dim);
  line-height: 1.65;
}

/* ============================================================
   SCHEDULE / PRICING PAGE
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--t) var(--ease);
}

.price-card:hover {
  border-color: var(--gold-dim);
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(145deg, var(--surface-2), rgba(201, 162, 82, 0.06));
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-per {
  font-size: var(--text-sm);
  color: var(--white-dim);
}

.price-card h3 {
  margin-top: 0.25rem;
}

.price-card p {
  font-size: var(--text-sm);
  color: var(--white-dim);
  line-height: 1.65;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.price-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--white-dim);
}

.price-feature::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.schedule-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

thead th {
  background: var(--surface-2);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 1rem 1.25rem;
  color: var(--white-dim);
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--surface-2);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--white);
  transition: border-color var(--t) var(--ease);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group select option {
  background: var(--surface-2);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info .rule {
  margin-bottom: 0.5rem;
}

.contact-detail {
  color: var(--white-dim);
  font-size: var(--text-sm);
  line-height: 1.9;
}

.contact-detail a {
  color: var(--gold);
}

.contact-detail a:hover {
  text-decoration: underline;
}

.map-container {
  opacity: 0.7;
  transition: 0.3s;
}

.map-container:hover {
  opacity: 1;
  transition: 0.3s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-imgs {
    max-width: 520px;
  }

  .video-feature-inner {
    grid-template-columns: 1fr;
  }

  .video-pane {
    aspect-ratio: 16/9;
  }

  .video-text-pane {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .photo-mosaic-item.tall {
    grid-row: span 1;
  }

  .photo-mosaic-item.wide {
    grid-column: span 2;
  }

  .instructors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    aspect-ratio: 4/3;
  }

  .program-card.last-card .program-card-body {
    width: 100%;
  }

  .instrument-layout,
  .instrument-layout.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .instructors-grid {
    grid-template-columns: 1fr;
  }

  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip-inner {
    gap: 0;
  }

  .trust-item {
    padding: 0.5rem 1.5rem;
  }
}

@media (max-width: 660px) {
  :root {
    --text-hero: clamp(2.5rem, 10vw, 3.5rem);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 190;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  /* Mobile: always compact header */
  .nav-wrap {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }

  .nav-links-row {
    display: none !important;
  }

  .nav-logo {
    padding-top: 0 !important;
  }

  .nav-logo img {
    height: 28px !important;
  }

  .hero-content {
    padding-block: 8rem 5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation: none !important;
  }
}
/* ============================================================
   ENESCU REBRAND — additions & fixes (Oct 2026)
   ============================================================ */
html { overflow-x: clip; }
body { overflow-x: clip; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--gold); color: var(--black); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* Brighter secondary text for readability */
:root { --white-dim: rgba(240, 237, 232, 0.72); }

/* Header logo (new wordmark is more compact) */
.nav-logo img { height: 60px; }
.site-header.scrolled .nav-logo img { height: 44px; }
.footer-brand img { height: auto; width: 100%; max-width: 240px; }
.footer-h { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }

/* Program cards: description always visible on touch screens and keyboard focus */
.program-card { cursor: default; }
.program-card:focus-within img { transform: scale(1.06); filter: brightness(0.3) saturate(0.5); }
.program-card:focus-within p { max-height: 6rem; opacity: 1; }
.program-card:focus-within .program-card-link { opacity: 1; transform: none; }
.program-card-link::after { content: ''; position: absolute; inset: 0; }
@media (hover: none) {
  .program-card img { filter: brightness(0.55) saturate(0.75); }
  .program-card-body { background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, transparent 85%); }
  .program-card p { max-height: none; opacity: 1; }
  .program-card-link { opacity: 1; transform: none; }
}

/* Instrument page images: fill the column */
.instrument-img-wrap { aspect-ratio: 4/5; max-height: 560px; width: 100%; }
.instrument-violin-img { transform: none; }
.instrument-cello-img { transform: none; object-position: 30% 50%; }

/* Steps / approach cards */
.steps-section { background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.step-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.25rem; }
.step-card h3 { margin-bottom: .75rem; }
.step-card p { color: var(--white-dim); font-size: var(--text-sm); line-height: 1.7; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--font-display); font-weight: 700; margin-bottom: 1.25rem; }

/* Text helpers */
.narrow { max-width: 760px; }
.centered-text { text-align: center; }
.centered-text p { margin-inline: auto; }
.body-lg { color: var(--white-dim); font-size: var(--text-lg); line-height: 1.8; margin-bottom: 1.25rem; }
.body-lg strong { color: var(--white); }
.text-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.say { color: var(--white); font-style: italic; white-space: nowrap; }
em.plain { color: inherit; }
.muted { opacity: .8; }

/* Pricing */
.badge { display: inline-block; vertical-align: middle; margin-left: .5rem; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.price-features { list-style: none; }
.price-card .btn { justify-content: center; margin-top: 1rem; }
.policy-box { list-style: none; margin-top: 2.5rem; padding: 1.75rem 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; color: var(--white-dim); font-size: var(--text-sm); line-height: 1.7; }
.policy-box strong { color: var(--gold); display: block; }

/* Schedule table */
tbody th { padding: 1rem 1.25rem; text-align: left; color: var(--white); font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child th { border-bottom: none; }
tbody tr:hover th { background: var(--surface-2); }
td.closed { opacity: .4; }
.section-head p.lead { max-width: 62ch; }

/* Contact */
.hp { position: absolute; left: -9999px; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.btn-block { width: 100%; justify-content: center; }
.form-note { color: var(--white-dim); font-size: var(--text-sm); text-align: center; margin-inline: auto; }
.info-h { margin: .75rem 0 1rem; }
.contact-info .contact-detail { margin-top: .75rem; }
.map-container { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-lg); margin-top: 1rem; border: 1px solid var(--border); opacity: .85; }
.map-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote-box { padding: 1.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.quote-box p { color: var(--white); font-family: var(--font-display); font-size: var(--text-lg); font-style: italic; line-height: 1.5; max-width: none; }

/* Thank-you / 404 */
.simple-page { padding-block: 12rem 7rem; min-height: 70vh; }
.simple-page h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 1rem 0; }
.simple-page p { color: var(--white-dim); font-size: var(--text-lg); margin-bottom: 2.5rem; }

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .policy-box { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .nav-logo img { height: 44px !important; }
  /* Mobile menu: the links row must stay rendered, the list itself is the overlay */
  .nav-links-row { display: block !important; position: static; padding: 0; width: auto; flex: none; }
  .site-header.menu-open { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links { height: 100dvh; }
  .nav-toggle { z-index: 210; top: 50%; transform: translateY(-50%); right: 1rem; padding: 10px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-wrap { position: relative; }
  .site-header { background: rgba(10, 10, 10, 0.92); }

  .trust-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 0; }
  .trust-item { border-right: none; padding: .5rem; text-align: center; }
  .trust-num { font-size: 1.75rem; }
  .video-text-pane { padding: 3rem 1.5rem; }
  .program-card-body { padding: 1.5rem; }
  .last-program-card { grid-column: auto; aspect-ratio: 4/3; }
  thead th, tbody td, tbody th { padding: .85rem .7rem; }
  table { font-size: .8rem; }
  .footer-brand img { max-width: 220px; }
}

/* Header logo swap: text-only at the top, horizontal (with violin) once scrolled */
.nav-logo .logo-scrolled { display: none; }
.site-header.scrolled .nav-logo .logo-top { display: none; }
.site-header.scrolled .nav-logo .logo-scrolled { display: block; }

/* Phones & tablets: always the horizontal logo */
@media (max-width: 1024px) {
  .nav-logo .logo-top { display: none; }
  .nav-logo .logo-scrolled { display: block; }
}

/* Bigger horizontal logo in the scrolled desktop header and on phones/tablets */
.site-header.scrolled .nav-wrap { height: 84px; }
.site-header.scrolled .nav-logo .logo-scrolled { height: 56px; }
@media (max-width: 1024px) {
  .nav-logo .logo-scrolled { height: 56px; }
}
@media (max-width: 660px) {
  .nav-wrap { height: 72px; }
  .nav-logo img.logo-scrolled { height: 48px !important; }
}
.site-header.scrolled .nav-links-row { margin-left: 2rem; }
@media (max-width: 1024px) and (min-width: 661px) {
  .nav-links { gap: 1.5rem; }
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { width: auto; max-width: none; }
.nav-links-row { min-width: 0; }

/* Narrow tablets: use the ☰ menu (not enough room for logo + full menu) */
@media (max-width: 900px) {
  .nav-toggle { display: flex; z-index: 210; top: 50%; transform: translateY(-50%); right: 1rem; padding: 10px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-wrap, .site-header.scrolled .nav-wrap { flex-direction: row !important; align-items: center; justify-content: space-between; height: 76px; position: relative; }
  .nav-logo { padding-top: 0 !important; }
  .site-header { background: rgba(10, 10, 10, 0.92); }
  .site-header.menu-open { background: var(--black); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links-row, .site-header.scrolled .nav-links-row { display: block !important; position: static; padding: 0; width: auto; flex: none; margin: 0; }
  .nav-links { display: none; position: fixed; inset: 0; height: 100dvh; background: var(--black); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; z-index: 190; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; }
}
@media (max-width: 660px) {
  .nav-wrap, .site-header.scrolled .nav-wrap { height: 72px; }
}

/* Desktop top-of-page logo: larger so "SCHOOL OF MUSIC" reads clearly */
.nav-logo .logo-top { height: 76px; }
@media (min-width: 901px) { .page-hero { padding-top: 11.5rem; } }
