/*-------------------------------------------------
  Refined Testimonial Section
--------------------------------------------------*/

.tm-refined-section {
  --tm-bg: #000000;
  --tm-card-bg: #131313;
  --tm-card-border: rgba(255, 255, 255, 0.09);
  --tm-card-border-hover: rgba(255, 255, 255, 0.18);
  --tm-heading: #f5f4ef;
  --tm-copy: rgba(220, 218, 212, 0.76);
  --tm-copy-soft: rgba(220, 218, 212, 0.58);
  --tm-gold: var(--color-gold, #d4af37);
  --tm-gold-light: var(--color-gold-light, #f5d97a);
  position: relative;
  background: var(--tm-bg);
  overflow: hidden;
  padding: clamp(98px, 10vw, 128px) 0 clamp(102px, 10.5vw, 134px);
}

.tm-refined-section.ca-surface::before,
.tm-refined-section.ca-surface::after {
  display: none;
}

.tm-refined-section.ca-surface-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tm-refined-head {
  max-width: 840px;
  margin: 0 auto clamp(34px, 4vw, 52px);
}

.tm-refined-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(212, 175, 55, 0.08);
  color: rgba(245, 217, 122, 0.95);
  font-family: var(--tp-ff-unbounded);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tm-refined-title {
  margin: 0;
  color: var(--tm-heading);
  font-family: var(--tp-ff-unbounded);
  font-size: clamp(36px, 5.3vw, 74px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tm-refined-title-em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  color: var(--tm-gold);
  letter-spacing: 0;
}

.tm-refined-slider {
  padding-bottom: 44px;
}

.tm-refined-slider .swiper-slide {
  height: auto;
}

.tm-refined-card {
  height: 100%;
  min-height: 258px;
  border-radius: 16px;
  border: 1px solid var(--tm-card-border);
  background: var(--tm-card-bg);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  padding: 24px 22px 22px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  transition-delay: calc(var(--tm-stagger, 0) * 80ms);
}

.tm-refined-section.is-inview .tm-refined-card {
  opacity: 1;
  transform: translateY(0);
}

.tm-refined-card:hover {
  transform: translateY(-4px);
  border-color: var(--tm-card-border-hover);
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.tm-refined-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tm-refined-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 217, 122, 0.88);
  font-family: var(--tp-ff-unbounded);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tm-refined-quote {
  color: rgba(255, 255, 255, 0.22);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-6px);
}

.tm-refined-name {
  margin: 0 0 4px;
  color: var(--tm-heading);
  font-family: var(--tp-ff-unbounded);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tm-refined-role {
  margin: 0 0 12px;
  color: rgba(245, 217, 122, 0.86);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tm-refined-copy {
  margin: 0;
  color: var(--tm-copy);
  font-size: 15px;
  line-height: 1.68;
}

.tm-refined-pagination {
  position: relative;
  margin-top: 26px;
  text-align: center;
}

.tm-refined-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  opacity: 1;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.tm-refined-pagination .swiper-pagination-bullet-active {
  transform: scale(1.24);
  background: var(--tm-gold);
}

@media (max-width: 991px) {
  .tm-refined-card {
    min-height: 244px;
  }
}

@media (max-width: 768px) {
  .tm-refined-section {
    padding-top: clamp(82px, 14vw, 102px);
    padding-bottom: clamp(86px, 15vw, 108px);
  }

  .tm-refined-section .container {
    padding-left: clamp(16px, 5vw, 22px);
    padding-right: clamp(16px, 5vw, 22px);
  }

  .tm-refined-head {
    margin-bottom: 30px;
  }

  .tm-refined-title {
    font-size: clamp(32px, 10vw, 44px);
  }

  .tm-refined-slider {
    padding-bottom: 38px;
  }

  .tm-refined-card {
    min-height: 0;
    padding: 22px 18px 20px;
  }

  .tm-refined-copy {
    font-size: 14px;
    line-height: 1.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-refined-card,
  .tm-refined-pagination .swiper-pagination-bullet {
    transition: none;
  }
}
