.testimonials {
  position: relative;
  background-color: #f4f5f7 !important;
  background-image: url('../images/testimonials-warehouse-clean-bg.webp?v=1') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  padding-block: 100px 95px;
  overflow: hidden;
  text-align: center;
}

.testimonials > .container {
  position: relative;
  z-index: 2;
}

/* Background Atmosphere */
.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../images/testimonials-warehouse-clean-bg.webp?v=1');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 1;
}

.testimonials-rack-overlay {
  display: none !important;
}

.testimonials-chevron {
  display: none !important;
}

.testimonials-chevron svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Heading & Eyebrow */
.testimonials .center-heading {
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.testimonial-kicker {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  color: #a67c1e;
  text-transform: uppercase;
  margin-bottom: 12px;
  will-change: transform, opacity;
}

.testimonial-title {
  font-family: Impact, 'Barlow Condensed', -apple-system, sans-serif;
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #151613;
  margin: 0;
  text-transform: uppercase;
}

.testimonial-title .title-line {
  display: block;
  will-change: transform, opacity;
}

.heading-accent-line {
  width: 64px;
  height: 3.5px;
  background: var(--yellow, #ffc629);
  margin: 18px auto 0;
  border-radius: 2px;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* 3-Card Grid */
.testimonials .quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(220, 224, 230, 0.85);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 34px 30px 32px;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 400ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

/* ANIMATION 07 — Premium Card Hover (Desktop) */
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 
      0 20px 42px rgba(0, 0, 0, 0.09),
      0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 198, 41, 0.45);
  }

  .testimonial-card:hover .card-border-trace {
    box-shadow: 0 0 12px rgba(255, 198, 41, 0.6);
  }
}

/* ANIMATION 03 — Golden Border Trace along top border */
.card-border-trace {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  background: linear-gradient(90deg, #ffc629 0%, #ffd454 100%);
  transform-origin: left center;
  transform: scaleX(1);
  will-change: transform;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Watermark quotation mark in top right */
.card-quote-mark {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 64px;
  line-height: 1;
  color: #ffc629;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

/* ANIMATION 04 — Star Rating */
.testimonial-card .stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 18px;
}

.testimonial-card .star {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: #f59e0b;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* ANIMATION 05 — Testimonial Paragraph */
.testimonial-card .testimonial-text {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.68;
  color: #374151;
  margin: 0 0 24px;
  will-change: transform, opacity;
}

/* ANIMATION 06 — Client Name & Accent Underline */
.client-info {
  margin-top: auto;
  will-change: transform, opacity;
}

.client-name {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: #111827;
}

.client-underline {
  width: 28px;
  height: 2.5px;
  background: var(--yellow, #ffc629);
  margin-top: 7px;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(1);
  will-change: transform;
}

/* ANIMATION 08 — CTA Button */
.testimonial-cta-wrap {
  text-align: center;
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.testimonial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 28px;
  background: var(--yellow, #ffc629);
  color: #111827;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 198, 41, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-cta:hover {
  background: #ffd454;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 198, 41, 0.48);
}

.testimonial-cta .cta-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.testimonial-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .testimonials .quote-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-inline: auto;
    gap: 22px;
  }
  .testimonials-chevron {
    width: 200px;
    opacity: 0.5;
  }
}

@media (max-width: 560px) {
  .testimonials {
    padding-block: 70px 65px;
  }
  .testimonial-card {
    padding: 26px 22px;
  }
  .testimonial-title {
    font-size: 34px;
  }
  .testimonials-chevron {
    display: none;
  }
}
