/* ============================================================
   The Piano Place Ottawa — Design System
   Brand: #A64D4F (sampled from logo)
   ============================================================ */
:root {
  --brand: #A64D4F;
  --brand-dark: #8a3d3f;
  --brand-deep: #6e2f31;
  --ink: #1d1517;
  --ink-soft: #4a3d3f;
  --cream: #faf5f1;
  --cream-2: #f3eae4;
  --white: #ffffff;
  --gold: #c9a227;
  --radius: 20px;
  --shadow: 0 20px 60px -20px rgba(29, 21, 23, .35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { 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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--brand); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }

.container { width: min(1200px, 92vw); margin-inline: auto; }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s, transform .4s;
}
.nav.scrolled { background: rgba(250, 245, 241, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(29,21,23,.08); }
.nav-inner {
  width: min(1300px, 94vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.nav-logo img { width: 42px; height: 42px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; font-weight: 500; font-size: .95rem; }
.nav-links > li { position: relative; }
.nav-links a { padding: .4rem 0; position: relative; }
.nav-links > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; }
.dropdown { position: absolute; top: calc(100% + .8rem); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  padding: .6rem; min-width: 210px; opacity: 0; pointer-events: none; transition: .25s var(--ease); list-style: none; }
/* invisible hover bridge so the dropdown doesn't vanish while moving the cursor down */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1.1rem; }
.nav-links li:hover .dropdown, .nav-links li:focus-within .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: .55rem .9rem; border-radius: 9px; font-size: .92rem; }
.dropdown a:hover { background: var(--cream-2); color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--brand); color: #fff !important; font-weight: 600;
  padding: .85rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  font-size: .98rem; font-family: var(--font-body);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
  box-shadow: 0 10px 30px -12px rgba(166, 77, 79, .7);
}
.btn:hover { transform: translateY(-2px); background: var(--brand-dark); box-shadow: 0 16px 36px -12px rgba(166,77,79,.75); }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px rgba(29,21,23,.25); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand) !important; background: transparent; }
.btn.light { background: #fff; color: var(--brand) !important; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }
.btn.light:hover { background: var(--cream); }
.nav-cta { margin-left: .4rem; }
.nav-links .btn { padding: .8rem 1.6rem; white-space: nowrap; }
.nav-cta > a::after { display: none; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; z-index: 110; }
.hamburger span { display: block; width: 26px; height: 2.5px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* Nav over a dark hero (home + every page-hero page): white text and a soft top scrim until the bar
   turns cream on scroll. Pages with no hero (contact, register) keep the ink text from the start.
   Sept 10 2026: the ink links were invisible on the hero photo. */
body:has(.hero, .page-hero) .nav:not(.scrolled) { background: linear-gradient(180deg, rgba(20,12,13,.6) 0%, rgba(20,12,13,0) 100%); }
body:has(.hero, .page-hero) .nav:not(.scrolled) .nav-logo,
body:has(.hero, .page-hero) .nav:not(.scrolled) .nav-links > li > a { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
body:has(.hero, .page-hero) .nav:not(.scrolled) .nav-links > li > a::after { background: #fff; }
body:has(.hero, .page-hero) .nav:not(.scrolled) .hamburger span { background: #fff; }
/* Mobile menu open: the cream panel is up, so links go back to ink and the hamburger too */
body:has(.hero, .page-hero) .nav:not(.scrolled) .nav-links.open > li > a { color: var(--ink); text-shadow: none; }
body:has(.hero, .page-hero) .nav:not(.scrolled) .nav-links.open > li > a::after { background: var(--brand); }
body:has(.hero, .page-hero) .nav:not(.scrolled) .nav-inner:has(.nav-links.open) .hamburger span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; padding: 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 18s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -2%); }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,13,.35) 0%, rgba(20,12,13,.15) 40%, rgba(20,12,13,.82) 100%);
}
.hero-content { position: relative; z-index: 2; width: min(1200px, 92vw); margin-inline: auto; padding: 8rem 0 5rem; }
.hero .eyebrow { color: #f2c9c9; }
.hero .eyebrow::before { background: #f2c9c9; }
.hero h1 { color: #fff; max-width: 15ch; text-wrap: balance; }
.hero p { color: rgba(255,255,255,.88); max-width: 55ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin: 1.4rem 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; right: 4vw; z-index: 3;
  writing-mode: vertical-rl; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.7); display: flex; align-items: center; gap: .8rem;
}
.hero-scroll::after { content: ""; width: 1px; height: 56px; background: rgba(255,255,255,.5); animation: drip 2.2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Inner-page hero */
.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; padding: 0; }
.page-hero .hero-content { padding: 9rem 0 4rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 1.2rem 0; background: var(--ink); color: var(--cream); }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 30s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; display: flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "♪"; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 30px -18px rgba(29,21,23,.25);
  transition: transform .4s var(--ease), box-shadow .4s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-body p { color: var(--ink-soft); font-size: .97rem; }
.card-link { color: var(--brand); font-weight: 600; margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; }
.card-link:hover { gap: .7rem; } .card-link { transition: gap .3s; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-img { position: relative; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-img::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 100%; height: 100%;
  border: 2px solid var(--brand); border-radius: var(--radius); z-index: -1; opacity: .5;
}
.split .stack { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--brand); display: block; }
.stat span { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }

/* ---------- Dark band ---------- */
.band { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(250,245,241,.75); }
.band .card h3, .band .form-card h3 { color: var(--ink); }
.band .card p, .band .form-card p { color: var(--ink-soft); }
.band .card-link { color: var(--brand); }
.band .eyebrow { color: #e79b9d; } .band .eyebrow::before { background: #e79b9d; }

/* Brand band (CTA) */
.cta-band { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 58ch; margin: 1.2rem auto 2.2rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery a, .gallery figure { border-radius: 16px; overflow: hidden; position: relative; display: block; margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.2rem .9rem; color: #fff; font-size: .9rem;
  background: linear-gradient(transparent, rgba(20,12,13,.75));
}
.gallery .tall img { aspect-ratio: 3/4.4; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink); /* keep labels readable even inside dark .band sections */
}
.form-card .form-note { color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid #e2d5cd; background: #fdfaf8;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(166,77,79,.13);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Video embed ---------- */
.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16/9; background: var(--ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: 0 8px 30px -18px rgba(29,21,23,.25); }
.quote-card p { font-size: 1.02rem; color: var(--ink-soft); }
.quote-card .who { margin-top: 1.2rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .6rem; }
.quote-card .who::before { content: ""; width: 26px; height: 2px; background: var(--brand); }
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .8rem; }

/* ---------- FAQ ---------- */
details.faq { background: var(--white); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: .9rem; box-shadow: 0 4px 18px -12px rgba(29,21,23,.2); }
details.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .3s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding-top: .8rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(250,245,241,.8); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-display); margin-bottom: 1rem; font-size: 1.05rem; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.footer-grid a:hover { color: var(--brand); }
.footer-logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-logo img { width: 52px; border-radius: 12px; }
.footer-logo b { font-family: var(--font-display); color: #fff; font-size: 1.2rem; }
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .3s, transform .3s;
}
.socials a:hover { background: var(--brand); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(250,245,241,.55); }

/* ---------- Misc ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { background: var(--cream-2); border-radius: 999px; padding: .45rem 1.1rem; font-size: .88rem; font-weight: 500; }
.notice { background: #fff8ec; border: 1px solid #eeddb5; padding: .9rem 1.2rem; border-radius: 12px; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0; background: var(--cream); flex-direction: column; justify-content: center;
    font-size: 1.3rem; gap: 1.4rem; transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav-links.open { transform: none; }
  .dropdown { position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; background: transparent; text-align: center; }
  .dropdown a { font-size: 1rem; color: var(--ink-soft); }
  .hamburger { display: block; }
  .nav-cta { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-media video { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
