/* ═══════════════════════════════════════════════════════
   MAA BAGLAMUKHI TEMPLE — RESPONSIVE CSS
   Breakpoints: 1024px · 768px · 480px
   ═══════════════════════════════════════════════════════ */

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 4rem 1.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 10px;
  }

  .nav-btn {
    padding: 7px 14px;
    font-size: 10px;
  }
}

/* ── TABLET/MOBILE (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --section-pad: 3rem 1.25rem;
    --nav-height: 60px;
  }

  /* Nav — show hamburger */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Logo text size */
  .logo-main { font-size: 12px; }
  .logo-sub  { display: none; }

  /* Hero */
  .hero {
    padding: 3rem 1.25rem 2rem;
    min-height: 90vh;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .hero-stats {
    gap: 1rem;
    padding: 1rem;
  }

  .stat-divider { display: none; }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  /* Temple 3D wrap smaller */
  .temple-3d-wrap {
    width: 220px;
    height: 180px;
  }

  /* Info strip stacks */
  .info-strip {
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
  }

  .strip-item {
    flex: 1;
    min-width: 140px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* Language bar */
  .lang-bar {
    padding: 0 1rem;
    justify-content: center;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* ── MOBILE (≤480px) ── */
@media (max-width: 480px) {
  :root {
    --section-pad: 2.5rem 1rem;
  }

  html { font-size: 15px; }

  .hero {
    padding: 2.5rem 1rem 2rem;
    min-height: 85vh;
  }

  .hero-shloka {
    font-size: 10px;
    padding: 0 0.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .info-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .strip-item { width: 100%; }

  /* Section headers */
  .section-header {
    margin-bottom: 2rem;
  }

  /* Footer */
  .footer-logo { font-size: 13px; }

  .mobile-links a { font-size: 12px; }

  /* Hero CTA full width */
  .btn {
    font-size: 11px;
    padding: 12px 20px;
    letter-spacing: 1.5px;
  }
}

/* ── LARGE SCREENS (≥1440px) ── */
@media (min-width: 1440px) {
  :root {
    --max-width: 1320px;
  }

  html { font-size: 17px; }
}

/* ── PRINT ── */
@media print {
  .navbar, .lang-bar, .back-to-top,
  .hero-canvas, #diya-canvas,
  .hero-ctas, .mobile-menu { display: none !important; }

  body { background: white; color: black; }

  .hero { min-height: auto; padding: 2rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
