/* ============ TESTIMONIALS — "Real Stories, Real Impact" ============ */
.testimonials {
  position: relative;
  background: var(--off-white);
  padding-bottom: 0;
}

.testimonials .section-head { margin-bottom: clamp(34px, 4.5vw, 52px); }

/* Full-bleed image band the cards sit on, as on the reference */
.testimonials__band {
  position: relative;
  padding-block: clamp(50px, 7vw, 86px);
  background: var(--ink);
  overflow: hidden;
}
.testimonials__band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--t-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.62;
}
.testimonials__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.58));
}
.testimonials__carousel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.testimonials__swiper { flex: 1; overflow: hidden; padding-block: 6px; }

/* slidesPerView:"auto" means the slide width must come from CSS */
.testimonials__swiper .swiper-slide {
  width: min(430px, 84vw);
  height: auto;          /* let flex equalise card heights */
  display: flex;
}

/* ---- Card ---- */
.tcard {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tcard__quote {
  font-size: 3.6rem;
  line-height: 0.7;
  font-weight: 700;
  color: var(--red);
  opacity: 0.35;
}
.tcard blockquote {
  margin-top: 14px;
  flex: 1;
  font-size: var(--fs-small);
  line-height: 1.85;
  color: var(--text-body);
}
.tcard__rule {
  margin: 20px 0 16px;
  border: 0;
  height: 2px;
  width: 42px;
  background: var(--red);
}

.tcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.tcard__person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tcard__person img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
/* initials instead of a photo */
.tcard__person .tcard__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tcard__person span:not(.tcard__avatar) {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.tcard__person strong {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-strong);
}
.tcard__person small {
  font-size: var(--fs-tiny);
  color: var(--text-muted);
}
.tcard__stars {
  display: flex;
  gap: 3px;
  color: var(--red);
  font-size: 0.75rem;
}

/* ---- Google rating summary under the title ---- */
.tgrade {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.tgrade b { font-size: 1.1rem; color: var(--text-strong); }
.tgrade__stars { display: inline-flex; gap: 2px; color: var(--red); font-size: 0.75rem; }

/* ---- Nav arrows ---- */
.testimonials__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.testimonials__nav:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (max-width: 700px) {
  .testimonials__nav { display: none; }
}

/* ---- Pagination dots (on the dark band) ---- */
.testimonials__dots {
  position: relative !important;
  z-index: 2;
  margin-top: clamp(22px, 3vw, 32px);
  display: flex;
  justify-content: center;
  gap: 8px;
}
.testimonials__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.testimonials__dots .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--red);
}
