/* fixes-mobile.css — La Tavola Restaurant Mobile Fixes */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---- MOBILE PORTRAIT (max 767px) ---- */
@media (max-width: 767px) {

  /* Fixed header on mobile */
  .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Compensate for fixed header height */
  #main-content {
    padding-top: 72px !important;
  }

  /* Hero doesn't need extra padding — it's full-height */
  .hero--parallax {
    min-height: calc(100vh - 72px) !important;
    min-height: calc(100dvh - 72px) !important;
  }

  /* Hide CTA button in header on mobile */
  .header__actions .btn {
    display: none !important;
  }

  /* Keep theme toggle visible */
  .header__actions .theme-toggle {
    display: flex !important;
  }

  /* About page values — 1 column */
  #page-about .values-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  #page-about .value-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Features cards — 1 column */
  #page-home .features-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  #page-home .feature-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Page hero top padding for fixed header */
  .page-hero {
    padding-top: calc(3rem + 0px) !important;
  }

  /* Menu items stack properly */
  .menu-item {
    flex-direction: column;
    gap: var(--space-2);
  }
  .menu-item__price {
    align-self: flex-start;
  }

  /* Location card stack */
  .location-card {
    grid-template-columns: 1fr !important;
  }
  .location-card__map {
    min-height: 200px;
  }
}

/* ---- MOBILE LANDSCAPE — header goes back to sticky ---- */
@media (max-width: 767px) and (orientation: landscape) {
  .header {
    position: sticky !important;
    top: 0;
  }
  #main-content {
    padding-top: 0 !important;
  }
}
