/* Mehrin Serenade Piano Studio
   Palette and type scale lifted from the Wix site's own CSS so the rebuild
   matches it: brand green #2F5F48 on cream #F3F2EC, Poppins for display.
   Body face is a substitute -- the original used Wix's proprietary Madefor
   Text, which is not licensed for use off Wix. */

:root {
  --brand-green: #2f5f48;
  --green-dark: #1d3e2f;
  --green-deep: #15291b;
  --green-pale: #e5f2d2;
  --cream: #f3f2ec;
  --sage: #608471;
  --sage-light: #c2cdc3;
  --white: #fff;

  --display: "Poppins", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--brand-green);
  font: 400 1.0625rem/1.65 var(--body);
  letter-spacing: -0.01em;
}

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

a { color: var(--brand-green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
}

/* ---------- Type scale ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 22ch; }
h2 { font-size: clamp(1.75rem, 4vw, 2.375rem); }
h3 { font-size: clamp(1.1875rem, 2.2vw, 1.5rem); }

.lede {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  max-width: 46ch;
  margin: 0 0 2rem;
}

p { max-width: var(--measure); margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.9rem;
}

/* ---------- Layout ---------- */

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

section { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
main > section:first-of-type { padding-top: clamp(1.25rem, 3vw, 2rem); }
section + section { border-top: 1px solid var(--sage-light); }
section.tint { background: var(--green-pale); border-top-color: transparent; }
section.deep { background: var(--brand-green); color: var(--cream); border-top-color: transparent; }
section.deep h2, section.deep a { color: var(--cream); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 60;
  background: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

/* ---------- Header + MENU overlay ----------
   The Wix site has no inline desktop nav: at every breakpoint the header is a
   hamburger labelled literally "MENU" that opens a full-screen panel. Kept
   deliberately, so returning visitors find the same control. */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.75rem, 2vw, 1.25rem);
}

/* The logo already carries the wordmark, so it is the only place the studio
   name appears at the top of the page. */
.brand { display: block; line-height: 0; }
.brand img { width: clamp(104px, 13vw, 132px); height: auto; }

.menu-btn,
.overlay__close {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
}
.menu-btn:hover,
.overlay__close:hover { background: var(--brand-green); color: var(--cream); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--brand-green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }

.overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.overlay__tagline {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(1rem, 2.6vw, 1.375rem);
  margin: 0;
  max-width: none;
}
.overlay__close { border-color: var(--cream); }
.overlay__close:hover { background: var(--cream); color: var(--brand-green); }

.overlay__list {
  list-style: none;
  margin: auto 0;
  padding: 2rem 0;
  display: grid;
  gap: 0.35rem;
}
.overlay__list a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 7vw, 3.5rem);
  letter-spacing: -0.02em;
  color: var(--cream);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.15em;
}
.overlay__list a:hover,
.overlay__list a[aria-current="page"] { color: var(--green-pale); }

.overlay__foot {
  font-size: 0.9375rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
  padding-top: 1.25rem;
}
.overlay__foot a { color: var(--cream); }

/* ---------- Pieces ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: var(--brand-green);
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--brand-green);
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--cream); }
.btn--ghost { background: none; color: var(--brand-green); }
.btn--ghost:hover { background: var(--brand-green); color: var(--cream); }
section.deep .btn { background: var(--cream); color: var(--brand-green); border-color: var(--cream); }
section.deep .btn:hover { background: var(--green-pale); color: var(--green-dark); }

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 48rem) {
  .split { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
  .split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: 10px; width: 100%; }

figure { margin: 0; }

/* Two recital photos of different aspect ratios sit side by side, so align
   them to the top rather than stretching either one. */
.gallery {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-top: 1.75rem;
}
@media (min-width: 56rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
.gallery img { border-radius: 10px; width: 100%; }
figcaption {
  font-size: 0.875rem;
  color: var(--sage);
  padding-top: 0.6rem;
  text-align: center;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}
.card {
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 0.9375rem; }
.card .price {
  font-family: var(--display);
  font-weight: 600;
  color: var(--sage);
  font-size: 0.9375rem;
}
.card .btn { margin-top: auto; align-self: flex-start; }

.plain-list { padding-left: 1.2em; margin: 0 0 1.15em; max-width: var(--measure); }
.plain-list li { margin-bottom: 0.5em; }
.plain-list li::marker { color: var(--sage); }

.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.contact-grid > h1 { grid-column: 1 / -1; margin-bottom: 0; }
@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}
.contact-detail { font-size: 1.0625rem; margin-bottom: 1.4rem; }
.contact-detail a { font-weight: 500; }

/* ---------- Intake form ---------- */

.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form__row { display: grid; gap: 1.1rem; align-items: start; }
@media (min-width: 34rem) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.35rem; align-content: start; margin: 0; }
.field > label,
.fieldset > legend {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.req { color: #9e3b1b; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--brand-green);
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--brand-green); }
textarea { min-height: 6.5rem; resize: vertical; }

.fieldset {
  border: 1px solid var(--sage-light);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.1rem;
  margin: 0;
  background: var(--white);
}
.fieldset > legend { padding-inline: 0.4rem; }
.choices { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  cursor: pointer;
}
.choice input { margin: 0.25rem 0 0; accent-color: var(--brand-green); flex: none; }

.hp { position: absolute; left: -9999px; }

.form__note { font-size: 0.875rem; color: var(--sage); max-width: 40rem; }

.form-status { border-radius: 8px; padding: 0.85rem 1rem; font-size: 0.9375rem; }
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--green-pale); border: 1px solid var(--sage); }
.form-status--err { background: #fcebeb; border: 1px solid #9e3b1b; color: #9e3b1b; }

/* ---------- Policies ---------- */

.policy { max-width: var(--measure); }
.policy h3 { margin-top: 1.75rem; }
.policy h3:first-child { margin-top: 0; }
.policy dl { margin: 0 0 1.15em; }
.policy dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}
.policy dd { margin: 0.15rem 0 0; }

/* ---------- Footer ---------- */

footer {
  background: var(--green-deep);
  color: var(--cream);
  padding-block: clamp(2rem, 5vw, 3rem);
  font-size: 0.9375rem;
}
footer a { color: var(--cream); }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 44rem) {
  /* Equal columns so the second one starts at a predictable place. With
     "1fr auto" it landed wherever the first column happened to end, which
     read as a stray line floating mid-page. */
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.footer-grid p { max-width: none; }
.footer__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}
.footer__fine { color: var(--sage-light); font-size: 0.8125rem; }

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