/* Iron Shore Roofing -- homepage trust/values section, inserted directly
   below the hero by trust-section.js. Reuses the site's existing
   .section-label / .section-title / .section-subtitle typography classes
   for visual consistency, and var(--color-accent) for the brand color.
   Every selector here is scoped to .trust-values / .tb-* (new elements
   this feature adds) -- never touches nav, footer, or any existing rule. */

.trust-values {
  padding: 96px 0;
  background: #0c0f18;
  position: relative;
  overflow: hidden;
}

.trust-values-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1180px;
  margin: 0 auto;
}

.trust-values-copy {
  flex: 1 1 480px;
}

.trust-values-copy .section-title {
  margin-bottom: 20px;
}

.trust-values-copy .section-subtitle {
  max-width: 560px;
}

.trust-values-badge {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.trust-badge-svg {
  width: 240px;
  height: 240px;
}

.tb-ring-outer {
  fill: none;
  stroke: var(--color-accent, #1a5fd4);
  stroke-width: 1;
  opacity: 0.3;
}

.tb-ring-inner {
  fill: none;
  stroke: var(--color-accent, #1a5fd4);
  stroke-width: 1.5;
  opacity: 0.55;
}

.tb-orbit-group {
  transform-origin: 100px 100px;
  animation: tb-spin 45s linear infinite;
}

.tb-orbit-text {
  fill: var(--color-accent, #1a5fd4);
  font: 700 8px 'Oswald', sans-serif;
  letter-spacing: 2px;
}

.tb-shield {
  fill: rgba(26, 95, 212, 0.12);
  stroke: var(--color-accent, #1a5fd4);
  stroke-width: 3;
}

.tb-check {
  stroke: var(--color-accent, #1a5fd4);
}

@keyframes tb-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tb-orbit-group { animation: none; }
}

@media (max-width: 900px) {
  .trust-values { padding: 20px 0; }
  .trust-values-inner { flex-direction: column; text-align: center; gap: 10px; }
  .trust-values-copy {
    /* Same cross-axis flex-basis bug as the badge wrapper below: 480px was
       meant as a WIDTH cap for the desktop row layout and becomes a 480px
       minimum HEIGHT once flex-direction switches to column, which was the
       real source of the huge empty gap above the badge on mobile. */
    flex: 1 1 auto;
    width: 100%;
  }
  .trust-values-copy .section-label { font-size: 10px; margin-bottom: 2px; }
  .trust-values-copy .section-title {
    font-size: 17px !important;
    line-height: 1.15 !important;
    margin-bottom: 5px;
  }
  .trust-values-copy .section-title br { display: none; }
  .trust-values-copy .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    line-height: 1.45;
    max-width: 320px;
  }
  .trust-values-badge {
    /* flex-basis of 260px (set for the desktop row layout, where it fixes
       the badge column's WIDTH) gets reinterpreted as a HEIGHT once
       flex-direction switches to column here -- reset it so the wrapper
       sizes to its actual (now much smaller) content instead of forcing
       260px of empty vertical space. */
    flex: 0 0 auto;
  }
  .trust-badge-svg { width: 56px; height: 56px; }
}
