/* ==========================================================================
   MR. BRAD — STYLES
   Mobile-first. Breakpoints at 768px, 1024px, 1440px.
   Most colors, spacing, and type are set with the variables in :root below.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Stage Lights palette */
  --cream:     #FFF8EE;
  --cream-2:   #FFF1DE;
  --ink:       #241B36;
  --ink-soft:  #4A4060;
  --white:     #FFFFFF;

  --coral:     #FF5A47;
  --coral-deep:#E8412C;   /* accessible text-on-white / button bg */
  --marigold:  #FFB930;
  --marigold-deep:#E89400;
  --turquoise: #13B5A6;
  --turquoise-deep:#0E9082;
  --grape:     #7B5EA7;
  --grape-deep:#634a8a;

  /* Roles */
  --bg: var(--cream);
  --card-bg: var(--white);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--coral-deep);

  /* Type */
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape & depth */
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(36, 27, 54, 0.10);
  --shadow-hover: 0 16px 40px rgba(36, 27, 54, 0.16);
  --ring: 0 0 0 4px rgba(255, 90, 71, 0.35);

  /* Layout */
  --max: 1180px;
  --gutter: 20px;
  --section-y: 56px;
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;            /* big, readable base */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--section-y) 0; }
.section--tight { padding: 36px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--coral-deep);
  margin: 0 0 0.4em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.visually-hidden {
  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: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 48px;          /* easy to tap */
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--coral-deep); color: var(--white); box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-hover); background: #d23a26; }

.btn--sun { background: var(--marigold); color: var(--ink); box-shadow: var(--shadow); }
.btn--sun:hover { box-shadow: var(--shadow-hover); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--small { font-size: 0.95rem; padding: 0.6em 1.1em; min-height: 42px; }
.btn--block { width: 100%; justify-content: center; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ==========================================================================
   TIP BANNER (Instrument Repair Fund) - very compact two-row layout
   ========================================================================== */
.tipbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.75rem;
  padding: 4px 0;
}
.tipbar__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 6px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.tipbar__row1, .tipbar__row2 {
  display: none;
}
.tipbar__title { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.tipbar a { color: var(--cream); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 2px 10px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--cream);
  font-size: 0.72rem;
}
.chip--venmo { background: #3D95CE; border-color: #3D95CE; padding: 2px 8px; }
.chip:hover { filter: brightness(1.08); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 2px solid var(--cream-2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.5rem; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .note-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 4px rgba(255,90,71,0.18);
}

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--white); border: 2px solid var(--cream-2);
  cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 24px; height: 24px; }

.nav__menu {
  position: fixed; inset: 0 0 0 auto; top: 0;
  width: min(80vw, 320px); height: 100dvh;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(36,27,54,0.2);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex; flex-direction: column; gap: 6px;
  padding: 84px 20px 24px;
  z-index: 60;
}
.nav__menu.is-open { transform: translateX(0); }
.nav__menu a {
  font-family: var(--font-display); font-weight: 600;
  color: var(--ink); text-decoration: none;
  padding: 12px 14px; border-radius: 12px; font-size: 1.1rem;
}
.nav__menu a:hover { background: var(--cream); }
.nav__menu a[aria-current="page"] { background: var(--cream-2); color: var(--coral-deep); }
.nav__menu .btn { margin-top: 10px; }

.nav__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cream); border: none; cursor: pointer; color: var(--ink);
  font-size: 1.4rem;
}
.nav__backdrop {
  position: fixed; inset: 0; background: rgba(36,27,54,0.4);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 55;
}
.nav__backdrop.is-open { opacity: 1; visibility: visible; }

@media (min-width: 980px) {
  .nav__toggle, .nav__close, .nav__backdrop { display: none; }
  .nav__menu {
    position: static; transform: none; width: auto; height: auto;
    flex-direction: row; align-items: center; box-shadow: none;
    padding: 0; background: transparent;
  }
  .nav__menu a { padding: 8px 12px; font-size: 1rem; font-weight: 600; }
  .nav__menu .btn { margin-top: 0; margin-left: 8px; }
}

/* ==========================================================================
   WAVE DIVIDERS  (the musical signature between sections)
   ========================================================================== */
.wave { display: block; width: 100%; height: 48px; }
.wave svg { display: block; width: 100%; height: 100%; }
@media (min-width: 768px) { .wave { height: 64px; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: linear-gradient(180deg, var(--cream-2), var(--cream)); padding-top: 28px; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__title { margin-bottom: 0.2em; }
.hero__sub {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem); color: var(--grape-deep);
  margin: 0 0 0.6em;
}

/* animated music notes */
.music-notes { display: flex; align-items: flex-end; gap: 10px; height: 40px; margin: 18px 0 6px; }
.music-notes span {
  font-size: 24px;
  animation: float 2s ease-in-out infinite;
  opacity: 0.85;
}
.music-notes span:nth-child(1){ animation-delay: 0s; }
.music-notes span:nth-child(2){ animation-delay: .2s; }
.music-notes span:nth-child(3){ animation-delay: .4s; }
.music-notes span:nth-child(4){ animation-delay: .6s; }
.music-notes span:nth-child(5){ animation-delay: .8s; }
@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(-12px); opacity: 1; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
}

/* ==========================================================================
   IMAGE PLACEHOLDERS  (never break the layout)
   ========================================================================== */
.photo {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, var(--cream-2) 0 18px, #ffe9c9 18px 36px);
  border: 2px dashed #e9b97a;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
  aspect-ratio: 4 / 3;
}
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__label {
  font-family: var(--font-display); font-weight: 700;
  color: var(--marigold-deep);
  background: var(--white);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.95rem; box-shadow: var(--shadow);
  z-index: 1; text-align: center;
}
.photo--wide { aspect-ratio: 16 / 10; }
.photo--hero { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.photo--square { aspect-ratio: 1 / 1; }
/* when an image successfully loads, hide the dashed label */
.photo.has-image { border-style: solid; border-color: transparent; background: var(--cream-2); }
.photo.has-image .photo__label { display: none; }

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 6px solid var(--coral);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .photo { border-radius: 0; aspect-ratio: 16 / 10; min-height: 150px; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; color: var(--ink-soft); flex: 1; }
.card__body .btn { align-self: flex-start; margin-top: 6px; }

/* accent variants (color encodes which program) */
.accent-coral    { border-top-color: var(--coral); }
.accent-marigold { border-top-color: var(--marigold); }
.accent-turquoise{ border-top-color: var(--turquoise); }
.accent-grape    { border-top-color: var(--grape); }

.badge {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.04em;
  background: var(--grape); color: var(--white);
  padding: 4px 12px; border-radius: 999px;
}

/* ==========================================================================
   CALENDAR
   ========================================================================== */
.calendar-frame {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 14px; overflow: hidden;
}
.calendar-frame iframe { width: 100%; height: 560px; border: 0; border-radius: var(--radius); display: block; }
.calendar-placeholder {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 48px 24px; text-align: center;
  border: 2px dashed #d9cdbb;
}
.calendar-placeholder .emoji { font-size: 2.4rem; }

/* ==========================================================================
   PROGRAMS PAGE — detail blocks
   ========================================================================== */
.program {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 32px;
  border-left: 8px solid var(--coral);
}
.program__grid { display: grid; gap: 0; }
.program__media { min-height: 220px; }
.program__media .photo { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 220px; }
.program__body { padding: 26px; }
.program__body h2 { margin-bottom: 0.15em; }
.program__tagline { font-family: var(--font-display); font-weight: 600; color: var(--grape-deep); font-size: 1.15rem; }
.program__audience {
  display: inline-block; background: var(--cream-2);
  padding: 6px 14px; border-radius: 999px; font-weight: 700;
  font-size: 0.95rem; margin: 8px 0 14px;
}
.feature-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
@media (min-width: 560px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { position: relative; padding-left: 28px; }
.feature-list li::before {
  content: "♪"; position: absolute; left: 0; top: 0;
  color: var(--coral-deep); font-weight: 700;
}
.program.accent-turquoise { border-left-color: var(--turquoise); }
.program.accent-turquoise .feature-list li::before,
.program.accent-turquoise .program__tagline { color: var(--turquoise-deep); }
.program.accent-grape { border-left-color: var(--grape); }
.program.accent-grape .feature-list li::before,
.program.accent-grape .program__tagline { color: var(--grape-deep); }

@media (min-width: 860px) {
  .program__grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* "Good For" tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  background: var(--white); border: 2px solid var(--cream-2);
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  font-family: var(--font-display); box-shadow: var(--shadow);
}

/* ==========================================================================
   MEDIA PAGE
   ========================================================================== */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); background: var(--ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--cream); text-align: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, #3a2d57, var(--ink));
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--coral); display: grid; place-items: center;
}
.video-placeholder .play svg { width: 26px; height: 26px; fill: var(--white); margin-left: 4px; }
.video-title { font-family: var(--font-display); font-weight: 700; margin-top: 12px; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .photo { aspect-ratio: 1 / 1; min-height: 0; }

.quote-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px 24px;
  border-top: 6px solid var(--marigold);
}
.quote p { font-size: 1.1rem; color: var(--ink); margin: 0 0 12px; }
.quote .mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--marigold); line-height: 0.6; }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink-soft); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px;
}
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.field .req { color: var(--coral-deep); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 13px 14px; border-radius: 12px;
  border: 2px solid #e7ddcb; background: var(--cream);
  color: var(--ink); width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: var(--ring); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.honey { position: absolute; left: -9999px; }

/* ==========================================================================
   SPLIT / CTA blocks
   ========================================================================== */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

.cta-band {
  background: linear-gradient(120deg, var(--grape), var(--coral));
  color: var(--white); border-radius: var(--radius-lg);
  padding: 40px 28px; text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 640px; margin: 0 auto 22px; }
.cta-band .btn--primary { background: var(--white); color: var(--coral-deep); }
.cta-band .btn--primary:hover { background: var(--cream); }

.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px;
}
.contact-card dl { margin: 0; display: grid; gap: 12px; }
.contact-card dt { font-family: var(--font-display); font-weight: 700; color: var(--grape-deep); }
.contact-card dd { margin: 0 0 8px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--cream); margin-top: 40px; }
.site-footer .container { padding-top: 40px; padding-bottom: 32px; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h4 { color: var(--white); font-size: 1.15rem; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 26px; padding-top: 18px; font-size: 0.9rem; color: #cfc6df;
}

/* ==========================================================================
   THANK-YOU / success message
   ========================================================================== */
.success {
  background: #e9fbf6; border: 2px solid var(--turquoise);
  color: var(--turquoise-deep); border-radius: var(--radius);
  padding: 16px 18px; font-weight: 700; margin-bottom: 18px;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .equalizer span { height: 70%; }
}

/* breakpoint polish for very large screens */
@media (min-width: 1440px) {
  :root { --section-y: 72px; }
  body { font-size: 19px; }
}
