/* ========================================
   TRUST BAR BLOCK
   Horizontal logo carousel
   Based on Figma: width: 1113px, height: 95px, gap: 50px
   ======================================== */

.trust-bar-block {
  background: #FFFFFF;
  padding: 50px 0 0px;
}

/* Container */
.trust-logos-wrapper {
  /* From Figma:
     width: 1113.056px
     height: 95.453px
     gap: 50px
  */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual Logo Item */
.trust-logo-item {
  /* From Figma Child:
     width: 171.81px
     height: 57.86px
  */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trust-logo-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Logo Image */
.trust-logo {
  max-width: 172px;
  max-height: 58px;
  width: auto;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.trust-logo-item:hover .trust-logo {
  filter: grayscale(0%);
}

/* ----------------------------------------
   Placeholder (Editor Only)
   ---------------------------------------- */
.trust-bar-placeholder {
  padding: 40px;
  text-align: center;
  background: #f5f5f5;
  border: 2px dashed #ccc;
  color: #666;
  font-size: 16px;
}

/* ----------------------------------------
   Responsive Breakpoints
   ---------------------------------------- */

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
  .trust-logos-wrapper {
    gap: 40px;
  }
  
  .trust-logo {
    max-width: 150px;
    max-height: 50px;
  }
}

/* Tablet Large (1024px - 1199px) */
@media (max-width: 1199px) {
  .trust-bar-block {
    padding: 40px 0;
  }
  
  .trust-logos-wrapper {
    gap: 35px;
  }
  
  .trust-logo {
    max-width: 140px;
    max-height: 45px;
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .trust-bar-block {
    padding: 35px 0;
  }
  
  .trust-logos-wrapper {
    gap: 30px;
  }
  
  .trust-logo {
    max-width: 120px;
    max-height: 40px;
  }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) {
  .trust-bar-block {
    padding: 30px 0;
  }
  
  .trust-logos-wrapper {
    gap: 25px;
    justify-content: space-around;
  }
  
  .trust-logo {
    max-width: 100px;
    max-height: 35px;
  }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
  .trust-bar-block {
    padding: 25px 0;
  }
  
  .trust-logos-wrapper {
    gap: 20px;
  }
  
  .trust-logo {
    max-width: 80px;
    max-height: 30px;
  }
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

.trust-logo-item {
  animation: fadeIn 0.6s ease both;
}

/* Stagger animation for each logo */
.trust-logo-item:nth-child(1) { animation-delay: 0.1s; }
.trust-logo-item:nth-child(2) { animation-delay: 0.2s; }
.trust-logo-item:nth-child(3) { animation-delay: 0.3s; }
.trust-logo-item:nth-child(4) { animation-delay: 0.4s; }
.trust-logo-item:nth-child(5) { animation-delay: 0.5s; }
.trust-logo-item:nth-child(6) { animation-delay: 0.6s; }
.trust-logo-item:nth-child(7) { animation-delay: 0.7s; }

/* ----------------------------------------
   Accessibility
   ---------------------------------------- */
.trust-logo-item:focus {
  outline: 2px solid #FF3B85;
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .trust-logo-item,
  .trust-logo {
    animation: none;
    transition: none;
  }
  
  .trust-logo-item:hover {
    transform: none;
  }
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
  .trust-bar-block {
    border: none;
    padding: 20px 0;
  }
  
  .trust-logo {
    filter: grayscale(100%);
  }
}

/* ----------------------------------------
   Gutenberg Editor Styles
   ---------------------------------------- */
.block-editor-block-list__block[data-type="acf/trust-bar"] {
  margin: 20px 0;
}