/* ==========================================================================
   Our Clients Section & 6x10 Dynamic Logo Matrix
   Reusable Component Styles (vip/clients.php) - White Background Theme
   ========================================================================== */

.clients-grid-section {
  position: relative;
  background-color: #FFFFFF;
  padding: 88px 0;
  overflow: hidden;
  border-top: 1px solid #EAECEF;
  border-bottom: 1px solid #EAECEF;
}

.clients-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 52px auto;
  position: relative;
  z-index: 2;
}

.clients-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #0B0B0B;
  border: 1px solid #1F1F1F;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.clients-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary, #F3FE00);
  box-shadow: 0 0 8px var(--color-primary, #F3FE00);
  animation: clientsDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes clientsDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.clients-title {
  font-family: 'Geologica', sans-serif;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 800;
  color: #0B0B0B;
  text-transform: uppercase;
  margin-top: 18px;
  letter-spacing: -0.02em;
}

.clients-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #555555;
  margin-top: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.clients-matrix-wrap {
  position: relative;
  z-index: 2;
}

/* Ambient Radial Glow */
.clients-grid-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(243, 254, 0, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* 6x10 Grid Matrix */
.clients-grid-6x10 {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* Single Logo Tile */
.client-logo-card {
  position: relative;
  height: 84px;
  background: #FAFAFB;
  border: 1px solid #E7E9ED;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  contain: paint layout;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.client-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(243, 254, 0, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.client-logo-card:hover {
  border-color: #0B0B0B;
  background-color: #FFFFFF;
  box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.09), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  z-index: 5;
}

.client-logo-card:hover::before {
  opacity: 1;
}

/* Inner Wrapper for Logo Fade Animation */
.client-logo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.88;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.client-logo-card:hover .client-logo-inner {
  opacity: 1;
}

/* Wide image logos */
.client-logo-wide {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Invert / darken white logos on white background */
.client-logo-wide.is-white-logo,
.client-logo-img.is-white-logo,
.client-logo-icon.is-white-logo {
  filter: brightness(0);
}

/* Brand Icon + Name Lockup */
.client-logo-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  pointer-events: none;
}

.client-logo-icon {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.client-logo-name {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #0B0B0B;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animation states: pure opacity & transform (compositor thread) */
.client-logo-card.is-fading-out .client-logo-inner {
  opacity: 0;
  transform: scale(0.85) translateY(4px);
}

.client-logo-card.is-fading-in-prep .client-logo-inner {
  opacity: 0 !important;
  transform: scale(1.1) translateY(-4px) !important;
  transition: none !important;
}

/* Responsive Grid */
@media (max-width: 1199px) {
  .clients-grid-6x10 {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .client-logo-card {
    height: 76px;
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .clients-grid-section {
    padding: 56px 0;
  }
  .clients-header {
    margin-bottom: 36px;
  }
  .clients-title {
    font-size: 28px;
    line-height: 1.3;
  }
  .clients-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }
  .clients-grid-6x10 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .client-logo-card {
    height: 68px;
    padding: 10px 10px;
    border-radius: 10px;
  }
  .client-logo-wide {
    max-height: 30px;
  }
  .client-logo-icon {
    width: 18px;
    height: 18px;
  }
  .client-logo-name {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .clients-grid-section {
    padding: 44px 0;
  }
  .clients-grid-6x10 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .client-logo-card {
    height: 62px;
    padding: 8px 8px;
  }
  .client-logo-wide {
    max-height: 26px;
  }
  .client-logo-name {
    font-size: 12px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .clients-badge-dot {
    animation: none;
  }
  .client-logo-card {
    transition: none;
    transform: none !important;
  }
  .client-logo-inner {
    transition: none !important;
    transform: none !important;
    opacity: 0.88 !important;
  }
}
