/* Homepage client logos marquee — full color, no grayscale */
/* Also holds front-page-only layout tweaks (spacing, separator, mobile testimonials). */

/* Kill the 80px banner padding-bottom from styles.min.css so the slider
   controls the gap under the ratings card. Leave padding-top unchanged. */
.homepageBanner-container {
  padding-bottom: 0;
}

/* Our work's section padding-top is applied below the slider instead;
   the slider's own padding creates equal space above and below the logos. */
.projectSectionGrid-container.Section {
  padding-top: 0;
}

.homeClientLogos {
  padding-top: 4.8rem;
  padding-bottom: 5.3rem; /* 4.8rem + 0.5rem to offset h2 margin-top: -0.5rem */
  background-color: #fff;
  overflow: hidden;
}

@media (min-width: 768px) {
  .homeClientLogos {
    padding-top: 10rem;
    padding-bottom: 10.5rem;
  }
}

.homeClientLogos-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.homeClientLogos-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: max-content;
  -webkit-animation: homeClientLogos-scroll 55s linear infinite;
          animation: homeClientLogos-scroll 55s linear infinite;
  will-change: transform;
}

.homeClientLogos:hover .homeClientLogos-track,
.homeClientLogos:focus-within .homeClientLogos-track {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

.homeClientLogos-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0;
  padding: 0 2.4rem;
  list-style: none;
  gap: 4.8rem;
}

@media (max-width: 767px) {
  .homeClientLogos-list {
    gap: 2.8rem;
    padding: 0 1.6rem;
  }
}

.homeClientLogos-item {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.homeClientLogos-item img {
  display: block;
  height: 4.8rem;
  width: auto;
  max-width: 16rem;
  max-height: 4.8rem;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-filter: none;
          filter: none;
}

@media (max-width: 767px) {
  .homeClientLogos-item img {
    height: 4rem;
    max-height: 4rem;
    max-width: 13rem;
  }
}

@-webkit-keyframes homeClientLogos-scroll {
  from {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(-50%, 0, 0);
            transform: translate3d(-50%, 0, 0);
  }
}

@keyframes homeClientLogos-scroll {
  from {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(-50%, 0, 0);
            transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .homeClientLogos-viewport {
    -webkit-mask-image: none;
            mask-image: none;
    overflow: visible;
  }

  .homeClientLogos-track {
    -webkit-animation: none;
            animation: none;
    width: 100%;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    will-change: auto;
  }

  .homeClientLogos-list[aria-hidden="true"] {
    display: none;
  }

  .homeClientLogos-list {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    row-gap: 2rem;
    width: 100%;
    padding: 0 2rem;
  }
}

/* Separator + spacing between "View all our work" and "Our services".
   The work section's bottom padding is replaced by equal margins around the line. */
.projectSectionGrid-container.Section {
  padding-bottom: 0;
}

.projectSectionGrid-container .full_container::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 83, 119, 0.12);
  margin: 4.8rem 0;
}

@media (min-width: 768px) {
  .projectSectionGrid-container .full_container::after {
    margin: 8rem 0;
  }
}

/* After How we work is hidden, keep a clear gap between the services
   cards and the Testimonials heading. Services already has section
   padding-bottom (3rem / 10rem); add a modest top pad on reviews so
   mobile isn't tight. */
.reviewSection {
  padding-top: 2.4rem;
}

@media (min-width: 768px) {
  .reviewSection {
    padding-top: 2rem;
  }
}

/* Stack testimonials on mobile once the slick slider has been unslicked. */
@media (max-width: 767px) {
  .reviewSection .reviewContainer .reviewSlider .slick-arrow,
  .reviewSection .reviewContainer .reviewSlider .slick-dots,
  .reviewSection .slick-arrow {
    display: none !important;
  }

  .reviewSection .reviewContainer .reviewSlider:not(.slick-initialized)::before,
  .reviewSection .reviewContainer .reviewSlider:not(.slick-initialized)::after {
    content: none;
    display: none;
  }

  .reviewSection .reviewContainer .reviewSlider:not(.slick-initialized) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 2.4rem;
  }

  .reviewSection .reviewContainer .reviewSlider:not(.slick-initialized) .reviewSlider-slide {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: auto;
  }

  .reviewSection .full_container.max1600.centerContainer {
    overflow: visible;
  }
}

/* Hero "Hire us" CTA: space below the description. The content block
   already has margin-bottom: 4rem before the ratings card; leave that
   gap alone so ratings and the logo slider spacing stay as they are. */
.homepageBanner-container .homepageBanner-content .hero-hire-cta {
  margin-top: 2.4rem;
  text-align: center;
}

@media (max-width: 768px) {
  .homepageBanner-container .homepageBanner-content .hero-hire-cta {
    margin-top: 2rem;
  }
}

/* Ratings stacked on phones */
@media (max-width: 768px) {
  .homepageBanner-container .homeBannerReview-list { flex-direction: column; align-items: center; }
  .homepageBanner-container .homeBannerReview-list > *,
  .homepageBanner-container .homeBannerReview-list > :first-child { width: 100%; text-align: center; }
  .homepageBanner-container .homeBannerReview-list .reviewCompanyDetails { display: flex; flex-direction: column; align-items: center; margin-left: 0 !important; }
  .homepageBanner-container .homeBannerReview-list .reviewCompanyDetails > img { margin-left: auto; margin-right: auto; }
  .homepageBanner-container .homeBannerReview-list .reviewDetails-stars { justify-content: center; }
}
