/* ============================================================
   Meena Music Academy — meenamusicacademy.org
   Theme: warm & cultural · dark green-to-black · gold accents
   ============================================================ */

:root {
  --bg: #060906;
  --band: #091509;
  --card: #0B110B;
  --card-border: #253826;
  --fill-deep: #0C2412;
  --btn-green: #123A1E;
  --gold: #C9A227;
  --on-gold: #1F1802;
  --heading: #F2F7EF;
  --heading-soft: #EAF2E8;
  --body: #9FB89F;
  --muted: #7E977F;
  --footer-text: #5E7A5F;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0938rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--heading); font-weight: 600; line-height: 1.2; }

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section { padding: 88px 0; }
.section-band { background: var(--band); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; opacity: 0.92; }

.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-green { background: var(--btn-green); color: var(--heading-soft); border: 1px solid #1E5230; }
.btn-dark { background: var(--bg); color: var(--heading-soft); }
.btn-outline-dark { background: transparent; color: var(--on-gold); border: 2px solid var(--on-gold); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 6, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--fill-deep);
  object-fit: contain;
}
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; color: var(--gold); font-size: 1.5rem; line-height: 1.15; font-weight: 600; letter-spacing: 0.02em; }
.brand-name small { display: block; font-family: var(--font-sans); color: var(--heading-soft); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 24px; height: 2px;
  background: var(--heading-soft);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle-label span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle-label span::after { content: ""; position: absolute; top: 7px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--body); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--heading); text-decoration: none; }
.nav-links a.btn-gold { color: var(--on-gold); padding: 10px 22px; font-size: 0.9rem; }
.nav-links a.btn-gold:hover { color: var(--on-gold); }
.nav-links a.btn-wa-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.nav-links a.btn-wa-icon .btn-ico { margin-right: 0; width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--band) 0%, var(--bg) 100%); padding: 110px 0 90px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); margin-bottom: 22px; }
.hero h1 em { font-family: var(--font-script); font-style: normal; color: var(--gold); font-size: 1.35em; line-height: 1; display: block; margin-top: 4px; }
.hero p { font-size: 1.125rem; max-width: 100%; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.hero-note { color: var(--muted); font-size: 0.9rem; margin-top: 20px; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 44px 0; text-align: center; }
.stat-number { font-family: var(--font-serif); color: var(--gold); font-size: 2.5rem; line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 30px;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--fill-deep);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.card-icon svg { display: block; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--heading); }
.card p { color: var(--body); font-size: 0.975rem; line-height: 1.65; }

/* ---------- Teacher ---------- */
.teacher { background: var(--band); }
.teacher-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.teacher-photo {
  background: var(--fill-deep);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 4rem;
  overflow: hidden;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-body h2 { font-size: clamp(1.75rem, 4vw, 2.375rem); margin-bottom: 18px; }
.teacher-body p { margin-bottom: 18px; }
.teacher-body .btn { margin-top: 10px; }

/* ---------- Classes ---------- */
.class-card { position: relative; display: flex; flex-direction: column; }
.class-card.popular { border-color: var(--gold); }
.badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.class-level { color: var(--gold); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.class-card ul { list-style: none; margin: 18px 0 26px; flex: 1; }
.class-card li { color: var(--muted); font-size: 0.95rem; padding: 7px 0 7px 26px; position: relative; }
.class-card li::before { content: "♪"; color: var(--gold); position: absolute; left: 0; }
.class-card .btn { align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--fill-deep); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.cta-band-inner { text-align: center; padding: 72px 24px; }
.cta-band h2 { color: var(--gold); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: var(--body); max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Prose (About) ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 24px; }
.prose h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 48px 0 18px; }
.prose strong { color: var(--heading-soft); }
.page-hero { background: linear-gradient(180deg, var(--band) 0%, var(--bg) 100%); padding: 90px 0 70px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--card-border); padding: 18px 0 14px; color: var(--footer-text); }
.footer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; padding-bottom: 14px; border-bottom: 1px solid var(--card-border); font-size: 0.84rem; }
.footer-top a { color: var(--footer-text); }
.footer-top a:hover { color: var(--gold); text-decoration: none; }
.footer-top .pipe { margin: 0 12px; color: var(--card-border); flex-shrink: 0; }
.footer-bottom { padding-top: 12px; text-align: center; font-size: 0.8rem; }

/* ---------- Footer social ---------- */
.footer-social { display: flex; gap: 10px; flex-shrink: 0; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--footer-text);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--fill-deep);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); background: var(--btn-green); box-shadow: 0 6px 28px rgba(201, 162, 39, 0.5); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: var(--gold); }

/* ---------- Button icons ---------- */
.btn-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; display: inline-block; fill: currentColor; }

/* ---------- Reviews ---------- */
.reviews-cta { text-align: center; margin-top: 44px; }
.elfsight-wrap { max-width: 960px; margin: 0 auto; }
/* Force Elfsight widget to inherit site dark theme */
.elfsight-wrap .eapps-google-reviews-widget,
.elfsight-wrap .eapps-widget-panel { background: transparent !important; }
.elfsight-wrap .eapps-google-reviews-review-body,
.elfsight-wrap .eapps-google-reviews-review-card { background: var(--card) !important; border: 1px solid var(--card-border) !important; border-radius: 12px !important; }
.elfsight-wrap .eapps-google-reviews-review-body-text,
.elfsight-wrap .eapps-google-reviews-review-body p { color: var(--body) !important; font-family: var(--font-sans) !important; }
.elfsight-wrap .eapps-google-reviews-review-name,
.elfsight-wrap .eapps-google-reviews-header-summary-name { color: var(--heading) !important; }
.elfsight-wrap .eapps-google-reviews-review-star,
.elfsight-wrap [class*="star"] svg { fill: var(--gold) !important; color: var(--gold) !important; }
.elfsight-wrap .eapps-google-reviews-review-date { color: var(--muted) !important; }

/* ---------- Map ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: stretch; }
.map-info { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 36px 30px; }
.map-info h3 { font-size: 1.25rem; margin-bottom: 14px; }
.map-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.map-info a { color: var(--gold); }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.map-actions .btn { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.map-actions .btn svg { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }
.map-frame { border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; min-height: 360px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .teacher-grid { grid-template-columns: 1fr; gap: 36px; }
  .map-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-photo { max-width: 380px; margin: 0 auto; }
  /* footer already 2-col, no change needed */

  .teacher-body { text-align: center; }
  .teacher-body .btn { display: inline-block; }

}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .page-hero { padding: 64px 0 48px; }
  .cta-band-inner { padding: 56px 24px; }
  .container { padding: 0 20px; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .footer-top .pipe { display: none; }

  .hero-inner { text-align: center; margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }

  .card { text-align: center; }
  .card-icon { margin-left: auto; margin-right: auto; }

  .class-card { text-align: center; }
  .class-card ul { text-align: left; display: inline-block; margin-left: auto; margin-right: auto; }
  .class-card .btn { align-self: center; }

  .teacher-body { text-align: center; }
  .teacher-photo { margin: 0 auto; }

  .map-info { text-align: center; }
  .map-actions { justify-content: center; }

  .footer-grid > div { text-align: center; }
  .footer ul { display: inline-block; text-align: left; }
  .footer-contact { align-items: center; }

  .cta-band-inner { text-align: center; }
  .cta-band .hero-ctas { justify-content: center; }

  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--band);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 24px 20px;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}
