/* =====================================================
   Pianohome — styles.css
   ===================================================== */

:root {
  --cream: #F9F6EF;
  --white: #FFFFFF;
  --navy: #1C1C2E;
  --navy-light: #2E2E4A;
  --gold: #9A7B2F;
  --gold-light: #C9A84C;
  --gold-pale: #F5EDD6;
  --text: #2C2C3A;
  --text-muted: #6B6B80;
  --border: #E5DFC8;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(28,28,46,0.08);
  --shadow-lg: 0 8px 48px rgba(28,28,46,0.13);
  --font: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-w: 1160px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

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

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--gold-light); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-sans);
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: #7D6224;
  border-color: #7D6224;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(154,123,47,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

/* ─── NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,246,239,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 16px;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); font-size: 1rem; font-weight: 500; }
.mobile-menu .btn { width: 100%; margin-top: 8px; }

/* ─── HERO ─── */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
  background: var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text { padding-bottom: 80px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid rgba(154,123,47,0.25);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero h1 { margin-bottom: 20px; }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
}

.badge-text span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--navy);
  padding: 28px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
}

.trust-item svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

/* ─── SECTION BASE ─── */
section { padding: 88px 0; }

.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }
.section-gold-pale { background: var(--gold-pale); }

/* ─── PROBLEM ─── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-text .section-label { margin-bottom: 12px; }
.problem-text h2 { margin-bottom: 20px; }
.problem-text p { color: var(--text-muted); margin-bottom: 20px; }

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.problem-list li::before {
  content: '—';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.problem-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.problem-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ─── FOR WHOM ─── */
.forwhom { background: var(--white); }

.forwhom-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.forwhom-header h2 { margin-bottom: 14px; }
.forwhom-header p { color: var(--text-muted); }

.forwhom-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.forwhom-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.forwhom-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.forwhom-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.forwhom-card h3 { margin-bottom: 10px; }
.forwhom-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ─── HOW IT WORKS ─── */
.howworks { background: var(--cream); }

.howworks-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.howworks-header h2 { margin-bottom: 12px; }
.howworks-header p { color: var(--text-muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 2px 12px rgba(154,123,47,0.12);
}

.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ─── FORMAT ─── */
.format { background: var(--white); }

.format-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.format-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.format-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.format-content .section-label { margin-bottom: 12px; }
.format-content h2 { margin-bottom: 20px; }
.format-content > p { color: var(--text-muted); margin-bottom: 32px; }

.format-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.format-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-text span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--navy); }

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}

.testimonials-header .section-label { color: var(--gold-light); }

.testimonials-header h2 {
  color: #fff;
  max-width: 520px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.author-info span {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* ─── FAQ ─── */
.faq { background: var(--cream); }

.faq-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}

.faq-header h2 { margin-bottom: 12px; }
.faq-header p { color: var(--text-muted); }

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--gold); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy);
  user-select: none;
  gap: 16px;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
  font-size: 0.85rem;
  color: var(--gold);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── LEAD FORM ─── */
.lead-form-section { background: var(--white); }

.lead-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.lead-form-wrap .section-label { margin-bottom: 14px; }
.lead-form-wrap h2 { margin-bottom: 14px; }
.lead-form-wrap > p { color: var(--text-muted); margin-bottom: 40px; }

.lead-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-sans);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(154,123,47,0.15);
}

.form-group input::placeholder { color: #B8B4A4; }

.form-group input.error {
  border-color: #C0392B;
}

.field-error {
  display: none;
  color: #C0392B;
  font-size: 0.8rem;
  margin-top: 5px;
}

.field-error.visible { display: block; }

.form-submit .btn {
  width: 100%;
  margin-top: 8px;
}

.form-privacy {
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-privacy a { color: var(--gold); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-light);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { color: #fff; margin-bottom: 14px; display: block; }
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-contact {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-contact a { color: rgba(255,255,255,0.5); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.6); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 680px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.cookie-text a { color: var(--gold-light); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-sans);
}

.cookie-accept:hover { background: #7D6224; }

.cookie-dismiss {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.cookie-dismiss:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ─── LEGAL PAGES ─── */
.legal-hero {
  background: var(--navy);
  padding: 64px 0;
  text-align: center;
}

.legal-hero h1 { color: #fff; margin-bottom: 10px; }
.legal-hero p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child { margin-top: 0; border-top: none; }

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.legal-content ul {
  color: var(--text-muted);
  padding-left: 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ─── SUCCESS PAGE ─── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 40px 24px;
}

.success-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #EDF7ED;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.success-card h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.97rem;
}

/* ─── CTA STRIP ─── */
.cta-strip {
  background: var(--gold-pale);
  border-top: 1px solid rgba(154,123,47,0.15);
  border-bottom: 1px solid rgba(154,123,47,0.15);
  padding: 64px 0;
  text-align: center;
}

.cta-strip h2 { margin-bottom: 16px; }
.cta-strip p { color: var(--text-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .format-inner { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }
  section { padding: 64px 0; }

  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 0;
  }
  .hero-text { padding-bottom: 0; }
  .hero-image { height: 280px; }
  .hero-image img { height: 280px; }

  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .problem-image img { height: 280px; }

  .forwhom-cards { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }

  .format-inner { grid-template-columns: 1fr; }
  .format-image img { height: 280px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 14px 14px 0 0;
  }

  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-dismiss { flex: 1; text-align: center; }

  .lead-form { padding: 28px 20px; }

  .trust-items { gap: 24px; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .success-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn-large { padding: 16px 32px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
