/* Dolce Music Academy - Elegant Minimalist Design */
:root {
  /* LIGHT NEUTRALS */
  --cream: #FBF7F0;
  --cream-dark: #F0EBE0;
  --cream-deep: #EFE6D6;

  /* TEXT / DARK NEUTRALS */
  --ink: #1A1714;
  --ink-soft: #3D3832;
  --ink-muted: #6B635A;

  /* GREIGE / STONE NEUTRAL */
  --greige: #B9B2A6;

  /* GOLD / CHAMPAGNE */
  --gold: #C9B99A;
  --gold-soft: #D9C6A0;
  --gold-deep: #8B7A5E;
  --gold-light: #F6F0E4;

  /* COOL DARK ACCENT */
  --navy: #010A18;

  /* Supporting */
  --line: rgba(185, 178, 166, 0.35);
  --line-soft: rgba(185, 178, 166, 0.20);
  --shadow: 0 4px 24px rgba(26, 23, 20, 0.08);
  --radius: 999px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Times New Roman", Times, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(185, 178, 166, 0.28);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--transition), background var(--transition);
  transform: translateY(0);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 23, 20, 0.06);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Canonical logo sizing: header and footer are intentionally independent. */
.logo-img {
  width: auto;
  object-fit: contain;
  display: block;
}

.site-header .logo-img {
  height: 104px;
  max-width: none;
}

.logo-img-footer {
  height: 64px;
  max-width: none;
  filter: none;
}

.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.logo-slogan {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}

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

.nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.nav-portal {
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.nav a.nav-portal:hover,
.nav a.nav-portal.active {
  color: var(--ink);
}
.nav a.nav-portal::after {
  background: var(--gold-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  overflow: hidden;
  background: var(--cream);
}

.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-waves svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(201, 185, 154, 0.28);
}

.btn-gold:hover {
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(139, 122, 94, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-light);
  border-color: var(--gold-deep);
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

/* ========== SECTIONS COMMON ========== */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-lead {
  margin: 0 auto;
}

/* ========== ABOUT ========== */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background: #010A18;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.about-visual-inner,
.about-visual-crest {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: #010A18;
}

.about-crest-img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.about-visual-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.about-visual-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 280px;
}

.about-content .section-title {
  margin-bottom: 1.5rem;
}

.about-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--ink);
  font-weight: 550;
}

.values-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
}

.value-item h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.value-item p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ========== PROGRAMS ========== */
.programs {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

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

.program-card {
  background: #FFFEF9;
  border: 1px solid rgba(185, 178, 166, 0.32);
  border-radius: 16px;
  padding: 2.25rem 1.85rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 185, 154, 0.45);
}

.program-card:hover::before {
  opacity: 1;
}

.program-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  color: var(--gold-deep);
  object-fit: contain;
  display: block;
}

.program-icon-img {
  width: 72px;
  height: 72px;
  margin-bottom: 1.4rem;
  object-fit: contain;
  display: block;
}

.program-icon-aural {
  width: 88px;
  height: 72px;
}

.program-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.program-card p {
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.meta-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  background: var(--cream-deep);
  color: var(--ink-soft);
  border-radius: 999px;
}

/* ========== THEORY ========== */
.theory {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 55%, var(--cream-deep) 100%);
}

body.page-theory {
  background-color: var(--cream-dark);
}

.page-theory .theory-page {
  padding-top: 7.5rem;
  min-height: calc(100vh - 12rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 55%, var(--cream-deep) 100%);
}

.page-theory .section-label {
  color: var(--gold-deep);
}

.page-theory .section-title {
  color: var(--ink);
}

.page-theory .section-lead {
  color: var(--ink-soft);
}

.theory-page .section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
}

.theory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.theory-card {
  background: #FFFEF9;
  border: 1px solid rgba(185, 178, 166, 0.32);
  border-radius: 16px;
  padding: 2.25rem 1.85rem;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(26, 23, 20, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.theory-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.theory-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 185, 154, 0.45);
}

.theory-card:hover::before {
  opacity: 1;
}

.theory-card-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.45rem;
}

.theory-card h2,
.theory-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.theory-card > p:not(.theory-card-kicker) {
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.theory-card-btn {
  align-self: flex-start;
  margin-top: auto;
}

.theory-card-practice {
  border-color: rgba(201, 185, 154, 0.40);
}

/* ========== INSTRUCTOR ========== */
.teachers {
  background: var(--cream);
}

.instructor-block {
  margin-top: 1rem;
}

.instructor-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.75rem;
  align-items: start;
  background: #FFFEF9;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.instructor-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy) 0%, #0a1528 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

.instructor-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.instructor-initials {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.instructor-content h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.teacher-role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.instructor-role-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.instructor-role-stack .role-line {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

.instructor-role-stack .role-subjects {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.teachers .section-header {
  text-align: center;
}

.instructor-bio {
  margin-top: 0.25rem;
}

.instructor-bio p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.instructor-bio p:last-child {
  margin-bottom: 0;
}

.instructor-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.instructor-highlights span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  background: var(--cream-deep);
  color: var(--ink-soft);
  border-radius: 999px;
  border: 1px solid rgba(185, 178, 166, 0.40);
}

/* ========== WHY / VALUES BANNER ========== */
.why {
  background: linear-gradient(135deg, #1A1714 0%, #2C2822 100%);
  color: var(--cream);
  padding: 5.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.why-waves {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.why .section-inner {
  position: relative;
  z-index: 2;
}

.why .section-label,
.why-label {
  font-family: var(--font-display);
  color: var(--gold-soft);
  letter-spacing: 0.2em;
}

.why .section-title,
.why-title {
  font-family: var(--font-serif);
  color: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.why-item {
  text-align: center;
}

.why-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.why-item h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--cream);
}

.why-item p {
  font-size: 0.95rem;
  color: rgba(251, 247, 240, 0.78);
  line-height: 1.6;
}

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

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

.testimonial-card {
  background: #FFFEF9;
  border: 1px solid rgba(185, 178, 166, 0.30);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-deep);
  font-size: 1.1rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
}

.author-info span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ========== CONTACT ========== */
.contact {
  background: var(--cream);
}

.contact-dark {
  background: var(--navy);
  color: var(--cream);
}

.contact-dark .section-label {
  color: var(--gold-soft);
}

.contact-dark .section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  color: var(--cream);
}

.contact-dark .section-lead {
  color: rgba(251, 247, 240, 0.78);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-grid-single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}

.contact-info p {
  color: var(--ink-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.contact-item a:hover {
  color: var(--gold-deep);
}

.contact-form {
  background: #FFFEF9;
  border: 1px solid rgba(185, 178, 166, 0.32);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.contact-form-light {
  background: var(--cream);
  border: 1px solid rgba(201, 185, 154, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.contact-form-light .form-group label {
  color: var(--ink-soft);
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.contact .section-label {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
}

.contact .section-title {
  font-family: var(--font-serif);
  font-weight: 600;
}

.contact .section-lead {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(185, 178, 166, 0.45);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact-form-light .form-group input,
.contact-form-light .form-group select,
.contact-form-light .form-group textarea {
  background: #fff;
  border-color: rgba(185, 178, 166, 0.40);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 185, 154, 0.18);
}

/* DMA select — clean custom shell. The caret is a real CSS element rather than
   a select background image, avoiding native Safari select rendering constraints. */
.select-shell {
  position: relative;
  width: 100%;
}

.form-group .select-shell select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  padding-right: 3.25rem;
  background-image: none !important;
}

.select-caret {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 0.40rem;
  height: 0.40rem;
  border-right: 1.5px solid #B89A6C;
  border-bottom: 1.5px solid #B89A6C;
  transform: translateY(-68%) rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 2;
}

/* Keep the unselected prompt visually ghosted until a real option is chosen. */
.form-group select:invalid {
  color: #9a978f;
}

.form-group select option {
  color: var(--ink);
}

.form-group select:hover {
  border-color: rgba(184, 154, 108, 0.72);
}

.select-shell:focus-within .select-caret {
  border-color: var(--gold);
}

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

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--cream-dark);
  color: var(--ink-soft);
  padding: 2.25rem 2rem 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Footer navigation architecture (v15): five equal content tracks.
   Explore spans tracks 1–2, Lessons occupies track 3, Studio spans tracks 4–5.
   One shared column-gap controls EVERY space between visible footer columns. */
.footer-top {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) minmax(0, 3fr);
  column-gap: 2rem;
  align-items: start;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.footer-nav-grid {
  --footer-column-gap: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--footer-column-gap);
  align-items: start;
  width: 100%;
  min-width: 0;
}

.footer-group {
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: auto auto;
  grid-row: 1;
  row-gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.footer-group-explore { grid-column: 1 / span 2; }
.footer-group-lessons { grid-column: 3; }
.footer-group-studio { grid-column: 4 / span 2; }

.footer-group h4 {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.7rem;
  padding: 0;
  width: 100%;
}

/* Heading alignment follows the actual five-column footer geometry.
   Explore and Studio center over their two-track spaces; Lessons begins
   exactly at the left edge of its single content track. */
.footer-group-explore > h4,
.footer-group-studio > h4 {
  text-align: center;
  justify-self: stretch;
  transform: translateX(-28px);
}
.footer-group-lessons > h4 {
  text-align: left;
  justify-self: stretch;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  text-align: left;
  transform: translateY(5px);
}
/* Pull only the paired Explore/Studio lists inward toward each other.
   The five-column master grid stays untouched, so Lessons remains exactly where it was. */
.footer-list-explore-a {
  grid-column: 1;
  transform: translate(42px, 5px);
}
.footer-list-studio-a {
  grid-column: 1;
  transform: translate(12px, 5px);
}
.footer-list-explore-b, .footer-list-studio-b {
  grid-column: 2;
  transform: translate(-12px, 5px);
}
.footer-list-lessons { grid-column: 1; }

/* Footer brand vertical position: move the logo and its paragraph together as one unit.
   No child margin/positioning is used to fight this placement. */
.footer-brand {
  transform: translateY(-10px);
}

.footer-brand .logo-name { color: var(--ink); font-size: 1.2rem; }
.footer-brand .logo-slogan { color: var(--ink-muted); }
.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 290px;
}

.footer-list a,
.footer-list li {
  font-size: 0.85rem;
  color: var(--ink-muted);
  transition: color var(--transition);
}
.footer-list a:hover { color: var(--gold-deep); }

.footer-bottom {
  padding-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--ink); }

@media (max-width: 980px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    aspect-ratio: 4/5;
    max-height: 420px;
    max-width: 360px;
    margin: 0 auto;
  }

  .programs-grid,
  .theory-grid,
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .instructor-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .instructor-bio p {
    text-align: left;
  }

  .instructor-highlights {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .header-inner {
    padding: 0.7rem 1.25rem;
  }

  .site-header .logo-img {
    height: 82px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 247, 240, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(185, 178, 166, 0.30);
    box-shadow: 0 12px 30px rgba(26, 23, 20, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0.5rem;
    width: 100%;
    border-bottom: 1px solid rgba(185, 178, 166, 0.22);
  }

  .nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 6.5rem 1.5rem 4rem;
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header .logo-img {
    height: 68px;
    max-width: calc(100vw - 6rem);
  }

  .logo-text {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }
}

/* Utility */
.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;
}



/* ===== DMA enquiry confirmation — v8 ===== */
.form-status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #7a3f36;
}

.contact-success {
  background: var(--cream);
  border: 1px solid rgba(139, 115, 82, 0.34);
  border-radius: 16px;
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  text-align: center;
  outline: none;
}

.contact-success[hidden] { display: none !important; }

.contact-success-logo {
  display: block;
  width: min(86%, 430px);
  height: auto;
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  object-fit: contain;
}

.contact-success-title {
  max-width: 620px;
  margin: 0 auto 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
}

.contact-success-lead {
  max-width: 620px;
  margin: 0 auto 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.contact-success-copy {
  max-width: 590px;
  margin: 0 auto 1.9rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
}

.contact-success-reset {
  width: auto;
  min-width: 210px;
}

/* v15 footer responsive rules. Desktop uses five equal tracks; smaller screens collapse cleanly. */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; row-gap: 1.5rem; }
}
@media (max-width: 768px) {
  .footer-nav-grid { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .footer-group-explore,
  .footer-group-lessons,
  .footer-group-studio { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--footer-column-gap); }
  .footer-group-lessons { grid-template-columns: 1fr; }
  .footer-group h4 { grid-column: 1 / -1; }
  .footer-group-explore > h4,
  .footer-group-studio > h4 { text-align: center; }
  .footer-group-lessons > h4 { text-align: left; }
  .footer-list-lessons { align-items: flex-start; }
}
