/* ==========================================================================
   Section 08 — Testimonials (Elementor id d957528)
   Swiper carousel, time driven (autoplay 5000ms) plus prev/next arrows.
   Init lives in src/js/main.js under data-swiper="testimonials".
   Desktop 1440x906 / tablet 768x954 / mobile 390x1018. Background #F7F7F7.

   4 unique testimonials are authored here; the live page shows 12 slides
   because Swiper loop mode clones them. Slide content carries
   .animated.fadeInRight (1s, ease, 1 iteration) from base.css.

   Per-slide photo panels come from the four widget-wrap background images
   recorded in the research dump, one per testimonial (see .ts-media--N).
   ========================================================================== */

.s-testimonials {
  padding: 75px 0 20px;
  background-color: var(--c-offwhite);
  font-family: var(--f-body);
  font-size: var(--t-body-15);
  font-weight: 300;
  line-height: 1.5em;
  color: var(--c-text);
  overflow: hidden;
}

/* ---- Head: rating badge, eyebrow, title ---------------------------------- */

.s-testimonials .ts-head {
  text-align: center;
}

.s-testimonials .ts-rating {
  width: 141px;
  height: 42px;
  margin: 0 auto 15px;
  object-fit: contain;
}

.s-testimonials .ts-eyebrow {
  margin: 0 0 10px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5em;
  color: var(--c-grey-ba);
}

.s-testimonials .ts-title {
  max-width: 1140px;
  margin: 0 auto;
  font-family: var(--f-body);
  /* Measured 50px/1.3em on both desktop and tablet in the design references,
     so this heading does not take the global <=1024 type step-down. */
  font-size: 50px;
  font-weight: 300;
  line-height: 1.3em;
  letter-spacing: -0.5px;
  color: var(--c-grey-cc);
}

/* ---- Carousel shell ------------------------------------------------------- */

.s-testimonials .testimonials__swiper {
  position: relative;
  margin-top: 20px;
  padding: 0;
  overflow: hidden;
}

.s-testimonials .swiper-wrapper {
  align-items: stretch;
}

.s-testimonials .swiper-slide {
  height: auto;
}

/* ---- Slide: copy on the left, photo panel on the right -------------------- */

.s-testimonials .ts-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 570px;
}

.s-testimonials .ts-copy {
  position: relative;
  z-index: 1;
  padding: 0 68px 0 52px;
}

.s-testimonials .ts-quote {
  /* Quote face per tokens.css: Heebo 300, 16px desktop / 14px <=1024, 1.5em.
     The design reference renders these paragraphs upright, so no italic. */
  margin: 0;
  font-family: var(--f-quote);
  font-size: var(--t-quote);
  font-weight: 300;
  line-height: 1.5em;
  color: var(--c-text);
}

.s-testimonials .ts-quote--accent {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45em;
  color: var(--c-green);
}

/* ---- Author pill ---------------------------------------------------------- */

.s-testimonials .ts-author {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px -90px 0 -12px;
  padding: 10px 24px;
  background: var(--c-white);
  border-radius: 60px;
}

.s-testimonials .ts-avatar {
  flex: none;
  width: 61px;
  height: 61px;
  border-radius: 100px;
  object-fit: cover;
}

.s-testimonials .ts-author-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.s-testimonials .ts-name {
  margin: 0;
  font-family: var(--f-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2em;
  letter-spacing: -0.3px;
  color: var(--c-black);
}

.s-testimonials .ts-role {
  margin: 2px 0 0;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4em;
  color: var(--c-green);
}

/* ---- Photo panel ---------------------------------------------------------- */

.s-testimonials .ts-media {
  position: relative;
  z-index: 2;
  width: calc(100% - 40px);
  height: 455px;
  margin-left: -10px;
  border-radius: 24px;
  background-color: var(--c-grey-light);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.s-testimonials .ts-media--1 { background-image: url("../../../assets/img/2026/02/2026-01-16.webp"); }
.s-testimonials .ts-media--2 { background-image: url("../../../assets/img/2026/02/orgblog.webp"); }
.s-testimonials .ts-media--3 { background-image: url("../../../assets/img/2024/07/rsg-testimonial-images-1000-x-750.png"); }
.s-testimonials .ts-media--4 { background-image: url("../../../assets/img/2024/07/imgi_9_1c64a49b-eb1b-11f0-8a51-0242ac110002-JPG-hero_image-scaled.webp"); }

/* ---- Arrows (class names are wired in main.js, do not rename) ------------- */

.s-testimonials .swiper-button-prev,
.s-testimonials .swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  transform: translateY(-50%);
  background: none;
  color: var(--c-grey-ba);
  transition: color var(--dur) var(--ease);
}

.s-testimonials .swiper-button-prev { left: 0; }
.s-testimonials .swiper-button-next { right: 0; }

/* Neutralise the Swiper 6 default glyph so only the inline chevron shows. */
.s-testimonials .swiper-button-prev::after,
.s-testimonials .swiper-button-next::after {
  content: none;
}

.s-testimonials .swiper-button-prev svg,
.s-testimonials .swiper-button-next svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.s-testimonials .swiper-button-prev:hover,
.s-testimonials .swiper-button-next:hover {
  color: var(--c-green);
}

.s-testimonials .swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---- Tablet 768–1024 ------------------------------------------------------ */

@media (max-width: 1024px) {
  .s-testimonials {
    padding: 60px 0 20px;
  }

  .s-testimonials .ts-title {
    max-width: 560px;
  }

  .s-testimonials .ts-slide {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 560px;
    padding: 0 55px;
  }

  .s-testimonials .ts-copy {
    padding: 0;
  }

  .s-testimonials .ts-quote--accent {
    margin-top: 22px;
  }

  .s-testimonials .ts-author {
    margin: 30px -15px 0;
    padding: 10px 20px;
  }

  .s-testimonials .ts-name {
    font-size: 24px;
  }

  .s-testimonials .ts-media {
    width: 100%;
    height: 180px;
    margin: 24px 0 0;
    border-radius: 20px;
  }

  .s-testimonials .swiper-button-prev,
  .s-testimonials .swiper-button-next {
    width: 28px;
    height: 28px;
  }

  .s-testimonials .swiper-button-prev svg,
  .s-testimonials .swiper-button-next svg {
    width: 18px;
    height: 18px;
  }
}

/* ---- Mobile <=767 --------------------------------------------------------- */

@media (max-width: 767px) {
  .s-testimonials {
    padding: 50px 0 20px;
  }

  .s-testimonials .ts-rating {
    margin-bottom: 12px;
  }

  .s-testimonials .ts-eyebrow {
    font-size: 13px;
  }

  .s-testimonials .ts-title {
    font-size: 26px;
    letter-spacing: 0;
  }

  .s-testimonials .testimonials__swiper {
    margin-top: 30px;
  }

  .s-testimonials .ts-slide {
    min-height: 733px;
    padding: 0 55px;
    align-items: center;
  }

  .s-testimonials .ts-copy {
    text-align: center;
  }

  .s-testimonials .ts-author {
    gap: 14px;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin: 30px auto 0;
    padding: 12px 20px;
    border-radius: 24px;
  }

  .s-testimonials .ts-name {
    font-size: 20px;
  }

  .s-testimonials .ts-role {
    font-size: 14px;
  }

  /* The right-hand column collapses to an empty spacer on the live mobile
     layout, so the per-slide photo panel is not painted below 768px. */
  .s-testimonials .ts-media {
    display: none;
  }
}
