/* ==========================================================================
   Home — "Trusted by" section
   Markup: resources/views/frontend/partials/trusted-section.blade.php
   Design: "Webase — Services Section Redesign" canvas, Trusted.dc.html
   ========================================================================== */

.wb-trusted {
  --wb-trusted-bg: #F4F1EA;
  --wb-trusted-ink: #202547;
  --wb-trusted-eyebrow: #C8163F;
  --wb-trusted-gap: 20px;

  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background: var(--wb-trusted-bg);
  color: var(--wb-trusted-ink);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Background glows ---------- */

.wb-trusted__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wb-trusted__glow span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: .16;
}

.wb-trusted__glow-red {
  left: -80px;
  top: 45%;
  width: 420px;
  height: 320px;
  background: #EB1F4F;
  filter: blur(110px);
}

.wb-trusted__glow-blue {
  right: -60px;
  top: 30%;
  width: 460px;
  height: 360px;
  background: #3D5AFE;
  filter: blur(120px);
}

/* ---------- Heading row ---------- */

.wb-trusted__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  /* width from Bootstrap .container */
}

.wb-trusted__heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.wb-trusted__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wb-trusted-eyebrow);
}

.wb-trusted__title {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--wb-trusted-ink);
}

.wb-trusted__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-trusted__chip {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Logo marquees ---------- */

.wb-trusted__lanes {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--wb-trusted-gap);
  margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.wb-trusted__lane {
  overflow: hidden;
  padding: 8px 0;
}

.wb-trusted__track {
  display: flex;
  gap: var(--wb-trusted-gap);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-trusted__track--left {
  animation: wb-trusted-left 50s linear infinite;
}

.wb-trusted__track--right {
  animation: wb-trusted-right 46s linear infinite;
}

.wb-trusted__lane:hover .wb-trusted__track {
  animation-play-state: paused;
}

/* Glass logo card */
.wb-trusted__card {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 112px;
  box-sizing: border-box;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
          backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 24px -14px rgba(32, 37, 71, .22);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.wb-trusted__card img {
  display: block;
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  transition: transform .3s ease;
}

.wb-trusted__card:hover {
  border-color: #FFFFFF;
  background-color: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -16px rgba(32, 37, 71, .35);
}

.wb-trusted__card:hover img {
  transform: scale(1.06);
}

@keyframes wb-trusted-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes wb-trusted-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .wb-trusted__track--left,
  .wb-trusted__track--right {
    animation: none;
  }

  .wb-trusted__card,
  .wb-trusted__card img {
    transition: none;
  }
}

/* Mobile: 50px section spacing */
@media (max-width: 767.98px) {
  .wb-trusted {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
