/* Baked Google reviews — static markup in place of the third-party widget.
   Layout follows the Fouita design: a white header card, then a row of
   free-standing review cards that scroll horizontally. */

.rv-band {
  background: #f7f8fa;
  padding: 4rem 0;
}

/* Inline SVGs have no intrinsic size — pin the Google mark everywhere it appears. */
.rv-google {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- header card ---------- */

.rv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.06);
  padding: 1.5rem 2rem;
}

.rv-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rv-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.rv-wordmark {
  width: auto;
  height: 1.75rem;
}

.rv-brand h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #171717;
  line-height: 1;
}

.rv-score-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.rv-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #171717;
  line-height: 1;
}

.rv-count {
  font-size: 1rem;
  color: #6b7280;
  white-space: nowrap;
}

.rv-header-btn {
  display: inline-flex;
  align-items: center;
  background: rgb(21, 152, 28);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.rv-header-btn:hover {
  filter: brightness(1.08);
}

/* ---------- stars ---------- */

.rv-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 0;
}

.rv-star {
  width: 1.5rem;
  height: 1.5rem;
  fill: rgb(253, 197, 43);
}

/* ---------- carousel ---------- */

.rv-carousel {
  position: relative;
  margin-top: 1.75rem;
}

.rv-track {
  display: flex;
  /* Cards keep their natural height rather than stretching to the tallest. */
  align-items: flex-start;
  gap: 1.5rem;
  margin: 0;
  padding: 0.5rem 0.25rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.rv-track::-webkit-scrollbar {
  display: none;
}

.rv-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.07);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rv-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .rv-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

@media (min-width: 1280px) {
  .rv-card {
    flex-basis: calc((100% - 4.5rem) / 4);
  }
}

.rv-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rv-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
}

.rv-avatar img {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: cover;
  background: #f3f4f6;
}

.rv-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #9aa0a6;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.rv-avatar .rv-google {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 1.375rem;
  height: 1.375rem;
  padding: 2px;
  background: #fff;
  border-radius: 9999px;
}

.rv-name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #171717;
}

.rv-date {
  margin: 0;
  font-size: 0.875rem;
  color: #9aa0a6;
}

.rv-text {
  margin: 0;
  color: #3c4043;
  font-size: 1rem;
  line-height: 1.6;
}

/* "…read more" sits inline at the end of the teaser, not on its own line. */
.rv-more {
  padding: 0;
  border: 0;
  background: none;
  color: #3c4043;
  font: inherit;
  cursor: pointer;
}

.rv-more:hover {
  text-decoration: underline;
}

.rv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: #5f6368;
  cursor: pointer;
}

.rv-nav:hover {
  color: #171717;
}

.rv-nav svg {
  width: 1.75rem;
  height: 1.75rem;
}

.rv-prev {
  left: -1.75rem;
}

.rv-next {
  right: -1.75rem;
}

@media (max-width: 767px) {
  .rv-prev {
    left: -0.5rem;
  }

  .rv-next {
    right: -0.5rem;
  }
}

.rv-all {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
}

.rv-all a {
  color: #5f6368;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rv-all a:hover {
  color: #171717;
}

/* ---------- single review pull-quote ---------- */

.rv-quote {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid hsl(var(--primary));
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.06);
  padding: 1.5rem;
}

.rv-quote blockquote {
  margin: 0.75rem 0 0;
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.rv-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.rv-quote figcaption .rv-name {
  font-size: inherit;
  font-weight: 600;
}

.rv-quote .rv-star {
  width: 1.125rem;
  height: 1.125rem;
}

.rv-quote figcaption .rv-avatar,
.rv-quote figcaption .rv-avatar img,
.rv-quote figcaption .rv-initial {
  width: 2.5rem;
  height: 2.5rem;
}

.rv-quote-wrap {
  max-width: 46rem;
  margin-inline: auto;
}
