/* =============================================================
   WestgateFS — Trust  v1.0
   Shared editorial system for all proof and credibility pages:
     Case studies:  /case-studies/  /case-studies/*
     Reviews:       /reviews/
     Team:          /our-team/
   Layered on top of global.css. No JS dependencies.
   Documentary tone — evidence-based, not testimonial-based.
   ============================================================= */

/* ---------- 1. TRUST HERO ----------
   Case study and review page hero.
   Outcome-first headline. More compact than router heroes.
   Proof-page visitors have intent — don't delay the evidence.
   ------------------------------------------------------------ */

.wfs-trust-hero {
  padding-block: clamp(48px, 5.5vw, 80px) clamp(52px, 6vw, 88px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.wfs-trust-hero__content {
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wfs-trust-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--ink-3);
  width: fit-content;
}

.wfs-trust-hero__tag--case-study {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-tint);
}

.wfs-trust-hero__tag--review {
  color: var(--ink-2);
}

.wfs-trust-hero__tag--team {
  color: var(--ink-2);
}

.wfs-trust-hero__heading {
  margin-top: var(--sp-6);
  text-wrap: balance;
}

.wfs-trust-hero__lede {
  margin-top: var(--sp-5);
  max-width: 46rem;
}

/* Outcome chips — fast-scan trust signals below lede */

.wfs-trust-hero__outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.wfs-trust-hero__outcome {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper-mist);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.wfs-trust-hero__outcome::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

/* ---------- 2. CASE FILE AT-A-GLANCE ----------
   Documentary case-file header. Six data points.
   Structured like a diagnostic intake form.
   Distinct from TL;DR strips — evidence, not summary.
   ------------------------------------------------------------ */

.wfs-trust-glance {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(var(--sp-8), 3vw, var(--sp-12));
}

.wfs-trust-glance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6) var(--sp-8);
}

.wfs-trust-glance__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-left: var(--sp-5);
  border-left: 2px solid var(--line);
}

.wfs-trust-glance__item--accent {
  border-left-color: var(--brand);
}

.wfs-trust-glance__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--ink-4);
}

.wfs-trust-glance__value {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: var(--tk-snug);
  line-height: var(--lh-snug);
}

.wfs-trust-glance__item--accent .wfs-trust-glance__value {
  color: var(--brand-deep);
}

@media (max-width: 767.98px) {
  .wfs-trust-glance__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479.98px) {
  .wfs-trust-glance__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 3. TRUST NARRATIVE ----------
   Documentary editorial prose sections.
   Each phase labeled: Situation / Findings / Work / Outcome.
   Clinical, specific, evidence-based — not marketing-speak.
   ------------------------------------------------------------ */

.wfs-trust-narrative {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wfs-trust-phase {
  padding-block: clamp(var(--sp-10), 4vw, var(--sp-16));
  border-bottom: 1px solid var(--line);
}

.wfs-trust-phase:last-child {
  border-bottom: 0;
}

.wfs-trust-phase--warm {
  background: var(--paper-warm);
}

.wfs-trust-phase--base {
  background: var(--paper);
}

.wfs-trust-phase__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.wfs-trust-phase__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--brand);
}

.wfs-trust-phase__title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-xl), 2vw, var(--fs-2xl));
  font-weight: 500;
  letter-spacing: var(--tk-snug);
  color: var(--ink-1);
  line-height: var(--lh-snug);
  text-wrap: balance;
}

/* Phase body — editorial prose column */

.wfs-trust-phase__body {
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.wfs-trust-phase__body p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--ink-2);
  text-wrap: pretty;
}

.wfs-trust-phase__body strong {
  font-weight: 600;
  color: var(--ink-1);
}

/* Callout figure within a phase — key number or statement */

.wfs-trust-phase__callout {
  padding: var(--sp-6) var(--sp-7);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--brand);
}

.wfs-trust-phase__callout p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: var(--tk-snug);
  line-height: var(--lh-snug);
  text-wrap: balance;
  margin: 0;
}

/* ---------- 4. FINDINGS BLOCK ----------
   What we found when we opened the file.
   Diagnostic list — documented evidence, not narrative.
   Used inside a .wfs-trust-phase column.
   ------------------------------------------------------------ */

.wfs-trust-findings {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.wfs-trust-findings__header {
  padding: var(--sp-5) var(--sp-7);
  background: var(--paper-mist);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}

.wfs-trust-findings__list {
  display: flex;
  flex-direction: column;
}

.wfs-trust-findings__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-7);
  border-bottom: 1px solid var(--line-fine);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.wfs-trust-findings__item:last-child {
  border-bottom: 0;
}

.wfs-trust-findings__item::before {
  content: "";
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--brand);
  border-radius: var(--r-pill);
  margin-top: 0.45em;
  opacity: 0.6;
  flex-shrink: 0;
}

.wfs-trust-findings__item strong {
  font-weight: 600;
  color: var(--ink-1);
}

/* ---------- 5. OUTCOME METRICS ----------
   Three headline results. The proof in numbers.
   Prominent, specific, above supporting prose.
   ------------------------------------------------------------ */

.wfs-trust-outcomes__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}

.wfs-trust-outcomes__metric {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-8);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.wfs-trust-outcomes__metric:first-child {
  border-color: var(--brand);
  background: linear-gradient(160deg, var(--paper) 0%, var(--brand-tint) 100%);
}

.wfs-trust-outcomes__number {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: 500;
  color: var(--brand);
  letter-spacing: var(--tk-tight);
  line-height: 1;
}

.wfs-trust-outcomes__metric:not(:first-child) .wfs-trust-outcomes__number {
  color: var(--ink-1);
}

.wfs-trust-outcomes__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  line-height: var(--lh-body);
}

.wfs-trust-outcomes__sub {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: var(--lh-body);
}

@media (max-width: 767.98px) {
  .wfs-trust-outcomes__metrics {
    grid-template-columns: 1fr;
  }
}

/* ---------- 6. CASE STUDY INDEX CARDS ----------
   Cards for the /case-studies/ router page.
   Each card: tag + heading + meta + excerpt + link.
   ------------------------------------------------------------ */

.wfs-trust-index__grid > [class*="col-"] {
  display: flex;
}

.wfs-trust-index-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  width: 100%;
  text-decoration: none;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}

.wfs-trust-index-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Optional cover image */

.wfs-trust-index-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-warm);
  flex-shrink: 0;
}

.wfs-trust-index-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.16,1,0.3,1);
}

.wfs-trust-index-card:hover .wfs-trust-index-card__cover img {
  transform: scale(1.03);
}

/* Card body */

.wfs-trust-index-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-7) var(--sp-7);
  flex-grow: 1;
}

.wfs-trust-index-card__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--brand);
}

.wfs-trust-index-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: var(--tk-snug);
  color: var(--ink-1);
  line-height: var(--lh-snug);
  text-wrap: balance;
  flex-grow: 1;
}

.wfs-trust-index-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.wfs-trust-index-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-fine);
}

.wfs-trust-index-card__meta-item {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.wfs-trust-index-card__meta-item::before {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--ink-4);
  border-radius: var(--r-pill);
}

.wfs-trust-index-card__meta-item:first-child::before {
  display: none;
}

/* ---------- 7. REVIEW CARDS ----------
   For the /reviews/ aggregation page.
   Editorial, no star graphics — attribution and context carry trust.
   ------------------------------------------------------------ */

.wfs-trust-review__grid > [class*="col-"] {
  display: flex;
}

.wfs-trust-review-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  width: 100%;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.wfs-trust-review-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.wfs-trust-review-card__rating {
  display: flex;
  gap: 3px;
  color: var(--brand);
  font-size: var(--fs-md);
  line-height: 1;
}

.wfs-trust-review-card__quote {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-md), 1vw + 0.85rem, var(--fs-lg));
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: var(--tk-snug);
  line-height: var(--lh-snug);
  text-wrap: balance;
  flex-grow: 1;
  font-style: italic;
}

.wfs-trust-review-card__byline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.wfs-trust-review-card__name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-1);
}

.wfs-trust-review-card__context {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: var(--lh-body);
}

/* Source badge (Google, BBB, etc.) */

.wfs-trust-review-card__source {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: 0.01em;
  margin-top: var(--sp-1);
}

/* ---------- 8. AGGREGATE REVIEW STRIP ----------
   Summary bar at the top of /reviews/.
   Overall rating, source count, platform badges.
   ------------------------------------------------------------ */

.wfs-trust-agg {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(var(--sp-7), 2.5vw, var(--sp-10));
}

.wfs-trust-agg__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-6) var(--sp-10);
}

.wfs-trust-agg__rating {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.wfs-trust-agg__score {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 500;
  color: var(--brand);
  letter-spacing: var(--tk-tight);
  line-height: 1;
}

.wfs-trust-agg__stars {
  display: flex;
  gap: 2px;
  font-size: var(--fs-lg);
  color: var(--brand);
  line-height: 1;
}

.wfs-trust-agg__count {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  margin-top: var(--sp-1);
  display: block;
}

.wfs-trust-agg__divider {
  width: 1px;
  height: 48px;
  background: var(--line);
  flex-shrink: 0;
}

.wfs-trust-agg__sources {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.wfs-trust-agg__source {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.wfs-trust-agg__source strong {
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- 9. TEAM CARDS ----------
   For /our-team/. Editorial operator profiles.
   Photo + name + role + background note.
   Not a bio wall — each card is a person, not a resume.
   ------------------------------------------------------------ */

.wfs-trust-team__grid > [class*="col-"] {
  display: flex;
}

.wfs-trust-team-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  width: 100%;
}

.wfs-trust-team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-warm);
  flex-shrink: 0;
}

.wfs-trust-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wfs-trust-team-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: 0 var(--sp-7) var(--sp-7);
  flex-grow: 1;
}

.wfs-trust-team-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: var(--tk-snug);
  color: var(--ink-1);
  line-height: var(--lh-snug);
}

.wfs-trust-team-card__role {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.wfs-trust-team-card__credential {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  padding: var(--sp-2) var(--sp-4);
  background: var(--paper-mist);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  letter-spacing: 0.01em;
}

.wfs-trust-team-card__bio {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: var(--lh-body);
  flex-grow: 1;
  text-wrap: pretty;
}

/* ---------- 10. RELATED CASES ----------
   2–3 related case studies at bottom of a case study page.
   Compact horizontal cards. Keep reading / keep trusting.
   ------------------------------------------------------------ */

.wfs-trust-related__grid > [class*="col-"] {
  display: flex;
}

.wfs-trust-related-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-7);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  width: 100%;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}

.wfs-trust-related-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

.wfs-trust-related-card__tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tk-wide);
  text-transform: uppercase;
  color: var(--brand);
  transition: color var(--t-fast) var(--ease);
}

.wfs-trust-related-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: var(--tk-snug);
  color: var(--ink-1);
  line-height: var(--lh-snug);
  text-wrap: balance;
  flex-grow: 1;
}

.wfs-trust-related-card__meta {
  font-size: var(--fs-xs);
  color: var(--ink-4);
}

