/* ================================================================
   SCANMELABS WEBSITE MODULE — Testimonials & Client Logos
   ================================================================ */

/* ── TESTIMONIALS ── */
.testi-section {
  background: linear-gradient(180deg, #F0F7FF 0%, #ffffff 100%);
  padding-block: 5rem;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testi-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 4px 28px rgba(21, 101, 192, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(21, 101, 192, 0.14);
}

/* Top accent gradient line */
.testi-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1565C0, #0277BD, #26C6DA);
  border-radius: 20px 20px 0 0;
}

/* Decorative quote mark */
.testi-card__quote {
  font-size: 5.5rem;
  line-height: 0.75;
  color: #1565C0;
  opacity: 0.10;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 0.25rem;
  user-select: none;
}

/* Star rating */
.testi-card__stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

/* Quote text */
.testi-card__text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #374151;
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Author row */
.testi-card__author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E8EFF8;
}

/* Avatar circle with dynamic color */
.testi-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--av-color, #1565C0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.testi-card__info { flex: 1; min-width: 0; }

.testi-card__name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0D2757;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testi-card__role {
  font-size: 0.76rem;
  color: #6B7280;
  margin-top: 0.1rem;
}

.testi-card__source {
  color: #F59E0B;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1023px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 599px) {
  .testi-section { padding-block: 3.5rem; }
  .testi-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testi-card { padding: 1.5rem 1.25rem; }
}


/* ── CLIENT LOGOS MARQUEE ── */
.clients-section {
  background: #ffffff;
  padding: 2.75rem 0;
  border-top: 1px solid #E8EFF8;
  border-bottom: 1px solid #E8EFF8;
  overflow: hidden;
}

.clients-section__label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 2rem;
}

/* Fade masks on edges */
.clients-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%);
}

/* The scrolling container — contains logos × 2 */
.clients-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: clients-scroll 25s linear infinite;
}
.clients-inner:hover { animation-play-state: paused; }

/* Speed variants */
.clients-inner--slow   { animation-duration: 40s; }
.clients-inner--medium { animation-duration: 25s; }
.clients-inner--fast   { animation-duration: 15s; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual logos */
.client-logo {
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.50;
  filter: grayscale(100%);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}
.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Text badge fallback (when no image URL) */
.client-name-badge {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #9CA3AF;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  flex-shrink: 0;
  transition: color 0.3s, border-color 0.3s;
}
.client-name-badge:hover {
  color: #1565C0;
  border-color: #1565C0;
}

@media (max-width: 767px) {
  .clients-section { padding: 2rem 0; }
  .client-logo { height: 36px; }
  .clients-inner { gap: 2.5rem; }
}
