/* Customer voices — transparent integration inside the operations chapter. */

@font-face {
  font-family: "FontAwesome";
  src:
    url("./assets/vendor-v2/fontawesome/fonts/fontawesome-webfont.woff2") format("woff2"),
    url("./assets/vendor-v2/fontawesome/fonts/fontawesome-webfont.woff") format("woff");
  font-style: normal;
  font-weight: normal;
  font-display: block;
}

.operation-band {
  min-height: auto;
  padding-block: clamp(5rem, 8vw, 8rem);
}

.operation-layout {
  align-items: start;
  min-height: auto;
}

.operation-year {
  align-content: start;
}

.customer-voices {
  width: min(100%, 30rem);
  margin-top: clamp(1rem, 2vw, 1.75rem);
  color: #fff;
}

.customer-voices__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgb(255 255 255 / 0.45);
}

.customer-metric {
  min-width: 0;
  padding: 0.55rem 0.65rem 0.75rem;
  text-align: center;
}

.customer-metric + .customer-metric {
  border-inline-start: 1px solid rgb(255 255 255 / 0.45);
}

.operation-year .customer-metric strong {
  display: block;
  margin: 0;
  color: #fff;
  font-family: "IRANSansX", sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.operation-year .customer-metric span {
  display: block;
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.78);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
}

.customer-voices__coverage {
  display: grid;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.65rem 0 0.8rem;
  color: rgb(255 255 255 / 0.85);
  font-size: 0.72rem;
  text-align: center;
}

.customer-voices__coverage > span {
  color: rgb(255 255 255 / 0.65);
  font-size: 0.66rem;
}

.customer-voices__coverage strong {
  color: #fff;
  font-family: "IRANSansX", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
}

.customer-voices__coverage b {
  color: #fff;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.customer-voices__heading {
  display: flex;
  margin-top: 0.95rem;
  align-items: center;
  gap: 0.7rem;
}

.customer-voices__heading img {
  width: 1.9rem;
  height: auto;
  object-fit: contain;
}

.customer-voices__heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
}

.customer-slider {
  position: relative;
  min-height: 26rem;
  margin-top: 0.75rem;
}

.customer-slide {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 240ms;
}

.customer-slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.customer-slide blockquote {
  min-height: 7.5rem;
  margin: 0;
  padding: 0;
  color: rgb(255 255 255 / 0.88);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  line-height: 2;
  text-align: justify;
}

.customer-slide blockquote::before,
.customer-slide blockquote::after {
  position: relative;
  bottom: -0.1rem;
  color: rgb(255 255 255 / 0.3);
  font-family: "FontAwesome";
  font-size: 1.2rem;
  font-style: normal;
  font-weight: bold;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.customer-slide blockquote::before {
  left: -0.2rem;
  content: "\f10e";
}

.customer-slide blockquote::after {
  right: 0;
  content: "\f10d";
}

.customer-slide__rating {
  display: flex;
  margin-top: 0.325rem;
  justify-content: center;
  gap: 0.15rem;
  color: #ffb72f;
  font-size: 1.15rem;
  direction: ltr;
}

.customer-slide__rating .fa-star::before {
  content: "\f005";
  font: normal normal normal 1em/1 "FontAwesome";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.customer-slide__identity {
  display: flex;
  margin-top: 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
}

.customer-slide__identity > img,
.customer-slide__avatar {
  width: 7.25rem;
  border: 2px solid rgb(255 255 255 / 0.78);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 12px 28px rgb(0 14 33 / 0.22);
  object-fit: cover;
  aspect-ratio: 1;
}

.customer-slide__identity .customer-slide__avatar {
  display: grid;
  color: #8ddcff;
  font-size: 2rem;
  place-items: center;
}

.customer-slide__avatar i {
  font-size: 2rem;
  line-height: 1;
}

.customer-slide__identity strong,
.customer-slide__identity span {
  display: block;
}

.customer-slide__identity strong {
  color: #fff;
  font-size: 0.92rem;
}

.customer-slide__identity div > span {
  margin-top: 0.35rem;
  color: #b5db32;
  font-size: 0.72rem;
}

.customer-slide__identity div > span i {
  margin-inline-end: 0.15rem;
  color: #fff;
  font-size: 0.85rem;
}

.testimonial-location-icon::before {
  content: "\f041";
  font: normal normal normal 1em/1 "FontAwesome";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.customer-slider__controls {
  position: absolute;
  z-index: 4;
  inset: 13rem 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.75rem;
  pointer-events: none;
}

.customer-slider__controls button {
  display: grid;
  width: 2.6rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  place-items: center;
  pointer-events: auto;
  transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1);
  aspect-ratio: 1;
}

.customer-slider__controls button::after {
  color: currentColor;
  font: normal normal normal 1.25rem/1 "FontAwesome";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.customer-slider__controls button[data-customer-prev]::after {
  content: "\f0da";
}

.customer-slider__controls button[data-customer-next]::after {
  content: "\f0d9";
}

.customer-slider__controls button:focus-visible {
  color: #8ddcff;
  outline: 2px solid rgb(141 220 255 / 0.75);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .customer-slider__controls button:hover {
    color: #8ddcff;
    transform: scale(1.08);
  }
}

@media (max-width: 64rem) {
  .customer-voices {
    width: min(100%, 36rem);
  }
}

@media (max-width: 47.99rem) {
  .operation-band {
    padding-block: 4rem;
  }

  .customer-voices {
    margin-top: 1.5rem;
  }

  .customer-slider {
    min-height: 25rem;
  }

  .customer-slider__controls {
    inset-block-start: 13.25rem;
    padding-inline: 1.5rem;
  }
}

@media (max-width: 25rem) {
  .customer-metric {
    padding-inline: 0.3rem;
  }

  .operation-year .customer-metric span {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-slide {
    transform: none;
    transition: opacity 120ms linear, visibility 120ms;
  }

  .customer-slider__controls button {
    transition: color 120ms linear;
  }
}
