/* ============================================================
   Emily Knot & Style — Mobile Responsive Overrides
   Applied AFTER main style.css for maximum specificity
   ============================================================ */

/* ── Base Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box !important; }
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* ── Tablet (≤1024px) ──────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .hero { grid-template-columns: 1fr !important; }
  .hero-gallery { display: none !important; }
  .hero-content { padding: 60px 40px !important; }
  .about-story { grid-template-columns: 1fr !important; gap: 40px !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .booking-layout { grid-template-columns: 1fr !important; }
}

/* ── Mobile (≤768px) ───────────────────────────────────────── */
@media screen and (max-width: 768px) {
  /* Navbar */
  .nav-container { padding: 0 16px !important; height: 60px !important; }
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important; right: 0 !important;
    background: white !important;
    padding: 16px !important;
    z-index: 998 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
  }
  .nav-toggle { display: flex !important; }
  .logo-sub { display: none !important; }
  .nav-logo-img { width: 36px !important; height: 36px !important; }
  .logo-main { font-size: .95rem !important; }

  /* Location banner */
  .location-banner {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    font-size: .75rem !important;
    text-align: center !important;
  }
  .banner-inner { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; }
  .banner-close { position: static !important; transform: none !important; }

  /* Hero */
  .hero { min-height: auto !important; }
  .hero-content { padding: 40px 20px !important; min-height: 60vh !important; }
  .hero h1 { font-size: 2rem !important; }
  .hero-actions { flex-direction: column !important; gap: 12px !important; }
  .hero-actions .btn { width: 100% !important; justify-content: center !important; }
  .hero-stats { gap: 16px !important; flex-wrap: wrap !important; }
  .stat-num { font-size: 1.4rem !important; }

  /* Sections */
  .section { padding: 48px 0 !important; }
  .container { padding: 0 16px !important; }
  .section-header { margin-bottom: 32px !important; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .locations-grid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .locations-detail-grid { grid-template-columns: 1fr !important; }
  .faq-grid { grid-template-columns: 1fr !important; }
  .maps-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .steps-grid { grid-template-columns: 1fr 1fr !important; }

  /* CTA */
  .cta-actions { flex-direction: column !important; align-items: stretch !important; }
  .cta-actions .btn { width: 100% !important; justify-content: center !important; }

  /* Footer */
  .footer-bottom .container { flex-direction: column !important; text-align: center !important; gap: 8px !important; }

  /* About */
  .about-badges { gap: 16px !important; flex-wrap: wrap !important; }
  .about-story-img { max-height: 350px !important; }

  /* Contact */
  .quick-wa-btns { flex-direction: column !important; }

  /* Booking */
  .booking-layout { grid-template-columns: 1fr !important; }

  /* Shop */
  .products-grid { grid-template-columns: 1fr 1fr !important; }
  .shop-controls { flex-direction: column !important; align-items: stretch !important; }
  .shop-right { flex-wrap: wrap !important; }

  /* Detail modal */
  .detail-modal { grid-template-columns: 1fr !important; max-height: 95vh !important; }
  .detail-modal-img-wrap { min-height: 200px !important; border-radius: 16px 16px 0 0 !important; }
}

/* ── Small Mobile (≤480px) ─────────────────────────────────── */
@media screen and (max-width: 480px) {
  .hero-content { padding: 32px 16px !important; }
  .hero h1 { font-size: 1.7rem !important; }
  .gallery-grid { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: 1fr !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .steps-grid { grid-template-columns: 1fr !important; }
  .hero-stats { justify-content: space-between !important; }
  .stat-item { flex: 1 !important; min-width: 60px !important; text-align: center !important; }
  .form-card { padding: 20px 16px !important; }
  .page-hero { padding: 60px 0 40px !important; }
  .page-hero h1 { font-size: 1.8rem !important; }
}