/* Mobile Footer Fixes */

/* Footer responsiveness for complex footer with waves and barrels */
@media (max-width: 768px) {
  .site-footer-complete {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  
  .footer-wave-section {
    height: 200px !important;
  }
  
  .footer-wave-section img {
    object-position: center !important;
  }
  
  /* Footer content grid - 2 columns on mobile */
  .site-footer-complete .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 25px 20px !important;
  }

  /* Hide company about section on mobile */
  .site-footer-complete .footer-about {
    display: none !important;
  }
  
  /* Footer columns */
  .site-footer-complete h4 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }
  
  .site-footer-complete ul li {
    margin-bottom: 8px !important;
  }
  
  .site-footer-complete a {
    font-size: 14px !important;
  }
  
  /* Social media icons */
  .site-footer-complete > .container > div:nth-child(2) {
    justify-content: center !important;
    padding: 20px 0 !important;
  }
  
  /* Bottom bar */
  .site-footer-complete > .container > div:last-child {
    flex-direction: column !important;
    gap: 15px !important;
    text-align: center !important;
  }
  
  /* Certification badges */
  .site-footer-complete span[style*="inline-flex"] {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

@media (max-width: 480px) {
  .footer-wave-section {
    height: 150px !important;
  }
  
  .site-footer-complete .container {
    padding: 30px 15px 20px !important;
  }
  
  /* Stack footer links */
  .site-footer-complete > .container > div:last-child > div {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  /* Social icons smaller on very small screens */
  .site-footer-complete a[style*="width: 36px"] {
    width: 32px !important;
    height: 32px !important;
  }
  
  .site-footer-complete a[style*="width: 36px"] svg {
    width: 16px !important;
    height: 16px !important;
  }
}

/* Tables responsive */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Make contact forms full width on mobile */
  .contact-form {
    padding: 15px !important;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Ensure text doesn't overflow on mobile */
@media (max-width: 480px) {
  h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  p {
    font-size: 14px;
    line-height: 1.6;
  }
}