/* ============================================================
   Danielle Music Academy — shared stylesheet
   Palette inspired by warm, kid-friendly music-school sites:
   deep plum hero, cream pages, orange CTAs, gold accents.
   ============================================================ */

:root {
  --purple-900: #38295e;
  --purple-800: #453471;
  --purple-700: #544287;
  --purple-600: #63519b;
  --purple-100: #e9e3f5;
  --cream: #fdf8ee;
  --cream-dark: #f5ecda;
  --cream-text: #f7efdd;
  --ink: #3a3357;
  --ink-soft: #5c5478;
  --orange: #f2703a;
  --orange-dark: #dd5a25;
  --gold: #f5b33b;
  --teal: #46a6a0;
  --pink: #e96a8d;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 10px 30px rgba(56, 41, 94, 0.10);
  --font-head: "Fredoka", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--orange-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

.wrap { width: min(1100px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 16px 34px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 20px rgba(221, 90, 37, 0.35);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--cream-text);
  border: 2px solid rgba(247, 239, 221, 0.5);
}
.btn-ghost:hover { border-color: var(--cream-text); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--purple-800);
  box-shadow: 0 2px 12px rgba(35, 24, 63, 0.35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--gold); display: grid; place-items: center;
  animation: bob 3.2s ease-in-out infinite;
}
.brand-name {
  font-family: var(--font-head); color: var(--cream-text);
  font-size: 1.25rem; font-weight: 600; line-height: 1.1;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--cream-text); text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { color: var(--gold); border-color: var(--gold); }
.nav-links .btn { padding: 11px 24px; font-size: 0.88rem; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px; margin: 5px 0; border-radius: 2px;
  background: var(--cream-text); transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 70% -10%, var(--purple-600), transparent),
              var(--purple-700);
  color: var(--cream-text);
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-eyebrow {
  display: inline-block; font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  background: rgba(0, 0, 0, 0.18); padding: 8px 18px; border-radius: 999px;
  margin-bottom: 26px;
}
.hero-art { width: min(560px, 88%); margin: 0 auto 10px; }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  margin: 18px auto 14px; max-width: 17ch;
}
.hero h1 .squiggle { position: relative; white-space: nowrap; }
.hero h1 .squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M2 7 Q 12 1, 24 6 T 46 6 T 68 6 T 90 6 T 118 5' fill='none' stroke='%23f5b33b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 10px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch;
  margin: 0 auto 34px; color: rgba(247, 239, 221, 0.92); font-weight: 600;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-legal {
  margin-top: 34px; font-size: 0.92rem; font-weight: 700;
  color: rgba(247, 239, 221, 0.75);
}
.hero-legal strong { color: var(--cream-text); }

/* Floating notes in the hero */
.note-float {
  position: absolute; z-index: 1; opacity: 0;
  color: rgba(247, 239, 221, 0.35);
  animation: floatNote 9s linear infinite;
}
.note-float svg { width: 100%; height: 100%; }
@keyframes floatNote {
  0%   { transform: translateY(40px) rotate(-8deg) scale(0.9); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 0.9; }
  100% { transform: translateY(-560px) rotate(10deg) scale(1.05); opacity: 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Rotating hero students: Ms. Danielle stays, the student crossfades in with a
   little rise. Only the .active scene is visible. */
.student-scene {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}
.student-scene.active { opacity: 1; transform: translateY(0); }

/* Wave divider under hero / sections */
.wave { display: block; width: 100%; height: 70px; margin-top: -1px; }

/* ---------- Quick-facts strip ---------- */
.facts { background: var(--cream); padding: 34px 0 10px; }
.facts-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px;
  font-family: var(--font-head); font-weight: 600; color: var(--purple-700);
  font-size: 1.05rem;
}
.facts-row span { display: inline-flex; align-items: center; gap: 9px; }
.facts-row .dot { color: var(--gold); font-size: 1.3rem; }

/* ---------- Generic sections ---------- */
section { padding: 72px 0; }
.section-title { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--purple-800); }
.section-kicker {
  display: block; text-align: center; font-family: var(--font-body); font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem;
  color: var(--orange); margin-bottom: 10px;
}
.section-sub { text-align: center; max-width: 58ch; margin: 14px auto 0; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.step-card {
  background: #fff; border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.step-card:hover { transform: translateY(-6px); }
.step-icon {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
}
.step-icon.gold { background: #fdeecb; }
.step-icon.teal { background: #d9efee; }
.step-icon.pink { background: #fbe1e8; }
.step-num {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  background: var(--purple-100); color: var(--purple-700);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.step-card h3 { font-size: 1.35rem; color: var(--purple-800); margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Mini piano ---------- */
.piano-section { background: var(--purple-800); color: var(--cream-text); }
.piano-section .section-title { color: var(--cream-text); }
.piano-section .section-sub { color: rgba(247, 239, 221, 0.8); }
.piano {
  display: flex; justify-content: center; margin: 44px auto 0;
  width: min(640px, 96%); position: relative; user-select: none;
  -webkit-user-select: none; touch-action: manipulation;
}
.key-white {
  flex: 1; height: 170px; background: #fdfaf2; border: 1px solid #d8d2c2;
  border-radius: 0 0 10px 10px; position: relative; cursor: pointer;
  transition: background 0.08s ease, transform 0.08s ease;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.06);
}
.key-white:active, .key-white.playing { background: var(--gold); transform: translateY(3px); }
.key-white .key-label {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-weight: 800; font-size: 0.85rem; color: var(--purple-600);
}
.key-black {
  position: absolute; top: 0; width: 7%; height: 100px; background: #2c2344;
  border-radius: 0 0 8px 8px; cursor: pointer; z-index: 2;
  transition: background 0.08s ease, transform 0.08s ease;
}
.key-black:active, .key-black.playing { background: var(--purple-600); transform: translateY(3px); }
.piano-hint { text-align: center; margin-top: 22px; font-weight: 700; color: var(--gold); }
.piano-vol { text-align: center; margin-top: 6px; font-weight: 600; font-size: 0.9rem; color: rgba(247, 239, 221, 0.72); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  margin-top: 20px;
}
.about-art { width: 100%; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--purple-800); margin-bottom: 18px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.about-points { list-style: none; margin-top: 22px; }
.about-points li {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px;
  font-weight: 700; color: var(--purple-800);
}
.about-points .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-size: 0.85rem; margin-top: 2px;
}

/* ---------- Pricing ---------- */
.pricing { background: var(--cream-dark); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.price-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px 30px;
  text-align: center; box-shadow: var(--shadow-card); position: relative;
  transition: transform 0.2s ease;
  display: flex; flex-direction: column;
}
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border: 3px solid var(--gold); }
.price-flag {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--purple-900);
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; color: var(--purple-800); }
.price-amount { font-family: var(--font-head); font-weight: 600; font-size: 3rem; color: var(--orange); margin: 14px 0 2px; }
.price-amount span { font-size: 1.1rem; color: var(--ink-soft); font-weight: 700; }
.price-note { font-size: 0.9rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 18px; }
.price-list { list-style: none; text-align: left; margin: 0 auto 26px; max-width: 250px; flex: 1; }
.price-list li { padding: 7px 0; color: var(--ink-soft); font-size: 0.97rem; display: flex; gap: 10px; }
.price-list li::before { content: "♪"; color: var(--gold); font-weight: 800; }
.price-card .btn { align-self: center; padding: 13px 28px; font-size: 0.9rem; }
.price-fineprint { text-align: center; margin-top: 26px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.quote-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  box-shadow: var(--shadow-card);
}
.quote-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 14px; }
.quote-card p { color: var(--ink-soft); font-size: 0.99rem; font-style: italic; margin-bottom: 18px; }
.quote-who { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--purple-800); font-size: 0.95rem; }
.quote-ava {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; color: #fff;
}

/* ---------- SMS / reminders callout ---------- */
.sms-callout {
  background: var(--teal); border-radius: var(--radius-lg);
  color: #fff; padding: 44px 40px; display: grid;
  grid-template-columns: auto 1fr; gap: 30px; align-items: center;
  box-shadow: var(--shadow-card);
}
.sms-callout h3 { font-size: 1.55rem; margin-bottom: 8px; }
.sms-callout p { color: rgba(255, 255, 255, 0.92); font-size: 0.98rem; }
.sms-phone { width: 92px; animation: bob 3.2s ease-in-out infinite; }

/* ---------- Contact ---------- */
.contact { background: var(--purple-800); color: var(--cream-text); }
.contact .section-title { color: var(--cream-text); }
.contact-card {
  background: rgba(0, 0, 0, 0.18); border-radius: var(--radius-lg);
  max-width: 640px; margin: 40px auto 0; padding: 40px 44px;
}
.contact-card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: 18px; }
.contact-rows { list-style: none; }
.contact-rows li {
  display: flex; gap: 16px; align-items: flex-start; padding: 10px 0;
  font-size: 1.05rem; font-weight: 700;
}
.contact-rows .c-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--purple-600);
  display: grid; place-items: center;
}
.contact-rows a { color: var(--cream-text); text-decoration: none; border-bottom: 2px solid rgba(245, 179, 59, 0.5); }
.contact-rows a:hover { border-color: var(--gold); color: var(--gold); }
.contact-note { margin-top: 20px; font-size: 0.92rem; color: rgba(247, 239, 221, 0.75); font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  background: var(--purple-900); color: rgba(247, 239, 221, 0.8);
  padding: 44px 0 34px; font-size: 0.92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand { font-family: var(--font-head); font-weight: 600; color: var(--cream-text); font-size: 1.15rem; margin-bottom: 10px; }
.foot-col h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 9px; }
.foot-col a { color: rgba(247, 239, 221, 0.8); text-decoration: none; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  border-top: 1px solid rgba(247, 239, 221, 0.15); margin-top: 36px; padding-top: 22px;
  text-align: center; font-weight: 600; font-size: 0.85rem; color: rgba(247, 239, 221, 0.6);
}

/* ---------- Booking page ---------- */
.page-head {
  background: var(--purple-700); color: var(--cream-text);
  text-align: center; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head p { max-width: 56ch; margin: 14px auto 0; color: rgba(247, 239, 221, 0.9); font-weight: 600; }
.consent-note {
  background: #fdeecb; border: 2px dashed var(--gold); border-radius: var(--radius-md);
  max-width: 720px; margin: 34px auto 0; padding: 18px 26px;
  font-weight: 700; color: #7a5410; font-size: 0.95rem; text-align: center;
}
.cal-embed-wrap {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  margin: 36px auto 0; max-width: 960px; padding: 12px; min-height: 620px;
}
#cal-inline { width: 100%; min-height: 600px; overflow: auto; }
.booking-alt {
  text-align: center; margin: 30px auto 0; max-width: 640px;
  color: var(--ink-soft); font-weight: 600; font-size: 0.98rem;
}
.reschedule-note {
  background: #d9efee; border-radius: var(--radius-md); max-width: 720px;
  margin: 40px auto 0; padding: 24px 30px; color: #1e5f5b; font-weight: 600;
}
.reschedule-note strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; }
.legal h1 { color: var(--purple-800); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal .legal-updated { color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; margin-bottom: 34px; }
.legal h2 { color: var(--purple-700); font-size: 1.35rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 12px; }
.legal ul { padding-left: 24px; }
.legal .highlight {
  background: #fdeecb; border-left: 5px solid var(--gold); border-radius: 8px;
  padding: 16px 20px; font-weight: 700; color: #7a5410;
}

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .note-float, .brand-badge, .sms-phone { animation: none; }
  .student-scene { transition: opacity 0.9s ease; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps, .price-grid, .quotes { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .sms-callout { grid-template-columns: 1fr; text-align: center; }
  .sms-phone { margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--purple-800); padding: 10px 4vw 20px;
    display: none; box-shadow: 0 14px 20px rgba(35, 24, 63, 0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; border-bottom: none; }
  .nav-links .btn { margin-top: 8px; }
  section { padding: 56px 0; }
}
