/* Homepage testimonials reuse the approved carrying-page customer feedback. */
.home-testimonials {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--flexlast-wide-container, 1300px);
  /* The preceding hero already contributes 24px of bottom space. */
  margin: calc(clamp(42px, 3.5vw, 48px) - 24px) auto 0;
  padding-inline: var(--flexlast-wide-gutter, 5%);
  color: #111827;
}
.home-testimonials h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.home-testimonials__google {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-bottom: 0;
}
.home-testimonials__google-rating {
  display: flex;
  justify-content: center;
  margin-inline: auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-testimonials__google-rating:hover { background: transparent; }
.home-testimonials__google-rating:hover .home-testimonials__google-count { text-decoration: underline; text-underline-offset: 3px; }
.home-testimonials__google-rating:active { background: transparent; }
.home-testimonials__google-name { display: inline-flex; align-items: center; gap: 8px; font-family: Roboto, sans-serif; font-size: 20px; font-weight: 400; color: #1f1f1f; white-space: nowrap; }
.home-testimonials__google-icon { flex: 0 0 26px; width: 26px; height: 26px; }
.home-testimonials__google-source { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.home-testimonials__google-outbound {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #c7c8ca;
  transition: color 150ms cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) {
  .home-testimonials__google-rating:hover .home-testimonials__google-outbound { color: #72747a; }
}
.home-testimonials__google-rating:focus-visible .home-testimonials__google-outbound { color: #72747a; }
@media (prefers-reduced-motion: reduce) {
  .home-testimonials__google-outbound { transition: none; }
}
.home-testimonials__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-testimonials__google-score { font-size: 22px; font-weight: 800; }
.home-testimonials__google-stars {
  color: transparent;
  background: linear-gradient(to right, #f4b400 var(--google-rating-fill, 100%), #d1d5db var(--google-rating-fill, 100%));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 22px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.home-testimonials__google-attributions { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.home-testimonials__google-attributions:empty { display: none; }
.home-testimonials__google-attributions a { color: #327447; }
@media (forced-colors: active) {
  .home-testimonials__google-stars { color: CanvasText; background: none; }
}
.home-testimonials__google-count { color: #4b5563; white-space: nowrap; }
.home-testimonials__google-date { margin: 4px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.home-testimonials__google-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #327447;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.home-testimonials__google-link:hover { color: #17532a; text-decoration-thickness: 2px; }
.home-testimonials__google-link:active { color: #111827; }
.home-testimonials__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-testimonials__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e5e9e7;
  border-radius: 24px;
  background: #f7f9f8;
}
.home-testimonials__topic {
  margin: 0 0 16px;
  color: #327447;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.home-testimonials blockquote {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-testimonials__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin-top: auto;
}
.home-testimonials__author strong,
.home-testimonials__author span { display: block; }
.home-testimonials__author strong { font-size: 15px; line-height: 1.4; }
.home-testimonials__author span { margin-top: 3px; color: #667085; font-size: 12px; line-height: 1.4; }
.home-testimonials__author img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}
.home-testimonials__photo { object-fit: cover; object-position: 50% 66%; }
.home-testimonials__logo { object-fit: contain; background: #fff; }
.home-testimonials__sources { margin-top: 12px; color: #667085; font-size: 13px; line-height: 1.5; }
.home-testimonials__sources summary { width: fit-content; padding-block: 12px; cursor: pointer; }
.home-testimonials__sources p { max-width: 75ch; margin: 0 0 12px; }
.home-testimonials :focus-visible { outline: 2px solid #17843d; outline-offset: 4px; }
@media (max-width: 767px) {
  .home-testimonials { padding-inline: 16px; }
  .home-testimonials h2 { margin-bottom: 20px; }
  .home-testimonials__list {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin-inline: -16px;
    padding: 0 16px 12px;
  }
  .home-testimonials__card { flex: 0 0 88%; padding: 22px; scroll-snap-align: start; }
}

/* Match the full visible gap on either side, without collapsed margins. */
body.home-page.home-breakpoints-page .home-testimonials + #homePopularServices {
  margin-top: 0 !important;
  padding-top: clamp(42px, 3.5vw, 48px) !important;
}
@media (min-width: 980px) {
  .home-testimonials {
    /* Desktop hero: 16px padding plus 4px below its widget wrapper. */
    margin-top: calc(clamp(42px, 3.5vw, 48px) - 20px);
  }
}

/* The carrying landing page has its own hero spacing and benefits strip. */
body.loaders-page .home-testimonials--loaders {
  margin: 0 auto;
  padding-block: clamp(42px, 3.5vw, 48px);
}
body.loaders-page .home-testimonials--loaders + .loaders-benefits {
  margin-top: 0;
}
@media (min-width: 980px) {
  body.loaders-page .home-testimonials--loaders {
    padding-top: calc(clamp(42px, 3.5vw, 48px) - 36px);
  }
}
