/* ==========================================================================
   Red Notes Piano — shared stylesheet
   Plain CSS, no framework. Mobile-first. System font stack.
   Palette: warm neutrals + red "note" accent.
   ========================================================================== */

:root {
  --red: #c62828;
  --red-dark: #8e1c1c;
  --red-soft: #fbe9e7;
  --ink: #1f1a17;
  --ink-soft: #4a423d;
  --cream: #fbf7f2;
  --paper: #ffffff;
  --line: #e8dfd6;
  --gold: #c9a25a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(31, 26, 23, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 26, 23, 0.06);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Layout helpers ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--tint {
  background: var(--paper);
}

.section__head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.lede {
  font-size: 1.12rem;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--red-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn--block {
  display: block;
  width: 100%;
}

/* Header / nav ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand__note {
  color: var(--red);
}
.brand__logo {
  /* Transparent PNG, so it blends with whatever the header background is. */
  width: 153px;
  height: 153px;
  object-fit: contain;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--red);
  text-decoration: none;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav__links .nav__cta .btn--primary {
  color: #fff;
}
.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-dark);
  background: var(--red-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links li {
    border-bottom: 1px solid var(--line);
  }
  /* Larger tap targets (≥44px) for the mobile menu. */
  .nav__links li a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }
  .nav__links .nav__cta {
    padding-top: 0.9rem;
    border-bottom: 0;
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero__title {
  margin-bottom: 1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.hero__media {
  position: relative;
}
.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.hero__logo {
  object-fit: contain;
  height: auto;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: none;
  border-radius: 0;
}
.footer__logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 0.9rem;
}
.badge {
  position: absolute;
  right: 0.5rem;
  bottom: -4.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
}
.badge span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  /* On phones the badge flows inline under the logo instead of floating,
     so it never overlaps the logo text or the next section. */
  .badge {
    position: static;
    display: block;
    margin: 1rem auto 0;
    text-align: center;
  }
  .hero__media {
    text-align: center;
  }
  .badge strong {
    display: inline;
    font-size: 1.2rem;
  }
}

.quick-facts {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}
.quick-facts li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

/* Cards / grids ----------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--3 {
  grid-template-columns: 1fr;
}
.grid--4 {
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .grid--2,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.35rem;
}
.card p:last-child {
  margin-bottom: 0;
}

/* Testimonials ------------------------------------------------------------ */
.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quote p {
  font-size: 1.02rem;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.reviews-grid {
  align-items: start;
}
.review-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

/* Feature / split rows ---------------------------------------------------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--rev .split__media {
    order: -1;
  }
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Photo carousel ---------------------------------------------------------- */
.carousel {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.carousel__slide.is-active {
  opacity: 1;
}
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
  z-index: 2;
}
.carousel__dot {
  /* 9px visual dot, but a ~30px transparent hit area for easy tapping. */
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}
.carousel__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dot.is-active::after {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.35);
}
@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: none;
  }
}

/* Map embed --------------------------------------------------------------- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "♪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 700;
}

/* FAQ accordion ----------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.05rem 1.2rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq__q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq__a p {
  margin: 0 0 1rem;
}
.faq__item.is-open .faq__a {
  padding: 0 1.2rem 0.4rem;
}

/* Pricing table ----------------------------------------------------------- */
.price-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.price {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price--featured {
  border-color: var(--red);
  box-shadow: var(--shadow);
}
.price__amt {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
}
.price__amt span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.price ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.price li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.price .btn {
  margin-top: auto;
}

/* CTA band ---------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--red-dark);
}

.trial-band {
  background: var(--red-soft);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-top: 1.5rem;
}
.trial-band h3 {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.trial-band .price__amt {
  margin-bottom: 0.75rem;
}
.trial-band p {
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 1rem;
}

/* Forms ------------------------------------------------------------------- */
.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--cream);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.form__note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Prose (legal pages) ----------------------------------------------------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 2rem;
}
.prose ul {
  color: var(--ink-soft);
}

/* Info list (contact) ----------------------------------------------------- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list a {
  color: var(--ink);
}
.info-list a:hover {
  color: var(--red);
}
.info-list strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* Focus visibility -------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.placeholder-note {
  background: #fff8e1;
  border: 1px dashed var(--gold);
  color: #7a5b00;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: #d9cfc6;
  padding: 3rem 0 1.5rem;
}
.site-footer a {
  color: #e8dfd6;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer__brand .brand {
  color: #fff;
}
.footer__brand p {
  color: #b8ada2;
  max-width: 320px;
}
.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 0.5rem;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9c9088;
}

/* Utility ----------------------------------------------------------------- */
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 1.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Floating WhatsApp button (all pages) ------------------------------------ */
.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
}
.wa-fab__icon {
  width: 26px;
  height: 26px;
  flex: none;
}
@media (max-width: 560px) {
  /* On small screens, collapse to a round icon-only button. */
  .wa-fab {
    padding: 0.9rem;
    border-radius: 50%;
  }
  .wa-fab__label {
    display: none;
  }
  .wa-fab__icon {
    width: 28px;
    height: 28px;
  }
  /* Keep the floating button clear of footer links / buttons so nothing
     underneath it becomes hard to tap. */
  .site-footer {
    padding-bottom: 5.5rem;
  }
}
