/* ══════════════════════════════════════════════════
   Trusted Clients — Logo Grid
   ══════════════════════════════════════════════════ */

.bh-trusted {
  background: #000;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
}

.bh-trusted-container {
  max-width: clamp(320px, 83.33vw, 1600px);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

/* ── Title ── */
.bh-trusted-title {
  font-size: clamp(1.5rem, 1.5rem + 1.5vw, 3rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(135deg, #ffffff 0%, #a8b8d8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  width: 100%;
  padding-bottom: 20px;
}

.bh-trusted-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4a90d9, transparent);
  border-radius: 2px;
}

/* ── Projects Map ── */
.bh-trusted-map {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.bh-trusted-map-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.bh-trusted-map-count {
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.bh-trusted-map-label {
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bh-trusted-map-img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

/* ── Desktop Grid — 5 columns ── */
.bh-trusted-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  row-gap: 8px;
  column-gap: 48px;
  justify-items: center;
  align-items: center;
}

.bh-trusted-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  margin: 0;
  padding: 10px;
}

.bh-trusted-logo img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bh-trusted-logo:hover img {
  opacity: 1;
  transform: scale(1.08);
}

/* ── Mobile Marquee ── */
.bh-trusted-marquee {
  display: none;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.bh-trusted-marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: bh-trusted-scroll 30s linear infinite;
}

@keyframes bh-trusted-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.bh-trusted-marquee:hover .bh-trusted-marquee-track {
  animation-play-state: paused;
}

.bh-trusted-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 140px;
  height: 48px;
  margin: 0;
}

.bh-trusted-marquee-item img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .bh-trusted-grid {
    column-gap: 36px;
    row-gap: 16px;
  }

  .bh-trusted-logo {
    min-height: 80px;
  }

  .bh-trusted-logo img {
    max-height: 46px;
  }
}

@media (max-width: 1024px) {
  .bh-trusted-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
  }
}

@media (max-width: 768px) {
  .bh-trusted-grid {
    display: none;
  }

  .bh-trusted-marquee {
    display: block;
  }

  .bh-trusted-map-stat {
    flex-direction: column;
    gap: 4px;
  }

  .bh-trusted-map-img {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-trusted-marquee-track {
    animation: none;
  }
}
