/* v0.1.7 mobile hero cropping and editorial social proof */

@media (min-width: 781px) {
  .xa-hero__controls {
    bottom: 115px;
  }
}

/* Results and before/after gallery */
.xa-results {
  padding: 105px 0 90px;
  background: #fff;
  color: var(--xa-navy);
  text-align: center;
}

.xa-proof-heading h2,
.xa-testimonials .xa-section-head .xa-display {
  display: inline-block;
  margin: 0;
  padding: 5px 13px 7px;
  background: var(--xa-red);
  color: #fff;
  font-family: var(--xa-head);
  font-size: clamp(1.35rem, 2.25vw, 2.35rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.xa-featured-proof {
  max-width: 1220px;
  margin: 40px auto 0;
  padding: 0;
}

.xa-featured-proof > p {
  margin: 0;
  color: var(--xa-navy);
  font-family: var(--xa-head);
  font-size: clamp(2.6rem, 4.45vw, 4.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  text-transform: uppercase;
}

.xa-featured-proof footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.xa-featured-proof__avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.xa-featured-proof footer span {
  display: flex;
  flex-direction: column;
}

.xa-featured-proof footer strong {
  font-family: var(--xa-head);
  font-size: 1.35rem;
  font-style: italic;
  text-transform: uppercase;
}

.xa-featured-proof footer small {
  color: #657883;
  font-size: .96rem;
}

.xa-proof-intro {
  max-width: 760px;
  margin: 27px auto 0;
  color: #6f7e86;
}

.xa-results-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 70px 0 30px;
  color: var(--xa-navy);
  font-family: var(--xa-head);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.xa-results-divider:before,
.xa-results-divider:after {
  content: '';
  height: 5px;
  flex: 1;
  background: var(--xa-ink);
}

.xa-results__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.xa-result {
  position: relative;
  overflow: hidden;
  border: 1px solid #e3e8ea;
  box-shadow: 0 14px 35px rgba(31, 55, 68, .08);
}

.xa-result__images > div {
  position: relative;
  min-height: 260px;
  background: #edf1f2;
  overflow: hidden;
}

.xa-result__images img {
  height: 100%;
  aspect-ratio: .82;
}

.xa-result__images > div > span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(32, 56, 70, .86);
  color: #fff;
  font-family: var(--xa-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.xa-result__images > div:last-child > span {
  background: rgba(239, 66, 56, .9);
}

.xa-results .xa-button--outline {
  margin-top: 38px;
}

/* Reference-led testimonial carousel */
.xa-testimonials {
  min-height: 520px;
  padding: 110px 0 95px;
  border-bottom: 6px solid var(--xa-ink);
}

.xa-testimonials:before,
.xa-testimonials:after {
  display: none;
}

.xa-testimonials .xa-section-head {
  margin-bottom: 18px;
}

.xa-testimonials .xa-section-head > span {
  display: none;
}

.xa-quotes {
  position: relative;
  z-index: 2;
  width: min(1500px, 100%);
}

.xa-quotes__track {
  min-height: 250px;
}

.xa-quotes__track blockquote {
  max-width: 1420px;
  padding: 25px 60px 10px !important;
}

.xa-quotes__track blockquote div,
.xa-quotes__track blockquote p {
  max-width: 1380px;
  color: var(--xa-navy);
  font-size: clamp(2.45rem, 4.15vw, 4.35rem);
  font-weight: 400;
  line-height: 1.16;
}

.xa-quotes__track blockquote cite {
  margin-top: 20px !important;
  color: var(--xa-red);
}

.xa-quotes__controls {
  margin-top: 14px;
}

.xa-quotes__controls > button {
  display: none;
}

.xa-quotes__dots {
  gap: 18px;
}

.xa-quotes__dots button {
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--xa-navy);
}

.xa-quotes__dots button.is-active {
  width: 17px;
  height: 17px;
  border: 4px solid var(--xa-red);
  background: #fff;
}

.xa-testimonial-faces {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.xa-testimonial-faces span {
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  opacity: .16;
  filter: grayscale(1);
  overflow: hidden;
}

.xa-testimonial-faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xa-testimonial-faces span:nth-child(1) { left: 7%; top: 34px; }
.xa-testimonial-faces span:nth-child(2) { left: 1%; top: 205px; width: 145px; height: 145px; }
.xa-testimonial-faces span:nth-child(3) { left: 11%; bottom: -30px; }
.xa-testimonial-faces span:nth-child(4) { right: 7%; top: 65px; width: 90px; height: 90px; }
.xa-testimonial-faces span:nth-child(5) { right: 1%; top: 210px; width: 145px; height: 145px; }
.xa-testimonial-faces span:nth-child(6) { right: 11%; bottom: -28px; }

@media (max-width: 780px) {
  .xa-hero {
    height: 690px;
    min-height: 690px;
  }

  .xa-slide__media {
    height: auto;
    bottom: 58px;
  }

  .xa-slide:nth-of-type(1) .xa-slide__media { top: -28px; }
  .xa-slide:nth-of-type(2) .xa-slide__media { top: -58px; }
  .xa-slide:nth-of-type(3) .xa-slide__media { top: -42px; }

  .xa-hero__fade {
    height: 105px;
  }

  .xa-hero__controls {
    bottom: 42px;
  }

  .xa-results {
    padding: 75px 0 70px;
  }

  .xa-featured-proof {
    margin-top: 30px;
  }

  .xa-featured-proof > p {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.14;
  }

  .xa-proof-intro {
    margin-top: 22px;
  }

  .xa-results-divider {
    gap: 12px;
    margin: 48px 0 24px;
    font-size: .92rem;
  }

  .xa-results-divider:before,
  .xa-results-divider:after {
    height: 3px;
  }

  .xa-results__grid {
    grid-template-columns: 1fr;
  }

  .xa-result__images > div {
    min-height: 220px;
  }

  .xa-testimonials {
    min-height: 430px;
    padding: 78px 0 70px;
  }

  .xa-testimonials .xa-section-head .xa-display {
    font-size: 1.32rem;
  }

  .xa-quotes__track {
    min-height: 245px;
  }

  .xa-quotes__track blockquote {
    padding: 20px 6px 8px !important;
  }

  .xa-quotes__track blockquote div,
  .xa-quotes__track blockquote p {
    font-size: clamp(1.85rem, 8.4vw, 2.55rem);
  }

  .xa-testimonial-faces span {
    width: 72px;
    height: 72px;
  }

  .xa-testimonial-faces span:nth-child(n+5) {
    display: none;
  }

  .xa-testimonial-faces span:nth-child(1) { left: -24px; top: 32px; }
  .xa-testimonial-faces span:nth-child(2) { left: -35px; top: auto; bottom: 12px; width: 88px; height: 88px; }
  .xa-testimonial-faces span:nth-child(3) { left: auto; right: -24px; top: 55px; bottom: auto; }
  .xa-testimonial-faces span:nth-child(4) { right: -34px; top: auto; bottom: 2px; width: 88px; height: 88px; }
}
