.google-reviews {
  --home-navy: var(--navy-900);
  --home-navy-deep: var(--navy-950);
  --home-blue: var(--navy-700);
  --home-copper: var(--copper-500);
  --home-copper-soft: #f5e9dc;
  --home-text: var(--ink);
  --home-muted: var(--muted);
  overflow: hidden;
  background: #fff;
}

.google-reviews__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.google-reviews__heading {
  max-width: 760px;
}

.google-reviews__source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.google-reviews__google-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.google-reviews__stars {
  color: #e9a725;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}

.google-reviews__source-label {
  color: var(--home-muted);
  font-size: 14px;
  font-weight: 500;
}

.google-reviews h2 {
  max-width: 700px;
  margin: 0;
  color: var(--home-navy-deep);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.google-reviews__disclaimer {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.65;
}

.google-reviews__controls {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
}

.google-reviews__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d7e1e6;
  border-radius: 50%;
  background: #fff;
  color: var(--home-navy);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.google-reviews__arrow:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--home-navy);
  background: var(--home-navy);
  color: #fff;
}

.google-reviews__arrow:focus-visible,
.google-reviews__dot:focus-visible,
.google-reviews__viewport:focus-visible {
  outline: 3px solid rgba(185, 120, 63, .35);
  outline-offset: 3px;
}

.google-reviews__arrow:disabled {
  opacity: .38;
  cursor: default;
}

.google-reviews__arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.google-reviews__viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.google-reviews__viewport::-webkit-scrollbar {
  display: none;
}

.google-reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  align-items: stretch;
}

.google-review-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  scroll-snap-align: start;
  border: 1px solid #e0e7ea;
  border-radius: 22px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(9, 42, 80, .07);
}

.google-review-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.google-review-card__avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--home-copper-soft);
  box-shadow: 0 0 0 1px #e1d6ca;
  color: #87532e;
  font-size: 20px;
  font-weight: 600;
}

.google-review-card__avatar--blue {
  background: #e8f1f6;
  box-shadow: 0 0 0 1px #d2e0e8;
  color: var(--home-blue);
}

.google-review-card__avatar--navy {
  background: var(--home-navy);
  box-shadow: 0 0 0 1px var(--home-navy);
  color: #fff;
}

.google-review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-review-card__name {
  margin: 0;
  color: var(--home-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.google-review-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.google-review-card__rating .google-reviews__stars {
  font-size: 14px;
  letter-spacing: 1px;
}

.google-review-card__rating span:last-child {
  color: var(--home-muted);
  font-size: 14px;
}

.google-review-card__text {
  margin: 24px 0 0;
  color: var(--home-text);
  font-size: 16px;
  line-height: 1.72;
}

.google-review-card__mark {
  margin-top: auto;
  padding-top: 22px;
  color: var(--home-copper);
  font-family: Georgia, serif;
  font-size: 35px;
  line-height: .7;
}

.google-reviews__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.google-reviews__dots {
  display: flex;
  grid-column: 2;
  justify-content: center;
  gap: 8px;
}

.google-reviews__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #c8d2d8;
  cursor: pointer;
  transition: width .18s ease, border-radius .18s ease, background .18s ease;
}

.google-reviews__dot.is-active {
  width: 24px;
  border-radius: 6px;
  background: var(--home-copper);
}

.google-reviews__link {
  display: inline-flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--home-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.google-reviews__link:hover {
  color: var(--home-copper);
}

.google-reviews__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.google-reviews__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .google-reviews__track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .google-review-card {
    min-height: 370px;
  }
}

@media (max-width: 680px) {
  .google-reviews__header {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
  }

  .google-reviews__source {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .google-reviews__source-label {
    width: 100%;
  }

  .google-reviews h2 {
    font-size: 2.25rem;
  }

  .google-reviews__controls {
    order: 2;
    padding: 0;
  }

  .google-reviews__track {
    grid-auto-columns: 88%;
    gap: 14px;
  }

  .google-review-card {
    min-height: 390px;
    border-radius: 19px;
    padding: 22px;
  }

  .google-reviews__footer {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
  }

  .google-reviews__dots,
  .google-reviews__link {
    grid-column: 1;
  }

  .google-reviews__dots {
    justify-self: center;
  }

  .google-reviews__link {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-reviews__viewport {
    scroll-behavior: auto;
  }

  .google-reviews__arrow,
  .google-reviews__dot {
    transition: none;
  }
}
