/* ============================================
   Kristen's Keys Music — Prototype Styles
   ============================================ */

:root {
  --ink:      #333333;
  --charcoal: #434545;
  --taupe:    #918887;
  --beige:    #D9CCC4;
  --cream:    #F4EBEA;
  --white:    #FFFFFF;
  --rule:     #C9BCB4;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --max-w:    1180px;
  --read-w:   720px;
  --radius:   4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--taupe); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.5rem); font-weight: 500; }
p { margin: 0 0 1em; }
.italic { font-style: italic; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read-w); margin: 0 auto; }
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-cream    { background: var(--cream); }
.section-beige    { background: var(--beige); }
.section-ink      { background: var(--ink);    color: var(--cream); }
.section-charcoal { background: var(--charcoal); color: var(--cream); }
.section-ink h1, .section-ink h2, .section-ink h3,
.section-charcoal h1, .section-charcoal h2, .section-charcoal h3 { color: var(--white); }

.center { text-align: center; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); font-weight: 500; margin-bottom: 1rem; display: block; }
.divider {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--charcoal);
  margin: 0 auto 2.2rem; max-width: 540px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); margin: 0 1.2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 235, 234, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 188, 180, 0.4);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-header .logo img { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.site-nav a.active { color: var(--taupe); }
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary   { background: var(--taupe); color: var(--white); }
.btn-primary:hover { background: var(--charcoal); color: var(--white); }
.btn-outline   { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--ink); }
.btn-dark      { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}
.hero-video, .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(51,51,51,0.35), rgba(51,51,51,0.55));
}
.hero-inner { max-width: 820px; padding: 0 24px; }
.hero h1 {
  color: var(--white); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 0.4em;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero p.sub { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.2rem; color: rgba(255,255,255,0.95); }

/* Generic page hero (non-video) */
.page-hero { position: relative; min-height: 56vh; display: flex; align-items: center; color: var(--white); text-align: center; overflow: hidden; }
.page-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(51,51,51,0.45); }
.page-hero h1 { color: var(--white); font-style: italic; }
.page-hero .wrap { width: 100%; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(201, 188, 180, 0.5);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(51,51,51,0.08); }
.card h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.6rem; margin-bottom: 0.6rem; }
.card.featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card.featured h3 { color: var(--white); }
.card.featured a.card-link { color: var(--cream); }
.card a.card-link { display: inline-block; margin-top: 1rem; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Album grid ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-top: 2rem; }
.album { text-align: center; }
.album-link { display: block; color: inherit; text-decoration: none; transition: transform .25s; }
.album-link:hover { transform: translateY(-4px); }
.album-link:hover .album-cover { box-shadow: 0 18px 40px rgba(51,51,51,0.28); }
.album-link:hover .title { color: var(--taupe); }
.album-cover {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(51,51,51,0.18);
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s;
}
.album .title { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-top: 14px; color: var(--ink); transition: color .2s; }
.album .caption { font-size: 0.85rem; color: var(--charcoal); }

.streaming-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2.5rem; }
.streaming-row a { background: var(--white); border: 1px solid var(--rule); padding: 12px 22px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; }
.streaming-row a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(51,51,51,0.12); }

/* ---------- Quote / testimonial ---------- */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--charcoal);
  border-left: 3px solid var(--taupe);
  padding: 8px 0 8px 26px;
  margin: 0 auto;
  max-width: 720px;
}
.testimonial-card {
  background: var(--cream);
  padding: 44px 36px;
  border-radius: var(--radius);
  position: relative;
}
.testimonial-card::before {
  content: "\201C";
  font-family: var(--font-display);
  position: absolute; top: -8px; left: 18px;
  font-size: 6rem; line-height: 1; color: var(--taupe);
  opacity: 0.4;
}
.testimonial-card .quote-text { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.testimonial-card .attribution { font-size: 0.85rem; color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 2rem auto 0; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--taupe); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--charcoal); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cream); margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-family: var(--font-body); font-size: 1rem;
  border-radius: var(--radius);
}
form input::placeholder, form textarea::placeholder { color: rgba(255,255,255,0.5); }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--taupe); background: rgba(255,255,255,0.1); }
form textarea { resize: vertical; min-height: 110px; }
form button { width: 100%; padding: 14px; margin-top: 8px; }

/* Light form (contact page) */
.form-light label { color: var(--charcoal); }
.form-light input, .form-light textarea, .form-light select {
  background: var(--white); color: var(--ink); border-color: var(--rule);
}
.form-light input::placeholder, .form-light textarea::placeholder { color: var(--taupe); }

/* ---------- Pricing card ---------- */
.pricing-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 44px;
  text-align: center;
  border-radius: var(--radius);
}
.pricing-card h3 { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 2rem; margin-bottom: 1rem; }

/* ---------- TidyCal embed wrap ---------- */
.tidycal-wrap {
  background: var(--cream);
  padding: 64px 32px;
  max-width: 760px;
  margin: 2rem auto 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.tidycal-wrap .tidycal-embed { min-height: 400px; }
.tidycal-placeholder {
  background: var(--white);
  border: 1px dashed var(--rule);
  padding: 60px 30px;
  text-align: center;
  color: var(--charcoal);
  font-style: italic;
  border-radius: var(--radius);
}

/* ---------- Lesson "how" grid ---------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 2rem; }
.how-item { text-align: center; padding: 24px 16px; }
.how-item .icon { font-family: var(--font-display); font-size: 2.2rem; color: var(--taupe); font-style: italic; margin-bottom: 0.6rem; }
.how-item h4 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.4rem; margin-bottom: 0.5rem; }
.how-item p { font-size: 0.95rem; color: var(--charcoal); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 32px;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer img { height: 44px; margin-bottom: 1rem; }
.site-footer p, .site-footer a { color: rgba(244,235,234,0.8); font-size: 0.95rem; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.2rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer .social { display: flex; gap: 12px; margin-top: 1rem; }
.site-footer .social a {
  width: 40px; height: 40px; border: 1px solid rgba(244,235,234,0.3); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: background .2s, border-color .2s, color .2s;
}
.site-footer .social a svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .social a:hover { background: var(--taupe); border-color: var(--taupe); color: var(--white); }

/* Light social icons (for contact page) */
.social-light { display: flex; gap: 12px; margin-top: 1rem; }
.social-light a {
  width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.social-light a svg { width: 18px; height: 18px; fill: currentColor; }
.social-light a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.site-footer .bottom {
  border-top: 1px solid rgba(244,235,234,0.15);
  margin-top: 56px; padding-top: 20px;
  text-align: center; font-size: 0.85rem; color: rgba(244,235,234,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid rgba(201,188,180,0.3); width: 100%; }
  .site-nav .btn { margin-top: 10px; text-align: center; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .hero { min-height: 78vh; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .site-header .logo img { height: 36px; }
  section { padding: 48px 0; }
}
