/* ==========================================================================
   STAY FREE ENTERPRISE - /results page
   Layout glue for storyboard beats 1-6 (plan §5 "/results (testimonials)").
   Consumes tokens.css custom properties only, reuses section-shells.css +
   testimonial-card.css + dust-reformation.css. Palette governance: coral =
   CTA only; gold = foil/material, never additive glow; the filter tabs use
   teal (structural color) exclusively, never coral. Shadows are
   taupe-tinted elevation tokens.
   ========================================================================== */

/* =============================================================== BEAT 1 HERO */
.sf-res-hero { padding-block: var(--sf-space-9) var(--sf-space-8); overflow: hidden; }
.sf-res-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sf-space-7);
  align-items: center;
}
.sf-res-hero__copy { max-width: 42rem; }
.sf-res-hero__title { margin-bottom: var(--sf-space-4); }
.sf-res-hero__sub {
  font-size: var(--sf-text-md);
  color: var(--sf-text-secondary);
  max-width: 34rem;
  margin-bottom: var(--sf-space-5);
}
.sf-res-hero__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sf-space-4); }
.sf-res-hero__note { font-size: var(--sf-text-sm); color: var(--sf-text-secondary); }

.sf-res-hero__media { position: relative; }
.sf-res-hero__plate {
  aspect-ratio: 4 / 5;
  border-radius: var(--sf-radius-lg);
  border: 1px dashed rgba(212, 177, 90, 0.55);
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(212, 177, 90, 0.10), transparent 60%),
    var(--sf-sand);
  box-shadow: var(--sf-elevation-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sf-space-2);
  text-align: center;
  padding: var(--sf-space-5);
}
.sf-res-hero__plate-label { font-family: var(--sf-font-display); font-size: var(--sf-text-lg); color: var(--sf-taupe); }
.sf-res-hero__plate-sub { font-size: var(--sf-text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sf-taupe); max-width: 24ch; }

@media (max-width: 900px) {
  .sf-res-hero__grid { grid-template-columns: 1fr; gap: var(--sf-space-6); }
  .sf-res-hero__media { order: -1; max-width: 22rem; }
}

/* ==================================================== BEAT 2 "HOW WE TALK" */
/* Deliberately NOT fine-print styling: full-size real DOM, a manifesto rail
   with foil numerals, gold hairline rules between rows. */
.sf-res-honesty__head { max-width: 44rem; margin-bottom: var(--sf-space-6); }
.sf-res-honesty__head p { color: var(--sf-text-secondary); margin-top: var(--sf-space-2); }

.sf-res-honesty__list { list-style: none; margin: 0; padding: 0; }
.sf-res-honesty__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--sf-space-5);
  align-items: start;
  padding-block: var(--sf-space-5);
  border-top: 1px solid rgba(212, 177, 90, 0.35);
}
.sf-res-honesty__item:last-child { border-bottom: 1px solid rgba(212, 177, 90, 0.35); }
.sf-res-honesty__num {
  font-family: var(--sf-font-display);
  font-weight: 560;
  font-size: var(--sf-text-3xl);
  line-height: 1;
  font-variation-settings: 'opsz' 40, 'SOFT' 0, 'WONK' 0;
}
.sf-res-honesty__body h3 { margin-bottom: var(--sf-space-2); font-size: var(--sf-text-xl); }
.sf-res-honesty__body p { color: var(--sf-text-secondary); max-width: 54ch; }

@media (max-width: 700px) {
  .sf-res-honesty__item { grid-template-columns: 3rem 1fr; gap: var(--sf-space-3); }
  .sf-res-honesty__num { font-size: var(--sf-text-2xl); }
}

/* ======================================================== BEAT 3 CARD WALL */
.sf-res-wall__head { max-width: 44rem; margin-bottom: var(--sf-space-5); }
.sf-res-wall__head p { color: var(--sf-text-secondary); margin-top: var(--sf-space-2); font-size: var(--sf-text-sm); }

/* ---- per-service filter: native radio group + label tabs, teal
   structural color, zero-JS (see the :has() rules further down). ---- */
.sf-res-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sf-space-2);
  margin: 0 0 var(--sf-space-6);
  padding: 0;
  border: 0;
}
.sf-res-filter__radio {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sf-res-filter__tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1.5px solid var(--sf-teal);
  border-radius: 999px;
  font-family: var(--sf-font-body);
  font-size: var(--sf-text-sm);
  font-weight: 700;
  color: var(--sf-teal);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--sf-dur-fast) var(--sf-ease-out), color var(--sf-dur-fast) var(--sf-ease-out);
}
.sf-res-filter__tab:hover { background: rgba(14, 74, 60, 0.08); }
.sf-res-filter__radio:checked + .sf-res-filter__tab { background: var(--sf-teal); color: var(--sf-ivory); }
.sf-res-filter__radio:checked + .sf-res-filter__tab:hover { background: var(--sf-teal); }
.sf-res-filter__radio:focus-visible + .sf-res-filter__tab { outline: 2px solid var(--sf-teal); outline-offset: 3px; }

/* card wall grid: CTA bands span the full row via grid-column: 1 / -1 */
.sf-res-wall__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sf-space-4);
}
@media (max-width: 900px) { .sf-res-wall__grid { grid-template-columns: 1fr; } }

.sf-res-cta-band {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sf-space-4);
  padding: var(--sf-space-5);
  border-radius: var(--sf-radius-lg);
  background: var(--sf-bg-alt);
  border-left: 3px solid var(--sf-teal);
  box-shadow: var(--sf-elevation-1);
}
.sf-res-cta-band p { color: var(--sf-text-primary); font-family: var(--sf-font-display); font-size: var(--sf-text-lg); font-weight: 460; max-width: 34rem; margin: 0; }
.sf-res-cta-band--close {
  margin-top: var(--sf-space-6);
  background: var(--sf-bg-primary);
}

/* ---- zero-JS filtering: hide every card whose data-service does not match
   the checked radio. Anchored on the section so it reaches descendants
   regardless of DOM nesting between the radios and the cards. ---- */
.sf-res-wall:has(#filter-credit-repair:checked) .sf-testimonial:not([data-service="credit-repair"]) { display: none; }
.sf-res-wall:has(#filter-business-funding:checked) .sf-testimonial:not([data-service="business-funding"]) { display: none; }
.sf-res-wall:has(#filter-debt-settlement:checked) .sf-testimonial:not([data-service="debt-settlement"]) { display: none; }
.sf-res-wall:has(#filter-marketing:checked) .sf-testimonial:not([data-service="marketing"]) { display: none; }
.sf-res-wall:has(#filter-virtual-assistants:checked) .sf-testimonial:not([data-service="virtual-assistants"]) { display: none; }

/* Palm Dust Reformation payoff: sits at the close of the wall, smaller stage
   than the homepage's full-viewport treatment (it is a payoff, not the hero). */
.sf-res-wall__payoff {
  margin-top: var(--sf-space-7);
  min-height: clamp(20rem, 42vh, 30rem);
  border-radius: var(--sf-radius-lg);
  background: var(--sf-bg-alt);
}

/* ============================================================== BEAT CLOSE */
.sf-res-close__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sf-space-7);
  align-items: center;
}
.sf-res-close__cta h2 { margin-bottom: var(--sf-space-3); }
.sf-res-close__cta p { color: var(--sf-text-secondary); margin-bottom: var(--sf-space-5); }
.sf-res-close__disclosure { align-self: stretch; }
@media (max-width: 820px) {
  .sf-res-close__grid { grid-template-columns: 1fr; gap: var(--sf-space-5); }
}
