/* ==========================================================================
   NILKANTH FURNITURE - RESPONSIVE STYLESHEET
   Breakpoints:
   - 1200px (Desktop / Compact Laptops)
   - 992px  (Tablets Landscape)
   - 768px  (Tablets Portrait / Large Phones)
   - 576px  (Mobile Landscape & Phones)
   - 390px  (Standard Compact Mobile)
   - 320px  (Small Mobile)
   ========================================================================== */

/* Large Desktops and Monitors (1440px and up) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1360px;
  }
  .hero-content {
    max-width: 900px;
  }
}

/* Compact Desktops and Laptops (max-width: 1200px) */
@media (max-width: 1200px) {
  .nav-list {
    gap: 18px;
  }
  .nav-link {
    font-size: 0.825rem;
  }
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 36px;
  }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
  :root {
    --header-height: 74px;
    --section-padding: 80px;
  }

  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* Header & Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    padding: 20px 24px 32px;
    flex-direction: column;
    align-items: stretch;
    transition: right var(--transition-base);
    z-index: 1030;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-cream-border);
    width: 100%;
    flex-shrink: 0;
  }

  .mobile-nav-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
  }

  .mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
  }

  .mobile-nav-close:hover {
    background: var(--color-primary);
    color: var(--color-gold);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
    flex-grow: 1;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-cream-border);
    color: var(--color-primary-dark);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-nav-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--color-cream-border);
    width: 100%;
    flex-shrink: 0;
  }

  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 31, 32, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-img {
    height: 440px;
  }

  .about-accent-frame {
    display: none;
  }

  .about-floating-badge {
    right: 16px;
    bottom: 16px;
  }

  /* Categories & Products */
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Why Grid */
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Modal */
  .modal-container {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-image-col {
    min-height: 260px;
    height: 260px;
  }

  .modal-content-col {
    padding: 28px 24px;
  }

  /* Lightbox buttons repositioning */
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header-call-btn {
    display: none !important;
  }

  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-header {
    margin-bottom: 38px;
  }

  .hero-content {
    padding: 30px 0 60px;
  }

  .hero-btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

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

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

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
    gap: 12px;
  }

  .gallery-item.span-w2 {
    grid-column: span 1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info-card,
  .enquiry-card {
    padding: 32px 20px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .floating-whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .has-floating-whatsapp .back-to-top-btn {
    bottom: 84px;
  }
}

/* Small Phones (max-width: 576px) */
@media (max-width: 576px) {
  .container,
  .container-narrow {
    padding-left: 18px;
    padding-right: 18px;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.span-h2 {
    grid-row: span 1;
  }

  .brand-logo {
    height: 38px;
  }

  .site-header.scrolled .brand-logo {
    height: 34px;
  }

  .filter-tabs {
    width: 100%;
    justify-content: center;
  }

  .filter-tab {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }

  .promo-section {
    padding: 80px 0;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-content-col {
    padding: 24px 18px;
  }

  .modal-product-title {
    font-size: 1.45rem;
  }

  .faq-trigger {
    padding: 18px 20px;
    font-size: 1.02rem;
  }

  .faq-content {
    padding: 0 20px;
  }

  .faq-item.active .faq-content {
    padding-bottom: 18px;
  }
}

/* Ultra Compact Screens (320px - 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
  .category-title,
  .product-name {
    font-size: 1.1rem;
  }
}

