/* ============================================
   Gallery Music Centre — Design System & Styles
   See art_direction.md for full creative brief.
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colours */
  --color-primary: #1a5c6b;
  --color-primary-dark: #134a56;
  --color-primary-light: #e8f4f7;
  --color-accent: #d4982a;
  --color-accent-light: #fdf3e0;
  --color-text: #2d2d2d;
  --color-text-light: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-bg-dark: #1a2a30;
  --color-border: #e0e0e0;
  --color-success: #2e7d4f;
  --color-error: #c0392b;
  --color-white: #ffffff;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Nunito', 'Inter', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --lh-tight: 1.2;
  --lh-normal: 1.6;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1140px;
  --nav-height: 70px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 50%;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Suppress underline on cards, buttons, nav, footer links */
.card:hover,
.btn:hover,
.nav__links a:hover,
.nav__logo:hover,
.footer__links a:hover,
.footer__social a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

/* --- Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-size: var(--fs-sm);
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--color-white);
}

/* --- Site Banner --- */
.site-banner {
  background: var(--color-accent);
  color: #3a2800;
  text-align: center;
  padding: 10px var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
}

.site-banner a {
  color: #3a2800;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-banner[hidden] {
  display: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.section-title p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

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

.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;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #c08a22;
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: var(--fs-md);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo:hover {
  color: var(--color-primary-dark);
}

.nav__logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

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

.nav__links a.active {
  color: var(--color-primary);
}

.nav__links a.nav__enrol {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.nav__links a.nav__enrol::after {
  display: none !important;
}

.nav__links a.nav__enrol:hover {
  background: #c08a22;
  color: var(--color-white) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section ---
   The Hutt Valley scene is drawn as a single illustrated SVG with
   perspective: hills frame the left and right edges, the river
   converges from the foreground toward a vanishing point in the
   distance. The scene anchors at the bottom of the hero and uses
   `background-size: cover`, so on narrow phone screens the central
   river / vanishing point stays in view while the outer hills crop
   off-screen — the valley still reads as a valley. */

.hero,
.page-header {
  /* Hutt Valley scene: pale grey shingle banks, muted grey-blue river, forested hills
     with a hazy distant ridge. River, banks, and hills converge at one vanishing point
     so the valley reads cleanly at every aspect ratio. */
  --hero-scene: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='xMidYMax slice'><defs><linearGradient id='haze' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23b8c8d2' stop-opacity='0.65'/><stop offset='1' stop-color='%2390a4b0' stop-opacity='0.8'/></linearGradient><linearGradient id='midHill' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%2382b691'/><stop offset='1' stop-color='%23436f50'/></linearGradient><linearGradient id='hill' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%2374b07d'/><stop offset='0.55' stop-color='%233e7c4f'/><stop offset='1' stop-color='%23235639'/></linearGradient><linearGradient id='gravel' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23dcd6c6'/><stop offset='1' stop-color='%23aaa088'/></linearGradient><linearGradient id='water' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23cadde0'/><stop offset='0.45' stop-color='%237aa9b8'/><stop offset='1' stop-color='%233c7589'/></linearGradient><linearGradient id='riparian' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%236ea16e' stop-opacity='0.9'/><stop offset='1' stop-color='%233a6843' stop-opacity='0.9'/></linearGradient></defs><path d='M0 420 C 80 400 160 392 240 396 C 320 402 380 410 440 412 C 510 414 560 414 600 414 C 640 414 690 414 760 412 C 820 410 880 402 960 396 C 1040 392 1120 400 1200 420 L 1200 460 L 0 460 Z' fill='url(%23haze)'/><path d='M0 600 L 0 432 C 120 408 260 392 400 402 C 500 410 560 414 600 416 C 640 414 700 410 800 402 C 940 392 1080 408 1200 432 L 1200 600 Z' fill='url(%23midHill)' opacity='0.92'/><path d='M0 600 L 0 444 C 70 408 170 384 270 376 C 370 372 460 384 530 400 C 568 408 586 412 594 414 L 600 410 L 600 600 Z' fill='url(%23hill)'/><path d='M1200 600 L 1200 444 C 1130 408 1030 384 930 376 C 830 372 740 384 670 400 C 632 408 614 412 606 414 L 600 410 L 600 600 Z' fill='url(%23hill)'/><g fill='%231f4a2f' opacity='0.20'><path d='M0 600 L 0 510 C 80 495 200 488 320 492 C 420 498 480 504 540 510 L 580 520 L 540 600 Z'/><path d='M1200 600 L 1200 510 C 1120 495 1000 488 880 492 C 780 498 720 504 660 510 L 620 520 L 660 600 Z'/></g><path d='M593 414 C 588 442 565 488 506 540 L 432 600 L 388 600 L 462 530 C 524 478 568 444 593 414 Z' fill='url(%23riparian)' opacity='0.85'/><path d='M607 414 C 612 442 635 488 694 540 L 768 600 L 812 600 L 738 530 C 676 478 632 444 607 414 Z' fill='url(%23riparian)' opacity='0.85'/><path d='M594 418 C 590 452 558 510 472 562 L 365 600 L 252 600 Q 296 580 354 562 L 446 494 C 514 442 564 426 594 418 Z' fill='url(%23gravel)'/><path d='M606 418 C 610 452 642 510 728 562 L 835 600 L 948 600 Q 904 580 846 562 L 754 494 C 686 442 636 426 606 418 Z' fill='url(%23gravel)'/><g fill='%237d735a' opacity='0.30'><circle cx='330' cy='590' r='1.5'/><circle cx='372' cy='580' r='1.2'/><circle cx='414' cy='568' r='1.2'/><circle cx='455' cy='548' r='1'/><circle cx='492' cy='524' r='0.9'/><circle cx='522' cy='498' r='0.8'/><circle cx='548' cy='474' r='0.7'/><circle cx='870' cy='590' r='1.5'/><circle cx='828' cy='580' r='1.2'/><circle cx='786' cy='568' r='1.2'/><circle cx='745' cy='548' r='1'/><circle cx='708' cy='524' r='0.9'/><circle cx='678' cy='498' r='0.8'/><circle cx='652' cy='474' r='0.7'/></g><path d='M594 418 L 606 418 C 610 452 642 510 728 562 L 835 600 L 365 600 L 472 562 C 558 510 590 452 594 418 Z' fill='url(%23water)'/><ellipse cx='604' cy='544' rx='14' ry='3' fill='url(%23gravel)' opacity='0.85'/><ellipse cx='594' cy='584' rx='22' ry='4' fill='url(%23gravel)' opacity='0.8'/><ellipse cx='600' cy='430' rx='4' ry='1' fill='%23ffffff' opacity='0.5'/><ellipse cx='596' cy='456' rx='9' ry='1.2' fill='%23ffffff' opacity='0.45'/><ellipse cx='604' cy='486' rx='15' ry='1.6' fill='%23ffffff' opacity='0.4'/><ellipse cx='588' cy='520' rx='22' ry='2' fill='%23ffffff' opacity='0.35'/><ellipse cx='616' cy='564' rx='32' ry='2.5' fill='%23ffffff' opacity='0.32'/></svg>");
}

.hero {
  background:
    radial-gradient(ellipse 60% 40% at 82% 6%, rgba(255, 226, 178, 0.55) 0%, rgba(255, 226, 178, 0) 70%),
    linear-gradient(180deg, #6cbfe2 0%, #9ed6e8 38%, #cfe7e3 70%, #e6efd9 100%);
  color: var(--color-white);
  padding: var(--space-4xl) 0 calc(var(--space-4xl) + 28px);
  position: relative;
  overflow: hidden;
}

/* Soft sun glow — top right */
.hero::before {
  content: '';
  position: absolute;
  top: 48px;
  right: 9%;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255, 240, 196, 0.85) 0%, rgba(255, 240, 196, 0.32) 40%, rgba(255, 240, 196, 0) 72%);
  z-index: 0;
}

.hero::after {
  display: none;
}

/* The illustrated valley scene fills the hero, anchored at the bottom */
.hero__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background-image: var(--hero-scene);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.hero__decor::before,
.hero__decor::after {
  display: none;
  content: none;
}

/* Old per-band layers no longer used — single SVG handles the scene */
.hero__band {
  display: none;
}

/* Musical note SVG silhouettes */
.hero__notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__notes svg {
  position: absolute;
  fill: currentColor;
  color: var(--color-white);
}

/* Treble clef — top-left, drifting into the sky above the headline */
.hero__notes svg:nth-child(1) {
  top: 12%;
  left: 6%;
  width: 88px;
  height: 88px;
  transform: rotate(-10deg);
  opacity: 0.14;
}

/* Quarter note — right side, sitting clear of the sun glow */
.hero__notes svg:nth-child(2) {
  top: 50%;
  right: 7%;
  width: 44px;
  height: 44px;
  transform: rotate(14deg);
  opacity: 0.12;
}

/* Double eighth notes — mid-left, between headline and buttons */
.hero__notes svg:nth-child(3) {
  top: 64%;
  left: 4%;
  width: 56px;
  height: 56px;
  transform: rotate(-18deg);
  opacity: 0.11;
}

/* Wavy bottom edge */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 22px;
  pointer-events: none;
  z-index: 2;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__content {
  max-width: 680px;
  position: relative;
  z-index: 2;
  padding: var(--space-lg) 0 var(--space-3xl);
}

.hero h1 {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.hero p {
  font-size: var(--fs-lg);
  opacity: 0.96;
  margin-bottom: var(--space-xl);
  line-height: var(--lh-normal);
  max-width: 34rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Orchestra hero variant — same valley scene, deeper sky tint */
.hero--orchestra {
  background:
    radial-gradient(ellipse 60% 40% at 80% 8%, rgba(255, 218, 160, 0.45) 0%, rgba(255, 218, 160, 0) 70%),
    linear-gradient(180deg, #2c8aa3 0%, #5fadbd 38%, #9cc9c2 70%, #c9dcb8 100%);
  text-align: center;
}

.hero--orchestra .hero__content {
  max-width: 700px;
  margin: 0 auto;
}

.hero--orchestra .hero__notes {
  display: none;
}

.hero--orchestra::before {
  background: radial-gradient(circle, rgba(249, 227, 161, 0.78) 0%, rgba(249, 227, 161, 0.26) 40%, rgba(249, 227, 161, 0) 72%);
}

.hero--compact {
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
}

.hero--compact::before {
  top: 26px;
  right: 8%;
  width: 180px;
  height: 180px;
}

.hero--compact .hero__content {
  padding: var(--space-sm) 0 var(--space-xl);
}

.hero--orchestra.hero--compact .container {
  position: relative;
  z-index: 2;
}

.hero--orchestra.hero--compact .hero__content {
  max-width: 720px;
  padding: var(--space-md) 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero--orchestra.hero--compact p {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero--orchestra.hero--compact .hero__buttons {
  justify-content: center;
}

.hero--compact .hero__wave {
  height: 18px;
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* --- Card Grids --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

/* When exactly 10 cards (home page), use 5 columns on wide screens */
.card-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* When exactly 3 items (e.g. audience), force 3 columns */
.card-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
  font-size: var(--fs-xl);
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-lg);
}

.card p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.card__tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  margin-top: var(--space-sm);
}

.card--free .card__tag {
  background: #e8f5e9;
  color: var(--color-success);
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.step {
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 800;
  margin: 0 auto var(--space-md);
}

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

/* --- Term Calendar --- */
.term-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
}

.term-table th,
.term-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.term-table th {
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.term-table td:first-child {
  font-weight: 600;
}

.term-note {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  font-style: italic;
}

/* --- Table scroll wrapper (mobile overflow) --- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.testimonial__author {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-style: normal;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

/* --- Fees & Funding --- */
.fees-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.fee-box {
  background: var(--color-bg-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.fee-box__title {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.fee-box__amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.fee-box__period {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xl);
}

.fee-box__list {
  list-style: none;
}

.fee-box__list li {
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.85);
}

.fee-box__list li::before {
  content: '\2713';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.fee-notes h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.fee-notes p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-normal);
}

.fee-notes p:last-child {
  margin-bottom: 0;
}

/* --- Join / Enrol Layout --- */
.enrol-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.enrol-steps .enrol-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.enrol-steps .enrol-step:last-child {
  margin-bottom: 0;
}

.enrol-step__num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.enrol-step h4 {
  margin-bottom: var(--space-xs);
}

.enrol-step p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.contact-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-box h3 {
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.contact-item__icon {
  font-size: var(--fs-lg);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.contact-item__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
  font-size: var(--fs-sm);
}

/* --- Page Header (smaller hero used on inner pages) --- */
.page-header {
  background:
    radial-gradient(ellipse 60% 50% at 84% 6%, rgba(255, 226, 178, 0.5) 0%, rgba(255, 226, 178, 0) 70%),
    linear-gradient(180deg, #6cbfe2 0%, #9ed6e8 38%, #cfe7e3 70%, #e6efd9 100%);
  color: var(--color-white);
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 20px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft sun glow */
.page-header::before {
  content: '';
  position: absolute;
  top: 22px;
  right: 9%;
  width: 170px;
  height: 170px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255, 240, 196, 0.85) 0%, rgba(255, 240, 196, 0.32) 40%, rgba(255, 240, 196, 0) 72%);
  z-index: 0;
}

.page-header::after {
  display: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .hero__notes svg:nth-child(1) {
  top: 14%;
  left: 6%;
  width: 56px;
  height: 56px;
  opacity: 0.13;
}

.page-header .hero__notes svg:nth-child(2) {
  top: 50%;
  right: 7%;
  width: 32px;
  height: 32px;
  opacity: 0.11;
}

.page-header .hero__notes svg:nth-child(3) {
  top: 22%;
  right: 12%;
  left: auto;
  width: 36px;
  height: 36px;
  opacity: 0.10;
}

.page-header h1 {
  color: var(--color-white);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.page-header p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Wavy bottom edge for page headers */
.page-header__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}

.page-header__wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- FAQ Accordion --- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: var(--color-white);
  overflow: hidden;
}

.faq summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq summary:hover {
  background: var(--color-bg-alt);
}

.faq summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.faq__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-light);
  line-height: var(--lh-normal);
}

.faq__answer a {
  font-weight: 500;
}

/* --- Forms --- */
.form-container {
  max-width: 720px;
  margin: 0 auto;
}

.gform-wrapper {
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.gform-wrapper iframe {
  width: 100%;
  height: 1560px;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .gform-wrapper iframe {
    height: 2400px;
  }
}

.info-box {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.info-box h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.info-box ul {
  list-style: none;
  padding: 0;
}

.info-box li {
  padding: var(--space-xs) 0;
  font-size: var(--fs-sm);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.info-box li::before {
  content: '\2713';
  color: var(--color-accent);
  font-weight: 700;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-sm);
}

.form-group .required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 107, 0.15);
}

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

.form-group input.error,
.form-group select.error {
  border-color: var(--color-error);
}

.form-group .error-message {
  color: var(--color-error);
  font-size: var(--fs-xs);
  margin-top: var(--space-xs);
  display: none;
}

.form-group input.error ~ .error-message,
.form-group select.error ~ .error-message {
  display: block;
}

.radio-group {
  display: flex;
  gap: var(--space-lg);
  padding-top: var(--space-xs);
}

.radio-group label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
}

.form-submit {
  padding-top: var(--space-md);
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}

.form-submit .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.thank-you {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  display: none;
}

.thank-you.visible {
  display: block;
}

.thank-you h2 {
  color: var(--color-success);
  margin-bottom: var(--space-md);
}

/* --- Teachers / Committee Grid --- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.people-grid--center {
  justify-items: center;
}

/* 2-column variant for smaller groups (e.g. committee) */
.people-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.person-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  text-align: center;
}

.person-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.person-card h3 {
  margin-bottom: var(--space-xs);
}

.person-card__role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}

.person-card p:last-child {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-lg);
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* --- Contact Info --- */
.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
}

.contact-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --- Orchestra specifics --- */
.orchestra-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.orchestra-group {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.orchestra-group__header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: baseline;
  margin-bottom: var(--space-md);
}

.orchestra-group__header h3 {
  font-size: var(--fs-xl);
}

.orchestra-group__header span {
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: right;
}

.orchestra-group p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.orchestra-group p + p {
  margin-top: var(--space-sm);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.audience-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  text-align: center;
}

.audience-card h3 {
  margin-bottom: var(--space-sm);
}

.audience-card p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.details-list {
  list-style: none;
}

.details-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.details-list li:last-child {
  border-bottom: none;
}

.details-list strong {
  min-width: 100px;
  color: var(--color-primary);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Acknowledgement --- */
.acknowledgement {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.acknowledgement p + p {
  margin-top: var(--space-sm);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.site-footer p {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.site-footer h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: var(--fs-base);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
}

.footer__social a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }

  .card-grid--home {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 105;
    align-items: stretch;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: var(--fs-base);
    padding: var(--space-sm) 0;
  }

  .nav__links a.nav__enrol {
    text-align: center;
    margin-top: var(--space-md);
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 104;
  }

  .nav__overlay.visible {
    display: block;
  }

  .hero {
    padding: var(--space-2xl) 0 calc(var(--space-2xl) + 24px);
  }

  /* Shrink and reposition notes for narrow screens so they sit clear of the headline */
  .hero__notes svg:nth-child(1) {
    top: 4%;
    left: 4%;
    width: 56px;
    height: 56px;
    opacity: 0.13;
  }

  .hero__notes svg:nth-child(2) {
    top: 30%;
    right: 4%;
    width: 32px;
    height: 32px;
    opacity: 0.11;
  }

  .hero__notes svg:nth-child(3) {
    top: 18%;
    right: 18%;
    left: auto;
    width: 36px;
    height: 36px;
    opacity: 0.10;
  }

  .hero::before {
    width: 170px;
    height: 170px;
    top: 28px;
    right: -10px;
  }

  .hero__content {
    padding: var(--space-md) 0 var(--space-2xl);
  }

  .page-header {
    padding: var(--space-xl) 0 calc(var(--space-xl) + 20px);
  }

  .page-header::before,
  .hero--compact::before {
    width: 140px;
    height: 140px;
    top: 18px;
    right: -6px;
  }

  .hero h1 {
    font-size: var(--fs-2xl);
  }

  .hero p {
    font-size: var(--fs-base);
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .card-grid,
  .card-grid--home,
  .card-grid--three {
    grid-template-columns: 1fr;
  }

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

  .fees-layout,
  .enrol-layout {
    grid-template-columns: 1fr;
  }

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

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

  .people-grid,
  .people-grid--two {
    grid-template-columns: 1fr;
  }

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

  .orchestra-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .orchestra-group__header {
    display: block;
  }

  .orchestra-group__header span {
    display: block;
    margin-top: var(--space-xs);
    text-align: left;
  }

  .details-list li {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .page-header__wave,
  .hero--compact .hero__wave {
    height: 14px;
  }

  .hero__wave {
    height: 16px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-card__value {
    font-size: var(--fs-xl);
  }

  .cta-banner {
    border-radius: 0;
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
  }

  .term-table th,
  .term-table td {
    padding: var(--space-sm);
    font-size: var(--fs-sm);
  }
}
