/* Trust bar (sections/trust-bar.liquid): thin line green icons over spaced capital labels,
   separated by short gold hairlines on large screens, like the flyer.
   Phones: a centred single column of icon and label rows with hairline separators. */

.trust-bar {
  position: relative;
  padding-block: clamp(40px, 5vw, 64px);
}
.trust-bar--small { padding-block: clamp(20px, 3vw, 36px); }
/* Right after the packages the bar belongs to that band: small top, a little more below */
.section-packages + .section-trust-bar .trust-bar--small { padding-top: clamp(16px, 2vw, 24px); padding-bottom: clamp(40px, 5vw, 60px); }

.trust-bar--rules .page-width {
  position: relative;
  padding-block: clamp(22px, 3vw, 32px);
}
.trust-bar--rules .page-width::before,
.trust-bar--rules .page-width::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 134, 43, 0), var(--c-gold-light) 14%, var(--c-gold-light) 86%, rgba(184, 134, 43, 0));
}
.trust-bar--rules .page-width::before { top: 0; }
.trust-bar--rules .page-width::after { bottom: 0; }

.trust-bar__heading {
  margin: 0 0 clamp(18px, 3vw, 28px);
  text-align: center;
}

.trust-bar__list {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.trust-bar__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 4px;
  text-align: left;
}
.trust-bar__item + .trust-bar__item { border-top: 1px solid rgba(230, 207, 148, .8); }
.trust-bar__icon { flex: 0 0 40px; justify-content: center; }

.trust-bar__icon {
  display: inline-flex;
  color: var(--c-green);
  line-height: 0;
}
.trust-bar__icon svg { width: 38px; height: 38px; stroke-width: 1.2px; }
.trust-bar__icon .icon-check { width: 32px; height: 32px; }

.trust-bar__label {
  max-width: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
  text-wrap: balance;
}

@media (min-width: 560px) {
  .trust-bar__list { flex-direction: row; flex-wrap: wrap; justify-content: center; row-gap: 28px; max-width: none; }
  .trust-bar__item { flex: 0 0 33.333%; flex-direction: column; gap: 12px; padding: 4px 10px; text-align: center; }
  .trust-bar__item + .trust-bar__item { border-top: 0; }
  .trust-bar__icon { flex: 0 0 auto; }
  .trust-bar__label { max-width: 12em; }
  .trust-bar__list--2 .trust-bar__item,
  .trust-bar__list--4 .trust-bar__item { flex-basis: 50%; }
  /* short gold hairlines between items that share a row */
  .trust-bar__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, rgba(184, 134, 43, 0), var(--c-gold) 22%, var(--c-gold) 78%, rgba(184, 134, 43, 0));
    opacity: .55;
  }
  .trust-bar__item:nth-child(3n + 1)::before,
  .trust-bar__list--2 .trust-bar__item:nth-child(odd)::before,
  .trust-bar__list--4 .trust-bar__item:nth-child(odd)::before { display: none; }
  .trust-bar__list--2 .trust-bar__item:nth-child(even)::before,
  .trust-bar__list--4 .trust-bar__item:nth-child(even)::before { display: block; }
}

@media (min-width: 990px) {
  .trust-bar__list { flex-wrap: nowrap; max-width: 1120px; margin-inline: auto; }
  .trust-bar__item,
  .trust-bar__list--2 .trust-bar__item,
  .trust-bar__list--4 .trust-bar__item { flex: 1 1 0; padding-inline: clamp(12px, 1.6vw, 24px); }
  .trust-bar__icon svg { width: 48px; height: 48px; }
  .trust-bar__icon .icon-check { width: 38px; height: 38px; }
  .trust-bar__label { font-size: .78rem; }
  /* one row: a hairline before every item but the first */
  .trust-bar__item::before,
  .trust-bar__item:nth-child(3n + 1)::before,
  .trust-bar__list--2 .trust-bar__item:nth-child(odd)::before,
  .trust-bar__list--4 .trust-bar__item:nth-child(odd)::before { display: block; }
  .trust-bar__item:first-child::before,
  .trust-bar__list--2 .trust-bar__item:first-child::before,
  .trust-bar__list--4 .trust-bar__item:first-child::before { display: none; }
}

/* focus ring on parchment: the darker gold keeps 3:1 against the background */
.trust-bar.section--parchment :focus-visible { outline-color: var(--c-gold-text); }
