.reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 8%, rgba(193, 233, 104, 0.2), transparent 26%),
    linear-gradient(135deg, #f2f4e9 0%, #faf7ef 52%, #f5f1e8 100%);
  color: var(--color-ink);
}

.reviews__container {
  position: relative;
  z-index: 1;
}

.reviews__heading {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 34px);
}

.reviews__heading > div { min-width: 0; }

.reviews__eyebrow,
.reviews-slider__kicker {
  margin: 0 0 8px;
  color: var(--color-brand-olive);
  font-size: clamp(0.8208rem, 0.864vw, 0.9288rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reviews__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews__eyebrow::after {
  width: clamp(70px, 20vw, 190px);
  height: 1px;
  background: linear-gradient(90deg, rgba(72, 85, 43, 0.55), transparent);
  content: "";
}

.reviews__heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--color-brand-olive-dark);
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.048em;
  line-height: 0.98;
  text-wrap: balance;
}

.reviews__heading h2 span,
.reviews__heading h2 strong {
  display: block;
}

.reviews__heading h2 strong {
  color: #6f9d18;
  font-weight: inherit;
}

.reviews__support-text {
  max-width: 480px;
  margin: 0;
  color: #596052;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.reviews__heading h2 strong { color: #78a630; }

.reviews__layout {
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
  align-items: stretch;
}

.reviews-summary,
.reviews__content {
  min-width: 0;
}

.reviews-summary {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 32px);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 12%, rgba(193, 233, 104, 0.2), transparent 56%),
    linear-gradient(150deg, #253516 0%, #354620 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 52px rgba(37, 53, 22, 0.17);
  color: #fffdf7;
}

.reviews-summary__snapshot {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.reviews-summary__source {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: clamp(1.16rem, 1.92vw, 1.52rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1;
}

.google-letter--blue {
  color: #4285f4;
}

.google-letter--red {
  color: #ea4335;
}

.google-letter--yellow {
  color: #fbbc05;
}

.google-letter--green {
  color: #34a853;
}

.reviews-summary__label {
  margin: 0 0 6px;
  color: rgba(255, 253, 247, 0.64);
  font-size: clamp(0.832rem, 1.04vw, 0.962rem);
  font-weight: 650;
  letter-spacing: 0.13em;
  white-space: nowrap;
  text-transform: uppercase;
}

.reviews-summary__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.reviews-summary__score-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 8px;
}

.reviews-summary__rating strong {
  color: #fff;
  font-size: clamp(3.2rem, 4.2vw, 4.2rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.reviews-summary__rating span {
  color: rgba(255, 253, 247, 0.62);
  font-size: 0.9rem;
}

.reviews-stars {
  margin: 0;
  color: #fbbc04;
  font-size: clamp(3rem, 5vw, 4.7rem);
  letter-spacing: 0.08em;
  line-height: 1;
}

.reviews-summary .reviews-stars {
  align-self: center;
  justify-self: end;
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.7rem, 3.645vw, 3.645rem);
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.reviews-summary__count {
  margin: 10px 0 0;
  color: rgba(255, 253, 247, 0.7);
  font-size: clamp(0.91rem, 1.196vw, 1.144rem);
  white-space: nowrap;
}

.reviews-summary__count strong {
  color: #fff;
  font-weight: 650;
}

.reviews-summary__cta {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--color-brand-lime);
  color: #243314;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
}

.reviews-summary__cta:hover {
  background: var(--color-action-hover, #9ff23f);
  color: #17230b;
}

.reviews-summary__cta.is-touch-feedback:hover,
.reviews-summary__cta.is-touch-feedback-done:hover {
  background: var(--color-brand-lime);
  color: #243314;
  transform: none;
}

.reviews-summary__cta svg {
  flex: 0 0 auto;
}

.reviews__content {
  min-height: 430px;
  padding: clamp(22px, 2.2vw, 28px);
  border: 1px solid rgba(72, 85, 43, 0.1);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 16px 42px rgba(52, 62, 36, 0.07);
}

.reviews-slider,
.reviews-provider {
  width: 100%;
  min-width: 0;
}

.reviews-slider__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.reviews-slider__kicker {
  margin-bottom: 6px;
  font-size: 0.69rem;
}

.reviews-slider__header h3,
.reviews__fallback h3 {
  max-width: 480px;
  margin: 0;
  color: var(--color-brand-olive-dark);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.reviews-slider__controls {
  display: none;
  flex: 0 0 auto;
  gap: 8px;
}

.reviews-slider.is-ready .reviews-slider__controls {
  display: flex;
}

.reviews-slider__arrow {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(72, 85, 43, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--color-brand-olive-dark);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.reviews-slider__arrow:focus-visible {
  outline: 2px solid var(--color-brand-olive);
  outline-offset: 3px;
}
.reviews-slider__arrow.is-tapped { animation: review-arrow-feedback 1.5s ease-out; }
@keyframes review-arrow-feedback {
  from { background-color: var(--color-action-hover); border-color: var(--color-action-hover); }
  to { background-color: #fffdf8; border-color: rgba(72, 85, 43, .22); }
}

.reviews-slider__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.reviews-slider__viewport {
  position: relative;
  margin-right: calc(-1 * var(--gutter));
  overflow: hidden;
}

.reviews-slider__viewport::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46px;
  background: linear-gradient(90deg, rgba(250, 248, 242, 0), rgba(250, 248, 242, 0.94));
  content: "";
  pointer-events: none;
}

.reviews-slider.is-at-end .reviews-slider__viewport::after {
  opacity: 0;
}

.reviews-slider__track {
  display: grid;
  grid-auto-columns: min(80vw, 294px);
  grid-auto-flow: column;
  gap: 14px;
  padding: 4px var(--gutter) 12px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.reviews-slider__track::-webkit-scrollbar {
  display: none;
}

.reviews-slider__track.is-jumping {
  scroll-behavior: auto;
}

  .review-card {
    display: flex;
    min-height: 300px;
    height: 300px;
  flex-direction: column;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 85, 43, 0.1);
  border-radius: 12px;
  background: #f3f3f3;
  box-shadow: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

  .review-card.is-expanded {
    height: auto;
    min-height: 300px;
  overflow: visible;
}

.review-card.is-active {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}

.review-card__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e6efcf;
  color: var(--color-brand-olive-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.review-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

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

.review-card__author strong,
.review-card__author span {
  display: block;
}

.review-card__author strong {
  overflow: hidden;
  color: var(--color-brand-olive-dark);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card__author span {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.review-card__google-mark {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
}

.review-card__rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.review-card__stars {
  margin: 0;
  color: #fbbc04;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.review-card__verified {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #4285f4;
}

  .review-card blockquote {
    max-height: none;
    margin: 12px 0 0;
    overflow: hidden;
    color: #171717;
  font-size: clamp(0.95rem, 1.2vw, 1.04rem);
  line-height: 1.32;
}

.review-card blockquote p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.review-card.is-expanded blockquote p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.review-card.is-expanded blockquote {
  max-height: none;
}

  .review-card__read-more {
    align-self: flex-end;
    margin-top: auto;
    padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: #4c5562;
  cursor: pointer;
    font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.review-card__read-more[hidden] {
  display: none;
}

.review-card__read-more:hover,
.review-card__read-more:active,
.review-card__read-more:focus-visible {
  color: #4c5562;
  background: transparent;
}

.review-card__read-more:focus-visible {
  outline: 2px solid #4c5562;
  outline-offset: 3px;
}

.review-card blockquote p {
  margin: 0;
}

.review-card__source-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: auto;
  color: var(--color-brand-olive-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.review-card__source-link:hover {
  color: #679217;
}

.reviews-slider__footer {
  display: flex;
  justify-content: center;
  margin-top: 13px;
}

.reviews-slider__dots {
  display: none;
  align-items: center;
  gap: 8px;
}

.reviews-slider.is-ready .reviews-slider__dots {
  display: flex;
}

.reviews-slider__dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reviews-slider__dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(72, 85, 43, 0.25);
  content: "";
  transform: translate(-50%, -50%);
  transition: background-color 160ms ease, transform 160ms ease;
}

.reviews-slider__dot.is-active::before {
  background: #75a91d;
  transform: translate(-50%, -50%) scale(1.25);
}

.reviews-provider :where(img) {
  max-width: 100%;
  height: auto;
}

.reviews-provider :where(a, button) {
  min-width: 44px;
  min-height: 44px;
}

.reviews__fallback {
  display: grid;
  min-height: 300px;
  place-content: center;
  text-align: center;
}

.reviews__fallback p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

@media (max-width: 639px) {
  .reviews {
    padding-block: 68px;
  }

  .reviews__heading {
    margin-bottom: 30px;
  }

  .reviews__heading h2 {
    font-size: clamp(2.15rem, 10.5vw, 2.7rem);
    line-height: 1;
  }

  .reviews__heading { gap: 10px; margin-bottom: 24px; }
  .reviews__support-text { max-width: 42ch; font-size: .96rem; }

  .reviews-summary {
    min-height: 286px;
    padding: 26px;
  }

  .reviews-summary__snapshot {
    min-height: 0;
    flex: 1;
    justify-content: center;
  }

  .reviews-summary__source {
    margin-bottom: 26px;
  }

  .reviews-summary .reviews-stars {
    margin: 0;
    font-size: clamp(2.4975rem, 9.72vw, 2.97rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .reviews-summary__rating strong {
    font-size: clamp(2.8rem, 11vw, 3.2rem);
  }

  .reviews-summary__count {
    font-size: 0.988rem;
  }

  .reviews-summary__cta {
    margin-top: 24px;
  }

  .reviews__content {
    min-height: 430px;
    padding: 24px 20px 22px;
  }

  .reviews-slider__header {
    align-items: center;
  }

  .reviews-slider__kicker {
    display: none;
  }

  .reviews-slider__header h3 {
    max-width: 210px;
    font-size: 1.28rem;
  }

  .reviews-slider__controls {
    gap: 6px;
  }

  .reviews-slider__arrow {
    width: 44px;
    height: 44px;
  }

    .review-card {
      min-height: 300px;
      height: 300px;
      padding: 16px;
      border-radius: 11px;
      background: #f3f3f3;
    }
}

@media (min-width: 640px) and (max-width: 1099px) {
  .reviews-summary .reviews-stars {
    font-size: clamp(2.8809rem, 5.56875vw, 3.48975rem);
  }
}

@media (min-width: 640px) {
  .reviews__heading {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  }

  .reviews__layout {
    grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.7fr);
  }

  .reviews-slider__viewport {
    margin-right: 0;
  }

  .reviews-slider__viewport::after {
    width: 58px;
  }

  .reviews-slider__track {
    grid-auto-columns: max(270px, calc((100% - 18px) / 2.12));
    gap: 18px;
    padding-right: 60px;
  }

  .reviews-summary,
  .reviews__content {
    min-height: 430px;
  }
}

@media (min-width: 1100px) {
  .reviews__layout {
    grid-template-columns: minmax(260px, 292px) minmax(0, 1fr);
  }

  .reviews-summary,
  .reviews__content {
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews *,
  .reviews *::before,
  .reviews *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

/* Reference-inspired Google review surface, with the existing avatar retained. */
.review-card { border: 0; }

@media (hover: hover) {
  .review-card:hover {
    box-shadow: 0 14px 34px rgba(52, 62, 36, 0.08);
    transform: translateY(-3px);
  }
}
