/* SavilTech — Clientes (#FFD60A) */

.page-clientes {
  --cl-gold: #ffd60a;
}

.page-clientes .text-gold {
  color: #ffd60a !important;
  text-shadow: 0 0 28px rgba(255, 214, 10, 0.35);
}

.cl-text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Banner: ondas concêntricas + pulso zoom (≠ equipa / portfólio / soluções) */
.page-clientes .cl-banner--fullwidth {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(300px, 48vh, 520px) !important;
  display: block !important;
  overflow: hidden;
  background: #000;
}

.page-clientes .cl-banner__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-clientes .cl-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  animation:
    clBannerEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    clBannerPulse 20s ease-in-out 1.2s infinite;
}

@keyframes clBannerEnter {
  0% {
    opacity: 0;
    filter: brightness(0.35);
    transform: scale(1.28);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1.1);
  }
}

@keyframes clBannerPulse {
  0%, 100% {
    transform: scale(1.1);
    object-position: 50% 48%;
  }
  50% {
    transform: scale(1.02);
    object-position: 50% 52%;
  }
}

.page-clientes .cl-banner__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.page-clientes .cl-banner__rings::before,
.page-clientes .cl-banner__rings::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 10, 0.25);
  transform: translate(-50%, -50%);
  animation: clRingExpand 5s ease-out infinite;
}

.page-clientes .cl-banner__rings::before {
  width: 40%;
  height: 40%;
  animation-delay: 0s;
}

.page-clientes .cl-banner__rings::after {
  width: 55%;
  height: 55%;
  animation-delay: 2.5s;
}

@keyframes clRingExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

.page-clientes .cl-banner__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(rgba(255, 214, 10, 0.4) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.15;
  animation: clParticlesFloat 16s linear infinite;
  pointer-events: none;
}

@keyframes clParticlesFloat {
  to { background-position: 48px 48px; }
}

.page-clientes .cl-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(0, 0, 0, 0.92), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 50%, rgba(0, 0, 0, 0.6));
}

.page-clientes .cl-banner__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.page-clientes .cl-banner .section-tag {
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: #ffd60a;
}

.page-clientes .cl-banner__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 40%, #ffd60a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-clientes .cl-banner__desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
}

/* Logos parceiros */
.cl-logos-section {
  padding: clamp(56px, 8vw, 88px) 0;
  background: #000;
  position: relative;
}

.cl-logos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.35), transparent);
}

.cl-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 52px);
}

.cl-section-header .section-tag {
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.35);
  color: #ffd60a;
}

.cl-section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0 12px;
}

.cl-section-header p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.cl-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.cl-logo-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 214, 10, 0.18);
  cursor: default;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.cl-logo-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(255, 214, 10, 0.12);
}

.cl-logo-card__img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff;
}

.cl-logo-card__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.15);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.cl-logo-card:hover .cl-logo-card__img-wrap img {
  transform: scale(1.08);
  filter: grayscale(0);
}

.cl-logo-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    160deg,
    rgba(255, 214, 10, 0.92) 0%,
    rgba(230, 184, 0, 0.88) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cl-logo-card:hover .cl-logo-card__overlay {
  opacity: 1;
  transform: scale(1);
}

.cl-logo-card__overlay i {
  font-size: 1.4rem;
  color: #0a0a0a;
}

.cl-logo-card__overlay span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0a0a0a;
  text-align: center;
}

.cl-logo-card__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 45%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
  transition: left 0.7s ease;
}

.cl-logo-card:hover .cl-logo-card__shine {
  left: 130%;
}

/* Depoimentos */
.cl-testimonials-section {
  padding: clamp(48px, 6vw, 80px) 0 clamp(100px, 11vw, 120px);
  background: linear-gradient(180deg, #000, #050505 35%, #000);
  position: relative;
}

.cl-testimonials-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(500px, 70vw);
  height: 200px;
  background: radial-gradient(ellipse, rgba(255, 214, 10, 0.06), transparent 70%);
  pointer-events: none;
}

.cl-quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  position: relative;
  z-index: 1;
}

.cl-quote-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 24px;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 214, 10, 0.16);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.cl-quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffd60a, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.cl-quote-card:hover::before {
  transform: scaleX(1);
}

.cl-quote-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 214, 10, 0.45);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(255, 214, 10, 0.08);
}

.cl-quote-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffd60a;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.28);
  border-radius: 50px;
  transition: background 0.35s ease, color 0.35s ease;
}

.cl-quote-card:hover .cl-quote-card__tag {
  background: rgba(255, 214, 10, 0.22);
  color: #fff;
}

.cl-quote-card__icon {
  font-size: 1.8rem;
  color: rgba(255, 214, 10, 0.35);
  margin-bottom: 12px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.35s ease;
}

.cl-quote-card:hover .cl-quote-card__icon {
  transform: scale(1.15) rotate(-8deg);
  color: #ffd60a;
}

.cl-quote-card blockquote {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  font-style: italic;
}

.cl-quote-card__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 214, 10, 0.15);
}

.cl-quote-card__author h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  transition: color 0.3s ease;
}

.cl-quote-card:hover .cl-quote-card__author h4 {
  color: #ffd60a;
}

.cl-quote-card__entity {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.cl-quote-card__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--cl-x, 50%) var(--cl-y, 50%), rgba(255, 214, 10, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cl-quote-card:hover .cl-quote-card__glow {
  opacity: 1;
}

/* Stats strip */
.cl-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.cl-stat {
  flex: 1 1 140px;
  max-width: 200px;
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: rgba(255, 214, 10, 0.06);
  border: 1px solid rgba(255, 214, 10, 0.2);
  transition: transform 0.4s ease, border-color 0.35s ease;
}

.cl-stat:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 214, 10, 0.5);
}

.cl-stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffd60a;
  line-height: 1.1;
}

.cl-stat span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  display: block;
}

.page-clientes .cl-banner--fullwidth,
.page-clientes .cl-logos-section,
.page-clientes .cl-testimonials-section {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .cl-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cl-quotes-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-clientes .cl-banner__img,
  .page-clientes .cl-banner__rings::before,
  .page-clientes .cl-banner__rings::after,
  .page-clientes .cl-banner__particles {
    animation: none;
  }
}
