/* Family Care Navigation pages (the front page and its subpages): additions
   to site.css for these pages only (classes prefixed .sn-home-). */

/* ---- Headings ----------------------------------------------------------- */
/* The mockup's page titles run longer than site.css's 18ch hero measure. */
.sn-home-hero__title,
.sn-home-wide {
  max-inline-size: 28ch;
}

/* Accordion headings sit in a band, whose h1–h4 margin would gap the rows. */
.sn-band .sn-accordion__heading {
  margin: 0;
  font-size: inherit;
}

/* ---- Family line ("100% Free Service for Families & Patients …") ------ */
.sn-home-free {
  display: block;
  margin-block: 1.5rem 0;
  line-height: 1.5;
}

.sn-band--cream .sn-home-free,
.sn-band--card .sn-home-free {
  color: var(--sn-navy);
}

/* ---- Checklists (#why-serenity, #why-education-matters) ---------------
   Gold-framed boxes, two per row, each led by a gold ✓ drawn in CSS. */
.sn-home-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem 0;
  padding: 0;
  list-style: none;
}

.sn-home-checks li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-block: 0.85rem;
  padding-inline: 1rem;
  border: 1px solid var(--sn-gold);
  border-radius: var(--sn-radius);
}

.sn-home-checks li::before {
  content: "✓";
  flex: none;
  color: var(--sn-gold);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .sn-home-checks { grid-template-columns: 1fr; }
}

/* ---- Care navigation process (#how-it-works) --------------------------
   A native ordered list; the numbers are its counter, set in gold. */
.sn-home-process {
  margin-block: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: sn-home-step;
}

.sn-home-process li {
  position: relative;
  padding-inline-start: 2.5rem;
  counter-increment: sn-home-step;
}

.sn-home-process li + li { margin-block-start: 1.25rem; }

.sn-home-process li::before {
  content: counter(sn-home-step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  color: var(--sn-gold);
  font-family: var(--sn-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.sn-home-process .sn-step__title { margin-block-end: 0.35rem; }
.sn-home-process p { margin: 0; }

/* ---- Care option tiles (#explore-care-options) ------------------------
   Two per row, each a 48px+ link to its level of care below. */
.sn-home-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.sn-home-tiles a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-block-size: 3rem;
  padding-block: 0.75rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--sn-gold);
  border-radius: var(--sn-radius);
  background: var(--sn-card);
  color: var(--sn-navy);
  font-weight: 600;
  text-decoration: none;
}

.sn-home-tiles a:hover { background: var(--sn-gold); color: var(--sn-navy); }

/* An odd last tile spans the row, as in the mockup. */
.sn-home-tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (max-width: 767.98px) {
  .sn-home-tiles { grid-template-columns: 1fr; }
}

/* ---- Stacked cards (#levels-of-care) and card lists (#resource-categories) */
.sn-home-stack {
  display: grid;
  gap: 1.5rem;
  margin-block: 1.5rem 0;
}

.sn-home-stack .sn-card { scroll-margin-block-start: 2rem; }

.sn-home-list {
  padding: 0;
  list-style: none;
}

/* An odd last resource card spans the row, as in the mockup. */
.sn-home-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.sn-home-list .sn-btn { margin-block-start: 0.5rem; }

@media (max-width: 767.98px) {
  .sn-home-list > li:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---- Family Inquiries (#family-inquiries) -----------------------------
   The opening sentence on the mockup's rose panel, in italics. */
.sn-home-callout {
  max-inline-size: var(--sn-measure);
  margin-block: 0 1.5rem;
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  border-radius: var(--sn-radius);
  background: var(--sn-rose);
  color: var(--sn-navy);
  font-size: 1.15rem;
  font-style: italic;
}

/* The records release beside the assessment button: a 48px link target. */
.sn-home-doc {
  display: inline-flex;
  align-items: center;
}

.sn-home-doc a {
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  font-weight: 600;
}

/* ---- Booking caption (#care-questions) ------------------------------- */
.sn-home-booking { margin-block: 2rem 1rem; }

/* ---- Social channels row (#ethical-charter) ---------------------------
   One wrapping row of text links, separated by a thin gold bar (the
   design's "·"). Each link is a 48px touch target. */
.sn-home-social__title { margin-block: 2rem 0; }

.sn-home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-block: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.sn-home-links li {
  display: flex;
  align-items: center;
}

.sn-home-links li + li::before {
  content: "";
  inline-size: 1px;
  block-size: 1.1em;
  margin-inline-end: 1.25rem;
  background: var(--sn-gold-line);
}

.sn-home-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 3rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .sn-home-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .sn-home-links li + li::before { content: none; }
}

/* ---- Who are you? (home-audience, mockup 2026-10-22 p. 6) ------------- */
.sn-audience__list {
  margin-inline: 0;
  padding: 0;
  list-style: none;
}

.sn-audience__card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
}

.sn-audience__card .sn-card__title { margin: 0; }

.sn-audience__to {
  font-weight: 700;
}

.sn-audience__to::before {
  content: "→ ";
  color: var(--sn-gold);
}

[dir="rtl"] .sn-audience__to::before { content: "← "; }
