/* ===== Home: Trusted — Antigravity Manifesto Light Mode ===== */

/* Design tokens */
.trusted-section {
  --ts-cream:        #F7F3E9;
  --ts-navy:         #050C1D;
  --ts-gold:         #D4AF37;
  --ts-glass-bg:     rgba(255, 255, 255, 0.50);
  --ts-glass-border: rgba(5, 12, 29, 0.05);
}

/* ==========================================================
   Section — Sunlit Champagne base
========================================================== */

.trusted-section {
  position: relative;
  padding: clamp(92px, 10vw, 148px) 0;
  background-color: var(--ts-cream);
  border-top: 1px solid rgba(5, 12, 29, 0.06);
  border-bottom: 1px solid rgba(5, 12, 29, 0.06);
  overflow: hidden;
}

/* Fixed-attachment texture overlay — fades vertically at edges */
.trusted-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(247, 243, 233, 0.72), rgba(247, 243, 233, 0.72)),
    url('../../img/hero/trusted.png') center / cover fixed;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image:         linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Ambient gold glow */
.trusted-section::before {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 320px at 10% 20%, rgba(212, 175, 55, 0.08), transparent 62%),
    radial-gradient(720px 380px at 90% 80%, rgba(212, 175, 55, 0.06), transparent 62%);
}

.trusted-section .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   Header grid
========================================================== */

.trusted-top {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.trusted-head {
  display: grid;
  gap: 14px;
}

/* Deep Executive Navy title */
.trusted-title {
  margin: 0;
  color: var(--ts-navy);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

/* Champagne Gold sub-header pill */
.trusted-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--ts-gold);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trusted-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.trusted-copy {
  margin: 0;
  color: rgba(5, 12, 29, 0.72);
  font-size: 1rem;
  line-height: 1.84;
}

/* ==========================================================
   Industry badges — Champagne Gold tags
========================================================== */

.trusted-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 42px);
  margin-bottom: clamp(28px, 4vw, 38px);
}

.trusted-industry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.24);
  color: var(--ts-gold);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.trusted-industry:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.42);
}

.trusted-industry svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.80;
}

/* ==========================================================
   Marquee rows
========================================================== */

.trusted-marquees {
  display: grid;
  gap: 16px;
}

.trusted-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image:         linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.trusted-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 20px;
  will-change: transform;
  /* CSS fallback animations — GSAP overrides these when loaded */
  animation: trusted-marquee-left 42s linear infinite;
}

.trusted-marquee--right .trusted-marquee-track {
  animation-name: trusted-marquee-right;
  animation-duration: 46s;
}

/* ==========================================================
   Logo cards — Frosted Vellum
========================================================== */

.trusted-logo {
  flex: 0 0 auto;
  width: clamp(170px, 15vw, 240px);
  height: clamp(96px, 8.5vw, 124px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 20px;

  /* Frosted Vellum treatment */
  background: var(--ts-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ts-glass-border);

  /* No box-shadow by default — GSAP lifts on hover */
  box-shadow: 0 0px 0px rgba(5, 12, 29, 0);
  transition: border-color 0.30s ease;
  cursor: default;
  user-select: none;
}

/* ==========================================================
   Logo image — Deep Navy silhouette → Polished Gold on hover
========================================================== */

.logo-gold-hover {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

/* ==========================================================
   Keyframe fallbacks (CSS) — GSAP replaces at runtime
========================================================== */

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

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

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 980px) {
  .trusted-top {
    grid-template-columns: 1fr;
  }

  .trusted-copy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .trusted-section {
    padding: clamp(78px, 11vw, 112px) 0;
  }

  .trusted-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .trusted-pill {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .trusted-copy {
    font-size: 0.96rem;
    line-height: 1.74;
  }

  .trusted-industries {
    gap: 8px;
  }

  .trusted-industry {
    width: calc(50% - 4px);
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  .trusted-logo {
    width: clamp(140px, 42vw, 190px);
    height: 88px;
    padding: 14px 16px;
  }

  .logo-gold-hover {
    max-height: 50px;
  }
}

@media (max-width: 460px) {
  .trusted-industry {
    width: 100%;
  }
}

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