/* ==========================================================================
   Block: trust strip (template-parts/blocks/trust-strip.php)
   Lighthouse band: title + homecare.co.uk score + award + CQC badge.
   ========================================================================== */

/* Trust strip: Lighthouse, heading + three cells (client feedback 10 Nov 2026: "soft silvery-grey", original horizontal composition) */
.trust { background: var(--color-lighthouse); color: var(--color-midnight); }
.trust__inner {
  display: grid;
  gap: 16px;
  padding-block: 22px 24px;
}
.trust__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: var(--fs-trust-title);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.trust__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding-inline: 6px;
  text-align: center;
}
.trust__item + .trust__item { border-inline-start: 1px solid var(--color-rule); }
.trust__item a { color: inherit; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }

/* Line icons (house, award rosette) in Sugar Plum: 5.4:1 on Lighthouse */
.trust__icon {
  width: clamp(34px, 1.4rem + 2vw, 56px); height: auto; aspect-ratio: 1;
  fill: none; stroke: var(--color-sugar-plum); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.trust__score,
.trust__award {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  line-height: 1.05;
  font-variant-numeric: lining-nums;
}
.trust__score { font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.625rem); white-space: nowrap; }
.trust__award { font-size: clamp(1.0625rem, 0.8rem + 1.1vw, 1.875rem); text-wrap: balance; }
.trust__sub { font-size: clamp(0.8125rem, 0.72rem + 0.4vw, 1.125rem); line-height: 1.2; }

/* CQC badge: white card laid out from the client's visual, using the supplied CQC mark */
.cqc-badge {
  display: grid;
  gap: 4px;
  width: min(100%, 13.5rem);
  padding: 7px 9px 9px;
  border: 1px solid color-mix(in srgb, var(--color-midnight) 28%, transparent);
  border-radius: 6px;
  background: var(--color-white);
  color: var(--color-midnight);
  text-align: start;
}
.cqc-badge__kicker { font-size: clamp(0.6875rem, 0.62rem + 0.2vw, 0.8125rem); line-height: 1.1; }
.cqc-badge__rating {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--color-cqc-good);
  color: var(--color-white);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  font-weight: var(--font-weight-strong);
  line-height: 1.3;
}
.cqc-badge__org { line-height: 0; padding-top: 2px; }
.cqc-badge__org img { width: clamp(92px, 4.6rem + 3vw, 140px); height: auto; } /* official CQC logo, 183 × 58 */

/* Phones under 500px: score and award side by side, CQC badge on its own row below
   (three cells are too tight for the badge and for "Award-winning" on one line) */
@media (max-width: 499.98px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .trust__item.trust__item--cqc { grid-column: 1 / -1; border-inline-start: 0; }
}

@media (min-width: 1025px) {
  /* Trust strip: four columns in one row (heading + three cells) */
  .trust__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--column-gap);
    padding-block: 22px;
  }
  .trust__title { max-width: 12em; text-align: start; } /* two lines, as the client's reference */
  .trust__list > .trust__item:first-child { border-inline-start: 1px solid var(--color-rule); }
  .trust__item { padding-inline: 12px; } /* tighter until 1280 so "Award-winning" stays on one line */
}

@media (min-width: 1280px) {
  .trust__item { padding-inline: var(--space-2); }
}
