/* Override default font stack to avoid blocking web fonts */
body,
h1,
h2,
h3,
h4,
h5,
h6,
.roboto,
.cabin,
.btn,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
}

/* Lottie reserve space to avoid CLS while script/json loads */
#lottieAnimation,
.lottie-override {
  width: 100%;
  min-height: 420px;
  aspect-ratio: 16 / 9;
}

/* Provide slightly lighter background to replace the heavy image */
#services .services-title {
  background: rgba(0, 0, 0, 0.85);
  background-size: cover;
}

/* Keep desktop banner layout intact; only show the Lottie on portrait phones */
@media (max-width: 767.98px) and (orientation: portrait) {
  #banner .lottie-mobile-visible {
    display: flex !important;
    justify-content: center;
  }

  #banner .banner-row {
    flex-direction: column-reverse;
  }

  #banner .banner-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  #lottieAnimation,
  .lottie-override {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    min-height: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

.client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  display: block;
}

.current-page {
  font-weight: 600;
  color: #6c757d;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}
