/* ==========================================================================
   The Boundary Restaurant + Bar - Ultra Mobile-Responsive System
   ========================================================================== */

/* Large Desktop (> 1280px) */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

/* Tablets and Below (< 1024px) */
@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .header-actions .phone-link {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .food-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .experience-grid,
  .hours-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .specials-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .sticky-mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .sticky-mobile-cta .btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
    text-align: center;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --section-padding: clamp(3rem, 7vw, 4.5rem);
    --container-padding: 1.25rem;
  }

  body {
    padding-bottom: 4.5rem; /* Buffer for bottom sticky action bar */
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .brand-logo .brand-name {
    font-size: 1.25rem !important;
    letter-spacing: 0.12em !important;
  }

  .brand-logo .brand-sub {
    font-size: 0.5rem !important;
  }

  .header-actions .btn {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.1em !important;
  }

  .section-header {
    margin-bottom: 2rem !important;
  }

  .section-title {
    font-size: clamp(1.85rem, 6vw, 2.5rem) !important;
  }

  .section-subtitle {
    font-size: 0.9rem !important;
  }

  /* Hero Mobile Styling */
  .hero-title {
    font-size: clamp(2.4rem, 9vw, 3.5rem) !important;
    letter-spacing: 0.1em !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    padding: 0.85rem 1.25rem !important;
  }

  .hero-quick-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .hero-quick-strip > div {
    padding: 0.6rem !important;
  }

  /* Grids to 1 Column */
  .experience-grid,
  .hours-grid,
  .specials-grid,
  .food-grid,
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  /* Food item card responsive stack */
  .food-item-horizontal {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .food-item-horizontal > div:first-child {
    width: 100% !important;
    height: 180px !important;
  }

  /* Quiz Night Prizes responsive */
  .quiz-prizes-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
  }

  /* Booking & Form Grids */
  .booking-form-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Testimonials */
  .testimonial-carousel {
    padding: 1.75rem 1.25rem !important;
  }

  .testimonial-quote {
    font-size: 1.15rem !important;
    min-height: auto !important;
  }

  /* Special Circular Stamps */
  .special-stamp {
    width: 4.25rem !important;
    height: 4.25rem !important;
  }

  .special-stamp .stamp-day {
    font-size: 0.55rem !important;
  }

  .special-stamp .stamp-title {
    font-size: 0.75rem !important;
  }

  /* Touch Target Optimizations */
  button, input, select, textarea, .btn, .nav-link {
    min-height: 44px;
  }
}

/* Small Smart Phones (< 400px) */
@media (max-width: 399px) {
  .hero-quick-strip {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: 2.15rem !important;
  }

  .header-actions .btn {
    display: none !important; /* Retain only hamburger icon on ultra-narrow screens */
  }
}
