/* ============================================================ */
/* SANCTUARY HOMES — component styles                           */
/* Extends style.css. Uses the same :root variables.            */
/* Only NEW components live here: stages timeline, local-need    */
/* callout, profile cards, facts list, safeguarding grid.       */
/* Homepage classes (.hero, .story, .journey-s, .what, .track,  */
/* .contact-s, .section-title, .reveal, .what-card) are reused. */
/* ============================================================ */

/* --- Page sub-nav refinements ------------------------------- */
/* Tighten link spacing so 6 section links + CTA fit cleanly,   */
/* and give the CTA a little breathing room from the links.     */
#nav .nav-links { gap: 22px; }
#nav .nav-links a { font-size: 11px; letter-spacing: 0.1em; }
#nav .nav-cta { margin-left: 28px; white-space: nowrap; }
@media(max-width: 1240px) {
  #nav .nav-links { gap: 16px; }
  #nav .nav-links a { font-size: 10px; letter-spacing: 0.08em; }
}
/* On mobile the section links hide (inherited from style.css). */
/* Keep back-link + CTA balanced and non-overlapping.           */
@media(max-width: 1024px) {
  #nav { gap: 12px; }
  #nav .nav-cta { padding: 9px 16px; font-size: 11px; }
  #nav .nav-name { font-size: 16px; }
}

/* --- Shared building blocks --------------------------------- */
.sh-block { max-width: 760px; }
.sh-lead { font-size: 18px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 16px; }
.sh-emphasis { font-family: var(--serif); font-size: 24px; font-style: italic; font-weight: 300; color: var(--accent); line-height: 1.4; margin-top: 12px; }
.sh-subsection { max-width: 760px; margin-top: 48px; }
.sh-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.sh-body { font-size: 16px; color: var(--ink-mid); line-height: 1.8; margin-bottom: 14px; }
.sh-body strong { color: var(--ink); font-weight: 500; }
.sh-inline-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color 0.2s; }
.sh-inline-link:hover { border-bottom-color: var(--accent); }
.sh-closing { font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 300; color: var(--ink); line-height: 1.5; max-width: 720px; margin-top: 48px; }

/* --- 5-stage journey timeline cards ------------------------- */
/* Dark section (.journey-s) already sets bg:var(--ink)         */
.sh-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.08); margin-top: 56px; }
.sh-stage { background: var(--ink); padding: 32px 24px; position: relative; transition: background 0.25s; }
.sh-stage:hover { background: #1c1c16; }
.sh-stage-num { font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 18px; }
.sh-stage-name { font-family: var(--serif); font-size: 19px; font-weight: 400; color: #fff; line-height: 1.25; margin-bottom: 14px; }
.sh-stage-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.65; }
.sh-stages-foot { margin-top: 48px; max-width: 760px; }
.journey-close-line { font-family: var(--serif); font-size: 22px; font-style: italic; font-weight: 300; color: #fff; line-height: 1.5; margin-top: 24px; }

/* --- "What makes it different" — 4 cards (2x2) -------------- */
.sh-diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 40px; }
.sh-diff-card { padding: 40px 36px; }
.sh-diff-title { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink); margin-bottom: 16px; }
.sh-diff-body { font-size: 15px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 16px; }

/* --- LOCAL NEED callout box --------------------------------- */
.sh-callout { max-width: 760px; margin: 48px 0; background: var(--accent); padding: 40px 44px; position: relative; }
.sh-callout-label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.sh-callout-body { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.8; margin-bottom: 16px; }
.sh-callout-body:last-child { margin-bottom: 0; }
.sh-callout-body strong { color: #fff; font-weight: 500; }

/* --- The home — facts list (bordered, like .gi) ------------- */
.sh-facts { display: flex; flex-direction: column; }
.sh-fact { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.sh-fact:first-child { border-top: 1px solid var(--rule); }
.sh-fact-k { font-weight: 500; font-size: 14px; color: var(--ink); }
.sh-fact-v { font-size: 15px; color: var(--ink-mid); line-height: 1.6; }

/* --- Development-status note (truth-register tone) ---------- */
.sh-devnote { max-width: 760px; margin-top: 48px; padding: 24px 28px; background: var(--cream); border-left: 3px solid var(--gold); font-size: 14px; font-style: italic; color: var(--ink-mid); line-height: 1.7; }

/* --- Leadership profile cards ------------------------------- */
/* Sits inside dark .journey-s section                          */
.sh-profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(255,255,255,0.08); margin-top: 56px; }
.sh-profile { background: var(--ink); padding: 40px 36px; }
.sh-profile-role { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.sh-profile-name { font-family: var(--serif); font-size: 24px; font-weight: 400; color: #fff; margin-bottom: 18px; }
.sh-profile-headline { font-family: var(--serif); font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 18px; line-height: 1.3; }
.sh-profile-body { font-size: 14px; color: rgba(255,255,255,0.66); line-height: 1.7; margin-bottom: 14px; }
.sh-profile-quals { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 16px 0; }
.sh-profile-quals span { color: rgba(255,255,255,0.8); font-weight: 500; }
.sh-profile-status { font-family: var(--serif); font-size: 14px; font-style: italic; color: var(--gold); line-height: 1.6; margin-top: 18px; padding-left: 16px; border-left: 2px solid rgba(184,150,12,0.4); }
.sh-profile .wc-link { color: var(--gold); margin-top: 8px; display: inline-block; }

/* --- Governance structure (bordered list, dark) ------------- */
.sh-gov { margin-top: 56px; max-width: 860px; }
.sh-label-light { color: var(--gold); }
.sh-gov-point { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.7; }
.sh-gov-point:first-of-type { border-top: 1px solid rgba(255,255,255,0.12); }

/* --- Safeguarding grid (dark .track section) ---------------- */
.sh-safe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.08); margin-top: 56px; }
.sh-safe-block { background: var(--ink); padding: 36px 32px; }
.sh-safe-label { font-family: var(--serif); font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 16px; }
.sh-safe-body { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 12px; }

/* --- Enquiries extras --------------------------------------- */
.sh-future { margin-top: 28px; padding: 20px 24px; background: var(--cream); border-left: 3px solid var(--accent); font-size: 14px; color: var(--ink-mid); line-height: 1.7; }
.sh-contact-note { font-size: 15px; color: var(--ink-mid); line-height: 1.7; margin-bottom: 20px; }

/* ============================================================ */
/* RESPONSIVE                                                    */
/* ============================================================ */
@media(max-width: 1024px) {
  .sh-stages { grid-template-columns: 1fr; }
  .sh-diff-grid { grid-template-columns: 1fr; }
  .sh-profiles { grid-template-columns: 1fr; }
  .sh-safe-grid { grid-template-columns: 1fr; }
  .sh-callout { padding: 32px 24px; margin: 36px 0; }
  .sh-fact { grid-template-columns: 1fr; gap: 6px; }
  .sh-fact-k { font-size: 13px; }
  .sh-lead { font-size: 16px; }
  .sh-emphasis { font-size: 21px; }
  .sh-closing, .journey-close-line { font-size: 20px; }
}

/* ============================================================ */
/* v2 — PROGRESSIVE DISCLOSURE COMPONENTS                       */
/* Accordions, stat callout, glance panel, image placeholders.  */
/* Behaviour in sanctuary-homes.js. Copy in JSON.               */
/* ============================================================ */

/* --- Accordion base ----------------------------------------- */
[data-accordion-trigger] { cursor: pointer; background: none; border: none; font-family: var(--sans); display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.2s; }
[data-accordion-trigger]:hover { opacity: 0.7; }
[data-accordion-panel][hidden] { display: none; }

/* --- 5-stage cards: compact + Details toggle ---------------- */
.sh-stage-toggle { margin-top: 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding: 0; }
.sh-stage-icon { display: inline-block; font-size: 15px; line-height: 1; transition: transform 0.3s; }
.sh-stage-toggle[aria-expanded="true"] .sh-stage-icon { transform: rotate(45deg); }
.sh-stage-desc { margin-top: 14px; }

/* --- Milton Keynes head: text + image placeholder ----------- */
.sh-mk-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.sh-mk-head-text { max-width: 640px; }

/* --- Image placeholder frames (no stock photography) -------- */
.sh-imgph { background: repeating-linear-gradient(45deg, #ece9e0, #ece9e0 12px, #e6e2d8 12px, #e6e2d8 24px); border: 1px solid var(--rule); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; }
.sh-imgph span { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-light); padding: 16px; }
.sh-imgph-dark { background: repeating-linear-gradient(45deg, #1c1c16, #1c1c16 12px, #1f1f18 12px, #1f1f18 24px); border-color: rgba(255,255,255,0.12); margin-top: 18px; }
.sh-imgph-dark span { color: rgba(255,255,255,0.4); }

/* --- Milton Keynes at a glance panel ------------------------ */
.sh-glance { max-width: 760px; margin: 48px 0; background: #fff; border: 1px solid var(--rule); padding: 36px 40px; }
.sh-glance-label { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: 24px; }
.sh-glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sh-glance-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sh-glance-row:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
.sh-glance-k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); align-self: center; }
.sh-glance-v { font-size: 15px; color: var(--ink); align-self: center; }

/* --- Local-need stat callout (stats pulled out) ------------- */
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.18); margin-bottom: 8px; }
.sh-stat { background: var(--accent); padding: 18px 28px 22px 28px; }
.sh-stat-fig { font-family: var(--serif); font-size: 46px; font-weight: 300; color: #fff; line-height: 1.05; }
.sh-stat-label { font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.5; margin-top: 6px; }
.sh-source-toggle { margin-top: 24px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding: 0; }
.sh-source-detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); }

/* --- Leadership compact cards + expandable ------------------ */
.sh-profile-summary { font-size: 15px; color: rgba(255,255,255,0.78); line-height: 1.6; margin-bottom: 18px; }
.sh-profile-toggle { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding: 0; }
.sh-profile-detail { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); }

/* --- Therapeutic pillar accordions -------------------------- */
.sh-pillars { max-width: 860px; margin-top: 40px; border-top: 1px solid var(--rule); }
.sh-pillar { border-bottom: 1px solid var(--rule); }
.sh-pillar-head { width: 100%; justify-content: space-between; padding: 24px 0; }
.sh-pillar-name { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }
.sh-pillar-icon { font-family: var(--serif); font-size: 28px; font-weight: 300; color: var(--gold); transition: transform 0.3s; }
.sh-pillar-head[aria-expanded="true"] .sh-pillar-icon { transform: rotate(45deg); }
.sh-pillar-body { padding-bottom: 28px; max-width: 720px; }

/* --- Framework compact accordion list ----------------------- */
.sh-framework { max-width: 720px; border-top: 1px solid var(--rule); margin-top: 8px; }
.sh-fw-item { border-bottom: 1px solid var(--rule); }
.sh-fw-head { width: 100%; justify-content: space-between; padding: 18px 0; }
.sh-fw-term { font-weight: 500; font-size: 15px; color: var(--ink); letter-spacing: 0.02em; }
.sh-fw-head[aria-expanded="true"] .sh-pillar-icon { transform: rotate(45deg); }
.sh-fw-body { padding-bottom: 22px; }

/* --- Safeguarding read more --------------------------------- */
.sh-safe-toggle { margin-top: 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding: 0; }
.sh-safe-detail { margin-top: 14px; }

/* --- Responsive v2 ------------------------------------------ */
@media(max-width: 1024px) {
  .sh-mk-head { grid-template-columns: 1fr; gap: 32px; }
  .sh-glance-grid { grid-template-columns: 1fr; }
  .sh-glance-row { border-bottom: 1px solid var(--rule) !important; }
  .sh-glance-row:last-child { border-bottom: none !important; }
  .sh-stats { grid-template-columns: 1fr 1fr; gap: 1px; }
  .sh-stat { padding: 16px; }
  .sh-stat-fig { font-size: 42px; }
  .sh-pillar-name { font-size: 22px; }
}

/* --- Golden-thread purpose line (journey intro) ------------- */
.journey-goldthread { font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 300; color: var(--gold); line-height: 1.5; margin-top: 18px; max-width: 700px; }
@media(max-width:1024px){ .journey-goldthread { font-size: 18px; } }

/* --- Nav: full labels now (6 links). Tighten to fit. -------- */
#nav .nav-links { gap: 18px; }
#nav .nav-links a { font-size: 10.5px; letter-spacing: 0.07em; }
@media(max-width: 1320px) { #nav .nav-links { gap: 13px; } #nav .nav-links a { font-size: 10px; letter-spacing: 0.05em; } }
/* Sanctuary Homes hero wordmark */
.hero-right--sanctuary {
  align-items: center;
  text-align: center;
}

.sanctuary-wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(34px, 3.5vw, 58px);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.82);
  margin-bottom: 42px;
}

.hero-right--sanctuary .hero-quote blockquote {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
/* Sanctuary Homes real image frames */
.sh-photo {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 10px;
}

.sh-photo img {
  width: 100%;
  height: auto;
  display: block;
}
/* Sanctuary Homes hero panel */
.hero-right--sanctuary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--accent);
  padding: 80px;
  text-align: center;
}

.sh-hero-logo {
  position: relative;
  z-index: 2;
  width: min(330px, 70%);
  margin: 0 auto 20px auto;
  background: transparent;
}

.sh-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.hero-right--sanctuary .hero-quote {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 auto;
}

.hero-right--sanctuary .hero-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 24px);
  font-style: italic;
  font-weight: 300;
  color: rgba(245, 243, 237, 0.86);
  line-height: 1.45;
  margin: 0;
}

@media(max-width: 1024px) {
  .hero-right--sanctuary {
    padding: 56px 28px;
  }

  .sh-hero-logo {
    width: min(300px, 76%);
    margin-bottom: 18px;
  }
}
.hero-quote--statement {
  max-width: 520px;
  margin: 0 auto;
}

.hero-quote--statement blockquote {
  font-family: var(--serif);
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.25;
  font-style: italic;
  font-weight: 300;
  color: rgba(245,243,237,0.92);
  margin: 0;
}
