/* ================================================================
   TESTIMONIALS — Dark background, static grid (4+4+3)
   ================================================================ */
#testimonials {
  background: var(--charcoal);
  padding: 56px 0 48px;
}

.testimonials-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label--center { display: block; text-align: center; }
.section-title--center { text-align: center; }

#testimonials .section-title {
  font-size: clamp(32px, 3.5vw, 48px);
}

/* Video poster */
.video-poster {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 48px;
  aspect-ratio: 16/9;
  background: #1e2028;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.video-poster-bg { position: absolute; inset: 0; background-color: #1e2028; background-size: cover; background-position: center top; }
.video-poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 250ms var(--ease-spring), transform 250ms var(--ease-spring);
}
.video-poster-play svg { width: 26px; height: 26px; fill: var(--olive); margin-left: 4px; transition: fill 250ms ease; }
.video-poster:hover .video-poster-play { background: var(--olive); transform: translate(-50%, -50%) scale(1.1); }
.video-poster:hover .video-poster-play svg { fill: white; }

.video-poster-caption { position: absolute; bottom: 20px; right: 24px; text-align: right; }
.video-poster-name { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--olive); display: block; margin-bottom: 2px; }
.video-poster-sub { font-weight: 300; font-size: 13px; color: rgba(255,255,255,0.6); }

.video-poster { margin-top: 40px; }
.video-embed { display: none; width: 100%; max-width: 760px; margin: 0 auto 0; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Carousel ── */
.tcarousel {
  position: relative;
  padding: 0 48px;
}

.tcarousel-viewport {
  overflow: hidden;
}

.tcarousel-track {
  display: flex;
  gap: 32px;
  transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  touch-action: pan-y;
}

/* 4 cards at 1280px — slight upscale (~265px) still looks sharp */
.tcard-slide {
  flex: 0 0 calc(25% - 24px);
  min-width: 0;
  aspect-ratio: 229 / 349;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.tcard-slide:hover {
  transform: translateY(-4px);
}

.tcard-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
}

/* Arrows */
.tcarousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
  z-index: 2;
  padding: 0;
}
.tcarousel-arrow:hover {
  background: var(--olive);
  border-color: var(--olive);
}
.tcarousel-arrow--prev { left: 0; }
.tcarousel-arrow--next { right: 0; }

/* Dots */
.tcarousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.tcarousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
  padding: 0;
}
.tcarousel-dot--active {
  background: var(--olive);
  transform: scale(1.3);
}
.tcarousel-dot:hover:not(.tcarousel-dot--active) { background: rgba(255,255,255,0.5); }

/* Static grid — 4 per row (kept for reference, now inside .tcarousel-page) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px 24px;
  padding-top: 56px;
}

/* Testimonial cards */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 0 20px 24px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--olive);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: -40px;
  background: var(--olive-wash);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.testimonial-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.testimonial-quotes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 10px 0 6px;
  width: 100%;
}
.testimonial-q {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
  user-select: none;
}

.testimonial-text {
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 16px;
  text-align: center;
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--heading-dark);
  margin-bottom: 2px;
}
.testimonial-role {
  font-weight: 400;
  font-size: 12px;
  color: var(--olive);
}

/* Counter (mobile only — shown/hidden by JS) */
.tcarousel-counter {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 900px) {
  /* 3 visible on tablet */
  .tcard-slide { flex: 0 0 calc(33.333% - 13.4px); }
}
@media (max-width: 600px) {
  /* 1 visible on mobile — branded arrows, dots replaced by counter */
  .tcard-slide { flex: 0 0 100%; }
  .tcarousel { padding: 0 40px; }
  .tcarousel-dots { margin-top: 12px; }

  /* Show arrows on mobile, branded olive */
  .tcarousel-arrow {
    display: flex;
    width: 32px;
    height: 48px;
    border-radius: 6px;
    background: var(--olive);
    border-color: var(--olive);
    font-size: 22px;
  }
  .tcarousel-arrow:hover {
    background: var(--olive);
    border-color: var(--olive);
    opacity: 0.85;
  }
}
@media (max-width: 420px) {
  .testimonials-inner { padding: 0 16px; }
  .tcarousel { padding: 0 36px; }
}
