/* Mobile Optimization for Hauck's Restaurant */

/* Improve Readability of Headings on Small Screens */
@media (max-width: 576px) {
  h1, .hero-title, .display-3 {
    font-size: 2rem !important;
  }
  h2, .section-title, .display-4 {
    font-size: 1.75rem !important;
  }
  .display-1 {
    font-size: 2.5rem !important;
  }
  p.lead {
    font-size: 1rem !important;
  }
}

/* Adjust Section Padding for Mobile */
@media (max-width: 768px) {
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .hero-section {
    min-height: auto !important;
    padding-top: 120px !important; 
    padding-bottom: 4rem !important;
  }
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(15, 26, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(174, 221, 104, 0.2);
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-item {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .nav-item:last-child {
    border-bottom: none;
    margin-bottom: 0px;
    margin-top: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    display: block; /* Larger touch target */
  }
  
  .btn-cta {
    width: 100%;
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
    display: flex;
  }
}

/* Fix Hero Buttons Stacking */
@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem !important;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .feature-badge {
    width: 100%;
    justify-content: center;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Fix large fixed-width elements */
@media (max-width: 400px) {
  .stats-section::before, 
  .stats-section::after,
  .hero-section::before,
  .hero-section::after {
    width: 200px !important;
    height: 200px !important;
  }
  
  .stats-container {
    padding: 2rem 1.5rem !important; 
  }
}

/* Footer improvements on mobile */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-contact {
    align-items: center;
    text-align: center;
  }
  
  .social-links {
    margin-bottom: 2rem;
  }
  
  .footer-logo {
     margin: 0 auto 1rem auto;
     display: block;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .newsletter-form .input-group {
    margin: 0 auto;
  }
}

/* Touch Targets size increase for better usability */
button, a.btn, .nav-link, input, select, textarea {
  min-height: 44px; /* Apple Design Guideline */
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Modal/Lightbox fixes for mobile */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
  }
}

@media (max-width: 576px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
