/* ===================================================================
   RESPONSIVE DESIGN SYSTEM - KHATU SHYAM MANDIR AUSTRALIA
   Optimized for 4K, Desktop, Tablet, Large Mobile, and Small Phones (320px+)
   =================================================================== */

/* Desktops and Small Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets and Landscape Viewports (<= 992px) */
@media (max-width: 992px) {
  /* Mobile Drawer Navigation */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #140E0A;
    border-left: 1px solid var(--border-gold);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    gap: 0.35rem;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
    transition: right var(--transition-normal);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-gold);
  }

  .drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-gold-light);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
  }

  .drawer-logo {
    height: 34px;
    width: auto;
  }

  .drawer-close-btn {
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    font-size: 1.5rem;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .drawer-close-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  .drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .drawer-actions .btn {
    width: 100%;
  }

  .mobile-nav-toggle {
    display: block;
    z-index: 997;
  }

  /* Grids & Split Layouts */
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .deities-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .bank-details-grid {
    grid-template-columns: 1fr;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-sacrifice-box {
    padding: 2.25rem 1.75rem;
  }

  .about-sacrifice-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* Medium Tablets & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .top-bar-left, .top-bar-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .brand-logo-img {
    height: 50px;
  }

  .brand-main-title {
    font-size: 1.15rem;
  }

  .hero-section {
    min-height: 75vh;
    padding: 3.5rem 1rem;
  }

  .hero-logo-img {
    max-height: 130px;
  }

  .hero-shloka {
    font-size: 1.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

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

  .aarti-tabs-nav {
    flex-direction: column;
  }

  .aarti-tab-btn {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .aarti-tab-content {
    padding: 1.75rem 1.25rem;
  }

  .bank-info-box {
    padding: 2rem 1.5rem;
  }

  .faq-container {
    margin-top: 3.5rem;
  }

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

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

  .audio-player-widget {
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.8rem 0.4rem 0.5rem;
  }

  .floating-actions {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
  }
}

/* Small Tablets & Large Phones (<= 576px) */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 240px;
  }

  .aarti-schedule-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .aarti-tab-content {
    padding: 1.25rem 0.85rem;
  }

  .aarti-tab-btn {
    font-size: 0.925rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
  }

  .location-card {
    padding: 1.5rem 1rem;
  }

  .location-city {
    font-size: 1.45rem;
  }

  .bank-info-box {
    padding: 1.5rem 1rem;
  }

  .bank-value {
    font-size: 1.15rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .community-card {
    padding: 1.35rem 1rem;
  }

  .faq-item {
    padding: 1.25rem 1rem;
  }
}

/* Phones & Compact Viewports (<= 480px and down to 320px) */
@media (max-width: 480px) {
  .top-bar {
    padding: 0.35rem 0;
  }

  .top-info-item {
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .nav-container {
    padding: 0.5rem 0.85rem;
  }

  .site-brand {
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 42px;
  }

  .brand-main-title {
    font-size: 1rem;
    letter-spacing: 0;
  }

  .nav-contact-btn {
    display: none;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-story-title {
    font-size: 1.45rem;
  }

  .about-sacrifice-box {
    padding: 1.35rem 1rem;
  }

  .location-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .location-actions .btn {
    width: 100%;
  }

  .audio-player-widget {
    bottom: 0.6rem;
    left: 0.6rem;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
    max-width: calc(100vw - 110px);
  }

  .audio-artist {
    display: none;
  }

  .audio-title {
    font-size: 0.75rem;
  }

  .floating-actions {
    bottom: 0.6rem;
    right: 0.6rem;
    gap: 0.5rem;
  }

  .floating-btn {
    width: 40px;
    height: 40px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }

  .toast-notice {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}
