/* ==========================================================================
   Secção "Clientes que confiam em nós!" — BacklogRS
   Ficheiro isolado para não interferir com styles.css existente.
   Reaproveita as variáveis de cor já definidas em :root por styles.css
   (--ink, --night, --paper, --blue, --lime, --muted, --white).
   ========================================================================== */

.clients-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto 44px;
  max-width: 720px;
}

.clients-head p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted, #707481);
  text-transform: uppercase;
}

.clients-head p b {
  color: var(--ink, #090f1f);
}

.clients-head h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: var(--ink, #090f1f);
  margin: 0;
}

.clients-head h2 em {
  font-style: normal;
  color: var(--blue, #1658ff);
}

.clients-head span {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted, #707481);
}

.clients-scroller {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 28px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: clients-scroll 32s linear infinite;
}

.clients-scroller:hover .clients-track {
  animation-play-state: paused;
}

.client-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 108px;
  background: var(--white, #fff);
  border: 1px solid rgba(9, 15, 31, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(9, 15, 31, 0.05);
  padding: 16px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(9, 15, 31, 0.1);
  border-color: rgba(22, 88, 255, 0.25);
}

.client-card img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.client-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.client-card.text-badge span {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.3;
  color: var(--ink, #090f1f);
  opacity: 0.55;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.client-card.text-badge:hover span {
  opacity: 1;
  color: var(--blue, #1658ff);
}

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

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }
  .clients-scroller {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .client-card {
    width: 168px;
    height: 92px;
  }
  .client-card img {
    max-height: 56px;
  }
}
