/* ============================================
   ROYAL STITCH PUNJAB — RESPONSIVE STYLES
   Mobile-First Media Queries
   ============================================ */

/* ── Base: Mobile (< 480px) ── */
@media (max-width: 480px) {
  :root {
    --navbar-height: 60px;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }

  .hero-content {
    margin-left: 0;
    padding: var(--space-3xl) var(--space-md);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .process-steps {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .process-steps::before {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: var(--space-md);
    right: var(--space-md);
  }

  .sos-button {
    bottom: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    font-size: 10px;
  }

  .modal-nav.prev { left: var(--space-sm); }
  .modal-nav.next { right: var(--space-sm); }

  .package-cards {
    grid-template-columns: 1fr;
  }

  .calculator-wrapper {
    padding: var(--space-lg);
  }

  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ── Small Phones to Tablets (481px - 768px) ── */
@media (min-width: 481px) and (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-3xl); }

  .hero-content {
    margin-left: 5%;
  }

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

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

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

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

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

/* ── Mobile Nav Breakpoint (< 900px) ── */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .navbar-links {
    display: none;
  }

  .navbar-controls .lang-toggle {
    display: none;
  }
}

/* ── Tablets (769px - 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    margin-left: 6%;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ── Desktop (> 1024px) ── */
@media (min-width: 1025px) {
  .mobile-nav {
    display: none !important;
  }

  .hamburger {
    display: none !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Large Desktop (> 1440px) ── */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Touch Device Optimizations ── */
@media (hover: none) {
  .hover-lift:hover {
    transform: none;
    box-shadow: none;
  }

  .gallery-item .gallery-overlay {
    transform: translateY(0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  }

  .whatsapp-float {
    animation: none;
  }
}

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

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ── Print Styles ── */
@media print {
  .navbar,
  .whatsapp-float,
  .sos-button,
  .mobile-nav,
  .footer-social {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }

  .section {
    display: block !important;
    opacity: 1 !important;
    page-break-inside: avoid;
  }
}
