/* ============================================================
   COMPONENTS: nav, buttons, papel picado, feature row, teacher blurb
   ============================================================ */

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-nav .container {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.site-nav .logo-link { display: flex; align-items: center; height: 64px; flex-shrink: 0; }
.site-nav .logo-link img { height: 100%; width: auto; display: block; }

/* ---- English Club nav CTA: deliberately louder than the rest of the nav ---- */
.english-club-pill {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-blue));
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 119, 131, 0.30);
  flex-shrink: 0;
}
.english-club-pill:hover { filter: brightness(1.06); }

@media (max-width: 480px) {
  .english-club-pill { padding: 7px 14px; font-size: var(--text-xs); }
  .site-nav .logo-link { height: 46px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-right { display: flex; align-items: center; gap: var(--space-sm); }

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* mobile slide-down menu, shown via JS toggling [data-open] on nav */
  .site-nav[data-menu-open="true"] .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: var(--brand-pink);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
[data-theme="dark"] .btn-outline { border-color: #6fb6ea; color: #6fb6ea; }

/* ---- Sticky mobile CTA (appears only on small screens) ---- */
.mobile-cta {
  display: none;
}
@media (max-width: 800px) {
  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
  }
  .mobile-cta .btn { width: 100%; }
  /* keep page content from hiding behind the fixed bar */
  body { padding-bottom: 76px; }
}

/* ---- Papel picado banner (reusable, see js/picado.js) ----
   Drop <div class="picado-slot" aria-hidden="true"></div> anywhere
   you want a banner: under the nav, between sections, at a section top.
   picado.js finds every .picado-slot on the page and fills it in. */
.picado-slot {
  padding: 0 var(--space-lg);
  margin: var(--space-lg) 0;
  overflow: hidden;
}
.picado-slot svg { display: block; width: 100%; height: auto; }
@media (max-width: 800px) {
  .picado-slot { padding: 0 var(--space-md); margin: var(--space-md) 0; }
}

/* ---- Picado directly under the nav: its own cable line stands in for
   the nav's bottom border, so don't stack a second line + gap on top ---- */
.site-nav:has(+ .picado-slot) { border-bottom: none; }
.site-nav + .picado-slot { margin-top: 0; }

/* ---- Picado directly above the footer: same merge, the other way
   round — its cable line replaces the footer's top border. Only a
   line's worth of breathing room between the flags and the footer
   links, not a full section gap. ---- */
.picado-slot:has(+ .site-footer) { margin-bottom: var(--space-sm); }
.picado-slot + .site-footer { border-top: none; margin-top: 0; padding-top: var(--space-xs); }

/* ---- Feature row: circle icon + label, no card boxes ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: center;
}
.feature { padding: var(--space-xs) var(--space-sm); }
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature-icon.pink { background: radial-gradient(circle, var(--color-accent-soft), #f6d6e2); }
.feature-icon.blue { background: radial-gradient(circle, #e4f0f7, #cfe4f0); }
.feature-icon.teal { background: radial-gradient(circle, #e8f5ec, #cfe9d8); }
[data-theme="dark"] .feature-icon.pink { background: rgba(240, 121, 158, 0.15); }
[data-theme="dark"] .feature-icon.blue { background: rgba(111, 182, 234, 0.15); }
[data-theme="dark"] .feature-icon.teal { background: rgba(45, 181, 193, 0.15); }

.feature h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.feature p { font-size: var(--text-sm); line-height: 1.55; color: var(--color-text-muted); }

.feature-divider {
  border-left: 1px dashed var(--color-border-strong);
  border-right: 1px dashed var(--color-border-strong);
}

@media (max-width: 800px) {
  .features { grid-template-columns: 1fr; gap: var(--space-lg); }
  .feature-divider {
    border-left: none;
    border-right: none;
    border-top: 1px dashed var(--color-border-strong);
    border-bottom: 1px dashed var(--color-border-strong);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

/* ---- Teacher blurb (small photo + first-person line, used after hero) ---- */
.teacher-blurb {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-lg) 0;
  text-align: left;
}
.teacher-blurb img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.teacher-blurb blockquote {
  margin: 0;
  font-size: var(--text-lg);
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text);
}
.teacher-blurb cite {
  display: block;
  margin-top: var(--space-xs);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
}
.teacher-blurb cite .pronunciation {
  font-weight: 400;
  font-size: 0.9em;
  color: var(--color-text-muted);
  opacity: 0.75;
}
@media (max-width: 560px) {
  .teacher-blurb { flex-direction: column; text-align: center; gap: var(--space-sm); }
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-links { display: flex; gap: var(--space-md); list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-size: var(--text-sm); color: var(--color-text-muted); }
.footer-note { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- Page header (used on every inner page: Method, About, Policies, etc.) ---- */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.page-header .hero-eyebrow { margin-bottom: var(--space-sm); }
.page-header h1 { font-size: var(--text-3xl); margin-bottom: var(--space-sm); }
.page-header p { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }
@media (max-width: 800px) {
  .page-header h1 { font-size: var(--text-2xl); }
}

/* ---- Prose (readable body content: policies, about bio, method explanation) ---- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: var(--text-xl); margin: var(--space-lg) 0 var(--space-sm); }
.prose h2:first-child { margin-top: 0; }
.prose p { line-height: 1.7; color: var(--color-text); margin-bottom: var(--space-sm); }
.prose p.muted { color: var(--color-text-muted); font-size: var(--text-sm); }
.prose ul { line-height: 1.8; padding-left: 1.2em; }

.content-section { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* ---- Link-out card: icon + title + subtitle, for linking out to external
   media (YouTube, Facebook) instead of embedding it via iframe ---- */
.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: 480px;
  margin: var(--space-lg) auto;
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.link-card .icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: radial-gradient(circle, var(--color-accent-soft), #f6d6e2);
}
[data-theme="dark"] .link-card .icon { background: rgba(240, 121, 158, 0.15); }
.link-card strong { display: block; color: var(--color-text); font-size: var(--text-base); }
.link-card > span > span { display: block; color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 2px; }

/* ---- Closing CTA band (reused on homepage + Method page) ---- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: #fff;
  margin: var(--space-xl) 0;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-xs); font-size: var(--text-2xl); }
.cta-band p { color: #e4f0f7; margin-bottom: var(--space-md); }
.cta-band .btn-solid { background: #fff; color: var(--brand-blue); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-outline:hover { border-color: #fff; }

/* ---- Row of buttons inside a cta-band (e.g. a mailto CTA plus a
   secondary "copy address" action), wrapping on narrow screens ---- */
.cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Small bordered card for a CTA (icon-less, just heading/copy/button):
   Contact page's two options ("Ready to book?" / "Have a question first?") ---- */
.cta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.cta-card h2 { margin-bottom: var(--space-xs); }
.cta-card p { color: var(--color-text-muted); margin-bottom: var(--space-sm); }


