/* --- Global Responsive Base --- */
html {
  scroll-behavior: smooth;
}

/* Improved Typography: Using Clamp for fluid font sizes 
   prevents 'h1' from looking too small on mobile or too large on tablets.
*/

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
    margin: 0 auto;
  }
}

/* Tablet / Large Screens */
@media (max-width: 1120px) {
  /* Added handling for containers to prevent edge-touching */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 992px) {
  /* Structural: Better grid handling for mid-sized screens */
  .row {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Medium Devices (Tablets) */
@media (max-width: 768px) {
  .hero_area {
    height: auto;
    min-height: 60vh; /* Ensures hero doesn't collapse too much */
  }

  .slider_section {
    padding: 60px 0 100px 0; /* Balanced padding */
  }

  /* Improved Form Layout */
  .info_section .info_form form {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .info_section .row .col-md-3 {
    margin: 15px 0; /* Increased margin for touch-target safety */
    text-align: center;
    width: 100%;
  }

  .info_section .info_logo a {
    justify-content: center;
  }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 576px) {
  .slider_section .detail-box {
    text-align: center;
    padding: 0 15px;
  }

  /* Typographic: Using relative units (rem) for better scaling */
  .slider_section .detail-box h1 {
    font-size: calc(1.3rem + 1vw); 
    line-height: 1.2;
  }

  .slider_section .detail-box span {
    font-size: 2.5rem;
    display: block; /* Ensures span text wraps cleanly */
  }

  .slider_section ol.carousel-indicators {
    justify-content: center;
    bottom: 20px;
  }

  .contact_section form {
    padding: 0 10px;
    margin-bottom: 40px;
  }

  .contact_section button {
    margin: 0 auto;
    display: block;
    width: 100%; /* Better UX for thumbs on mobile */
    max-width: 250px;
  }
}

/* Narrow Phones */
@media (max-width: 480px) {
  .slider_section .detail-box .btn-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slider_section .detail-box .btn-box .btn-1 {
    margin: 0 0 15px 0;
    width: 100%;
  }
}

/* Very Small Devices */
@media (max-width: 420px) {
  .slider_section .detail-box h1 {
    font-size: 1.25rem;
  }

  .slider_section .detail-box span {
    font-size: 2rem;
  }

  .offer_section {
    text-align: center;
    padding: 20px 0;
  }

  .offer_section .content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    gap: 15px; /* Visual spacing */
  }

  .offer_section .content-box .img-box {
    min-width: 80px;
    min-height: 80px;
    margin: 0 auto 10px;
  }

  .offer_section .content-box .img-box svg {
    width: 40px;
    height: auto;
  }

  /* Structural: Removing side arrows to save horizontal space */
  .client_section .carousel-control-prev,
  .client_section .carousel-control-next {
    display: none;
  }
}

/* Ultra-small optimization */
@media (max-width: 360px) {
  .slider_section .detail-box span {
    font-size: 1.8rem;
  }
}