/* ==========================================================================
   SECTION: TRUSTED BRANDS SHOWCASE (RESTORED HEADING & SHIFTED TO 4TH SECTION)
   DESCRIPTION: Ultra-clean, borderless, and minimal logo showcase with
   standard LeaseKey heading design. All rules are strictly scoped.
   ========================================================================== */

.lk-trusted-brands-section {
  position: relative;
  background: #ffffff;
  padding: var(--section-pad) 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  overflow: hidden;
  z-index: 5;
}

/* Container spacing constraints */
.lk-trusted-brands-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Borderless logo wrapper track */
.lk-trusted-brands-section .lk-brands-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 68px;
  margin: 0 auto;
}

/* Individual Logo Items */
.lk-trusted-brands-section .lk-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Logo Image Styling - strict scoping */
.lk-trusted-brands-section .lk-logo-item img {
  max-height: 130px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Hover State - scale slightly & restore brand color */
.lk-trusted-brands-section .lk-logo-item:hover {
  transform: scale(1.05);
}

.lk-trusted-brands-section .lk-logo-item:hover img {
  filter: grayscale(0%) opacity(0.95);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Tablet Landscape & Small Laptops */
@media (max-width: 1024px) {
  .lk-trusted-brands-section .container {
    padding: 0 2rem;
  }
  .lk-trusted-brands-section .lk-brands-flex {
    gap: 24px 36px;
  }
  .lk-trusted-brands-section .lk-logo-item {
    height: 34px;
  }
  .lk-trusted-brands-section .lk-logo-item img {
    max-height: 26px;
    max-width: 110px;
  }
}

/* Mobile Screens (Smooth Snapping Swipeable Track) */
@media (max-width: 768px) {
  .lk-trusted-brands-section .container {
    padding: 0; /* Enable full-bleed scrolling feel */
  }
  
  /* Logically converts from wrap flex to horizontal swipe scrollway */
  .lk-trusted-brands-section .lk-brands-flex {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 24px 20px;
    gap: 32px;
    scrollbar-width: none; /* Hide default scrollbar Firefox */
  }
  
  .lk-trusted-brands-section .lk-brands-flex::-webkit-scrollbar {
    display: none; /* Hide default scrollbar Chrome/Safari */
  }
  
  .lk-trusted-brands-section .lk-logo-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    height: 32px;
  }
  
  .lk-trusted-brands-section .lk-logo-item img {
    max-height: 25px;
    max-width: 100px;
    /* Soften grayscale opacity on touch screens slightly since hover doesn't exist */  }
}

/* Extra small mobile aspect ratios */
@media (max-width: 480px) {
  .lk-trusted-brands-section .lk-brands-flex {
    padding-left: 16px;
    padding-right: 16px;
    gap: 28px;
  }
}
