/* ============================================
   🕉️ CHAMUNDA PUJA SERVICE — Responsive
   ============================================ */

/* ── Up to 1280px ── */
@media (max-width: 1280px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-8);
  }

  .gallery-masonry {
    columns: 3;
  }

  .review-card {
    flex: 0 0 calc(50% - var(--sp-6));
  }
}

/* ── Up to 1024px (Tablet Landscape) ── */
@media (max-width: 1024px) {
  :root {
    --section-padding: var(--sp-16) var(--sp-6);
  }

  .nav-menu {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-8);
  }

  .about-stats {
    max-width: 400px;
    margin: 0 auto var(--sp-6);
  }

  .about-details {
    justify-content: center;
  }

  .about-buttons {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .pujas-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .gallery-masonry {
    columns: 2;
  }
}

/* ── Up to 768px (Tablet & Smartphone Overhaul) ── */
@media (max-width: 768px) {
  :root {
    --fs-5xl: 2rem;
    --fs-4xl: 1.65rem;
    --fs-3xl: 1.4rem;
    --fs-2xl: 1.2rem;
    --section-padding: 40px 16px;
    --nav-height: 56px;
  }

  html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  /* ━━━━━ COMPACT APP NAVBAR (< 768px) ━━━━━ */
  .navbar {
    height: 56px !important;
    padding: 6px 0 !important;
  }

  .nav-logo .logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.2rem !important;
  }

  .nav-logo .logo-text {
    font-size: 0.95rem !important;
  }

  .nav-logo .logo-text small {
    font-size: 0.65rem !important;
  }

  .nav-book-btn {
    display: none !important; /* Delegated to bottom dock */
  }

  .nav-menu {
    display: none !important;
  }

  .nav-actions {
    gap: 6px !important;
  }

  .lang-switcher button {
    padding: 3px 7px !important;
    font-size: 10px !important;
  }

  /* ━━━━━ HERO SECTION STREAMLINED (< 768px) ━━━━━ */
  .hero {
    min-height: auto !important;
    padding: 72px 16px 36px !important;
    overflow: hidden !important;
  }

  .hero-content {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-om {
    font-size: 2.2rem !important;
    margin-bottom: 8px !important;
  }

  .hero-symbol {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 8px !important;
  }

  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    margin-bottom: 8px !important;
    word-wrap: break-word !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    letter-spacing: 0 !important;
  }

  .hero-description {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-bottom: 18px !important;
    padding: 0 4px !important;
  }

  .hero-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    justify-content: center !important;
    border-radius: 10px !important;
  }

  .hero-buttons .btn-primary {
    grid-column: span 2 !important;
    font-size: 0.9rem !important;
    padding: 12px 16px !important;
  }

  /* ━━━━━ QUICK BOOK FORM CARD (< 768px) ━━━━━ */
  .quick-book-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }

  .quick-book-widget h3 {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
  }

  .quick-book-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .quick-book-form input {
    width: 100% !important;
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
  }

  .hero-scroll-indicator {
    display: none !important;
  }

  /* ━━━━━ ABOUT SECTION (< 768px) ━━━━━ */
  .about-card {
    padding: 16px !important;
    border-radius: 18px !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .about-photo {
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto !important;
  }

  .about-details {
    font-size: 0.88rem !important;
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .about-details h2 {
    font-size: 1.35rem !important;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .about-stat {
    padding: 8px 4px !important;
  }

  .about-stat .stat-number {
    font-size: 1.15rem !important;
  }

  .about-stat .stat-label {
    font-size: 0.65rem !important;
  }

  /* ━━━━━ SINGLE COLUMN GRIDS ON MOBILE (< 768px) ━━━━━ */
  .astrology-grid,
  .services-grid,
  .pujas-grid,
  .why-grid,
  .panchang-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .astro-card,
  .puja-card,
  .service-card,
  .why-card {
    width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
  }

  .astro-card h3,
  .puja-card h3,
  .service-card h3,
  .why-card h3 {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  .astro-card p,
  .puja-card p,
  .service-card p,
  .why-card p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  .gallery-masonry {
    columns: 1 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center !important;
  }

  .footer-brand {
    text-align: center !important;
  }

  .footer-brand .footer-logo {
    justify-content: center !important;
  }

  /* ━━━━━ CLEAN OVERLAY FLOATS ON MOBILE ━━━━━ */
  .ai-chat-launcher {
    display: none !important; /* Handled by Mobile Dock Bar */
  }

  .whatsapp-float {
    display: none !important; /* Handled by Mobile Dock Bar */
  }

  .back-to-top {
    display: none !important;
  }

  .ai-chat-panel {
    right: 10px !important;
    left: 10px !important;
    bottom: 66px !important;
    width: auto !important;
    height: 84vh !important;
    border-radius: 20px !important;
  }

  /* ━━━━━ MOBILE NATIVE BOTTOM SHEETS (MODALS) ━━━━━ */
  .wizard-overlay, .astro-modal-overlay, .vc-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .wizard-container, .astro-modal-container, .vc-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    border-radius: 24px 24px 0 0 !important;
    animation: slide-up-bottom-sheet 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
}

/* ━━━━━ MOBILE STICKY BOTTOM DOCK (MOBILE ONLY < 768px) ━━━━━ */
.mobile-dock-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px !important; /* Prevent content cutoff by dock bar */
  }

  .mobile-dock-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 9998;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  }

  .mobile-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    flex: 1;
  }

  .mobile-dock-item .dock-icon {
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-dock-item.whatsapp-dock {
    color: #25D366;
  }

  .mobile-dock-item.ai-dock {
    color: #FFD700;
  }

  .mobile-dock-item.book-dock {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white !important;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
  }

  .mobile-dock-item:active {
    transform: scale(0.92);
  }
}

@keyframes slide-up-bottom-sheet {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ━━━━━ INSPIRA UI & ANIMATE UI GLASS GLOW CARDS ━━━━━ */
.puja-card, .service-card, .astro-card, .why-card {
  position: relative;
  overflow: hidden;
}

.puja-card::before, .service-card::before, .astro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.puja-card:hover::before, .service-card:hover::before, .astro-card:hover::before {
  left: 150%;
}

/* ── Print ── */
@media print {
  .navbar,
  .whatsapp-float,
  .back-to-top,
  .mobile-dock-bar,
  .hero-particles,
  .light-rays,
  .mouse-glow {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 2rem 0;
  }
}
