/**
 * Warnstee trust logos strip
 * Used by shortcode: [warnstee_trust_logos]
 *
 * Logos-only by default: three uniform white chips carry the rhythm,
 * each logo is optically sized inside its chip (a square badge needs
 * more height than a wide wordmark to read as the same size).
 *
 * Variants:
 * - default ("dark"): transparent background, white logo chips.
 *   For placement directly on the dark green footer.
 * - "band": self-contained dark green band. Place it right above the
 *   footer and it reads as the footer's opening act.
 * - "light": for cream/white page backgrounds; chips get a border
 *   since shadows alone don't separate white-on-cream.
 */

.warnstee-trust {
  --warnstee-trust-green: #243F22;
  --warnstee-trust-chip-bg: #ffffff;
  --warnstee-trust-chip-radius: 16px;
  --warnstee-trust-chip-w: 216px;
  --warnstee-trust-chip-h: 116px;
  --warnstee-trust-chip-border: transparent;
  --warnstee-trust-chip-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  --warnstee-trust-chip-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.3);
  --warnstee-trust-title-color: rgba(255, 255, 255, 0.85);
  --warnstee-trust-divider: rgba(255, 255, 255, 0.15);

  text-align: center;
  padding: 56px 24px;
}

/* Band variant: self-contained dark green section, merges with the footer below */
.warnstee-trust--band {
  background: var(--warnstee-trust-green);
}

/* Light variant: on cream/white pages a shadow alone is too weak, add a border */
.warnstee-trust--light {
  --warnstee-trust-chip-border: rgba(45, 74, 34, 0.16);
  --warnstee-trust-chip-shadow: 0 3px 14px rgba(45, 74, 34, 0.1);
  --warnstee-trust-chip-shadow-hover: 0 8px 24px rgba(45, 74, 34, 0.16);
  --warnstee-trust-title-color: #4b5445;
  --warnstee-trust-divider: rgba(45, 74, 34, 0.15);
}

.warnstee-trust__title {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warnstee-trust-title-color);
}

.warnstee-trust__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
}

.warnstee-trust__item {
  display: flex;
}

/* Uniform chips: identical footprint gives the strip its rhythm */
.warnstee-trust__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--warnstee-trust-chip-w);
  height: var(--warnstee-trust-chip-h);
  background: var(--warnstee-trust-chip-bg);
  border: 1px solid var(--warnstee-trust-chip-border);
  border-radius: var(--warnstee-trust-chip-radius);
  box-shadow: var(--warnstee-trust-chip-shadow);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

a.warnstee-trust__chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--warnstee-trust-chip-shadow-hover);
}

a.warnstee-trust__chip:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.warnstee-trust--light a.warnstee-trust__chip:focus-visible {
  outline-color: rgba(45, 74, 34, 0.45);
}

.warnstee-trust__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 76%;
  max-height: 64%;
  object-fit: contain;
}

/* Optical size corrections per mark */
.warnstee-trust__item--anwb .warnstee-trust__logo {
  /* Wide wordmark: cap height lower so it doesn't dominate */
  max-height: 160%;
}

.warnstee-trust__item--acsi .warnstee-trust__logo {
  /* Near-square badge: allow more height, keep width modest */
  max-height: 70%;
  max-width: 54%;
}

.warnstee-trust__item--svr .warnstee-trust__logo {
  /* Oval seal: between the two */
  max-height: 68%;
  max-width: 64%;
}

/* Optional divider above the strip when it sits inside the footer */
.warnstee-trust--divider {
  border-top: 1px solid var(--warnstee-trust-divider);
}

@media (max-width: 900px) {
  .warnstee-trust {
    --warnstee-trust-chip-w: 180px;
    --warnstee-trust-chip-h: 98px;
  }
}

@media (max-width: 600px) {
  .warnstee-trust {
    --warnstee-trust-chip-w: 150px;
    --warnstee-trust-chip-h: 84px;
    padding: 36px 16px;
  }

  .warnstee-trust__list {
    gap: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .warnstee-trust__chip {
    transition: none;
  }

  a.warnstee-trust__chip:hover {
    transform: none;
  }
}
