/* ============================================================
   Birdsong Kyoto — layout & section styles
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 236, 216, 0.86);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid rgba(95, 122, 92, 0.16);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
  padding-block: 0.6rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.nav-desktop { display: flex; align-items: center; gap: 1.7rem; margin-left: auto; }
.navlink {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 0.3em 0;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
.navlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--sage-deep);
  transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.navlink:hover, .navlink.is-active { color: var(--indigo); }
.navlink:hover::after, .navlink.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-desktop + .header-actions { margin-left: 0; }
.header-actions { margin-left: 0; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-body); font-weight: 800; font-size: 0.92rem;
  color: var(--indigo);
  background: transparent;
  border: 2px solid rgba(51, 89, 122, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.5em 0.95em;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.lang-toggle:hover { border-color: var(--indigo); background: var(--indigo-tint); }
.lang-toggle .globe { font-size: 1.05em; line-height: 1; }

.book-btn { padding: 0.7em 1.3em; font-size: 0.95rem; }

.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--indigo); border-radius: 2px; transition: 0.2s var(--ease); }

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-desktop, .book-btn { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: block;
    max-height: 0; overflow: hidden;
    background: var(--washi-soft);
    border-bottom: 1px solid rgba(95,122,92,0.16);
    transition: max-height 300ms var(--ease);
  }
  .mobile-menu.open { max-height: 460px; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem var(--gutter) 1.6rem; }
  .mobile-menu .navlink { font-size: 1.15rem; padding: 0.6em 0; border-bottom: 1px solid rgba(95,122,92,0.12); }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.5; }
.blob-sage { width: 42vw; height: 42vw; max-width: 560px; max-height: 560px; background: radial-gradient(circle at 40% 40%, var(--sage-tint), transparent 70%); top: -10%; right: -8%; }
.blob-indigo { width: 32vw; height: 32vw; max-width: 420px; max-height: 420px; background: radial-gradient(circle at 50% 50%, var(--indigo-tint), transparent 70%); bottom: 4%; left: -10%; opacity: 0.6; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-copy { max-width: 36rem; }
.hero-lede { margin-top: 1.4rem; max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-note {
  display: flex; align-items: center; gap: 0.6em;
  margin-top: 1.6rem; font-weight: 700; color: var(--sage-deep-text); font-size: 1rem;
}
.hero-note svg { color: var(--sage-deep); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-ph-frame { position: relative; }
.hero-ph {
  aspect-ratio: 5 / 5.6;
  width: 100%;
  border-radius: clamp(var(--radius), 4vw, 56px) clamp(var(--radius), 4vw, 56px) clamp(var(--radius), 4vw, 56px) 72px;
  box-shadow: var(--shadow-lift);
}

/* When a REAL photo fills an image slot, it must cover the frame (keep its own
   proportions, crop overflow) instead of being stretched to the slot's aspect
   ratio. The slot's aspect-ratio/shape becomes the frame; the photo fills it. */
img.hero-ph,
img.video-ph-inner,
img.teacher-ph,
img.access-ph {
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  width: clamp(78px, 9vw, 118px); height: auto;
  background: var(--indigo);
  padding: 16px; border-radius: 50%;
  box-shadow: var(--shadow);
}

/* A few notes drifting up from the bird mark — a quiet visual echo of the
   "sing" in the copy. Sage, soft, slow; motion disabled under reduced-motion. */
.hero-notes { position: absolute; bottom: 18px; left: 38px; z-index: 2; pointer-events: none; }
.hero-notes .note { position: absolute; color: var(--sage); opacity: 0; }
.hero-notes .note-1 { left: 0;    bottom: 28px; animation: bk-float 7s ease-in-out 0.0s infinite; }
.hero-notes .note-2 { left: 26px; bottom: 14px; animation: bk-float 7s ease-in-out 1.8s infinite; }
.hero-notes .note-3 { left: 48px; bottom: 36px; animation: bk-float 7s ease-in-out 3.4s infinite; }
@keyframes bk-float {
  0%   { opacity: 0; transform: translateY(6px) rotate(-4deg); }
  18%  { opacity: 0.55; }
  55%  { opacity: 0.42; }
  100% { opacity: 0; transform: translateY(-34px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-notes { display: none; }
}
body.no-motion .hero-notes { display: none; }

/* wave divider */
.wave { position: relative; line-height: 0; margin-top: -1px; }
.wave svg { display: block; width: 100%; height: clamp(50px, 7vw, 100px); }
.wave-flip svg { transform: scaleY(-1); }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center {
  text-align: center; max-width: 52rem; margin-inline: auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 1rem;
}
.section-head.center .eyebrow { margin-bottom: 0; }
.center-eyebrow::before { display: none; }
.section-head.center .eyebrow { justify-content: center; }
.center-lede { margin-inline: auto; max-width: 48ch; margin-top: 0; }

/* ---------- Promise ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.pillar { text-align: left; }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 20px;
  background: var(--sage-tint); color: var(--sage-deep);
  margin-bottom: 1.3rem;
}
.pillar-title { font-size: 1.5rem; margin-bottom: 0.6rem; }
.pillar-body { color: var(--ink); font-size: 1.02rem; line-height: 1.65; }

/* ---------- What a class looks like ---------- */
.classlook-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.video-ph { position: relative; }
.video-ph-inner {
  aspect-ratio: 4 / 3.2; width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--washi); color: var(--indigo);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); padding-left: 4px;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease);
}
.play-btn:hover { transform: scale(1.07); background: var(--indigo); color: var(--washi); }
.classlook-lede { margin: 1.2rem 0 1.8rem; max-width: 46ch; }
.beats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.beat { display: flex; gap: 0.9rem; align-items: flex-start; }
.beat-dot {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0;
  background: var(--sage); box-shadow: 0 0 0 4px var(--sage-tint);
}
.beat strong { display: block; font-weight: 800; color: var(--indigo); font-size: 1.08rem; }
.beat-body { display: block; color: var(--ink); font-size: 0.98rem; }

/* ---------- For your family ---------- */
.family { position: relative; }
.family-band { background: var(--sage-tint); padding-block: clamp(2.5rem, 5vw, 4rem); }
.family-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.family-card { position: relative; }
.family-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.family-card p { font-size: 1.02rem; }
.family-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.family-tag.intl { background: var(--indigo); color: var(--washi); font-family: var(--font-display); }
.family-tag.jp { background: var(--persimmon-soft); color: var(--persimmon-text); font-family: var(--font-ja); }
.is-ja-head { font-family: var(--font-ja); font-weight: 700; }

/* ---------- Teacher ---------- */
.teacher-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.teacher-media { position: relative; }
.teacher-ph-frame { position: relative; }
.teacher-ph {
  aspect-ratio: 4 / 4.6; width: 100%;
  border-radius: 50% 50% 50% 50% / 44% 44% 56% 56%;
  box-shadow: var(--shadow-lift);
}
.teacher-chip {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--washi); color: var(--indigo);
  font-weight: 800; font-size: 0.9rem;
  padding: 0.55em 1.2em; border-radius: var(--radius-pill);
  box-shadow: var(--shadow); white-space: nowrap;
}
.teacher-body { font-size: 1.1rem; line-height: 1.75; color: var(--ink); margin-top: 1.3rem; }
.teacher-body:first-of-type { margin-top: 1.6rem; }

/* ---------- Schedule ---------- */
.schedule-card {
  background: var(--washi-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51,46,38,0.06);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 3.2rem);
}
.schedule-head { max-width: 50rem; }
.season-pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: 1.3rem;
  background: var(--persimmon-soft); color: var(--indigo);
  font-weight: 800; font-size: 0.92rem;
  padding: 0.5em 1.1em; border-radius: var(--radius-pill);
}
.season-pill::before { content: "✦"; color: var(--persimmon-text); }
.schedule-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(1.8rem, 4vw, 2.6rem) 0;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(95,122,92,0.2);
  border-bottom: 1px solid rgba(95,122,92,0.2);
}
.sched-col { display: flex; flex-direction: column; gap: 0.35rem; }
.sched-k { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-deep-text); }
.sched-v { font-family: var(--font-display); font-size: 1.5rem; color: var(--indigo); line-height: 1.15; }
.is-ja .sched-v { font-family: var(--font-ja); }
.sched-d { font-size: 0.95rem; color: var(--ink-soft); }
.trial-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--indigo); color: var(--washi);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2.2rem);
}
.trial-strip-text { display: flex; flex-direction: column; gap: 0.3rem; }
.trial-strip-text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; }
.is-ja .trial-strip-text strong { font-family: var(--font-ja); font-weight: 700; }
.trial-strip-text span { color: rgba(244,236,216,0.85); font-size: 0.98rem; max-width: 44ch; }
.trial-strip .btn-primary { background: var(--washi); color: var(--indigo); flex-shrink: 0; }
.trial-strip .btn-primary:hover { background: var(--persimmon-soft); }

/* ---------- Access / finding us ---------- */
.access-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.access-ph { aspect-ratio: 4 / 3.2; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.access-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.access-map iframe { display: block; width: 100%; min-height: 320px; border: 0; }
.access-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: column; gap: 0.9rem; }
.access-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1.02rem; color: var(--ink); }
.access-ico { color: var(--sage-deep-text); flex-shrink: 0; font-size: 1.1em; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 48rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q {
  list-style: none; cursor: pointer; padding: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; color: var(--indigo);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.is-ja .faq-q { font-family: var(--font-ja); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-weight: 700; font-size: 1.4em; color: var(--sage-deep-text); transition: transform 220ms var(--ease); flex-shrink: 0; line-height: 1; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { margin: 0 clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.1rem, 2.5vw, 1.5rem); color: var(--ink); font-size: 1rem; line-height: 1.7; }

/* ---------- Quote ---------- */
.quote-card {
  position: relative;
  background: var(--indigo);
  color: var(--washi);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.8rem, 5vw, 4.5rem);
  max-width: 56rem; margin-inline: auto;
  text-align: center;
  overflow: hidden;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 7rem; line-height: 0.7; color: var(--sage);
  display: block; height: 0.5em; opacity: 0.8;
}
.quote-body {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem); line-height: 1.4;
  margin: 0 0 1.8rem; color: var(--washi);
}
.is-ja .quote-body { font-family: var(--font-ja); }
.quote-cite { display: inline-flex; align-items: center; gap: 0.9rem; text-align: left; }
.quote-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--washi);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quote-avatar img { width: 34px; height: auto; }
.quote-cite strong { display: block; font-weight: 800; color: var(--washi); }
.quote-meta { display: block; color: rgba(244,236,216,0.8); font-size: 0.92rem; }

/* ---------- Final CTA + form ---------- */
.final-grid {
  display: grid; grid-template-columns: 1fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.final-title { margin-top: 0.2rem; }
.final-copy .lede { margin-top: 1.2rem; }
.contact-or { margin-top: 2.2rem; }
.contact-or-label { display: block; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.8rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.chip-link {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: 800; font-size: 0.98rem; text-decoration: none;
  white-space: nowrap;
  padding: 0.7em 1.2em; border-radius: var(--radius-pill);
  background: var(--washi-soft); color: var(--indigo);
  border: 2px solid rgba(51,89,122,0.2);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.chip-link:hover { transform: translateY(-2px); border-color: var(--indigo); }
.chip-dot { width: 11px; height: 11px; border-radius: 50%; }
.chip-link.line .chip-dot { background: #06C755; }
.chip-link.ig .chip-dot { background: var(--persimmon); }

.form-card {
  background: var(--washi-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(51,46,38,0.06);
}
.trial-form { display: flex; flex-direction: column; gap: 1.3rem; }
.err { color: var(--persimmon-text); font-weight: 700; font-size: 0.88rem; }
.input[aria-invalid="true"], select.input[aria-invalid="true"] { border-color: var(--persimmon); }
.form-submit { margin-top: 0.5rem; width: 100%; }
.form-submit:disabled { opacity: 0.7; cursor: progress; }
.form-error { margin-top: 0.4rem; text-align: center; }

.thanks { text-align: center; padding: clamp(1rem, 3vw, 2rem) 0.5rem; }
.thanks-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--sage-tint); margin-bottom: 1.2rem;
}
.thanks-mark img { width: 52px; height: auto; }
.thanks h3 { font-size: 1.7rem; margin-bottom: 0.7rem; }
.thanks p { color: var(--ink); margin-bottom: 1.6rem; max-width: 36ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-deep); color: var(--washi); margin-top: clamp(3rem, 7vw, 6rem); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-logo { height: 54px; width: auto; margin-bottom: 1.3rem; }
.footer-tagline { color: rgba(244,236,216,0.82); max-width: 34ch; font-size: 1rem; }
.footer-loc { margin-top: 1.1rem; color: rgba(244,236,216,0.7); font-size: 0.95rem; display: flex; align-items: center; gap: 0.5em; }
.footer-loc .pin { color: var(--sage); }
.footer-col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col h2 { color: var(--washi); font-family: var(--font-body); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.3rem; }
.footer-col a { color: rgba(244,236,216,0.82); text-decoration: none; font-weight: 600; white-space: nowrap; transition: color 160ms var(--ease); width: fit-content; }
.footer-col a:hover { color: var(--washi); }
.footer-lang {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: none; border: 2px solid rgba(244,236,216,0.3); color: var(--washi);
  font-family: var(--font-body); font-weight: 800; font-size: 0.9rem;
  padding: 0.5em 1.1em; border-radius: var(--radius-pill); cursor: pointer; width: fit-content;
  white-space: nowrap;
  margin-top: 0.4rem; transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.footer-lang:hover { border-color: var(--washi); background: rgba(244,236,216,0.1); }
.footer-langnote { font-weight: 600; opacity: 0.6; font-size: 0.82rem; margin-top: 0.1rem; }
.footer-base { border-top: 1px solid rgba(244,236,216,0.16); padding-block: 1.4rem 2rem; }
.footer-base p { color: rgba(244,236,216,0.78); font-size: 0.88rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 30rem; }
  .classlook-grid, .teacher-grid, .final-grid, .access-grid { grid-template-columns: 1fr; }
  .access-media { order: -1; max-width: 32rem; }
  .classlook-media, .teacher-media { max-width: 32rem; }
  .teacher-grid .teacher-media { order: -1; }
  .schedule-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .family-cards { grid-template-columns: 1fr; }
  .trial-strip { flex-direction: column; align-items: flex-start; }
  .trial-strip .btn-primary { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-cta .btn { width: 100%; }
}
