
:root {
  --testimonial-navy: #FFFFFF;
  --testimonial-orange: #EC9E1C;
  --testimonial-white: #581E00;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */

.testimonials-section {
  padding: clamp(48px, 6vw, 84px) 5%;
  background: var(--testimonial-navy);
  color: var(--testimonial-white);
}

.testimonials-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--testimonial-orange);
}

.testimonials-eyebrow {
  color: var(--testimonial-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.testimonials-heading h1,
.testimonials-heading h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.testimonials-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: #0B0A0AC7;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   TESTIMONIAL SLIDER
======================================== */

.testimonial-slider {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  min-width: 0;
}

/* ========================================
   TESTIMONIAL CARDS
======================================== */

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 285px;
  padding: 20px 16px;
  border: 1px solid rgba(88, 30, 0, 0.10);
  border-radius: 14px;
  background: var(--testimonial-orange);
  color: var(--testimonial-white);
  overflow-wrap: anywhere;
  animation: testimonial-enter 240ms ease;
}

.testimonial-card[hidden] {
  display: none !important;
}

.testimonial-quote-mark {
  display: block;
  color: #FFFFFF;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 0.8;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 14px 0 22px;
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ========================================
   CLIENT INFORMATION
======================================== */

.testimonial-person {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
}

.testimonial-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--testimonial-white);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
}

.testimonial-details {
  min-width: 0;
}

.testimonial-name {
  margin: 0 0 4px;
  font-size: 0.84rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.testimonial-company,
.testimonial-service {
  margin: 3px 0;
  color: var(--testimonial-white);
  font-size: 0.72rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.testimonial-service {
  display: inline-block;
}

.testimonial-country {
  margin: 5px 0 0;
  color: var(--testimonial-white);
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.45;
}

/* ========================================
   PREVIOUS AND NEXT ARROWS
======================================== */

.testimonial-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--testimonial-white);
  border-radius: 50%;
  background: transparent;
  color: var(--testimonial-white);
  font-size: 1.15rem;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.testimonial-arrow:hover {
  background: var(--testimonial-orange);
  border-color: var(--testimonial-orange);
  color: var(--testimonial-white);
  transform: scale(0.94);
}

.testimonial-arrow:focus-visible,
.testimonial-dot:focus-visible {
  outline: 3px solid var(--testimonial-orange);
  outline-offset: 4px;
}

/* ========================================
   COUNTER AND NAVIGATION DOTS
======================================== */

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.testimonial-count {
  color: var(--testimonial-white);
  font-size: 0.8rem;
}

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

.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--testimonial-white);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.testimonial-dot.active {
  background: var(--testimonial-orange);
  transform: scale(1.35);
}

/* ========================================
   EMPTY STATE
======================================== */

.testimonial-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  border: 1px dashed var(--testimonial-white);
  border-radius: 14px;
  color: var(--testimonial-white);
  text-align: center;
}

/* ========================================
   VIEW ALL TESTIMONIALS BUTTON
======================================== */

.testimonials-cta {
  margin-top: 34px;
  text-align: center;
}

.testimonials-cta a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--testimonial-orange);
  color: var(--testimonial-white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter 180ms ease;
}

.testimonials-cta a:hover {
  filter: brightness(1.08);
}

/* ========================================
   CARD ENTRANCE ANIMATION
======================================== */

@keyframes testimonial-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   WIDE DESKTOP: 5 CARDS
======================================== */

@media (min-width: 901px) {
  .testimonial-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .testimonial-card {
    min-height: 270px;
    padding: 18px 13px;
  }

  .testimonial-card blockquote {
    font-size: 0.82rem;
  }

  .testimonial-name {
    font-size: 0.8rem;
  }

  .testimonial-company,
  .testimonial-service,
  .testimonial-country {
    font-size: 0.68rem;
  }
}

/* ========================================
   STANDARD DESKTOP: 4 CARDS
======================================== */

@media (min-width: 901px) and (max-width: 1449px) {
  .testimonial-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ========================================
   TABLET: 3 CARDS
======================================== */

@media (min-width: 601px) and (max-width: 900px) {
  .testimonials-section {
    padding: 52px 3%;
  }

  .testimonials-heading {
    margin-bottom: 28px;
  }

  .testimonial-slider {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
  }

  .testimonial-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .testimonial-card {
    min-height: 260px;
    padding: 15px 11px;
    border-radius: 12px;
  }

  .testimonial-quote-mark {
    font-size: 2.7rem;
  }

  .testimonial-card blockquote {
    margin: 12px 0 18px;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .testimonial-person {
    gap: 7px;
  }

  .testimonial-avatar {
    width: 29px;
    height: 29px;
    font-size: 0.65rem;
  }

  .testimonial-name {
    font-size: 0.76rem;
  }

  .testimonial-company,
  .testimonial-service,
  .testimonial-country {
    font-size: 0.66rem;
  }

  .testimonial-arrow {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* ========================================
   MOBILE: 1 CARD
======================================== */

@media (max-width: 600px) {
  .testimonials-section {
    padding: 44px 5%;
  }

  .testimonials-heading {
    margin-bottom: 26px;
  }

  .testimonials-heading h1,
  .testimonials-heading h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .testimonials-heading p {
    font-size: 0.88rem;
  }

  .testimonial-slider {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
  }

  .testimonial-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .testimonial-card {
    min-height: 0;
    padding: 20px 17px;
    border-radius: 13px;
  }

  .testimonial-quote-mark {
    font-size: 3rem;
  }

  .testimonial-card blockquote {
    margin: 14px 0 22px;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .testimonial-person {
    gap: 9px;
  }

  .testimonial-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
  }

  .testimonial-name {
    font-size: 0.84rem;
  }

  .testimonial-company,
  .testimonial-service {
    font-size: 0.74rem;
  }

  .testimonial-country {
    font-size: 0.72rem;
  }

  .testimonial-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .testimonial-controls {
    gap: 12px;
    margin-top: 18px;
  }

  .testimonial-dots {
    gap: 7px;
  }

  .testimonials-cta {
    margin-top: 28px;
  }
}

/* ========================================
   ACCESSIBILITY: REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    animation: none;
  }

  .testimonial-arrow,
  .testimonial-dot,
  .testimonials-cta a {
    transition: none;
  }
}
