/* ================================================================
   LUMIÈRE — responsive.css
   Loaded LAST. Consolidated, device-wide responsive hardening:
   large desktop → tablet → phone → small phone → landspace.
   Goal: zero horizontal scroll, comfortable touch targets, and
   type/spacing that scales gracefully everywhere.
   ================================================================ */

/* ---- Global overflow & anchor-offset safety ---- */
html { scroll-padding-top: 6.5rem; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }
* { min-width: 0; }

/* ================================================================
   ≤ 1200px — large tablets / small laptops
   ================================================================ */
@media (max-width: 1200px) {
  :root { --section-pad: clamp(4.5rem, 8vw, 7rem); }
}

/* ================================================================
   ≤ 1024px — tablet landscape
   ================================================================ */
@media (max-width: 1024px) {
  .stats-strip { gap: 1.5rem 2rem; }
  .timeline { padding-left: 1rem; }
}

/* ================================================================
   ≤ 900px — tablet portrait
   ================================================================ */
@media (max-width: 900px) {
  :root { --section-pad: clamp(3.75rem, 9vw, 5.5rem); }
  .hero-headline { font-size: clamp(3rem, 12vw, 5rem); }
  .section-header { margin-bottom: 3rem; }
  .quote-block { max-width: 30ch; }
}

/* ================================================================
   ≤ 768px — large phones
   ================================================================ */
@media (max-width: 768px) {
  :root { --section-pad: 3.5rem; }

  /* Nav — tighter chrome */
  .nav { top: 1rem; gap: 0.6rem; padding: 0.5rem 0.55rem 0.5rem 1.1rem; width: min(94vw, 480px); }
  .nav-logo { font-size: 1.2rem; }
  .theme-toggle { width: 38px; height: 38px; }
  .nav-hamburger { width: 38px; height: 38px; }

  /* Prevent iOS auto-zoom on focus (inputs must be ≥16px) */
  .form-input, .menu-search input, .menu-sort select,
  .newsletter-form input, .footer-newsletter-form input, textarea { font-size: 16px; }

  /* Page hero */
  .page-hero { min-height: 50vh; padding: 8rem 0 3rem; }
  .page-hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .page-hero p { font-size: 0.95rem; }
  .breadcrumbs { margin-top: 1rem; }

  /* Section headers */
  .section-header h2 { font-size: clamp(2rem, 8vw, 3rem); }

  /* Menu category & filter rows become swipeable */
  .menu-cats, .gallery-filter, .review-filters {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
  }
  .menu-cats::-webkit-scrollbar, .gallery-filter::-webkit-scrollbar, .review-filters::-webkit-scrollbar { display: none; }
  .menu-cat, .menu-filter { flex: 0 0 auto; scroll-snap-align: start; }

  /* Review toolbar stacks */
  .review-toolbar { flex-direction: column; align-items: stretch; }
  .review-toolbar .menu-search { max-width: none; }

  /* Marquee slower/smaller already fluid */
  .marquee-item { gap: 2rem; }
}

/* ================================================================
   ≤ 640px — phones
   ================================================================ */
@media (max-width: 640px) {
  /* HOME hero */
  .hero-left { padding: 7.5rem 1.5rem 3rem; }
  .hero-headline { font-size: clamp(2.75rem, 15vw, 4rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 0.9rem; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  /* Full-width primary CTAs inside content sections */
  .footer-cta .btn-primary,
  .split-content .btn-primary,
  .event-cta .btn-primary { width: 100%; justify-content: center; }
  .event-cta { flex-direction: column; align-items: stretch; }
  .event-price { text-align: center; }

  /* Gallery preview strip — even 2-up grid */
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .gallery-strip a:nth-child(1), .gallery-strip a:nth-child(6) { grid-row: auto; aspect-ratio: 1; }

  /* Instagram — compact 3-up */
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }

  /* Stats — drop vertical rules when wrapping */
  .stats-strip { gap: 1.75rem 2.25rem; }
  .stats-strip > .divider-ornament { display: none; }
  .stat-num { font-size: clamp(2.2rem, 11vw, 3rem); }

  /* Awards row — hide separators, wrap neatly */
  .awards-row > .divider-ornament { display: none; }
  .awards-row { gap: 2rem; }

  /* Timeline tighter */
  .timeline { padding-left: 0.5rem; }
  .timeline-item { padding-left: 1.75rem; padding-bottom: 2.25rem; }
  .timeline-year { font-size: 1.5rem; }

  /* Menu toolbar stacks */
  .menu-toolbar { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .menu-search { max-width: none; }
  .menu-sort { justify-content: space-between; }

  /* Reservation wizard — swipeable step rail */
  .wizard-steps { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0.35rem; }
  .wizard-steps::-webkit-scrollbar { display: none; }
  .wstep { flex: 0 0 auto; }
  .wstep-num { width: 30px; height: 30px; font-size: 0.72rem; }
  .wstep-bar { width: 12px; margin: 0 0.15rem; }
  .wpanel-shell { padding: 1.5rem 1.25rem; }
  .wpanel h3 { font-size: 1.55rem; }
  .guest-stepper { justify-content: center; gap: 1.5rem; }
  .guest-btn { width: 52px; height: 52px; }
  .guest-count { font-size: 3rem; min-width: 70px; }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .wizard-nav .btn-primary, .wizard-nav .btn-ghost { padding-inline: 1.1rem; }

  /* Floor map — taller so tables breathe */
  .floormap { aspect-ratio: 3 / 4; padding: 1.25rem; }
  .table-seat { font-size: 0.48rem; }
  .table-seat b { font-size: 0.7rem; }

  /* Reviews */
  .rating-score { font-size: 3.6rem; }

  /* Modal / lightbox */
  .modal-overlay { padding: 1rem; }
  .modal-media { height: 180px; }
  .lightbox { padding: 2rem 0.75rem; }
  .lightbox-btn { width: 44px; height: 44px; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lightbox-close { top: 0.9rem; right: 0.9rem; }
  .lightbox-cap { font-size: 0.95rem; bottom: 0.9rem; }

  /* Newsletter forms wrap on very tight rows */
  .newsletter-form { flex-wrap: wrap; border-radius: var(--radius-card); }
  .newsletter-form .btn-primary { width: 100%; justify-content: center; }

  /* Journal side cards */
  .journal-side-card { grid-template-columns: 84px 1fr; }

  /* Comfortable touch targets */
  .chip { padding: 0.6rem 1.1rem; }
  .footer-social .social-link, .social-link { width: 42px; height: 42px; }
}

/* ================================================================
   ≤ 420px — small phones
   ================================================================ */
@media (max-width: 420px) {
  .nav { width: min(96vw, 400px); padding-left: 0.95rem; }
  .nav-logo { font-size: 1.1rem; }
  .page-hero h1 { font-size: clamp(2.1rem, 12vw, 3rem); }
  .hero-headline { font-size: clamp(2.5rem, 16vw, 3.4rem); }

  /* Menu dish — smaller thumb so copy has room */
  .dish { grid-template-columns: 92px 1fr; gap: 0.9rem; padding: 0.85rem; }
  .dish-name { font-size: 1.2rem; }

  /* Reservation areas single column */
  .area-grid { grid-template-columns: 1fr; }
  .time-grid { grid-template-columns: repeat(3, 1fr); }

  /* Summary values wrap under labels */
  .summary-row { flex-direction: column; gap: 0.15rem; }
  .summary-row dd { text-align: left; }

  /* Section rhythm */
  :root { --section-pad: 3rem; }
  .section-header { margin-bottom: 2.25rem; }
}

/* ================================================================
   Landscape phones (short viewport)
   ================================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 6rem 3rem; }
  .hero-left { padding-top: 6rem; }
  .page-hero { min-height: auto; padding: 7rem 0 2.5rem; }
  /* Compact the fullscreen menu when the viewport is short */
  .mobile-menu__nav { padding: 1rem 0; gap: 0; }
  .mobile-menu__nav a { font-size: 1.35rem; }
  .mobile-menu__foot { padding-top: 1rem; }
}

/* ================================================================
   Coarse-pointer (touch) refinements — regardless of width
   ================================================================ */
@media (hover: none) and (pointer: coarse) {
  /* Reveal masonry captions without hover */
  .masonry-item .m-cap { opacity: 1; transform: none; }
  .masonry-item::after { opacity: 0.35; }
  /* Ensure tap targets */
  .nav-link, .footer-col a, .mega-link { padding-block: 0.15rem; }
}

/* ================================================================
   Very large screens — keep content from over-stretching
   ================================================================ */
@media (min-width: 1800px) {
  :root { --container: min(88vw, 1360px); --container-wide: min(90vw, 1680px); }
  .hero-headline { font-size: clamp(5rem, 6vw, 8rem); }
}
