/* ==========================================================================
   Trust bar - flat editorial edition
   The blueprint photo stays FIXED while the page scrolls over it (pure CSS
   parallax via background-attachment: fixed; iOS lets it scroll, which is an
   acceptable graceful fallback). The veil over the photo is built from
   semantic tokens (--ds-bg / --ds-surface / --ds-text), so it flips with the
   light/dark theme automatically. No glass, no blur: solid cards, number
   first, words underneath.
   ========================================================================== */

.trust-bar {
  --trust-pad-block: clamp(56px, 7vw, 84px);

  position: relative;
  padding-block: var(--trust-pad-block);
  color: var(--ds-text);
  font-family: var(--font-body);
  /* deliberately photo-free: the hero above it carries the photograph, and the
     photo bands below alternate with plain ones - see
     docs/Architecture.md, "The home bands (photo / plain)" */
  background-color: var(--ds-bg);
  background-image:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ds-bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--ds-bg) 74%, transparent) 50%,
      color-mix(in srgb, var(--ds-bg) 92%, transparent) 100%);
  border-block: 1px solid var(--ds-border);
}

.trust-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--container-pad, 24px);
  display: grid;
  gap: clamp(30px, 4vw, 46px);
}

/* ---------- header row: heading + small contact link ---------- */

.trust-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-heading { display: grid; gap: 7px; }

.trust-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-primary);
  box-shadow: 0 0 10px color-mix(in srgb, var(--ds-primary) 55%, transparent);
}

.trust-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ds-primary);
}

.trust-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ds-text);
}

.trust-head h2 em {
  font-style: normal;
  color: var(--ds-primary);
}

.trust-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ds-border);
  background: var(--ds-surface);
  color: var(--ds-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.trust-contact-link:hover {
  color: var(--ds-primary);
  border-color: color-mix(in srgb, var(--ds-primary) 45%, var(--ds-border));
  transform: translateY(-1px);
}

[dir="rtl"] .trust-contact-link svg { transform: scaleX(-1); }

/* ---------- plain stat columns: no cards, just type on the veil ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.trust-item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--ds-text) 22%, transparent);
  transition: border-color 180ms ease;
}

.trust-item:hover {
  border-top-color: var(--ds-primary);
}

/* top row: glowing icon badge on the start edge, mono index on the end edge */
.trust-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.trust-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--ds-primary);
  border: 1px solid color-mix(in srgb, var(--ds-text) 18%, transparent);
  background:
    radial-gradient(circle at 50% 38%,
      color-mix(in srgb, var(--ds-primary) 14%, transparent) 0%,
      transparent 68%);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.trust-icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--ds-primary) 20%, transparent) 0%,
    transparent 70%);
  opacity: 0.45;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-item:hover .trust-icon {
  border-color: color-mix(in srgb, var(--ds-primary) 55%, transparent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ds-primary) 22%, transparent);
}

.trust-item:hover .trust-icon::after { opacity: 1; }

.trust-item:hover .trust-icon svg { transform: translateY(-2px) scale(1.06); }

.trust-card-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ds-text-muted);
}

.trust-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.trust-stat strong {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ds-text);
}

.trust-stat span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
}

.trust-item h3 {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ds-text);
}

.trust-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ds-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .trust-bar { --trust-pad-block: 44px; }
  .trust-inner { gap: 24px; }
  .trust-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .trust-item { padding-top: 14px; gap: 5px; }
  .trust-item p { display: none; }
  .trust-stat strong { font-size: 27px; }
  .trust-icon { width: 40px; height: 40px; }
  .trust-icon svg { width: 20px; height: 20px; }
  .trust-contact-link { padding: 8px 14px; font-size: 10.5px; }
}

@media (max-width: 380px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item p { display: -webkit-box; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-contact-link,
  .trust-item { transition: none; }
}
