/**
 * Site-specific overrides on top of the FlexStart template (style.css).
 * Kept separate so the template file stays as archived.
 */

/* AOS "zoom-out" starts elements at scale(1.2), which made the page wider than
   the screen on phones and hid the mobile menu button. Clip horizontal overflow. */
html,
body {
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

img {
  max-width: 100%;
  height: auto;
}

/* Services: columns are d-flex so every box in a row has the same height */
.services .service-box {
  width: 100%;
}
.services .service-box .service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
  text-align: left;
  font-size: 15px;
}
.services .service-box .service-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  line-height: 1.45;
  border-top: 1px dashed rgba(1, 41, 112, 0.1);
}
.services .service-box .service-list li:first-child {
  border-top: 0;
}
.services .service-box .service-list i {
  flex: none;
  font-size: 18px;
  line-height: 1.2;
}
.services .service-box.blue .service-list i { color: #2db6fa; }
.services .service-box.orange .service-list i { color: #f68c09; }
.services .service-box.green .service-list i { color: #08da4e; }
.services .service-box.purple .service-list i { color: #b50edf; }
/* The template fills the box with its accent colour on hover */
.services .service-box:hover .service-list,
.services .service-box:hover .service-list i {
  color: #fff;
}
.services .service-box:hover .service-list li {
  border-top-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 1200px) {
  .services .service-box {
    padding: 50px 24px;
  }
  .services .service-box h3 {
    font-size: 21px;
  }
}

/* ---------- Tablets ---------- */
@media (max-width: 991px) {
  .hero .hero-img {
    margin-top: 30px;
  }
  .about .content {
    padding: 30px;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 575px) {
  .header .logo span {
    font-size: 26px;
  }
  .hero {
    padding: 100px 0 40px 0;
  }
  .hero h1 {
    font-size: 26px;
    line-height: 1.3;
  }
  .section-header h2 {
    font-size: 13px;
  }
  .section-header p {
    font-size: 22px;
    line-height: 1.3;
  }
  .about .content {
    padding: 24px 16px;
  }
  .about .content h2 {
    font-size: 22px;
  }
  .values .box,
  .services .service-box {
    padding: 30px 20px;
  }
  .contact .info-box {
    padding: 24px 20px;
  }
  .footer .footer-top {
    padding: 40px 0 20px 0;
  }
  .footer .footer-top .footer-links {
    margin-bottom: 10px;
  }
}
