/* ============================================================
   responsive.css — Mobile-first breakpoints
   480px | 768px | 1024px
   ============================================================ */

/* ── 1024px — Tablets landscape ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-snippet .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img { max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-shrines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { --nav-height: 100px; }

  /* Shrines orbit — scale on tablets */
  .orbit-node { width: 130px; height: 130px; }
  .orbit-node-name {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    bottom: -8px;
    font-size: 0.46rem;
    padding: 0.28rem 0.34rem;
  }
  .orbit-center { transform: translate(-50%, -50%) scale(0.8); }
  .orbit-slot-2 { top: calc(50% - 65px); }
  .orbit-slot-3 { top: calc(50% - 65px); }
}

/* ── 768px — Tablets portrait ── */
@media (max-width: 768px) {
  body { --nav-height: 60px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  /* Navbar — collapse to single row on mobile */
  .nav-brand-row {
    padding: 0 1.25rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
  }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo-sub { display: none; }

  /* Hide the links row, show hamburger */
  .nav-links-row { display: none; }
  .nav-links-row.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 0;
  }
  .nav-links { flex-direction: column; width: 100%; }
  .nav-links a {
    padding: 0.6rem 0;
    width: 100%;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active { border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--color-primary); }

  /* Controls inside open mobile menu */
  .nav-controls {
    position: static;
    transform: none;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    justify-content: flex-start;
  }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Hero */
  .hero { height: 70vh; min-height: 380px; }
  .slide-content h1 { font-size: 1.7rem; }
  .slide-content p  { font-size: 0.95rem; }
  .slider-arrow { width: 34px; height: 34px; font-size: 0.95rem; }
  .slider-arrow.prev { left: 0.75rem; }
  .slider-arrow.next { right: 0.75rem; }

  /* Shrines orbit — scale down for tablets portrait */
  .orbit-stage { aspect-ratio: 4 / 3; max-width: 100%; }
  .orbit-node { width: 110px; height: 110px; }
  .orbit-node-name {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    bottom: -7px;
    font-size: 0.42rem;
    padding: 0.24rem 0.3rem;
  }
  .orbit-center { transform: translate(-50%, -50%) scale(0.65); }
  .orbit-slot-2 { top: calc(50% - 55px); }
  .orbit-slot-3 { top: calc(50% - 55px); }

  .shrine-img-frame { max-height: 220px; }

  /* Events */
  .event-card { grid-template-columns: 1fr; gap: 1rem; }
  .event-date-box { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.9rem; }
  .event-date-box .day { font-size: 1.4rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Lightbox nav */
  .lightbox-nav.prev { left: 0.35rem; }
  .lightbox-nav.next { right: 0.35rem; }

  /* Booking */
  .pooja-cards { grid-template-columns: 1fr; }
  .form-row    { grid-template-columns: 1fr; }
  .booking-form-wrap { padding: 1.5rem; }

  /* Donation */
  .donation-layout { grid-template-columns: 1fr; }
  .donation-bank-details { grid-template-columns: 1fr; gap: 0.45rem 1rem; }
  .donation-upi-section { max-width: 250px; margin: 0 auto; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .about-shrines-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .about-shrine-card { padding: 1rem; }
  .about-shrine-name { font-size: 0.9rem; }
  .about-shrine-loc { font-size: 0.78rem; }

  body.shrines-page .page-hero { padding: 1.5rem 0; }
  body.shrines-page .page-hero h1 { font-size: 1.42rem; }
  body.shrines-page .page-hero p { font-size: 0.8rem; }
}

/* ── 480px — Mobile ── */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section   { padding: 3rem 0; }

  .mk-countdown-card h3 { font-size: 0.96rem; }
  #mk-countdown { font-size: 0.94rem; }
  .invitation-popup-content { width: 94vw; }
  .invitation-close { width: 30px; height: 30px; font-size: 1.25rem; }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.35rem; }

  .cards-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card { padding: 1.25rem 0.9rem; }
  .card-icon { font-size: 1.7rem; }
  .card h3   { font-size: 0.82rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Shrines orbit — phone scale */
  .orbit-stage  { aspect-ratio: 16 / 10; overflow: visible; }
  .orbit-node   { width: 72px; height: 72px; gap: 3px; padding: 0.3rem; }
  .orbit-node-name {
    width: calc(100% - 6px);
    max-width: calc(100% - 6px);
    bottom: -6px;
    font-size: 0.34rem;
    padding: 0.2rem 0.22rem;
    letter-spacing: 0;
  }
  .orbit-node.active {
    box-shadow: 0 0 0 4px rgba(212,175,55,.28), 0 6px 18px rgba(0,0,0,.28);
  }
  .orbit-center { transform: translate(-50%, -50%) scale(0.42); }
  .orbit-slot-2 { top: calc(50% - 36px); }
  .orbit-slot-3 { top: calc(50% - 36px); }
  .orbit-ring-lg { width: 88%; height: 78%; }
  .orbit-ring-sm { width: 50%; height: 40%; }

  .timings-table th,
  .timings-table td { padding: 0.75rem 0.75rem; font-size: 0.88rem; }

  .thankyou-card { padding: 2.5rem 1.25rem; }
  .page-hero h1 { font-size: 1.55rem; }

  .booking-form-wrap { padding: 1.1rem; }
  .lightbox-inner img { max-width: 95vw; max-height: 68vh; }

  body.shrines-page .page-hero { padding: 1.15rem 0; }
  body.shrines-page .page-hero h1 { font-size: 1.22rem; }
  body.shrines-page .page-hero p { font-size: 0.74rem; }
}
