/* ---------- Mobile-only fixes (≤ 767px) ---------- */
@media (max-width: 767.98px) {
  /* Hero */
  #hero { 
    padding: 60px 0 30px;
    text-align: center;
  }
  #hero h1 { 
    font-size: 28px; 
    line-height: 1.2; 
    margin-bottom: 6px;
  }
  #hero h2 {
    font-size: 16px;
    line-height: 1.5;
  }
  /* The colored headline spans in hero – remove left padding & shrink */
  #hero .container .row .col-lg-6.pt-5 div span {
    display: block;
    font-size: 28px !important;
    padding-left: 0 !important;
    line-height: 1.1;
    margin: 2px 0;
    text-align: center;
  }
  #hero .btn-get-started { 
    display: inline-block; 
    margin: 12px auto 0; 
  }
  #hero .hero-img { 
    margin-top: 20px;
  }
  #hero .hero-img img { 
    max-width: 80%; 
    height: auto; 
    margin: 0 auto; 
    display: block; 
  }

  /* Clients row (marquee images) */
  .clients .row { 
    font-size: 16px !important;
  }
  .clients img {
    max-height: 48px;
    width: auto;
    margin: 8px auto;
    display: block;
  }
  /* Keep marquee but avoid layout jumpiness on small screens */
  .clients marquee {
    display: block;
    width: 100%;
  }

  /* Section titles & text */
  .section-title h2 { 
    font-size: 22px;
    line-height: 1.25;
  }
  .section-title p { 
    font-size: 14px;
    margin-top: 6px;
  }

  /* Features grid */
  .features .icon-box { 
    padding: 16px; 
    margin-bottom: 12px; 
    text-align: center;
  }
  .features .icon-box i { 
    font-size: 28px;
  }
  .features .icon-box h3 { 
    font-size: 16px; 
    margin: 8px 0 4px;
  }
  .features .icon-box p { 
    font-size: 14px; 
    margin: 0;
  }

  /* CTA section */
  .cta .content h4 { 
    font-size: 22px; 
    margin-bottom: 8px;
  }
  .cta .content p { 
    font-size: 14px;
  }
  .cta .img img { 
    max-width: 85%; 
    height: auto; 
    display: block; 
    margin: 0 auto 16px;
  }
  .cta .btn { 
    font-size: 14px; 
    padding: 8px 14px;
  }

  /* Testimonials */
  .testimonials .section-title h2 { 
    font-size: 20px; 
  }
  .testimonials .testimonial-item { 
    text-align: center;
  }
  .testimonials .testimonial-img { 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
  }
  .testimonials .testimonial-item h3 { 
    font-size: 16px; 
    margin-top: 8px;
  }
  .testimonials .testimonial-item h4 { 
    font-size: 14px; 
    margin: 2px 0;
  }

  /* Services cards */
  #services .icon-box { 
    padding: 18px; 
    margin-bottom: 16px; 
  }
  #services .icon-box .title a { 
    font-size: 18px;
  }
  #services .icon-box .description { 
    font-size: 14px; 
    line-height: 1.5;
  }

  /* General spacing & utilities */
  .container { 
    padding-left: 16px; 
    padding-right: 16px; 
  }
  .back-to-top { 
    bottom: 16px; 
    right: 16px; 
  }
}

/* ---------- Tiny phones (≤ 575px) – slightly tighter ---------- */
@media (max-width: 575.98px) {
  #hero h1 { font-size: 26px; }
  #hero .container .row .col-lg-6.pt-5 div span { font-size: 26px !important; }
  .section-title h2 { font-size: 20px; }
}
