/* ================================================================
   CAFE LUGANO — mobile.css
   Complete Mobile Responsiveness Overrides
   Loaded last — additive only, no existing styles modified.
   ================================================================

   Table of Contents:
   01. Global Resets & Overflow Prevention
   02. Touch Target Enforcement
   03. Container
   04. Navigation
   05. Hero Cinematic Section
   06. Editorial / Our Story Section
   07. Philosophy / Coffee Circle Section
   08. Reviews Section
   09. Reel / Facebook Embed
   10. Section Headers & Typography
   11. Buttons
   12. Footer
   13. Menu Page
   14. Contact Page
   15. Gallery Page & Lightbox
   16. Hero (Standard Pages)
   17. Forms
   18. Hours Section
   19. Cart Sidebar
   20. Sections / Pages Spacing
   21. Modal
   22. Toast
   23. Carousel & Featured Cards
   24. Botanical Decorations
   25. Global Typography Scaling
   26. Touch Device — Remove Hover Effects
   27. Safe Area Insets (iPhone Notch / Home Bar)
   28. Overflow Prevention on Animations
   29. WebKit / Safari Fixes
   30. Reservations Page

   ================================================================ */

/* ── 01. GLOBAL RESETS & OVERFLOW PREVENTION ─────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent flex/grid children from overflowing their containers */
.container,
.footer-grid > div,
.philosophy-col,
.editorial-split-text,
.editorial-split-img,
.review-card,
.contact-card-luxury,
.contact-card-block,
.footer-col,
.footer-brand,
.cart-item-info {
  min-width: 0;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

/* ── 02. TOUCH TARGET ENFORCEMENT ────────────────────────────── */

@media (max-width: 1024px) {
  .btn,
  .btn-reserve,
  .btn-premium-primary,
  .btn-premium-secondary,
  .mobile-toggle,
  .mobile-menu-close,
  .cart-close,
  .qty-btn,
  .carousel-arrow,
  .lightbox-nav {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── 03. CONTAINER ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 16px;
  }
}

/* ── 04. NAVIGATION ───────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Solid navbar — no glass/blur on mobile */
  .navbar.scrolled {
    background: var(--bg-primary) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Show brand wordmark on mobile */
  .nav-brand-wordmark {
    display: flex !important;
  }

  .nav-brand-name {
    font-size: 0.82rem;
    letter-spacing: 3px;
  }

  .nav-brand-sub {
    display: none;
  }

  .nav-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 20px;
    gap: 16px;
  }

  /* Prevent background scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 16px;
  }

  .nav-brand-name {
    font-size: 0.76rem;
    letter-spacing: 2.5px;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    padding: 0 14px;
  }

  .nav-brand-name {
    font-size: 0.68rem;
    letter-spacing: 2px;
  }

  .mobile-menu {
    width: 100vw;
    border-left: none;
  }

  .mobile-nav {
    padding: 32px 20px;
  }

  .mobile-nav a {
    font-size: 1.35rem;
    padding: 15px 0;
  }
}

@media (max-width: 320px) {
  .nav-brand-name {
    font-size: 0.62rem;
    letter-spacing: 1.8px;
  }

  .mobile-nav a {
    font-size: 1.2rem;
    padding: 13px 0;
  }
}

/* ── 05. HERO CINEMATIC SECTION ──────────────────────────────── */

@media (max-width: 767px) {
  .hero-cinematic {
    padding-bottom: 56px;
    overflow: hidden;
  }

  .hero-cinematic .container {
    padding-top: 20px;
  }

  .hero-cinematic-text {
    text-align: left;
  }

  .hero-cinematic-text p {
    font-size: 0.94rem;
    line-height: 1.8;
  }

  /* Social icons — safe inset so they don't clip on small screens */
  .hero-specials-social {
    right: 16px;
    bottom: 16px;
    gap: 14px;
  }

  .hero-specials-social svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .hero-cinematic-bg-container {
    height: 48vh;
    min-height: 290px;
  }

  .hero-cinematic-text h1 {
    font-size: clamp(1.95rem, 7.5vw, 2.5rem);
    line-height: 1.18;
  }

  .hero-cinematic-text p {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .hero-cinematic-actions {
    gap: 12px;
  }

  .hero-cinematic-actions .btn-primary {
    padding: 14px 28px;
    font-size: 0.68rem;
    gap: 10px;
  }
}

@media (max-width: 414px) {
  .hero-cinematic-bg-container {
    height: 46vh;
    min-height: 270px;
  }

  .hero-cinematic-text h1 {
    font-size: clamp(1.85rem, 7.2vw, 2.3rem);
  }
}

@media (max-width: 390px) {
  .hero-cinematic-bg-container {
    height: 44vh;
    min-height: 255px;
  }

  .hero-cinematic-text h1 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .hero-cinematic-text p {
    font-size: 0.87rem;
    line-height: 1.75;
  }
}

@media (max-width: 375px) {
  .hero-cinematic-bg-container {
    height: 43vh;
    min-height: 248px;
  }

  .hero-cinematic-text h1 {
    font-size: clamp(1.7rem, 7vw, 2rem);
  }
}

@media (max-width: 360px) {
  .hero-cinematic-bg-container {
    height: 40vh;
    min-height: 235px;
  }

  .hero-cinematic-text h1 {
    font-size: clamp(1.6rem, 6.8vw, 1.9rem);
  }

  .hero-cinematic-text p {
    font-size: 0.84rem;
  }

  .hero-cinematic-actions .btn-primary {
    padding: 13px 22px;
    font-size: 0.65rem;
  }
}

@media (max-width: 320px) {
  .hero-cinematic-bg-container {
    height: 38vh;
    min-height: 210px;
  }

  .hero-cinematic-text h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .hero-cinematic-text p {
    font-size: 0.82rem;
  }

  .hero-cinematic-actions {
    gap: 10px;
  }

  .hero-cinematic-actions .btn-primary {
    padding: 12px 18px;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
  }
}

/* ── 06. EDITORIAL / OUR STORY SECTION ───────────────────────── */

/* Tablet landscape — grid stacks, card centred */
@media (max-width: 1024px) {
  .editorial-square-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 14px;
  }
}

@media (max-width: 768px) {
  .editorial-section {
    padding: 64px 0;
  }

  .editorial-split-text {
    padding: 40px 24px;
    text-align: center;
    align-items: center;
  }

  .editorial-split-text p {
    max-width: 100%;
  }

  .editorial-split-img {
    padding: 0 24px 40px;
  }

  .editorial-arch,
  .editorial-square-card {
    max-width: 340px;
    margin: 0 auto;
  }

  /* Square card: tighten padding on smaller screens */
  .editorial-square-card {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .editorial-split-text {
    padding: 32px 20px;
  }

  .editorial-split-img {
    padding: 0 20px 32px;
  }

  .editorial-arch {
    max-width: 100%;
    max-height: 400px;
    border-radius: 160px 160px 0 0;
  }

  /* Square card fills available width, keep square ratio */
  .editorial-square-card {
    max-width: 100%;
    padding: 10px;
  }
}

@media (max-width: 375px) {
  .editorial-arch {
    max-height: 360px;
    border-radius: 140px 140px 0 0;
  }

  .editorial-square-card {
    max-width: 100%;
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .editorial-split-text {
    padding: 28px 16px;
  }

  .editorial-split-img {
    padding: 0 16px 28px;
  }

  .editorial-arch {
    max-height: 320px;
    border-radius: 120px 120px 0 0;
  }

  .editorial-square-card {
    max-width: 100%;
    padding: 8px;
  }
}

@media (max-width: 320px) {
  .editorial-arch {
    max-height: 280px;
    border-radius: 100px 100px 0 0;
  }

  .editorial-square-card {
    max-width: 100%;
    padding: 6px;
  }
}

/* ── 07. PHILOSOPHY / COFFEE CIRCLE SECTION ──────────────────── */

@media (max-width: 1024px) {
  .philosophy-grid {
    gap: 48px;
    grid-template-columns: 1fr 1fr;
  }

  /* Move coffee circle to full width on its own row */
  .philosophy-col.align-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .philosophy-col h3 {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Reset order and centre all columns when stacked */
  .philosophy-col.align-center {
    order: 0;
    grid-column: auto;
  }

  .philosophy-col.align-left,
  .philosophy-col.align-right {
    text-align: center;
    align-items: center;
  }

  /* Viewport-safe circle — never overflows */
  .menu-circle-wrap {
    width: min(280px, 72vw) !important;
    height: min(280px, 72vw) !important;
  }

  .menu-circle-ring {
    inset: min(-30px, -4.5vw) !important;
  }

  .philosophy-col h3 {
    font-size: 1.05rem;
  }

  .philosophy-col p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .philosophy-grid {
    gap: 32px;
  }

  .menu-circle-wrap {
    width: min(260px, 74vw) !important;
    height: min(260px, 74vw) !important;
  }

  .menu-circle-ring {
    inset: min(-26px, -3.8vw) !important;
  }

  .philosophy-col h3 {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }

  .philosophy-col p {
    font-size: 0.87rem;
    margin-bottom: 20px;
  }

  .philosophy-flourish {
    width: 24px;
    height: 24px;
    margin-bottom: 16px;
  }
}

@media (max-width: 390px) {
  .menu-circle-wrap {
    width: min(250px, 76vw) !important;
    height: min(250px, 76vw) !important;
  }
}

@media (max-width: 360px) {
  .menu-circle-wrap {
    width: min(235px, 78vw) !important;
    height: min(235px, 78vw) !important;
  }

  .menu-circle-ring {
    inset: min(-22px, -3.2vw) !important;
  }
}

@media (max-width: 320px) {
  .menu-circle-wrap {
    width: min(210px, 80vw) !important;
    height: min(210px, 80vw) !important;
  }

  .menu-circle-ring {
    inset: min(-20px, -3vw) !important;
  }
}

/* ── 08. REVIEWS SECTION ─────────────────────────────────────── */

@media (max-width: 768px) {
  .reviews-section {
    padding: 64px 0;
  }

  .reviews-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .review-card {
    padding: 28px 22px;
  }

  .review-text {
    font-size: 1.1rem;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .review-card {
    padding: 24px 18px;
  }

  .review-text {
    font-size: 1rem;
  }
}

/* ── 09. REEL / FACEBOOK EMBED ───────────────────────────────── */

@media (max-width: 768px) {
  .reel-section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .reel-embed {
    max-width: 300px;
  }
}

@media (max-width: 360px) {
  .reel-embed {
    max-width: 260px;
  }
}

@media (max-width: 320px) {
  .reel-embed {
    max-width: 240px;
  }
}

/* ── 10. SECTION HEADERS & TYPOGRAPHY ────────────────────────── */

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 48px;
  }

  .section-badge {
    font-size: 0.6rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .section-header p {
    font-size: 0.88rem;
    line-height: 1.75;
  }
}

@media (max-width: 360px) {
  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
}

/* ── 11. BUTTONS ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .btn {
    padding: 13px 28px;
    font-size: 0.68rem;
    letter-spacing: 2px;
  }

  .btn-premium-primary,
  .btn-premium-secondary {
    width: 100%;
    justify-content: center;
  }

  .contact-action-row {
    flex-direction: column;
    gap: 10px;
  }

  .contact-action-row .btn-premium-primary,
  .contact-action-row .btn-premium-secondary {
    flex: unset;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .btn {
    padding: 12px 22px;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 320px) {
  .btn {
    padding: 11px 18px;
    font-size: 0.62rem;
  }
}

/* ── 12. FOOTER ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .footer {
    padding-top: 52px;
  }

  .footer-grid {
    gap: 0;
  }

  /* Collapse social pill labels to icons-only on mobile */
  .footer-luxury .social-links a::after {
    display: none;
  }

  .footer-luxury .social-links a {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .footer-luxury .social-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-grid > div {
    padding: 0 !important;
  }

  .footer-grid > div + div {
    padding-top: 28px !important;
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding-top: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 20px 0 24px;
  }

  .footer-bottom-links {
    gap: 16px;
    justify-content: center;
  }

  .footer-brand-name {
    font-size: 1.2rem;
    letter-spacing: 2.5px;
  }

  .footer-brand p {
    font-size: 0.83rem;
  }

  .footer-col h4 {
    margin-bottom: 18px;
  }
}

@media (max-width: 360px) {
  .footer {
    padding-top: 36px;
  }

  .footer-col h4 {
    margin-bottom: 14px;
    font-size: 0.65rem;
  }

  .footer-col li {
    margin-bottom: 10px;
  }

  .footer-col a,
  .footer-col span {
    font-size: 0.82rem;
  }
}

@media (max-width: 320px) {
  .footer-bottom {
    font-size: 0.7rem;
  }
}

/* ── 13. MENU PAGE ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .menu-hero {
    padding: 96px 0 40px;
    text-align: center;
  }

  .menu-section {
    padding: 48px 0;
  }

  /* Prevent menu image from causing horizontal scroll */
  .menu-pages {
    overflow-x: hidden;
  }

  .menu-pages img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .menu-hero {
    padding: 88px 0 32px;
  }

  .menu-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .menu-hero p {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .menu-hero {
    padding: 80px 0 28px;
  }

  .menu-hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
  }
}

/* ── 14. CONTACT PAGE ────────────────────────────────────────── */

@media (max-width: 768px) {
  .contact-section-redesign {
    padding: 64px 0;
  }

  .contact-card-luxury {
    padding: 32px 28px;
    gap: 28px;
  }

  .contact-map-container-luxury {
    min-height: 320px !important;
    height: 320px !important;
    border-radius: 8px;
  }

  .contact-map-container-luxury iframe {
    min-height: 320px !important;
    height: 320px !important;
  }
}

@media (max-width: 480px) {
  .contact-card-luxury {
    padding: 24px 20px;
    gap: 22px;
  }

  .contact-card-block {
    padding-bottom: 20px;
    gap: 12px;
  }

  .contact-map-container-luxury {
    min-height: 280px !important;
    height: 280px !important;
  }

  .contact-map-container-luxury iframe {
    height: 280px !important;
    min-height: 280px !important;
  }
}

@media (max-width: 360px) {
  .contact-card-luxury {
    padding: 20px 16px;
    gap: 18px;
  }

  .contact-map-container-luxury {
    min-height: 240px !important;
    height: 240px !important;
  }

  .contact-map-container-luxury iframe {
    height: 240px !important;
    min-height: 240px !important;
  }
}

/* ── 15. GALLERY PAGE & LIGHTBOX ─────────────────────────────── */

@media (max-width: 768px) {
  .gallery-grid {
    gap: 14px;
  }

  .lightbox {
    padding: 20px 16px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }

  .lightbox-nav svg {
    width: 24px;
    height: 24px;
    opacity: 0.7;
  }

  .lightbox-img {
    max-height: 70vh;
  }

  .lightbox-caption {
    font-size: 1rem;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-auto-rows: 200px;
    gap: 10px;
  }

  .lightbox {
    padding: 16px 12px;
  }

  .lightbox-nav {
    padding: 10px;
  }
}

@media (max-width: 360px) {
  .gallery-grid {
    grid-auto-rows: 180px;
    gap: 8px;
  }
}

/* ── 16. HERO (STANDARD PAGES — ABOUT, CONTACT, ETC.) ────────── */

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 48px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 7.5vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 88px 0 40px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 80px 0 32px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
  }
}

/* ── 17. FORMS ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* 16px minimum prevents iOS Safari auto-zoom on input focus */
  .form-input,
  .form-select,
  .form-textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }

  .form-wrap {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .form-group {
    margin-bottom: 20px;
  }

  .form-label {
    font-size: 0.6rem;
    letter-spacing: 1.8px;
  }

  .form-header-inner h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .form-wrap {
    padding: 24px 16px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
  }
}

/* ── 18. HOURS SECTION ───────────────────────────────────────── */

@media (max-width: 768px) {
  .hours-editorial {
    padding: 72px 0;
  }

  .hours-grid {
    margin-top: 44px;
  }
}

@media (max-width: 480px) {
  .hours-editorial {
    padding: 60px 0;
  }

  .hours-item {
    padding: 32px 20px;
  }

  .hours-item .day {
    font-size: 1.25rem;
  }

  .hours-item .time {
    font-size: 0.82rem;
  }

  .hours-item .desc {
    font-size: 0.56rem;
  }
}

@media (max-width: 360px) {
  .hours-item {
    padding: 26px 16px;
  }

  .hours-item .day {
    font-size: 1.1rem;
  }
}

/* ── 19. CART SIDEBAR ────────────────────────────────────────── */

@media (max-width: 480px) {
  .cart-sidebar {
    width: 100vw;
    right: -100vw;
  }

  .cart-sidebar-header {
    padding: 20px;
  }

  .cart-items {
    padding: 16px;
  }

  .cart-footer {
    padding: 20px;
  }

  .cart-item {
    gap: 12px;
    padding: 16px 0;
  }

  .cart-item-img {
    width: 52px;
    height: 52px;
  }
}

/* ── 20. SECTIONS & PAGE SPACING ─────────────────────────────── */

@media (max-width: 768px) {
  .section,
  .reel-section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .section,
  .reel-section {
    padding: 52px 0;
  }
}

@media (max-width: 360px) {
  .section,
  .reel-section {
    padding: 44px 0;
  }
}

/* ── 21. MODAL ───────────────────────────────────────────────── */

@media (max-width: 480px) {
  .modal-content {
    padding: 36px 24px;
    width: 92%;
  }

  .modal-content h3 {
    font-size: 1.6rem;
  }

  .modal-content p {
    font-size: 0.87rem;
  }

  .modal-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
  }
}

@media (max-width: 360px) {
  .modal-content {
    padding: 28px 18px;
    width: 95%;
  }

  .modal-content h3 {
    font-size: 1.4rem;
  }
}

/* ── 22. TOAST ───────────────────────────────────────────────── */

@media (max-width: 600px) {
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    font-size: 0.72rem;
    padding: 14px 20px;
    text-align: center;
    justify-content: center;
  }
}

/* ── 23. CAROUSEL & FEATURED CARDS ──────────────────────────── */

@media (max-width: 480px) {
  .carousel-viewport-wrapper {
    padding: 0 14px;
    margin-top: 32px;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .carousel-arrow.prev {
    left: -8px;
  }

  .carousel-arrow.next {
    right: -8px;
  }

  .carousel-arrow svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 360px) {
  .carousel-item {
    flex: 0 0 220px;
    width: 220px;
  }

  .featured-card {
    height: 300px;
  }

  .carousel-arrow.prev {
    left: -10px;
  }

  .carousel-arrow.next {
    right: -10px;
  }
}

@media (max-width: 320px) {
  .carousel-item {
    flex: 0 0 200px;
    width: 200px;
  }

  .featured-card {
    height: 280px;
  }
}

/* ── 24. BOTANICAL DECORATIONS ───────────────────────────────── */

@media (max-width: 768px) {
  .botanical-illustration {
    width: 130px;
    height: 200px;
    opacity: 0.055;
  }

  .botanical-left {
    left: -30px;
  }

  .botanical-right {
    right: -30px;
  }
}

@media (max-width: 480px) {
  /* Remove decorative elements to reduce distraction and potential overflow */
  .botanical-illustration {
    display: none;
  }
}

/* ── 25. GLOBAL TYPOGRAPHY SCALING ──────────────────────────── */

@media (max-width: 480px) {
  h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  h3 {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  }

  h4 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
}

/* ── 26. TOUCH DEVICE — REMOVE STICKY HOVER EFFECTS ─────────── */

@media (hover: none) and (pointer: coarse) {
  /* Cards */
  .featured-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(200, 169, 122, 0.15);
  }

  .glass-review-card:hover {
    transform: none;
    border-color: rgba(28, 28, 28, 0.08);
    box-shadow: 0 10px 30px rgba(28, 28, 28, 0.04);
  }

  /* Images */
  .editorial-arch:hover img,
  .editorial-square-card:hover img,
  .menu-circle-wrap:hover img,
  .gallery-item:hover img,
  .featured-card:hover img,
  .hero-arch:hover img {
    transform: none;
  }

  .menu-circle-wrap:hover {
    transform: none;
  }

  /* Gallery overlay — hide on touch (no hover to reveal) */
  .gallery-item:hover .gallery-overlay {
    opacity: 0;
  }

  /* Nav links */
  .footer-col a:hover {
    padding-left: 0;
    color: var(--text-secondary);
  }

  .mobile-nav a:hover {
    padding-left: 0;
  }

  /* Social icons */
  .hero-specials-social a:hover,
  .social-links a:hover {
    transform: none;
  }

  /* Buttons */
  .hero-cinematic-actions .btn-primary:hover {
    transform: none;
    box-shadow: 0 10px 26px rgba(184, 154, 110, 0.24);
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-reserve:hover {
    transform: none;
  }

  .footer-luxury .social-links a:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── 27. SAFE AREA INSETS (iPhone Notch / Home Bar) ─────────── */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .mobile-menu {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .cart-sidebar {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .navbar {
    padding-top: env(safe-area-inset-top);
  }
}

/* ── 28. OVERFLOW PREVENTION ON ANIMATED ELEMENTS ────────────── */

@media (max-width: 768px) {
  .editorial-section-wrapper {
    overflow: hidden;
  }

  .hero-cinematic {
    overflow: hidden;
  }

  .hero-specials-social {
    max-width: 100%;
  }

  /* Ensure philosophy section doesn't overflow due to circle ring */
  .philosophy-media {
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── 29. WEBKIT / SAFARI FIXES ───────────────────────────────── */

/* Prevent auto-zoom and ensure consistent appearance */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* Fix for older Safari flex gap support */
@supports not (gap: 1px) {
  .hero-cinematic-actions > * + * {
    margin-top: 12px;
  }

  .contact-action-row > * + * {
    margin-top: 10px;
  }

  .footer-luxury .social-links > * + * {
    margin-left: 10px;
  }

  .reviews-grid > * + * {
    margin-top: 20px;
  }
}

/* Fix Safari 100vh issue on iOS (address bar changes viewport height) */
@supports (-webkit-touch-callout: none) {
  .hero-cinematic {
    min-height: -webkit-fill-available;
  }
}

/* Fix tap highlight color on mobile */
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: rgba(200, 169, 122, 0.12);
}

/* ── 30. RESERVATIONS PAGE ───────────────────────────────────── */

@media (max-width: 768px) {
  .form-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-wrap {
    order: 1;
    padding: 32px 24px;
  }

  .info-sidebar {
    order: 2;
    padding: 0;
  }

  .info-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .info-block h4 {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-split {
    gap: 24px;
  }
}

@media (max-width: 360px) {
  .form-wrap {
    padding: 24px 16px;
  }

  .info-sidebar {
    padding: 0;
  }
}

/* ── 31. REMOVE ROUND DESIGN FROM MOBILE NAV ─────────────────── */

@media (max-width: 768px) {
  /* Remove round border-radius/corners or circle shapes from mobile nav/toggle */
  .navbar,
  .nav-inner,
  .mobile-toggle,
  .mobile-toggle span,
  .mobile-menu,
  .mobile-menu-header,
  .mobile-menu-close,
  .mobile-nav a,
  .nav-brand-logo,
  .monogram-svg,
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-reserve,
  .sub-cat-pill,
  .cart-item-img,
  .hours-item,
  .contact-map-container-luxury,
  .review-card,
  .menu-card,
  .featured-card {
    border-radius: 0 !important;
  }
  
  /* Futuristic bottom glow on mobile navbar */
  .navbar {
    box-shadow: 0 1px 12px rgba(200, 169, 122, 0.25) !important;
    border-bottom: 1px solid rgba(200, 169, 122, 0.25) !important;
  }

  /* Futuristic Chevron Hamburger Lines */
  .mobile-toggle span:first-child {
    width: 16px !important;
    margin-left: auto;
  }
  .mobile-toggle span:nth-child(2) {
    width: 22px !important;
  }
  .mobile-toggle span:last-child {
    width: 12px !important;
    margin-left: auto;
  }
  
  .mobile-toggle.open span:first-child,
  .mobile-toggle.open span:last-child {
    width: 22px !important;
  }
  
  .mobile-toggle:hover span {
    background: var(--color-accent) !important;
    box-shadow: 0 0 8px var(--color-accent) !important;
  }

  /* Cyber-Luxe Mobile Menu Drawer */
  .mobile-menu {
    background: #0e0c0b !important;
    border-left: 1px solid rgba(200, 169, 122, 0.25) !important;
    background-image: radial-gradient(rgba(200, 169, 122, 0.05) 1px, transparent 0) !important;
    background-size: 24px 24px !important;
  }
  
  .mobile-menu-header {
    border-bottom: 1px solid rgba(200, 169, 122, 0.2) !important;
  }
  
  .mobile-menu-title {
    color: var(--color-accent) !important;
    font-family: var(--font-ui) !important;
    letter-spacing: 5px !important;
  }
  
  .mobile-nav a {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: relative;
    padding-left: 0;
    transition: all 0.35s ease;
  }
  
  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--color-accent) !important;
    padding-left: 14px !important;
    text-shadow: 0 0 8px rgba(200, 169, 122, 0.45) !important;
  }
  
  .mobile-nav a::before {
    content: "// " !important;
    opacity: 0;
    transition: opacity 0.35s ease;
    font-family: var(--font-ui);
    color: var(--color-accent);
  }
  
  .mobile-nav a.active::before,
  .mobile-nav a:hover::before {
    opacity: 1 !important;
  }
}
