/* ============================================================
   THE FRAME MAHAL — responsive.css
   Breakpoint overrides & mobile optimizations
   Order: base → large desktop → laptop → tablet → mobile
   ============================================================ */

/* ============================================================
   LARGE DESKTOP (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {
  .hero h1 { font-size: 4rem; }
}

/* ============================================================
   LAPTOP / SMALL DESKTOP (≤ 1199px)
   ============================================================ */
@media (max-width: 1199px) {
  :root { --section-y: clamp(3.5rem, 7vw, 6rem); }

  .hero-visual { min-height: 420px; }

  .gallery-grid { column-count: 3; }

  .insta-grid { grid-template-columns: repeat(5, 1fr); }

  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .timeline::before { display: none; }
}

/* ============================================================
   TABLET (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
  /* show mobile menu toggle, hide desktop nav */
  .menu-toggle { display: inline-flex; }
  .main-nav,
  .header-actions .desktop-only { display: none !important; }

  /* hero stacks */
  .hero { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-mini-stats { justify-content: center; }
  .hero .hero-text { order: 2; }
  .hero .hero-visual { order: 1; margin-bottom: 2rem; min-height: 360px; }

  .section-title.text-start,
  .text-start .section-lead { text-align: center !important; margin-left: auto; margin-right: auto; }

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

  .gallery-grid { column-count: 3; }

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

  .cta-banner { text-align: center; }

  /* footer columns stack spacing */
  .site-footer [class*="col-"] { margin-bottom: 2rem; }
}

/* ============================================================
   LARGE MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --nav-h: 66px; --section-y: clamp(3rem, 12vw, 4.5rem); }

  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }

  .btn { padding: 0.72rem 1.4rem; font-size: 0.94rem; }
  .btn-lg { padding: 0.9rem 1.7rem; }

  .hero-visual { min-height: 320px; }
  .hero-main-img { width: clamp(180px, 60vw, 240px); }
  .polaroid { width: 130px; }
  .floaty-badge { font-size: 0.78rem; padding: 0.5rem 0.75rem; }
  .floaty-badge .ic { width: 28px; height: 28px; }

  .feature-card { padding: 1.6rem 1.3rem; }
  .feature-icon { width: 64px; height: 64px; font-size: 1.5rem; }

  .cat-card { height: 240px; }

  .timeline { grid-template-columns: 1fr; }
  .timeline-step { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 0.5rem; }
  .step-num { margin: 0; flex: none; width: 60px; height: 60px; }

  .gallery-grid { column-count: 2; column-gap: 0.7rem; }
  .gallery-item { margin-bottom: 0.7rem; }

  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }

  .testimonial-card { padding: 1.6rem; }

  .stat-num { font-size: 2.1rem; }

  .cta-banner { padding: 2.2rem 1.4rem; border-radius: var(--r-lg); }
  .cta-actions .btn { width: 100%; }

  .footer-bottom { text-align: center; }
  .footer-bottom .row > div { margin-bottom: 0.4rem; }

  .fab-whatsapp { width: 54px; height: 54px; font-size: 1.5rem; bottom: 18px; right: 18px; }
  .back-to-top { bottom: 80px; right: 22px; }

  .lightbox { padding: 1rem; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: 4px; right: 4px; }

  .accordion-button { font-size: 0.98rem; padding: 1rem 1.1rem; }
  .accordion-button::before { right: 1.1rem; }
}

/* ============================================================
   SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 .accent { white-space: normal; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-mini-stats { gap: 1.2rem; }
  .hero-mini-stats .item .num { font-size: 1.4rem; }

  .navbar-brand .logo-text .logo-name { font-size: 1.05rem; }
  .logo-mark { width: 40px; height: 40px; }

  .filter-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .filter-pill { flex: none; }

  .gallery-grid { column-count: 1; }

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

  .stat-num { font-size: 1.9rem; }

  .product-card .product-actions { opacity: 1; transform: none; } /* touch: always show */
}

/* ============================================================
   LANDSCAPE PHONES (height ≤ 500px, landscape)
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-visual { min-height: 260px; }
  .mobile-nav { width: min(70vw, 320px); }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .fab-whatsapp, .back-to-top, .menu-toggle,
  .mobile-nav, .nav-backdrop, .hero-visual, .floaty { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
