/* Doon Harmony Testimonials — scoped under .dh-testimonials */

.dh-testimonials {
  --dh-ts-bg: #ffffff;
  --dh-ts-surface: #ffffff;
  --dh-ts-text: #000000;
  --dh-ts-muted: #555555;
  --dh-ts-border: rgba(0, 0, 0, 0.1);
  --dh-ts-black: #000000;
  --dh-ts-gray: #f5f5f5;
  --dh-ts-gray-mid: #e0e0e0;
  --dh-ts-gold: #e8a317;
  --dh-ts-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --dh-ts-shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.12);
  --dh-ts-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Open Sans', sans-serif;
  color: var(--dh-ts-text);
  box-sizing: border-box;
}

.dh-testimonials *,
.dh-testimonials *::before,
.dh-testimonials *::after {
  box-sizing: border-box;
}

.dh-testimonials .dh-testimonial-section {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 56px;
  align-items: center;
  isolation: isolate;
}

.dh-testimonials .dh-testimonial-section::before,
.dh-testimonials .dh-testimonial-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: dhTsBlobFloat 12s ease-in-out infinite alternate;
}

.dh-testimonials .dh-testimonial-section::before {
  width: 420px;
  height: 420px;
  background: rgba(0, 0, 0, 0.04);
  top: -80px;
  left: -100px;
}

.dh-testimonials .dh-testimonial-section::after {
  width: 360px;
  height: 360px;
  background: rgba(0, 0, 0, 0.03);
  bottom: -60px;
  right: -80px;
  animation-delay: -6s;
}

@keyframes dhTsBlobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.dh-testimonials .dh-left-content {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--dh-ts-ease), transform 0.8s var(--dh-ts-ease);
}

.dh-testimonials .dh-left-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dh-testimonials .dh-left-content .dh-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dh-ts-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 8px 16px;
  background: var(--dh-ts-gray);
  border-radius: 50px;
  border: 1px solid var(--dh-ts-border);
  animation: dhTsPulse 3s ease-in-out infinite;
}

@keyframes dhTsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.08); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

.dh-testimonials .dh-left-content h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--dh-ts-text);
}

.dh-testimonials .dh-left-content h2 em {
  font-style: normal;
  color: var(--dh-ts-black);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.dh-testimonials .dh-left-content p {
  color: var(--dh-ts-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.dh-testimonials .dh-stat-row {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--dh-ts-border);
}

.dh-testimonials .dh-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--dh-ts-text);
  line-height: 1;
  margin-bottom: 4px;
}

.dh-testimonials .dh-stat span {
  font-size: 13px;
  color: var(--dh-ts-muted);
}

.dh-testimonials .dh-slider-wrap {
  position: relative;
  min-width: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s var(--dh-ts-ease) 0.15s, transform 0.9s var(--dh-ts-ease) 0.15s;
}

.dh-testimonials .dh-slider-wrap.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.dh-testimonials .dh-slider-viewport {
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y pinch-zoom;
  padding: 4px;
}

.dh-testimonials .dh-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.65s var(--dh-ts-ease);
  will-change: transform;
}

.dh-testimonials .dh-slider-track.is-dragging {
  transition: none;
}

.dh-testimonials .dh-ts-card {
  flex: 0 0 calc(50% - 10px);
  background: var(--dh-ts-surface);
  border: 1px solid var(--dh-ts-border);
  border-radius: 22px;
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--dh-ts-shadow);
  transition: transform 0.4s var(--dh-ts-ease), box-shadow 0.4s var(--dh-ts-ease), border-color 0.4s;
  margin: 0;
}

.dh-testimonials .dh-ts-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--dh-ts-shadow-hover);
  border-color: rgba(0, 0, 0, 0.2);
}

.dh-testimonials .dh-ts-card.is-active {
  animation: dhTsCardIn 0.55s var(--dh-ts-ease) both;
}

@keyframes dhTsCardIn {
  from { opacity: 0.6; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dh-testimonials .dh-ts-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 80px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.06);
  font-family: Georgia, serif;
  pointer-events: none;
}

.dh-testimonials .dh-card-accent {
  position: absolute;
  top: 0;
  left: 28px;
  width: 48px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--dh-ts-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--dh-ts-ease);
}

.dh-testimonials .dh-ts-card:hover .dh-card-accent,
.dh-testimonials .dh-ts-card.is-active .dh-card-accent {
  transform: scaleX(1);
}

.dh-testimonials .dh-instrument {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dh-ts-black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 7px 14px;
  background: var(--dh-ts-gray);
  border-radius: 50px;
  width: fit-content;
  border: 1px solid var(--dh-ts-border);
}

.dh-testimonials .dh-ts-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
  flex: 1;
  margin: 0;
}

.dh-testimonials .dh-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--dh-ts-gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.dh-testimonials .dh-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--dh-ts-border);
}

.dh-testimonials .dh-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dh-ts-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s var(--dh-ts-ease);
}

.dh-testimonials .dh-ts-card:hover .dh-avatar {
  transform: scale(1.08) rotate(-4deg);
}

.dh-testimonials .dh-author-info h4 {
  color: var(--dh-ts-text);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}

.dh-testimonials .dh-author-info span {
  color: var(--dh-ts-muted);
  font-size: 13px;
}

.dh-testimonials .dh-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
}

.dh-testimonials .dh-slider-arrows {
  display: flex;
  gap: 10px;
}

.dh-testimonials .dh-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--dh-ts-border);
  background: var(--dh-ts-surface);
  color: var(--dh-ts-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--dh-ts-shadow);
  padding: 0;
}

.dh-testimonials .dh-arrow:hover:not(:disabled) {
  background: var(--dh-ts-black);
  border-color: var(--dh-ts-black);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.dh-testimonials .dh-arrow:active:not(:disabled) {
  transform: scale(0.96);
}

.dh-testimonials .dh-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.dh-testimonials .dh-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--dh-ts-ease);
}

.dh-testimonials .dh-arrow--prev:hover:not(:disabled) svg {
  transform: translateX(-2px);
}

.dh-testimonials .dh-arrow--next:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.dh-testimonials .dh-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.dh-testimonials .dh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--dh-ts-gray-mid);
  cursor: pointer;
  transition: width 0.4s var(--dh-ts-ease), background 0.3s, border-radius 0.4s;
  position: relative;
  overflow: hidden;
}

.dh-testimonials .dh-dot.is-active {
  width: 32px;
  border-radius: 4px;
  background: var(--dh-ts-gray-mid);
}

.dh-testimonials .dh-dot-fill {
  position: absolute;
  inset: 0;
  background: var(--dh-ts-black);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
}

.dh-testimonials .dh-dot.is-active .dh-dot-fill {
  animation: dhTsDotFill 5s linear forwards;
}

@keyframes dhTsDotFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.dh-testimonials .dh-counter {
  font-size: 13px;
  color: var(--dh-ts-muted);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dh-testimonials .dh-counter strong {
  color: var(--dh-ts-text);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.3s var(--dh-ts-ease);
  display: inline-block;
}

.dh-testimonials .dh-counter strong.dh-bump {
  animation: dhTsBump 0.4s var(--dh-ts-ease);
}

@keyframes dhTsBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); color: var(--dh-ts-black); }
  100% { transform: scale(1); }
}

.dh-testimonials .dh-progress-bar {
  height: 3px;
  background: var(--dh-ts-gray-mid);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
}

.dh-testimonials .dh-progress-fill {
  height: 100%;
  background: var(--dh-ts-black);
  border-radius: 3px;
  width: 0%;
  transition: width 0.65s var(--dh-ts-ease);
}

@media (max-width: 1024px) {
  .dh-testimonials .dh-testimonial-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .dh-testimonials .dh-left-content {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
  }

  .dh-testimonials .dh-stat-row {
    justify-content: center;
  }

  .dh-testimonials .dh-slider-wrap {
    transform: translateY(32px);
  }

  .dh-testimonials .dh-slider-wrap.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .dh-testimonials .dh-testimonial-section {
    padding: 48px 16px;
    gap: 32px;
  }

  .dh-testimonials .dh-left-content h2 { font-size: 28px; }
  .dh-testimonials .dh-left-content p  { font-size: 15px; }

  .dh-testimonials .dh-stat-row {
    gap: 20px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .dh-testimonials .dh-stat strong { font-size: 22px; }

  .dh-testimonials .dh-ts-card {
    flex: 0 0 100%;
    min-height: auto;
    padding: 24px 20px 22px;
  }

  .dh-testimonials .dh-ts-card p { font-size: 14px; }

  .dh-testimonials .dh-slider-controls {
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .dh-testimonials .dh-dots {
    order: -1;
    width: 100%;
    margin-bottom: 6px;
  }

  .dh-testimonials .dh-counter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dh-testimonials *,
  .dh-testimonials *::before,
  .dh-testimonials *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .dh-testimonials .dh-slider-track { transition: none; }
}
