/* ============================================================
   Raise the Barre — multi-page site additions
   (home page, inner-page headers, cards, placeholders, studio build pages)
   ============================================================ */

html { scroll-padding-top: 5.5rem; }

/* --- Mobile menu ------------------------------------------ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s, opacity 0.2s;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a[aria-current="page"] { opacity: 1; color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav.open { background: var(--blue-deep); }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 1.1rem;
    padding: 1.25rem 5% 1.75rem;
    background: var(--blue-deep);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  }
  .nav-links a { font-size: 0.95rem; }
}

/* --- Home hero -------------------------------------------- */
.home-hero {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.18) 0%, rgba(201,168,76,0) 60%),
    linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  color: var(--cream);
  text-align: center;
  padding: 9rem 0 5.5rem;
}

.home-hero-logo {
  width: min(420px, 75vw);
  height: auto;
  margin: 0 auto 2rem;
}

.home-hero .hero-subtitle { margin-bottom: 2.25rem; }

/* --- Inner page header ------------------------------------ */
.page-hero {
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  color: var(--cream);
  padding: 8.5rem 0 3.75rem;
}

.page-hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
}

.page-hero-lede {
  max-width: 760px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--text-on-blue);
}

/* --- Section helpers -------------------------------------- */
.section-cream { background: var(--cream); }

.section-intro {
  max-width: 720px;
  margin: -1.25rem 0 2.5rem;
  font-size: 1.08rem;
  color: #444;
}

.center .section-intro { margin-left: auto; margin-right: auto; }
.section-dark-blue .section-intro, .section-blue .section-intro { color: var(--text-on-blue); }

.section-more { margin-top: 2rem; }
.section-more a { color: var(--blue-mid); font-weight: 700; letter-spacing: 0.04em; }
.section-more a:hover { color: var(--gold); }

.coming-up-text {
  font-size: 1.1rem;
  color: var(--text-on-blue);
  margin: -1rem auto 2.25rem;
  max-width: 600px;
}

/* --- Cards ------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e6e2d6;
  border-top: 4px solid var(--gold);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card h3 { color: var(--blue-deep); font-size: 1.35rem; }
.info-card p { color: #444; flex: 1; }

.card-more {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.card-more::after { content: " \2192"; }

.feature-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e2d6;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background: var(--cream);
}

.feature-card img.feature-card-drawing {
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background: #f2f4f5;
}

.feature-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.feature-card-body h3 { color: var(--blue-deep); font-size: 1.4rem; margin: 0.25rem 0 0.6rem; }
.feature-card-body p { color: #444; }

.feature-card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6d1f;
  font-weight: 700;
}

.info-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 21, 64, 0.12);
}

/* --- Placeholders (sections still waiting for content) ---- */
.placeholder-panel {
  border: 2px dashed rgba(201,168,76,0.7);
  background: #fffdf7;
  padding: 2.5rem 2rem;
  text-align: center;
}

.placeholder-panel p { color: #444; font-size: 1.08rem; margin-bottom: 1.5rem; }

.placeholder-note { color: var(--text-on-blue); font-size: 1.08rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.video-frame { margin-top: 2rem; aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.calendar-embed iframe { width: 100%; min-height: 700px; border: 0; }

/* --- Class schedule (for when it's posted) ---------------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.schedule-day { background: #fff; border: 1px solid #e6e2d6; padding: 1.25rem 1.5rem; }
.schedule-day h3 { color: var(--blue-deep); margin-bottom: 0.75rem; }
.schedule-day ul { list-style: none; }
.schedule-day li { display: grid; padding: 0.6rem 0; border-top: 1px solid #eee; }
.schedule-time { font-weight: 700; color: var(--blue-mid); }
.schedule-ages { font-size: 0.9rem; color: var(--text-muted); }

/* --- Studio build pages ----------------------------------- */
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.crumbs a { color: var(--blue-mid); }
.crumbs a:hover { color: var(--gold); }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3rem;
  align-items: start;
}

.stat-stack { display: grid; gap: 1px; background: #e6e2d6; border: 1px solid #e6e2d6; }
.stat { background: #fff; padding: 1.1rem 1.4rem; }
.stat b { display: block; font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--blue-deep); }
.stat span { font-size: 0.9rem; color: #555; }

.prose { max-width: 760px; }
.prose-wide { max-width: 900px; }
.prose h2, .subhead { color: var(--blue-deep); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.75rem 0 1rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { color: var(--blue-deep); font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.prose p { margin: 0 0 1rem; color: #2a2a2a; }
.prose ol, .prose ul { margin: 0 0 1.25rem 1.4rem; color: #2a2a2a; }
.prose li { margin: 0.4rem 0; }
.prose strong { color: var(--blue-deep); }
.prose code { font-size: 0.88em; background: #f0ede4; padding: 0.05em 0.35em; }
.prose a { color: var(--blue-mid); text-decoration: underline; }
.prose figure { margin: 1.75rem 0; }
.prose figure img { width: 100%; height: auto; border: 1px solid #e6e2d6; background: #fff; }
.prose figcaption { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.5rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid #e6e2d6; background: #fff; }
.data-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 0.9rem; border-bottom: 1px solid #eee; vertical-align: top; }
.data-table th { font-weight: 700; color: var(--blue-deep); background: var(--cream); }
.data-table tr:last-child td { border-bottom: 0; }

.note-box {
  background: #f1f4fd;
  border-left: 4px solid var(--blue-mid);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  max-width: 760px;
  color: #2a2a2a;
}

.note-box strong { display: block; color: var(--blue-deep); margin-bottom: 0.25rem; }

/* Buy boxes: a link with an empty href stays hidden and "coming soon" shows instead. */
.buy-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background: var(--cream);
  border: 1px solid #e4d29a;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
}

.buy-box h3 { color: var(--blue-deep); font-size: 1.25rem; margin: 0 0 0.25rem; }
.buy-box p { margin: 0; color: #444; }
.buy-link[href=""] { display: none; }
.buy-link:not([href=""]) + .buy-soon { display: none; }
.buy-soon { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a6d1f; }

.hd-link { font-size: 0.8rem; font-weight: 700; color: #f96302; white-space: nowrap; margin-left: 0.35rem; }
.hd-link[href=""] { display: none; }

.build-guide .wrap { padding-top: 3rem; }
.guide-intro { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.guide-foot { color: var(--text-muted); font-size: 0.85rem; padding-top: 1.5rem; }

@media (max-width: 860px) {
  .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero { padding: 7.5rem 0 4.5rem; }
  .page-hero { padding: 7rem 0 3rem; }
}
