/* ============================================================
   Widget · Trust Tiles
   ============================================================
   2×n grid of trust markers for the home page's "What sets us
   apart" section. Each tile: icon disc + bold title + one-line
   proof. Sage design language matches the site sub-brand tokens.
   ============================================================ */

.bdc-trust-tiles {
  /* --bdc-tt-cols is set by the Columns control (selectors_dictionary).
     Fallback = 2 cols so a legacy widget without the control still renders. */
  --bdc-tt-cols: 1fr 1fr;
  font-family: var(--bdc-sans);
  color: var(--bdc-ink);
}

/* ── Header ──────────────────────────────── */

.bdc-trust-tiles__header {
  margin: 0 0 24px;
  text-align: center;
}

.bdc-trust-tiles__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bdc-sage);
  font-weight: 700;
  margin: 0 0 8px;
}

.bdc-trust-tiles__heading {
  font-family: var(--bdc-serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--bdc-ink);
  margin: 0 0 8px;
}

.bdc-trust-tiles__intro {
  font-size: 15px;
  line-height: 1.5;
  color: var(--bdc-ink-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Grid ────────────────────────────────── */

.bdc-trust-tiles__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;                /* mobile: single column */
  gap: 12px;
}

@media (min-width: 600px) {
  .bdc-trust-tiles__grid {
    grid-template-columns: var(--bdc-tt-cols);
    gap: 16px;
  }
}

/* ── Tile ────────────────────────────────── */

.bdc-trust-tiles__tile {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  padding: 18px 20px;
  background: var(--bdc-surface);
  border: 1px solid var(--bdc-line);
  border-radius: var(--bdc-r-md);
  box-shadow: var(--bdc-shadow-card);
  /* Subtle lift on hover — pure decorative, no click behavior. */
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.bdc-trust-tiles__tile:hover {
  transform: translateY(-1px);
  border-color: var(--bdc-sage-tint);
  box-shadow: 0 2px 4px rgba(20,30,25,0.05), 0 12px 28px -14px rgba(20,30,25,0.12);
}

/* Icon disc — pale sage circle, sage-inked icon.
   grid-row spans both rows so the icon vertically centers next to
   the title/desc pair. */
.bdc-trust-tiles__icon {
  grid-row: 1 / span 2;
  align-self: start;
  width: 44px;
  height: 44px;
  border-radius: var(--bdc-r-pill);
  background: var(--bdc-sage-soft);
  color: var(--bdc-sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.bdc-trust-tiles__icon svg,
.bdc-trust-tiles__icon i {
  width: 20px;
  height: 20px;
  color: var(--bdc-sage);
  fill: currentColor;
}
.bdc-trust-tiles__icon i {
  font-size: 18px;
  line-height: 1;
}

/* Title — bold, tight to the icon-row. */
.bdc-trust-tiles__title {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--bdc-sans);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--bdc-ink);
  margin: 0;
}

.bdc-trust-tiles__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bdc-ink-2);
  margin: 0;
}
.bdc-trust-tiles__desc strong {
  color: var(--bdc-ink);
  font-weight: 600;
}
.bdc-trust-tiles__desc a {
  color: var(--bdc-sage-2);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

/* ── Desktop scale ───────────────────────── */

@media (min-width: 768px) {
  .bdc-trust-tiles__header {
    margin-bottom: 32px;
  }
  .bdc-trust-tiles__eyebrow {
    font-size: 13px;
  }
  .bdc-trust-tiles__heading {
    font-size: 32px;
  }
  .bdc-trust-tiles__intro {
    font-size: 16px;
  }
  .bdc-trust-tiles__tile {
    padding: 22px 24px;
    column-gap: 16px;
  }
  .bdc-trust-tiles__title {
    font-size: 17px;
  }
  .bdc-trust-tiles__desc {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .bdc-trust-tiles__tile {
    padding: 26px 28px;
  }
  .bdc-trust-tiles__title {
    font-size: 18px;
  }
  .bdc-trust-tiles__desc {
    font-size: 15.5px;
  }
}

/* ── Specificity safety ──────────────────────
   Same trick used by other widgets — theme selectors like
   `.bdc-post-content-col ul li` (0,1,2) beat plain (0,1,0)
   class selectors on font-size + color. Re-declaring under
   `.bdc-v3` bumps specificity to (0,2,0), winning cleanly. */

/* Site theme styles h3 with Frank Ruhl Libre (serif), weight 300,
   letter-spacing -2px via a higher-specificity selector than a
   plain class. Re-declare font under .bdc-v3 (0,2,0) + repeat
   font-family/weight/style/letter-spacing to fully override. */
.bdc-v3 .bdc-trust-tiles__title {
  font-family: var(--bdc-sans);
  font-weight: 700;
  font-style: normal;
  letter-spacing: normal;
  color: var(--bdc-ink);
  font-size: 16px;
  line-height: 1.3;
}
.bdc-v3 .bdc-trust-tiles__desc {
  font-family: var(--bdc-sans);
  font-weight: 400;
  letter-spacing: normal;
  color: var(--bdc-ink-2);
  font-size: 14px;
  line-height: 1.5;
}
.bdc-v3 .bdc-trust-tiles__desc strong { color: var(--bdc-ink); font-weight: 600; }
.bdc-v3 .bdc-trust-tiles__desc a { color: var(--bdc-sage-2); }

/* Same treatment for the optional heading — the theme's h2 style
   would leak in the same way if editors fill that field. */
.bdc-v3 .bdc-trust-tiles__heading {
  font-family: var(--bdc-serif);
  font-weight: 600;
  letter-spacing: normal;
  color: var(--bdc-ink);
}
.bdc-v3 .bdc-trust-tiles__eyebrow {
  color: var(--bdc-sage);
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Force every tile in the grid to match the tallest row.
   Without this, row 2 (which has multi-line titles like
   "Physician-supervised care plans") is taller than row 1,
   so the 2×2 grid reads as two mismatched horizontal bands. */
.bdc-trust-tiles__grid {
  grid-auto-rows: 1fr;
}
.bdc-trust-tiles__tile {
  height: 100%;
}

@media (min-width: 768px) {
  .bdc-v3 .bdc-trust-tiles__title { font-size: 17px; }
  .bdc-v3 .bdc-trust-tiles__desc  { font-size: 15px; }
}
@media (min-width: 1200px) {
  .bdc-v3 .bdc-trust-tiles__title { font-size: 18px; }
  .bdc-v3 .bdc-trust-tiles__desc  { font-size: 15.5px; }
}
