/* Google Reviews Showcase */
.testimonials-section {
  padding: 3rem 0;
  background: #faf8f5;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonials-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonials-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: var(--testimonials-delay, 0ms);
}

.testimonials-section.testimonials-js .testimonials-reveal {
  opacity: 0;
  transform: translateY(2rem);
}

.testimonials-section.testimonials-js.is-visible .testimonials-reveal {
  opacity: 1;
  transform: translateY(0);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.testimonials-subtitle {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: rgb(107, 114, 128);
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 1px solid rgb(229, 231, 235);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.testimonials-title {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgb(17, 24, 39);
  font-weight: 500;
  font-family: "Gambetta", serif;
}

.testimonials-break {
  display: none;
}

.google-reviews-overview {
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}

.google-reviews-brand,
.google-reviews-score {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.google-reviews-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #4285f4;
}

.google-reviews-brand div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.google-reviews-kicker,
.google-reviews-score-copy span,
.google-review-author-copy small,
.google-review-translated {
  color: rgb(107, 114, 128);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.google-reviews-brand strong {
  color: rgb(17, 24, 39);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.google-reviews-score-number {
  color: rgb(17, 24, 39);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 600;
  font-family: "Gambetta", serif;
}

.google-reviews-score-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.google-reviews-stars {
  display: flex;
  gap: 0.18rem;
  line-height: 1;
}

.google-review-star {
  width: 1.05rem;
  height: 1.05rem;
  color: rgb(209, 213, 219);
}

.google-review-star.is-filled {
  color: #fbbc04;
  fill: #fbbc04;
}

.google-reviews-link {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgb(17, 24, 39);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.google-reviews-link svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.google-reviews-link:hover,
.google-reviews-link:focus-visible {
  background: #b99a7a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(185, 154, 122, 0.26);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.testimonials-card {
  min-height: 100%;
  background: #fff;
  border: 1px solid rgb(243, 244, 246);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
}

.testimonials-card:hover {
  border-color: rgba(185, 154, 122, 0.45);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  transform: translateY(-4px);
}

.google-review-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.testimonials-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.testimonials-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgb(229, 231, 235);
  overflow: hidden;
  flex-shrink: 0;
}

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

.testimonials-avatar-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f6f1eb, #dfc7ad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(80, 67, 55);
  font-size: 0.95rem;
  font-weight: 600;
}

.google-review-author-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.google-review-author-copy span,
.google-review-author-copy a {
  color: rgb(17, 24, 39);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.google-review-author-copy a:hover,
.google-review-author-copy a:focus-visible {
  color: #b99a7a;
}

.google-review-source {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4285f4;
}

.testimonials-quote {
  margin: 1rem 0 0;
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(75, 85, 99);
  font-weight: 400;
  font-style: italic;
  font-family: "Gambetta", serif;
  overflow-wrap: anywhere;
}

.google-review-translated {
  display: inline-flex;
  margin-top: 1rem;
}

/* Compatibility for the standalone reviews page that still uses the old rating bars. */
.testimonials-ratings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 2rem;
  margin-bottom: 2.5rem;
}

.testimonials-rating-item {
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials-rating-label {
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: rgb(17, 24, 39);
  font-weight: 500;
}

.testimonials-rating-label span {
  color: rgb(17, 24, 39);
  font-weight: 600;
}

.testimonials-rating-track {
  position: relative;
  width: 100%;
  height: 0.375rem;
  background: rgb(229, 231, 235);
  border-radius: 999px;
  display: flex;
  align-items: center;
}

.testimonials-rating-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: #b99a7a;
  width: var(--score-pct, 0%);
  transition: width 1.5s ease;
}

.testimonials-rating-dot {
  position: absolute;
  top: 50%;
  left: var(--score-pct, 0%);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  border: 2px solid #b99a7a;
  background: #faf8f5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transform: translate(-50%, -50%);
  transition: left 1.5s ease;
}

.testimonials-section.testimonials-js .testimonials-rating-fill {
  width: 0%;
}

.testimonials-section.testimonials-js .testimonials-rating-dot {
  left: 0%;
}

.testimonials-section.testimonials-js.is-visible .testimonials-rating-fill {
  width: var(--score-pct, 0%);
}

.testimonials-section.testimonials-js.is-visible .testimonials-rating-dot {
  left: var(--score-pct, 0%);
}

.testimonials-stars {
  display: flex;
  gap: 0.25rem;
}

.testimonial-star {
  width: 1rem;
  height: 1rem;
  color: rgb(209, 213, 219);
}

.testimonial-star.is-filled {
  color: rgb(17, 24, 39);
  fill: rgb(17, 24, 39);
}

.reviews-page .testimonials-author {
  margin-top: 1.5rem;
}

.reviews-page .testimonials-author span {
  color: rgb(17, 24, 39);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonials-container {
    padding: 0 1.5rem;
  }

  .testimonials-header {
    margin-bottom: 2.5rem;
  }

  .testimonials-title {
    font-size: 2.25rem;
  }

  .testimonials-break {
    display: block;
  }

  .google-reviews-overview {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.25rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
  }

  .google-reviews-link {
    grid-column: 1 / -1;
  }

  .testimonials-card {
    padding: 1.5rem;
  }

  .google-review-star {
    width: 1.15rem;
    height: 1.15rem;
  }

  .testimonials-quote {
    font-size: 1.075rem;
  }
}

@media (min-width: 768px) {
  .testimonials-title {
    font-size: 3rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .testimonials-section {
    padding: 5rem 0;
  }

  .testimonials-container {
    padding: 0 2rem;
  }

  .google-reviews-overview {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    margin-bottom: 2.25rem;
  }

  .google-reviews-link {
    grid-column: auto;
    justify-self: end;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-reveal,
  .testimonials-card,
  .google-reviews-link {
    transition: none;
  }

  .testimonials-reveal {
    opacity: 1;
    transform: none;
  }
}
