/* ===========================================================
   Charity's Piano Studio — charityspiano.com
   Soft & welcoming theme. Shared across all pages.
   =========================================================== */

:root {
  --cream: #fbf6ee;
  --cream-2: #f4ead9;
  --blush: #f3d9c9;
  --rose: #d98c73;
  --rose-deep: #b9684f;
  --plum: #4a3b44;
  --ink: #2c2530;
  --muted: #6f6571;
  --gold: #c79b55;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(74, 59, 68, 0.16);
  --shadow-sm: 0 6px 18px rgba(74, 59, 68, 0.12);
  --radius: 18px;
  --serif: "Georgia", "Cambria", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--plum); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin: 0 0 .4em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
a { color: var(--rose-deep); }

.container { width: min(1140px, 92vw); margin: 0 auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--cream-2); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; font-weight: 700; color: var(--rose-deep); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rose-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #a25741; }
.btn--ghost { background: rgba(255,255,255,.85); color: var(--plum); border-color: var(--blush); }
.btn--ghost:hover { background: #fff; }
.btn--fb { background: #1877f2; color: #fff; }
.btn--fb:hover { background: #1463cf; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(74,59,68,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--plum); text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 50%; background: var(--rose-deep); color:#fff; display:grid; place-items:center; font-size: 1.1rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--plum); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--rose-deep); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--plum); cursor: pointer; }

/* ---------- Hero (full-bleed) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid; align-items: center;
  /* Real photo (assets/hero-steinway.jpg) sits on top; the SVG illustration
     shows underneath as a fallback until the photo file is added. */
  background-image: url("assets/hero-steinway.jpg"), url("assets/hero-steinway.svg");
  background-size: cover, cover; background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,12,8,.74) 0%, rgba(18,12,8,.52) 38%, rgba(18,12,8,.14) 70%, rgba(18,12,8,0) 100%);
}
.hero-inner { padding: 5rem 0; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); margin: 0 0 .4rem; }
.hero .tagline { color: #fdeede; font-size: clamp(1.05rem, 2.4vw, 1.4rem); text-shadow: 0 1px 10px rgba(0,0,0,.4); margin-bottom: 1.8rem; max-width: 48ch; }
.hero .eyebrow { color: #f7cdb9; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-loc { margin-top: 1.6rem; color: #fbe6d8; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--rose-deep); font-weight: 600; }
.stat .label { color: var(--muted); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-card {
  background: linear-gradient(160deg, var(--blush), var(--cream-2));
  border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow);
}
.about-card ul { margin: 0; padding-left: 1.1rem; }
.about-card li { margin-bottom: .5rem; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(74,59,68,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ico { font-size: 1.9rem; }
.card .price { color: var(--rose-deep); font-weight: 700; margin-top: .4rem; }

/* ---------- Reviews ---------- */
.rating-head { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-bottom: 2rem; }
.rating-head .stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 2px; }
.rating-head .score { font-weight: 700; color: var(--plum); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.review {
  background: #fff; border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; }
.review blockquote { margin: 0 0 1rem; font-style: italic; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.review .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--rose); color:#fff; display:grid; place-items:center; font-weight:700; }
.review .who small { color: var(--muted); display: block; }
.placeholder-note {
  text-align: center; color: var(--muted); font-size: .85rem; margin-top: 1.5rem; font-style: italic;
}

/* ---------- Game ---------- */
.game {
  background: linear-gradient(165deg, #2c2530, #4a3b44);
  border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.6rem); color: #fbf6ee;
  box-shadow: var(--shadow);
}
.game h2 { color: #fff; }
.game .lead { color: #ecdfe6; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0; }
.tab {
  background: rgba(255,255,255,.08); color: #fbf6ee; border: 1px solid rgba(255,255,255,.18);
  padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem;
}
.tab[aria-selected="true"] { background: var(--rose-deep); border-color: var(--rose-deep); }
.panel { display: none; }
.panel[data-active="true"] { display: block; }
.controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.controls label { font-size: .9rem; color: #ecdfe6; display: flex; flex-direction: column; gap: .3rem; }
.controls select, .controls input[type=range] { accent-color: var(--rose); }
.controls select { padding: .5rem .7rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background:#3a2f37; color:#fff; }
.readout { font-family: var(--serif); font-size: 1.05rem; min-height: 1.5em; color: #f7cdb9; }

/* Keyboard */
.keyboard { position: relative; display: flex; user-select: none; height: 180px; margin: 0 auto; max-width: 760px; }
.key {
  position: relative; border: 1px solid #cbb9a6; border-top: none;
  border-radius: 0 0 6px 6px; cursor: pointer; transition: background .05s;
}
.key.white { flex: 1; background: linear-gradient(#fff, #f3ead9); z-index: 1; }
.key.white:active, .key.white.active { background: linear-gradient(#f2c9b6, #e7a98f); }
.key.black {
  width: 4.2%; height: 62%; background: linear-gradient(#34303a, #0d0a10);
  position: absolute; z-index: 2; border-radius: 0 0 5px 5px; box-shadow: 0 3px 4px rgba(0,0,0,.4);
}
.key.black:active, .key.black.active { background: linear-gradient(#b9684f, #8c4732); }
.key .lbl { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: .7rem; color: #b3a08c; pointer-events: none; }
.key.black .lbl { color: #e9d9c8; bottom: 6px; }

/* Metronome */
.metro-visual { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 90px; margin: 1rem 0; }
.beat-dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.16); transition: transform .08s, background .08s; }
.beat-dot.on { background: var(--rose); transform: scale(1.45); }
.beat-dot.accent.on { background: var(--gold); }
.bpm-display { font-family: var(--serif); font-size: 2.6rem; color: #fff; text-align: center; }
.bpm-display small { font-size: 1rem; color: #ecdfe6; }

.chord-name { font-family: var(--serif); font-size: 2rem; color:#fff; text-align:center; margin:.4rem 0; }
.chord-notes { text-align: center; color: #f7cdb9; margin-bottom: 1rem; }

.kbd-hint { font-size:.82rem; color:#c9bcc4; text-align:center; margin-top:.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.contact-card { background:#fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-item { display:flex; gap:.8rem; align-items:center; margin-bottom: 1.1rem; }
.contact-item .ico { width:42px;height:42px;border-radius:12px;background:var(--blush);display:grid;place-items:center;font-size:1.2rem; }
.contact-item a { font-weight:600; text-decoration:none; }
form label { display:block; font-weight:600; font-size:.9rem; margin-bottom:.3rem; color:var(--plum); }
form input, form textarea {
  width:100%; padding:.75rem .9rem; border:1px solid #e2d2c2; border-radius:10px;
  font:inherit; margin-bottom:1rem; background:var(--cream); color: var(--ink);
}
form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size:.82rem; color:var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  background:#fff; border-radius:14px; padding:1.1rem 1.4rem; margin-bottom:.8rem; box-shadow:var(--shadow-sm);
}
.faq summary { font-family:var(--serif); font-weight:600; font-size:1.1rem; cursor:pointer; color:var(--plum); }
.faq summary::marker { color: var(--rose-deep); }
.faq p { margin:.7rem 0 0; color:var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #f3e7ee; padding: 3rem 0 1.6rem; }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:2rem; }
.site-footer h4 { font-family:var(--serif); color:#fff; margin:0 0 .8rem; }
.site-footer a { color:#f0d8cb; text-decoration:none; display:block; margin-bottom:.45rem; }
.site-footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.15); margin-top:2rem; padding-top:1.2rem; font-size:.85rem; color:#d9c6cf; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    gap: 0; padding: .5rem 6vw 1rem; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: .5rem 0; border-bottom: 1px solid rgba(74,59,68,.08); }
  .nav-toggle { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .footer-grid { grid-templa