/* ==========================================================================
   PRO MUSIC+ — Design System
   Weston, Florida — Music School & Music Store
   ========================================================================== */

:root {
  /* Brand palette — navy + teal-blue + white (hybrid palette, no gold) */
  --navy: #0b1b3a;
  --navy-2: #142a52;
  --navy-3: #1e3868;
  --blue: #0b6e9e;
  --blue-2: #0a5f89;
  --blue-light: #e8f3fa;
  --blue-pale: #f3f8fc;
  --blue-gray: #6c87a1;
  --white: #ffffff;
  --ink: #0b1b3a;
  --ink-soft: #465066;
  --gray-600: #4b5768;
  --gray-400: #8b96a8;
  --line: #e4eaf1;
  --line-soft: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --success: #1c7d4d;
  --danger: #b3312c;

  /* Type */
  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2.4rem;
  --space-6: 3.2rem;
  --space-7: 4.8rem;
  --space-8: 6.4rem;
  --space-9: 9.6rem;

  /* Radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 220ms;
  --med: 380ms;

  /* Layout */
  --container: 1360px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; }
svg { display: block; }

html, body {
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.h-display {
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.h-xl {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.h-lg {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
}

.h-md {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 800;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.5;
}

.body-copy {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.text-white { color: var(--white); }
.text-blue { color: var(--blue); }
.text-soft { color: var(--ink-soft); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-head .stack { max-width: 640px; }

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.7rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.btn svg { width: 1.1em; height: 1.1em; transition: transform var(--fast) var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-2); transform: translateY(-1px); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11,27,58,0.14); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  color: var(--navy);
  padding: 0;
  border-bottom: 2px solid transparent;
}
.btn-text:hover { color: var(--blue); }
.btn-text svg { width: 1.1em; height: 1.1em; transition: transform var(--fast) var(--ease); }
.btn-text:hover svg { transform: translateX(4px); }

.btn-sm { padding: 0.75rem 1.3rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header.on-dark {
  background: rgba(11,27,58,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(5,16,37,0.12);
}
.site-header.on-dark .nav-link,
.site-header.on-dark .logo-word,
.site-header.on-dark .logo-word b { color: var(--white); }

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-word {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1;
}
.logo-word b { color: var(--blue); font-weight: 800; }
.logo-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-gray);
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right var(--fast) var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--blue); }
.nav-links a.is-section-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.drawer-links a.is-section-active { color: var(--blue); }

.side-toggle {
  display: flex;
  align-items: center;
  background: var(--blue-light);
  border-radius: var(--r-pill);
  padding: 0.3rem;
  gap: 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.side-toggle a {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  color: var(--blue-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.side-toggle a.active {
  background: var(--navy);
  color: var(--white);
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
}
.menu-btn span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] { visibility: visible; }
.drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(11,27,58,0.4);
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.mobile-drawer[data-open="true"] .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 86vw);
  background: var(--white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--med) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.mobile-drawer[data-open="true"] .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-close { padding: 0.5rem; }
.drawer-links { display: flex; flex-direction: column; gap: 0.2rem; }
.drawer-links a {
  padding: 1rem 0.2rem;
  font-size: 1.3rem;
  font-weight: 800;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Gateway (split screen) ---------- */
.gateway {
  height: 100svh;
  min-height: 560px;
  display: flex;
}
.gateway-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gateway-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  transition: flex var(--med) var(--ease);
}
.gateway-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,58,0.15) 0%, rgba(11,27,58,0.55) 65%, rgba(11,27,58,0.82) 100%);
  z-index: 1;
  transition: background var(--med) var(--ease);
}
.gateway-panel.store::before {
  background: linear-gradient(180deg, rgba(11,27,58,0.25) 0%, rgba(10,40,66,0.6) 65%, rgba(8,32,54,0.86) 100%);
}
.gateway-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease);
}
.gateway-panel:hover .gateway-media { transform: scale(1.08); }
.gateway:has(.gateway-panel:hover) .gateway-panel:not(:hover) { flex: 0.82; }

.gateway-content {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 5vw, 4rem);
  width: 100%;
}
.gateway-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}
.gateway-title {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin-bottom: 1rem;
}
.gateway-copy {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 30ch;
  margin-bottom: 1.75rem;
}
.gateway-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transition: border-color var(--fast) var(--ease), gap var(--fast) var(--ease);
}
.gateway-panel:hover .gateway-cta { border-color: var(--white); gap: 0.9em; }
.gateway-cta svg { width: 1.2em; height: 1.2em; }
.gateway-divider {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.25);
  z-index: 3;
}

@media (max-width: 780px) {
  .gateway { flex-direction: column; height: auto; min-height: 100svh; }
  .gateway-panel { flex: 1 1 50%; min-height: 50svh; }
  .gateway:has(.gateway-panel:hover) .gateway-panel:not(:hover) { flex: 1 1 50%; }
  .gateway-divider { display: none; }
}

/* ---------- Hero (editorial) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,58,0.5) 0%, rgba(11,27,58,0.35) 40%, rgba(11,27,58,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}
.hero-inner h1, .hero-inner h2, .hero-inner h3 { color: var(--white); }
.hero-inner .h-display { margin-bottom: 1.4rem; }
.hero-inner .lede { color: rgba(255,255,255,0.86); max-width: 46ch; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}
.hero-meta div strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-meta div span { font-size: 0.82rem; color: rgba(255,255,255,0.7); font-weight: 600; }

.hero-sub {
  background: var(--navy);
  color: var(--white);
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Big choice cards (Kids/Teens vs Adults) ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 780px) { .choice-grid { grid-template-columns: 1fr; } }

.choice-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.choice-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
  z-index: -2;
}
.choice-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,27,58,0.05) 0%, rgba(11,27,58,0.86) 88%);
  z-index: -1;
}
.choice-card:hover img { transform: scale(1.06); }
.choice-body { padding: clamp(1.75rem, 4vw, 2.75rem); width: 100%; }
.choice-body .eyebrow { color: rgba(255,255,255,0.75); }
.choice-body h3 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0.5rem 0 0.75rem; }
.choice-body p { color: rgba(255,255,255,0.85); font-weight: 500; max-width: 38ch; margin-bottom: 1.5rem; }

/* ---------- Program / instrument cards ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .program-grid { grid-template-columns: 1fr; } }

.instrument-card {
  background: var(--blue-pale);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 300px;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.instrument-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11,27,58,0.12);
  background: var(--white);
}
.instrument-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.instrument-card:hover .icon-wrap { background: var(--blue); color: var(--white); }
.instrument-card .icon-wrap svg { width: 28px; height: 28px; }
.instrument-card h3 { font-size: 1.6rem; }
.instrument-card p { color: var(--ink-soft); font-weight: 600; }
.instrument-card .btn-text { margin-top: auto; }

.instrument-card.alt { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.instrument-card.alt:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }

/* ---------- Four-block feature section ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-block { padding-top: var(--space-4); border-top: 2px solid var(--line); }
.feature-block .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.feature-block .icon-wrap svg { width: 24px; height: 24px; }
.feature-block h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.feature-block p { color: var(--gray-600); font-weight: 500; font-size: 0.95rem; }

/* ---------- Editorial (image + copy) ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.editorial.reverse .editorial-media { order: 2; }
.editorial.reverse .editorial-text { order: 1; }
.editorial-media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-text .h-xl { margin: 0.75rem 0 1.25rem; }
.editorial-text p { margin-bottom: 1.75rem; max-width: 46ch; }

@media (max-width: 860px) {
  .editorial, .editorial.reverse { grid-template-columns: 1fr; }
  .editorial.reverse .editorial-media, .editorial.reverse .editorial-text { order: initial; }
}

/* ---------- Gallery (asymmetric) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: var(--space-4);
}
.gallery-grid > * { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery-grid > *:hover img { transform: scale(1.05); }
.g-a { grid-column: span 4; grid-row: span 3; }
.g-b { grid-column: span 2; grid-row: span 2; }
.g-c { grid-column: span 2; grid-row: span 2; }
.g-d { grid-column: span 3; grid-row: span 2; }
.g-e { grid-column: span 3; grid-row: span 2; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 1; grid-row: span 2; }
}

/* ---------- Teachers ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .teacher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .teacher-grid { grid-template-columns: 1fr; } }

.teacher-card { display: block; text-align: left; transition: transform var(--fast) var(--ease); }
.teacher-card[href]:hover { transform: translateY(-4px); }
.teacher-card[href]:hover .teacher-photo img { transform: scale(1.04); }
.teacher-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blue-light);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.teacher-card h3 { font-size: 1.15rem; margin-bottom: 0.1rem; }
.teacher-card span { color: var(--blue); font-weight: 700; font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  box-shadow: 0 1px 0 var(--line), 0 20px 40px rgba(11,27,58,0.05);
}
.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--blue);
  margin-bottom: 1rem;
}
.testimonial-stars svg {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  flex: 0 0 1.35rem;
}
.testimonial-card p { font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: 1.25rem; }
.testimonial-name { font-weight: 800; font-size: 0.9rem; }
.testimonial-role { color: var(--gray-600); font-size: 0.85rem; }

/* Contact rows used on the lesson booking and store-contact pages. The inline
   SVG icons need an explicit size; otherwise browsers render them at 300px. */
.testimonial-card .body-copy {
  display: grid !important;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem !important;
  line-height: 1.45;
}
.testimonial-card .body-copy > svg {
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  color: var(--blue);
}
.testimonial-card .body-copy > a,
.testimonial-card .body-copy > :last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.testimonial-card .body-copy > a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 0.16em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; max-width: 42ch; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
}
.faq-q svg { width: 20px; height: 20px; transition: transform var(--fast) var(--ease); flex-shrink: 0; }
.faq-item[data-open="true"] .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-weight: 500;
  transition: max-height var(--med) var(--ease), padding var(--med) var(--ease);
}
.faq-item[data-open="true"] .faq-a { padding-bottom: 1.4rem; }

/* ---------- Store ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 980px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
  background: var(--blue-pale);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 180px;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
.category-card:hover { transform: translateY(-4px); background: var(--navy); color: var(--white); }
.category-card:hover .btn-text, .category-card:hover h3 { color: var(--white); }
.category-card:hover .icon-wrap { background: var(--blue); color: var(--white); }
.category-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.category-card .icon-wrap svg { width: 22px; height: 22px; }
.category-card h3 { font-size: 1.2rem; }
.category-card .btn-text { margin-top: auto; font-size: 0.85rem; }

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.filter-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.filter-pill {
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.filter-pill.active { background: var(--navy); color: var(--white); box-shadow: none; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px rgba(11,27,58,0.1); }
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb svg { width: 40%; height: 40%; color: var(--blue-gray); }
.stock-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.35rem 0.6rem; border-radius: var(--r-pill);
  background: rgba(11,27,58,0.85); color: var(--white);
}
.stock-badge.out { background: rgba(179,49,44,0.92); }
.product-info { padding: 1.1rem 1.2rem 1.3rem; }
.product-info .cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-gray); }
.product-info h3 { font-size: 1.05rem; margin: 0.3rem 0 0.5rem; }
.product-price { font-weight: 800; color: var(--navy); }
.product-stock { font-size: 0.8rem; font-weight: 700; color: var(--success); margin-top: 0.35rem; }
.product-stock.out { color: var(--danger); }

.empty-state {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--gray-600);
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1/1; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery svg { width: 30%; height: 30%; color: var(--blue-gray); }
.spec-table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; }
.spec-table tr { border-bottom: 1px solid var(--line); }

/* Teacher profile */
.teacher-detail-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
.teacher-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-detail-photo .avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; font-weight: 800; color: var(--blue); background: var(--blue-light); }
.experience-list { display: flex; flex-direction: column; gap: 0.9rem; margin: var(--space-4) 0; }
.experience-list li { display: flex; gap: 0.6rem; font-weight: 600; color: var(--ink-soft); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 620px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.media-grid > * { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1/1; }
.media-grid img, .media-grid video { width: 100%; height: 100%; object-fit: cover; }
.spec-table td { padding: 0.75rem 0; font-weight: 600; }
.spec-table td:first-child { color: var(--gray-600); width: 40%; }

/* ---------- Breadcrumb / context strip ---------- */
.context-strip {
  background: var(--blue-light);
  padding: 0.9rem 0;
}
.context-strip .container { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 700; color: var(--blue-2); flex-wrap: wrap; }
.context-strip a:hover { text-decoration: underline; }
.context-strip .sep { color: var(--blue-gray); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); }
.footer-top {
  padding-block: var(--space-8);
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo-word, .footer-brand .logo-word b { color: var(--white); }
.footer-brand p { margin-top: 1rem; color: rgba(255,255,255,0.65); max-width: 32ch; font-weight: 500; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.94rem; transition: color var(--fast) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.25rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.center { text-align: center; margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px;
  background: var(--navy); color: var(--white);
  padding: 0.8rem 1.2rem; border-radius: var(--r-sm);
  z-index: 1000; transition: top var(--fast) var(--ease);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Phone-first refinements ----------
   These rules intentionally come last so imported WordPress demo content,
   Elementor-free pages and template pages share the same small-screen layout. */
@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .site-header { height: var(--header-h); }
  .header-inner { padding-inline: 1rem; gap: 0.8rem; }
  .main-nav { display: none; }
  .header-actions > .btn { display: none; }
  .menu-btn { display: flex; margin-right: -0.35rem; }
  .site-header.on-dark .menu-btn span { background: var(--white); }
  .logo { min-width: 0; }
  .logo-custom { max-width: min(180px, 56vw); height: 42px; }

  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: clamp(320px, 78vw, 460px); }
  .editorial, .editorial.reverse { grid-template-columns: 1fr; }
  .editorial.reverse .editorial-media, .editorial.reverse .editorial-text { order: initial; }
}

@media (max-width: 640px) {
  .container { padding-inline: 1.25rem; }
  .section { padding-block: clamp(3.25rem, 15vw, 4.75rem); }
  .section-head { align-items: flex-start; margin-bottom: var(--space-5); }
  .section-head .btn { width: 100%; justify-content: center; }

  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: 1rem; }
  .logo-tag { font-size: 0.54rem; }
  .drawer-panel { width: min(380px, 92vw); padding: 1.25rem; }

  .hero { min-height: max(640px, 100svh); }
  .hero-inner { padding: calc(var(--header-h) + 3rem) 1.25rem 3rem; }
  .hero-inner .h-display { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .hero-inner .lede { font-size: 1rem; margin-bottom: 1.6rem; }
  .hero-ctas { gap: 0.75rem; }
  .hero-ctas .btn { padding: 0.9rem 1.15rem; font-size: 0.88rem; }
  .hero-meta { gap: 1.25rem; margin-top: var(--space-5); }
  .hero-meta div strong { font-size: 1.35rem; }

  .gateway-top { padding: max(1rem, env(safe-area-inset-top)) 1rem 1rem; }
  .gateway-panel { min-height: 52svh; }
  .gateway-content { padding: 1.5rem 1.25rem 1.75rem; }
  .gateway-kicker { font-size: 0.64rem; margin-bottom: 0.55rem; }
  .gateway-title { font-size: clamp(2.45rem, 13vw, 3.8rem); margin-bottom: 0.75rem; }
  .gateway-copy { font-size: 0.95rem; margin-bottom: 1.25rem; }
  .gateway-cta { font-size: 0.82rem; }

  .choice-grid { gap: 1.25rem; }
  .choice-card { border-radius: 24px; min-height: 350px; }
  .choice-body { padding: 1.5rem; }
  .choice-body h3 { font-size: 2rem; }
  .choice-body p { font-size: 0.94rem; margin-bottom: 1rem; }

  .program-grid, .teacher-grid, .feature-grid { grid-template-columns: 1fr; }
  .instrument-card { min-height: auto; padding: 1.5rem; }
  .feature-grid { gap: 1.5rem; }
  .feature-block { padding-top: 1.25rem; }
  .editorial { gap: 1.75rem; }
  .editorial-media { border-radius: 24px; }
  .gallery-grid { grid-auto-rows: 130px; gap: 0.8rem; }
  .testimonial-card { padding: 1.5rem; }

  .footer-top { gap: 2rem; padding-block: 3.5rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .btn { padding: 0.85rem 1rem; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .media-grid { grid-template-columns: 1fr; }
  .product-grid, .category-grid { grid-template-columns: 1fr; }
}
