/* v1.3.6 — Premium Review Components
   Keeps testimonial content lightweight while giving the section a more premium, conversion-oriented structure. */
.reviews-module {
  position: relative;
  margin-top: 14px;
}

.reviews-module .reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.reviews-module .reviews-title {
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -1.2px;
  line-height: 1.04;
  max-width: 560px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.summary-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #26262b;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(229,9,20,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.055);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.summary-badge i {
  width: 15px;
  height: 15px;
  color: var(--red);
}

.reviews-module .review-controls {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 7px;
  margin: 0;
}

.reviews-module .review-controls button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18,18,20,.12);
  color: #29292f;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
  font-size: 10px;
  transition: transform .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.reviews-module .review-controls button:hover {
  transform: translateY(-1px);
  border-color: rgba(229,9,20,.35);
  color: var(--red);
  box-shadow: 0 15px 32px rgba(229,9,20,.12);
}

.reviews-module .reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.reviews-module .review-card {
  position: relative;
  min-height: 190px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,255,255,.92)),
    radial-gradient(circle at 100% 0%, rgba(229,9,20,.12), transparent 42%);
  border: 1px solid rgba(17,17,20,.065);
  box-shadow: 0 18px 50px rgba(0,0,0,.075);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.reviews-module .review-card::before {
  content: "“";
  position: absolute;
  right: 15px;
  top: 4px;
  color: rgba(229,9,20,.08);
  font-size: 90px;
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.reviews-module .review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229,9,20,.18);
  box-shadow: 0 24px 66px rgba(0,0,0,.11);
}

.reviews-module .review-card-featured {
  background:
    linear-gradient(145deg, rgba(255,255,255,1), rgba(255,248,248,.96)),
    radial-gradient(circle at 100% 0%, rgba(229,9,20,.18), transparent 44%);
  border-color: rgba(229,9,20,.15);
}

.review-card-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--red), #980009);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 26px rgba(229,9,20,.2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .3px;
}

.review-client {
  min-width: 0;
}

.review-client strong {
  display: block;
  margin: 0;
  color: #111114;
  font-size: 14px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.25px;
}

.review-client small {
  display: block;
  margin-top: 4px;
  color: #6a6a72;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 650;
}

.review-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(229,9,20,.075);
  border: 1px solid rgba(229,9,20,.12);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.review-rating {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.review-rating span {
  color: #f8b400;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.review-rating em {
  font-style: normal;
  color: #6b6b72;
  font-size: 10px;
  font-weight: 800;
}

.reviews-module blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #202026;
  font-size: 13px;
  line-height: 1.48;
  font-weight: 800;
  letter-spacing: -.15px;
}

.review-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.review-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f5f5f6;
  color: #4b4b53;
  border: 1px solid rgba(17,17,20,.055);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
}

@media (max-width: 980px) {
  .reviews-module .reviews-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .reviews-module .review-controls {
    top: 5px;
  }

  .reviews-summary {
    justify-content: flex-start;
    padding-right: 78px;
  }

  .reviews-module .reviews {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 2px 2px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .reviews-module .review-card {
    min-width: min(86vw, 360px);
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .reviews-module .reviews-title {
    font-size: 25px;
  }

  .reviews-module .review-controls {
    top: 1px;
  }

  .reviews-summary {
    padding-right: 0;
  }

  .review-card-top {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .review-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
