/* ==========================================================================
   VP6: Clients Section
   ========================================================================== */

.clients {
  min-height: 100vh;
  width: 100%;
  background-color: var(--color-navy);
  position: relative;
  overflow: hidden;
  z-index: 12;  /* Higher than Awards (11) for layered pinning */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
}

/* Background Stripes */
.clients__bg {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 0;
  height: 120%;
  background: url('../img/bg_box_purple_alpha.png') no-repeat center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.clients__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

/* ==========================================================================
   Header - Logo + Title
   ========================================================================== */

.clients__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.clients__logo {
  width: clamp(60px, 8vw, 100px);
  height: auto;
}

.clients__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--color-purple);
  -webkit-text-stroke: 2px var(--color-magenta);
  text-stroke: 2px var(--color-magenta);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ==========================================================================
   Logo Grid - 10 columns on Desktop
   ========================================================================== */

.clients__grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--space-sm);
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  transform-style: preserve-3d;
}

.clients__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* filter: brightness(0) invert(1); - temporarily disabled */
  will-change: transform;
  color-scheme: only light;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   Footer - Barcode
   ========================================================================== */

.clients__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.clients__barcode {
  height: 40px;
  width: auto;
}

/* ==========================================================================
   Responsive - Large Desktop
   ========================================================================== */

@media (min-width: 1600px) {
  .clients__grid {
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media (max-width: 1200px) {
  .clients__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 1024px) {
  .clients {
    padding: var(--space-4xl) var(--space-2xl);
  }

  .clients__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }

  .clients__item {
    padding: var(--space-sm);
  }
}

/* ==========================================================================
   Responsive - Small Mobile
   ========================================================================== */

@media (max-width: 768px) {
  .clients {
    padding: var(--space-4xl) var(--space-xl);
  }

  .clients__title {
    letter-spacing: 0.2em;
  }
}

@media (max-width: 480px) {
  .clients {
    padding: var(--space-4xl) var(--space-lg);
  }

  .clients__grid {
    gap: var(--space-xs);
  }

  .clients__item {
    padding: var(--space-xs);
  }

  .clients__title {
    -webkit-text-stroke: 1.5px var(--color-magenta);
    text-stroke: 1.5px var(--color-magenta);
  }
}

/* ==========================================================================
   Animation States (for GSAP)
   ========================================================================== */

.clients__header,
.clients__item,
.clients__footer {
  opacity: 0;
}

/* ==========================================================================
   Expand Button - Mobile Only
   ========================================================================== */

.clients__expand-btn {
  display: none;
}

@media (max-width: 1024px) {
  .clients__expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--color-magenta);
    border-radius: 50%;
    color: var(--color-magenta);
    font-family: var(--font-display);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    grid-column: span 4;
    justify-self: center;
    margin: var(--space-md) 0;
  }

  .clients__expand-btn .clients__expand-icon {
    line-height: 1;
  }

  /* Hidden items - collapsed by default on mobile */
  .clients__item--hidden {
    display: none;
  }

  /* Show when expanded */
  .clients__grid.is-expanded .clients__item--hidden {
    display: flex;
  }
}
