/* Testimonials — horizontal carousel, Agilensmart theme */

.clients-section-outer,
.clients-section,
.clients-section__grid {
  overflow: visible;
}

.clients-section {
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.14), transparent 34rem),
    linear-gradient(180deg, #fff 0%, #fff9ed 48%, #fff 100%);
  padding: clamp(3rem, 4vw, 5rem) clamp(1.25rem, 4vw, 1rem);
  position: relative;
}

.clients-section__grid {
  align-items: start;
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1180px;
}

@media (min-width: 1024px) {
  .clients-section__grid {
    gap: 3.25rem;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.clients-section__aside {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

@media (min-width: 1024px) {
  .clients-section__aside {
    position: sticky;
    top: 5rem;
  }
}

.clients-badge {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  display: inline-flex;
  font-family: albert, sans-serif;
  font-size: 0.88rem;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
}

.clients-badge__dot {
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
}

.clients-badge__text {
  color: #555;
}

.clients-section__aside .ourservices {
  margin: 0;
}

.clients-section__aside .wepower {
  color: #111;
  line-height: 1.15;
  margin: 0;
}

.clients-section__desc {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0;
  max-width: 34rem;
}

.clients-stats {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.25rem;
}

.clients-stat {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 163, 28, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.06);
  padding: 1rem 0.65rem;
  text-align: center;
}

.clients-stat__value {
  color: #111;
  display: block;
  font-family: "albert semi", albert, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
}

.clients-stat__label {
  color: #5b5b5b;
  display: block;
  font-family: albert light, sans-serif;
  font-size: 0.82rem;
  line-height: 1.3;
  margin-top: 0.45rem;
}

.clients-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.clients-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-family: albert, sans-serif;
  font-size: 0.95rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.clients-btn:hover {
  transform: translateY(-2px);
}

.clients-btn--outline {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  color: #111;
}

.clients-btn--outline:hover {
  border-color: #f9a31c;
}

.clients-btn--primary {
  background: #f9a31c;
  border: 1px solid #f9a31c;
  color: #fff;
}

.clients-btn--primary:hover {
  background: #111;
  border-color: #111;
}

/* Carousel — right column */
.clients-carousel {
  min-width: 0;
  position: relative;
  width: 100%;
  margin-top: 50px;
}

.clients-carousel__toolbar {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 5.75rem;
}

.clients-carousel__btn {
  align-items: center;
  background: #111;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 2.65rem;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: 2.65rem;
}

.clients-carousel__btn:hover {
  background: #f9a31c;
  transform: translateY(-1px);
}

.clients-carousel__btn:focus-visible {
  outline: 2px solid #f9a31c;
  outline-offset: 2px;
}

.clients-carousel__deck {
  position: relative;
  width: 100%;
}

.clients-carousel__stack {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.06);
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform-origin: center center;
}

.clients-carousel__stack--one {
  opacity: 0.5;
  transform: scale(0.992);
  z-index: 0;
}

.clients-carousel__stack--two {
  opacity: 0.3;
  transform: scale(0.984);
  z-index: -1;
}

.clients-carousel__viewport {
  -webkit-overflow-scrolling: touch;
  --slide-size: 100%;
  cursor: grab;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  z-index: 1;
}

.clients-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.clients-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.clients-carousel__track {
  display: flex;
  gap: 0;
}

.clients-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 1.2rem;
  box-shadow:
    0 4px 8px rgba(23, 23, 23, 0.04),
    0 16px 36px rgba(23, 23, 23, 0.08);
  box-sizing: border-box;
  display: flex;
  flex: 0 0 var(--slide-size, 100%);
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: 1.25rem 1.3rem 1.15rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  width: var(--slide-size, 100%);
}

.clients-card.is-active {
  border-color: rgba(17, 17, 17, 0.1);
  box-shadow:
    0 6px 12px rgba(23, 23, 23, 0.05),
    0 20px 44px rgba(23, 23, 23, 0.1);
}

/* Visual order: stars → quote (full width) → author footer */
.clients-card__rating {
  align-items: center;
  display: flex;
  margin: 0 0 0.75rem;
  order: 1;
  width: 100%;
}

.clients-card__score {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.clients-card__stars {
  display: inline-flex;
  gap: 3px;
  line-height: 1;
}

.clients-card__star {
  color: #e5e7eb;
  height: 1.05rem;
  width: 1.05rem;
}

.clients-card__star.is-filled {
  color: #f9a31c;
  fill: #f9a31c;
}

.clients-card__quote {
  color: #111;
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  order: 2;
  position: relative;
  width: 100%;
  z-index: 1;
}

.clients-card__quote::before {
  color: rgba(17, 17, 17, 0.07);
  content: "\201C";
  display: block;
  font-family: Georgia, serif;
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 0.85;
  margin-bottom: 0.2rem;
}

.clients-card__head {
  align-items: center;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  display: flex;
  gap: 0.75rem;
  margin: 0;
  order: 3;
  padding-top: 0.95rem;
  width: 100%;
}

.clients-card__avatar {
  align-items: center;
  background: #f7f7f7;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 2.65rem;
  justify-content: center;
  overflow: hidden;
  width: 2.65rem;
}

.clients-card__avatar img {
  display: block;
  max-height: 1.45rem;
  max-width: 1.55rem;
  object-fit: contain;
}

.clients-card__author-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.12rem;
  justify-content: center;
  min-width: 0;
}

.clients-card__name {
  color: #111;
  font-family: "albert semi", albert, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.clients-card__subtitle {
  color: #6b6b6b;
  font-family: albert, sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

.clients-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0 0.5rem;
}

.clients-carousel__dot {
  background: rgba(17, 17, 17, 0.14);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  height: 0.5rem;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
  width: 0.5rem;
}

.clients-carousel__dot:hover {
  background: rgba(249, 163, 28, 0.55);
}

.clients-carousel__dot.is-active {
  background: #111;
  width: 1.5rem;
}

@media (max-width: 640px) {
  .clients-carousel__stack {
    display: none;
  }
}

.clients-carousel__dot:focus-visible {
  outline: 2px solid #f9a31c;
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .clients-stats {
    grid-template-columns: 1fr;
  }

  .clients-actions {
    flex-direction: column;
  }

  .clients-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-carousel__viewport {
    scroll-behavior: auto;
  }

  .clients-card {
    transition: none;
  }
}
