/* ==========================================================================
   Component: card (template-parts/components/card.php). Variants: service, text, photo, article.
   ========================================================================== */
.card { display: flex; flex-direction: column; min-width: 0; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card__eyebrow {
  color: var(--color-accent-text);
  font-size: 0.875rem;
  font-weight: var(--font-weight-strong);
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.3;
  text-transform: uppercase;
}
.card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: var(--fs-h3);
  line-height: 1.2;
  text-wrap: balance;
}
.card__text { display: grid; gap: 10px; font-size: var(--fs-text); line-height: 1.55; }
.card__link { margin-top: auto; padding-top: 6px; } /* links line up along the bottom of a row */

/* Service: the two principal care routes, large white panels */
.card--service { overflow: hidden; border-radius: var(--radius-panel); background: var(--color-white); }
.card--service .card__media { border-radius: 0; }
.card--service .card__body { padding: clamp(22px, 3vw, 36px); }
.card--service .card__title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }

/* Text: no image; a quiet panel with a Lilac top rule */
.card--text {
  padding: clamp(22px, 2.6vw, 32px);
  border-top: 3px solid var(--color-lilac);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  background: var(--color-white);
}

/* Photo: editorial, image-led, no panel */
.card--photo { gap: 18px; }

/* Article: image, title, excerpt, "Read more" */
.card--article { gap: 16px; }
.card--article .card__title { font-size: clamp(1.25rem, 1.12rem + 0.5vw, 1.4375rem); }

.block--bg-white .card--service,
.block--bg-white .card--text { background: var(--color-lighthouse); }
/* On Lilac the Lilac top rule would vanish: Forever Lavender instead */
.block--bg-lilac .card--text { border-top-color: var(--color-lavender); }

/* In 2-column grids, article cards sit image-beside-text from 768px, so news stays visually lighter than the main
   story (handover). In 3- and 4-column grids they stay stacked (image above text). */
@media (min-width: 768px) {
  .card-grid--2 .card--article { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; column-gap: var(--space-2); }
  .card-grid--2 .card--article .card__media { aspect-ratio: 1 / 1 !important; }
}
