/* ==========================================================================
   testimonials.css — client testimonial slider (homepage)
   Replaces the interactive spec-finder tool. Kept light (the section it
   replaced was light too) to preserve the dark/light alternation between
   the now-dark Products section above and the dark Journey map below.

   DEV NOTE: the four testimonials in index.html are illustrative sample
   copy, not real client quotes — deliberately written without attaching
   any of the five real named clients (L&T, NTPC, NHAI, HCC, Montecarlo)
   shown elsewhere on this site, since inventing a quote and putting a
   real company's name on it isn't something to do on their behalf. Swap
   in real client feedback (with permission) when it's collected — the
   generic "Procurement Head, Infrastructure EPC Contractor" style role
   attributions are placeholders for that.
   ========================================================================== */

.testimonials {
  padding-block: var(--sp-10);
  background: var(--paper);
}

.testimonials__head {
  max-width: 100%;
  margin-bottom: var(--sp-8);
  text-align: center;
}

.testimonials__slider {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.testimonials__arrow {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--steel-50);
  border: 1.5px solid var(--steel-200);
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.testimonials__arrow:hover {
  background: var(--ember-500);
  border-color: var(--ember-500);
  color: #2a0f04;
}
.testimonials__arrow svg {
  width: 18px;
  height: 18px;
}
.testimonials__arrow--prev svg {
  transform: rotate(180deg);
}

.testimonials__track {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 300px;
}

.testimonials__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-6) var(--sp-5);
  background: var(--steel-50);
  border-radius: var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.testimonials__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.testimonials__quote-icon {
  width: 34px;
  height: 34px;
  color: var(--ember-500);
  margin-bottom: var(--sp-4);
  opacity: 0.85;
}

.testimonials__rating {
  display: flex;
  gap: 0.25em;
  margin-bottom: var(--sp-4);
  color: var(--ember-500);
}
.testimonials__rating svg {
  width: 16px;
  height: 16px;
}

.testimonials__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-800, var(--ink-700));
  max-width: 54ch;
  margin-bottom: var(--sp-5);
}

.testimonials__author-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.testimonials__author-role {
  display: block;
  font-size: 0.82rem;
  color: var(--steel-600);
  margin-top: 0.25em;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: var(--sp-6);
}
.testimonials__dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--steel-200);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), width 0.2s var(--ease);
}
.testimonials__dots button.is-active {
  background: var(--ember-500);
  width: 24px;
  border-radius: var(--radius-pill);
}

@media (max-width: 720px) {
  .testimonials__slider {
    gap: var(--sp-3);
  }
  .testimonials__arrow {
    width: 38px;
    height: 38px;
  }
  .testimonials__track {
    min-height: 340px;
  }
  .testimonials__slide {
    padding: var(--sp-5) var(--sp-4);
  }
}
