/* ==========================================================================
   Homepage — Client testimonials
   ========================================================================== */
.home-testimonials {
  --ht-ink: #061b2c;
  --ht-muted: #5a7086;
  --ht-border: #dde5ee;
  --ht-soft: #f4f8fc;
  --ht-blue: #0b66c3;
  --ht-blue-soft: #e8f2fc;
  background: #fff;
  color: var(--ht-ink);
  font-family: "Outfit", "Outfit Placeholder", sans-serif;
  padding: clamp(52px, calc(4vw + 20px), 68px) 0 clamp(16px, 2vw, 24px);
}

.home-testimonials-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  background: none;
}

.home-testimonials-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.home-testimonials-head-copy {
  max-width: 720px;
}

.home-testimonials-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700 !important;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.home-testimonials-head h2 span {
  background: linear-gradient(100deg, #0a2744 8%, #8fc5ff 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-testimonials-head p {
  margin: 0;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--ht-muted);
  max-width: 62ch;
}

.home-testimonials-view-all {
  flex-shrink: 0;
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  background: var(--ht-blue) !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  white-space: nowrap;
}

.home-testimonials-view-all:hover {
  background: #0956a8 !important;
  color: #fff !important;
}

.home-testimonials-featured-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.home-testimonials-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 220px;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: hidden;
}

.home-testimonials-featured-media {
  display: block;
  min-height: 100%;
  background: none;
  border-radius: 14px;
  overflow: hidden;
}

.home-testimonials-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.home-testimonials-featured-body {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
}

.home-testimonials-quote-mark {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #d5e0ec;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.home-testimonials-person {
  margin-bottom: 12px;
}

.home-testimonials-person strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-testimonials-person span {
  display: block;
  margin-top: 4px;
  color: var(--ht-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.home-testimonials-featured blockquote,
.home-testimonials-review blockquote {
  margin: 0;
}

.home-testimonials-featured blockquote p {
  margin: 0 0 auto;
  padding-bottom: 16px;
  color: var(--ht-ink);
  font-size: clamp(0.92rem, 1vw, 0.98rem);
  line-height: 1.6;
}

.home-testimonials-video-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--ht-blue);
  border-radius: 8px;
  background: transparent;
  color: var(--ht-blue);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.home-testimonials-video-btn:hover {
  color: #0956a8;
}

.home-testimonials-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-testimonials-review,
.home-testimonials-summary {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--ht-border);
  border-radius: 14px;
  background: none;
}

.home-testimonials-video-btn svg {
  flex-shrink: 0;
}

.home-testimonials-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-testimonials-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--ht-border);
  color: var(--ht-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-testimonials-review-head strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-testimonials-review blockquote p {
  margin: 0 0 16px;
  flex: 1 1 auto;
  color: var(--ht-ink);
  font-size: clamp(0.9rem, 1vw, 0.96rem);
  line-height: 1.6;
}

.home-testimonials-review-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.home-testimonials-platform-logo {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-testimonials-platform-logo--summary {
  width: 28px;
  height: 28px;
}

.home-testimonials-review-foot picture,
.home-testimonials-summary-box picture {
  display: inline-flex;
  flex-shrink: 0;
}

.home-testimonials-stars {
  display: inline-flex;
  gap: 2px;
}

.home-testimonials-stars span {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.home-testimonials-stars--clutch span {
  background: #e74c3c;
}

.home-testimonials-stars--google span {
  background: #fbbc04;
}

.home-testimonials-summary {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-testimonials-summary h3 {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700 !important;
  line-height: 1.35;
}

.home-testimonials-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.home-testimonials-summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--ht-border);
  border-radius: 10px;
  background: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}

.home-testimonials-summary-box:hover {
  border-color: #c5d5e8;
}

.home-testimonials-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ht-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .home-testimonials-featured-row,
  .home-testimonials-bottom-row {
    grid-template-columns: 1fr;
  }

  .home-testimonials-featured {
    grid-template-columns: 1fr;
  }

  .home-testimonials-featured-media img {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .home-testimonials-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-testimonials-view-all {
    align-self: flex-start;
  }

  .home-testimonials-summary-grid {
    grid-template-columns: 1fr;
  }
}
