/* =========================================================
   TRUST BAR — small badge row on homepage
   Mobile-first: base = mobile scrollable, desktop = centered row.
   ========================================================= */

/* ---------------------------------------------------------
   BASE (mobile) — scrollable badge row
   --------------------------------------------------------- */
.trust-bar {
  background: var(--cream);
  border-bottom: var(--border-light);
  padding: 20px 0;
  overflow: hidden;
}

.trust-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.trust-bar__label {
  font-family: var(--font-body);
  font-size: .68rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  padding-left: 4px;
}

/* Mobile: horizontally-scrollable track, looped by JS.
   Fade masks hint at more content on either side. */
.trust-bar__badges {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 12px;
  /* Clamp to the parent so horizontal scroll activates */
  max-width: 100vw;
  box-sizing: border-box;
  /* Extend slightly outward for the fade-mask look */
  margin-inline: -20px;
  /* Fade masks — signal content continues */
  mask-image: linear-gradient(90deg,
    transparent 0,
    black 24px,
    black calc(100% - 24px),
    transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    black 24px,
    black calc(100% - 24px),
    transparent 100%);
}
.trust-bar__badges::-webkit-scrollbar { display: none; }

.badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 14px;
  border: var(--border-light);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
  transition: border-color var(--duration-base), color var(--duration-base);
}
.badge:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

/* ---------------------------------------------------------
   SMALL PHONES (<= 480px) — tighter spacing
   --------------------------------------------------------- */
@media (max-width: 480px) {
  .trust-bar__badges { gap: 6px; }
  .badge { padding: 7px 12px; font-size: .74rem; }
}

/* ---------------------------------------------------------
   DESKTOP (>= 1024px) — centered single row, wrap allowed
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  .trust-bar {
    padding: var(--space-5) 0;
    overflow: visible;
  }
  .trust-bar__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
  }
  .trust-bar__label {
    padding-left: 0;
    font-size: var(--text-xs);
  }
  .trust-bar__badges {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: var(--space-2);
  }
  .badge {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    white-space: normal;
  }
}
