/* Seção exclusiva — Alguns de nossos clientes */

.clients-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #030806 0%, #0a1814 38%, #0e2622 100%);
  border-top: 1px solid rgba(142, 182, 155, 0.12);
  border-bottom: 1px solid rgba(142, 182, 155, 0.12);
  padding-top: clamp(64px, 8vw, 88px);
  padding-bottom: clamp(64px, 8vw, 88px);
}

.clients-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(142, 182, 155, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 182, 155, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 78%);
}

.clients-section-bg::after {
  content: '';
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(142, 182, 155, 0.14) 0%, transparent 68%);
  filter: blur(8px);
}

.clients-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.clients-showcase-header {
  text-align: center;
  margin: 0 auto clamp(36px, 5vw, 52px);
  max-width: 640px;
}

.clients-section .clients-kicker {
  justify-content: center;
  margin: 0 auto 14px;
  background: rgba(142, 182, 155, 0.1);
  border: 1px solid rgba(142, 182, 155, 0.25);
  color: #8eb69b;
}

.clients-section .clients-kicker i {
  font-size: 0.75rem;
}

.clients-section .clients-heading {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #daf1dd;
}

.clients-section .clients-sub {
  margin: 0;
  color: rgba(218, 241, 221, 0.62);
}

.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0 8px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  width: max-content;
  animation: clientsMarquee 42s linear infinite;
  will-change: transform;
}

.clients-marquee.is-paused .clients-marquee-track {
  animation-play-state: paused;
}

.client-logo-card {
  flex: 0 0 auto;
  width: clamp(136px, 14vw, 172px);
  height: clamp(76px, 9vw, 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.client-logo-card:hover {
  transform: translateY(-5px) scale(1.04);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(142, 182, 155, 0.45);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(142, 182, 155, 0.15),
    0 0 28px rgba(142, 182, 155, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.client-logo-card img {
  display: block;
  max-width: 100%;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease,
    transform 0.28s ease;
}

.client-logo-card:hover img,
.client-logo-card:active img,
.client-logo-card.is-color img,
.client-logo-card:focus-visible img {
  filter: none;
  opacity: 1;
}

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

@media (max-width: 640px) {
  .clients-showcase {
    padding: 0 16px;
  }

  .client-logo-card {
    width: 130px;
    height: 78px;
    padding: 10px 14px;
  }

  .client-logo-card img {
    max-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 12px;
  }

  .clients-marquee {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
