/* ============================================================
   Mustard Seed Music and Arts Academy — stylesheet (Wave 1: sleek)
   One hand-written theme. Edit the variables below to re-skin
   the whole site (swap in real brand colors when ready).
   Fonts (Poppins + Inter) load via <link> in each page <head>,
   with system fallbacks here so the site degrades gracefully.
   ============================================================ */

:root {
  /* Brand palette (PLACEHOLDER — swap when brand colors are finalized) */
  --gold: #E1A92E;
  --gold-dark: #BC8413;
  --gold-soft: #F6E2B3;
  --green: #3A6B4C;
  --green-dark: #2C5239;
  --green-deep: #234231;
  --cream: #FBF6EC;
  --cream-2: #F4ECDB;
  --ink: #1E1E1B;
  --charcoal: #2B2B28;
  --muted: #6E6A60;
  --white: #ffffff;
  --line: #E8DFCB;
  --line-soft: #F0E8D6;

  --radius: 18px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(43, 43, 40, .06);
  --shadow: 0 10px 30px -12px rgba(43, 43, 40, .18);
  --shadow-lg: 0 26px 60px -20px rgba(43, 43, 40, .28);
  --ring: 0 0 0 3px rgba(225, 169, 46, .45);
  --max: 1140px;

  --serif: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; } /* offset for the sticky header on anchor jumps */
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.08;
  color: var(--charcoal);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.container--narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream2 { background: var(--cream-2); }
.section--green { background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); color: #eef0e8; }
.section--green h2, .section--green h3 { color: #fff; }
.section--ink { background: radial-gradient(900px 500px at 80% -20%, rgba(225,169,46,.16), transparent 60%), var(--ink); color: #d9d6cc; }
.section--ink h2, .section--ink h3 { color: #fff; }
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section--green .lead, .section--ink .lead { color: #d7d9cf; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .7rem; }
.section--green .eyebrow, .section--ink .eyebrow { color: var(--gold); }
.section-intro { max-width: 60ch; margin-inline: auto; }

/* ---------- Buttons (hardened: text never overflows the pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  cursor: pointer; border: 0; max-width: 100%;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-align: center; white-space: normal;
  padding: .82rem 1.55rem; border-radius: 999px; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #3a2c05; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--green-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green-dark); border: 2px solid var(--green); padding: calc(.82rem - 2px) calc(1.55rem - 2px); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost--light:hover { background: #fff; color: var(--green-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.06rem; }
.btn-ghost.btn-lg { padding: calc(1rem - 2px) calc(2rem - 2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row--center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(43,43,40,.4); border-bottom-color: var(--line); background: rgba(251, 246, 236, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--charcoal); }
.brand-mark { font-size: 1.8rem; line-height: 1; }
img.brand-mark { width: 48px; height: 48px; object-fit: contain; display: block; }
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; line-height: 1.02; display: flex; flex-direction: column; letter-spacing: -0.01em; }
.brand-text small { font-family: var(--sans); font-weight: 600; font-size: .64rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; color: var(--charcoal); font-weight: 500; font-size: .94rem; padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s var(--ease), border-color .15s var(--ease); }
.primary-nav a:hover { color: var(--green-dark); }
.primary-nav a[aria-current="page"] { color: var(--green-dark); border-bottom-color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--charcoal); border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 1rem 1.4rem 1.6rem; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .3s var(--ease); max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .9rem 0; }
  .nav-cta { margin-top: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 460px at 82% -8%, rgba(225, 169, 46, .28), transparent 58%),
    radial-gradient(800px 500px at -5% 110%, rgba(58, 107, 76, .14), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center; }
.hero h1 .accent { color: var(--green-dark); }
.hero .lead { font-size: 1.3rem; max-width: 52ch; }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .dot { color: var(--gold-dark); }
.hero-art {
  position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--radius-lg);
  background:
    radial-gradient(120px 120px at 75% 25%, rgba(255,255,255,.18), transparent 70%),
    linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg);
  text-align: center; padding: 2rem; overflow: hidden;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .5;
}
.hero-art .seed { font-size: 4.2rem; }
.hero-art > div { position: relative; z-index: 1; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.accent-chip {
  position: absolute; bottom: 1.1rem; left: 1.1rem; z-index: 2;
  background: var(--gold); color: #3a2c05; font-weight: 700; font-size: .82rem;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: var(--shadow);
}
.placeholder-note { font-size: .8rem; opacity: .85; margin-top: .6rem; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; } .hero-art { order: -1; max-width: 460px; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin-top: .4rem; }
.card .icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--gold-soft); font-size: 1.7rem; margin-bottom: .4rem;
}
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius) var(--radius) 0 0; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.card--link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-soft); }
.card--link:hover::after { transform: scaleX(1); }
.pill { display: inline-block; background: var(--cream-2); color: var(--green-dark); font-size: .76rem; font-weight: 700; padding: .28rem .72rem; border-radius: 999px; margin: 0 .3rem .3rem 0; }

/* ---------- Pricing ---------- */
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow); }
.price-card.featured::before { content: "Best value"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #3a2c05; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.price { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--green-dark); margin: .4rem 0 .2rem; }
.section--green .price { color: #fff; }
.price .per { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--muted); }
.price-sub { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.price-card .btn { margin-top: .6rem; }
.tier-list { list-style: none; margin: 1.4rem auto 0; padding: 0; display: grid; gap: .8rem; max-width: 720px; }
.tier-list li { background: var(--white); color: var(--charcoal); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.tier-list strong { color: var(--green-dark); }

/* ---------- Instructor portrait ---------- */
.instructor-photo { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; border-radius: var(--radius); margin: 0 auto 1.1rem; box-shadow: var(--shadow-sm); }

/* ---------- "Why" strip ---------- */
.feature { text-align: center; }
.feature .icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); font-size: 2rem; margin-bottom: .7rem; }

/* ---------- Program / class blocks ---------- */
.program { margin-bottom: 3rem; }
.program-head { display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1.6rem; }
.program-head .icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); font-size: 1.5rem; }
.age-tag { font-size: .76rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .09em; }

/* ---------- Tables (schedule / tuition) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 540px; }
th, td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
thead th { background: linear-gradient(160deg, var(--green), var(--green-deep)); color: #fff; font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; transition: box-shadow .2s var(--ease); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; padding: 1.15rem 1.3rem; font-size: 1.06rem; font-weight: 600; font-family: var(--serif); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--charcoal); }
.faq-q:focus-visible { outline: none; box-shadow: inset var(--ring); border-radius: var(--radius-sm); }
.faq-q .chev { transition: transform .25s var(--ease); color: var(--gold-dark); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .28s var(--ease), padding .28s var(--ease); }
.faq-a.open { padding: 0 1.3rem 1.25rem; max-height: 420px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); position: relative; }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--gold); position: absolute; top: .4rem; right: 1rem; opacity: .5; }
.quote p { font-size: 1.06rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--green-dark); }

/* ---------- Forms ---------- */
.form { max-width: 660px; }
.form.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.3rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--charcoal);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.field textarea { min-height: 140px; resize: vertical; }
.req { color: #b4451f; }
@media (max-width: 560px) { .form.grid-2 { grid-template-columns: 1fr; } }

/* ---------- Callout band ---------- */
.band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #3a2c05; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; box-shadow: var(--shadow-lg); }
.band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 20px 20px; opacity: .5; }
.band > * { position: relative; z-index: 1; }
.band h2 { color: #3a2c05; }

/* ---------- Notices / placeholders ---------- */
.note { background: #fff8e6; border: 1px dashed var(--gold-dark); color: #6a5210; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .9rem; margin: 1rem 0; }
.note strong { color: #5a4400; }

/* ---------- Map ---------- */
.map-embed { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--cream-2); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gallery-grid .tile { aspect-ratio: 1; border-radius: var(--radius); background: linear-gradient(150deg, var(--cream-2), var(--line)); display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem; transition: transform .2s var(--ease); }
.gallery-grid .tile:hover { transform: translateY(-4px); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: radial-gradient(700px 300px at 90% -40%, rgba(225,169,46,.12), transparent 60%), var(--ink); color: #cfccc2; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 3.4rem 0 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.site-footer a { color: #cfccc2; text-decoration: none; transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0; font-size: .85rem; color: #9c998f; }
.brand--footer .brand-text, .brand--footer { color: #fff; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; background: radial-gradient(800px 360px at 85% -30%, rgba(225,169,46,.20), transparent 60%), linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); padding: clamp(2.8rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; letter-spacing: .02em; }
.breadcrumb a { color: var(--muted); }

/* ---------- Scroll-reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .gallery-grid .tile, .site-header, .header-inner { transition: none !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #3a2c05; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100; }
.skip-link:focus { left: 0; }
