/* Enhanced Mobile Responsiveness Styles */

/* General responsive improvements */
@media (max-width: 992px) {
  /* Hero section improvements */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }
  
  .hero-content {
    order: 1;
    margin-bottom: 40px;
  }
  
  .hero-image {
    order: 0;
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 90%;
    height: auto;
  }
  
  .hero-features {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
  }
  
  /* Pricing grid improvements */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .combined-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service cards */
  .service-card {
    margin-bottom: 20px;
  }
  
  /* Legionella Assessment Service table responsiveness */
  section[style*="background-color: #f9f9f9"] table {
    width: 100% !important;
    border-spacing: 10px !important;
  }
  
  section[style*="background-color: #f9f9f9"] table tr {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  section[style*="background-color: #f9f9f9"] table td {
    width: 100% !important;
    display: block;
    margin-bottom: 15px;
  }
  
  /* Additional specific targeting for the service cards */
  section[style*="padding: 60px 0"] table[style*="border-spacing"] {
    display: block !important;
  }
  
  section[style*="padding: 60px 0"] table[style*="border-spacing"] tr {
    display: block !important;
  }
  
  section[style*="padding: 60px 0"] table[style*="border-spacing"] td {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 992px) {
  /* Header improvements */
  header {
    padding: 15px 0;
  }
  
  .logo img {
    height: 60px;
  }
  
  /* Mobile menu button should be visible */
  .mobile-menu-btn {
    display: block;
  }
  
  /* Hero section improvements */
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
  }
  
  /* Pricing grid improvements */
  .pricing-grid, 
  .combined-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card {
    padding: 25px 20px;
  }
  
  .service-title {
    min-height: auto;
    margin-bottom: 10px;
  }
  
  .price {
    font-size: 1.8rem;
  }
  
  /* Book now buttons */
  .book-btn {
    display: block;
    width: 100%;
  }
  
  /* FAQ improvements */
  .faq-question h3 {
    padding-right: 40px; /* Make room for the icons */
  }
  
  /* Section spacing */
  section {
    padding: 60px 0;
  }
  
  .section-intro {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  /* Container padding */
  .container {
    padding: 0 20px;
  }
  
  /* Hero section */
  .hero {
    padding: 90px 0 50px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-bottom: 15px;
  }
  
  .hero-container {
    padding: 0 10px;
  }
  
  .hero-image img {
    max-width: 85%;
  }
  
  /* Pricing cards */
  .pricing-card {
    padding: 20px 15px;
  }
  
  .additional-pricing {
    padding: 10px;
  }
  
  .feature-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  /* Footer improvements */
  footer {
    padding: 30px 0 20px;
  }
  
  .footer-left, 
  .footer-right, 
  .footer-center {
    margin-bottom: 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom p {
    margin-bottom: 10px;
  }
  
  /* Enhanced Legionella Assessment Service mobile styling */
  table[style*="border-collapse"] {
    border-spacing: 5px !important;
  }
  
  table[style*="border-collapse"] td {
    padding: 20px 15px !important;
    margin-bottom: 10px;
  }
  
  table[style*="border-collapse"] td h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  table[style*="border-collapse"] td p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}
