/* ==========================================================================
   Faith Harbor Pet Loss Support — site stylesheet
   Mobile-first. Tokens → base → layout → components → sections → pages.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/montserrat-latin.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;

  /* Palette: harbor navy, harbor blue, restful teal, cream, restrained gold */
  --c-navy: #14263f;
  --c-navy-deep: #0d1a2c;
  --c-blue: #1f4e79;
  --c-teal: #35747b;
  --c-teal-dark: #2b5f66;
  --c-teal-soft: #9fc7c9;
  --c-cream: #f5efe3;
  --c-ivory: #fcfaf5;
  --c-white: #ffffff;
  --c-paper: #fdfcf5; /* background of the approved logo artwork */
  --c-gold: #d3ad55;
  --c-gold-soft: #ead9a8;
  --c-text: #263241;
  --c-muted: #5b6673;
  --c-line: #e4ddce;
  --c-on-dark: #f3efe6;
  --c-on-dark-muted: #c9cfd8;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --measure: 62ch;
  --wrap: 72rem;
  --wrap-narrow: 44rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 6.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 38, 63, 0.05), 0 10px 30px -18px rgba(20, 38, 63, 0.25);
  --focus: 3px solid var(--c-gold);
  --ease: 180ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-ivory);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--c-navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--c-teal-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--c-navy); }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--c-gold-soft); color: var(--c-navy); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), var(--wrap-narrow)); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--c-muted); }
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--c-navy);
  margin: 1.5rem 0 0.5rem;
  text-wrap: balance;
}
.display--sm { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.questions { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--c-blue); }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100%;
  background: var(--c-navy); color: var(--c-on-dark);
  padding: 0.75rem 1rem; border-radius: 0 0 8px 8px; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; outline: var(--focus); color: var(--c-on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn--primary { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }
.btn--primary:hover { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.btn--secondary { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--secondary:hover { background: var(--c-navy); color: var(--c-white); }
.btn--ghost { background: rgba(255, 255, 255, 0.12); color: var(--c-white); border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); }
.btn--light { background: var(--c-cream); color: var(--c-navy); border-color: var(--c-cream); }
.btn--light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-navy); }
.btn--help { background: var(--c-gold); color: var(--c-navy); border-color: var(--c-gold); }
.btn--help:hover { background: var(--c-gold-soft); border-color: var(--c-gold-soft); color: var(--c-navy); }
.btn--soon { background: transparent; color: var(--c-on-dark); border-color: rgba(243, 239, 230, 0.45); }
.btn--soon:hover { border-color: var(--c-on-dark); color: var(--c-on-dark); }
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: relative;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  z-index: 20;
}
.site-header__inner { width: min(100% - 2 * var(--gutter), 86rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

/* Brand: approved artwork crops. Sizes are explicit per breakpoint so nothing shifts on load. */
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--c-navy); padding-block: 0.65rem; border-radius: 8px; }
.brand__emblem img { width: 42px; height: 44px; }
.brand__word { display: flex; flex-direction: column; align-items: flex-start; }
.brand__lockup img { width: 136px; height: 24px; }
.brand__sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-teal-dark); margin-top: 0.2rem; line-height: 1; }
@media (min-width: 48em) {
  .brand { gap: 0.7rem; }
  .brand__emblem img { width: 48px; height: 50px; }
  .brand__lockup img { width: 201px; height: 50px; }
  .brand__sub { display: none; }
}
@media (min-width: 80em) {
  .brand { gap: 0.75rem; }
  .brand__emblem img { width: 54px; height: 56px; }
  .brand__lockup img { width: 233px; height: 58px; }
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: none; border: 2px solid var(--c-line); border-radius: 999px;
  padding: 0.55rem 0.95rem; font: inherit; font-weight: 600; font-size: 0.9rem; color: var(--c-navy); cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--ease); }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: block; padding: 0.5rem 0.6rem; border-radius: 8px;
  font-weight: 500; font-size: 0.92rem; color: var(--c-navy); text-decoration: none;
}
.site-nav__list a:hover { background: var(--c-cream); }
.site-nav__list a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--c-gold); border-radius: 8px 8px 0 0; }
.site-nav .btn--help { padding: 0.65rem 1.05rem; font-size: 0.9rem; white-space: nowrap; }

/* Collapsed (mobile) navigation — only when JS has enabled the toggle */
.site-nav.is-collapsible {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--c-white); border-bottom: 1px solid var(--c-line);
  box-shadow: 0 18px 30px -20px rgba(20, 38, 63, 0.35);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.site-nav.is-collapsible.is-open { display: flex; }
.site-nav.is-collapsible .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.site-nav.is-collapsible .site-nav__list a { padding: 0.9rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
.site-nav.is-collapsible .site-nav__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--c-gold); padding-left: 0.9rem; }
.site-nav.is-collapsible .btn--help { margin-top: 1rem; padding: 1rem; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__head p { margin-inline: auto; }
.section__intro { color: var(--c-muted); font-size: 1.1rem; text-wrap: balance; }
.section__cta { margin-top: 1.75rem; }

/* 1. Hero — approved photograph. Below 64em the photo sits above the text (no
   overlay needed); at 64em+ the photo runs full-bleed and the text sits in a
   translucent harbor-navy panel over the water, clear of the man, dog and lighthouse. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--c-navy);
  color: var(--c-on-dark);
}
.hero__media { position: relative; display: block; }
.hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.hero__media::after {
  /* soft seam between the photo and the text panel */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, rgba(20, 38, 63, 0) 0%, rgba(20, 38, 63, 0.9) 100%);
}
.hero__inner { padding-block: 1.75rem 3rem; }
.hero__title { color: var(--c-white); font-size: clamp(2.15rem, 6.5vw, 3.5rem); line-height: 1.1; margin-bottom: 1.1rem; max-width: 22ch; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.6; color: var(--c-on-dark); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.6rem; }
.hero__actions .btn { flex: 1 1 14rem; max-width: 20rem; }
.hero .btn--primary { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-navy); }
.hero .btn--primary:hover { background: var(--c-gold-soft); border-color: var(--c-gold-soft); }

@media (min-width: 48em) {
  .hero__media img { aspect-ratio: 2 / 1; object-position: 45% center; }
  .hero__inner { padding-block: 2rem 3.5rem; }
}
@media (min-width: 64em) {
  /* object-position values keep the man (left) and lighthouse (right) in frame
     as the 2:1 photo is cropped to the hero's height at each width. */
  .hero { display: flex; align-items: flex-end; min-height: 44rem; }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  .hero__media img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 30% center; }
  .hero__media::after { display: none; }
  .hero__inner { display: flex; justify-content: flex-end; padding-block: 1.5rem; }
  .hero__panel {
    width: min(100%, 37rem);
    margin-right: 3%;
    padding: 1.75rem 2rem 2rem;
    background: rgba(20, 38, 63, 0.82);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 60px -30px rgba(13, 26, 44, 0.8);
  }
  .hero__title { font-size: 2.2rem; margin-bottom: 0.9rem; }
  .hero__lead { font-size: 1rem; line-height: 1.55; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__actions .btn { flex: 0 1 auto; min-width: 11rem; }
}
@media (min-width: 80em) {
  .hero { min-height: 46rem; }
  .hero__media img { object-position: 40% center; }
  .hero__inner { padding-block: 2rem; }
  .hero__panel { width: min(100%, 42rem); margin-right: 5%; padding: 2rem 2.5rem 2.25rem; }
  .hero__title { font-size: 2.5rem; }
  .hero__lead { font-size: 1.05rem; }
}
@media (min-width: 90em) {
  .hero { min-height: 50rem; }
  .hero__media img { object-position: 45% center; }
  .hero__inner { padding-block: 2.5rem; }
  .hero__panel { padding: 2.25rem 2.5rem 2.5rem; }
  .hero__lead { font-size: 1.1rem; }
}

/* 2. Support cards */
.section--facing { background: var(--c-white); }
.support-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.support-card { margin: 0; }
.support-card__link {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.support-card__link:hover { border-color: var(--c-teal-soft); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 38, 63, 0.05), 0 18px 34px -20px rgba(20, 38, 63, 0.35); }
.support-card__title { font-size: 1.25rem; margin: 0 0 0.5rem; color: var(--c-navy); }
.support-card__blurb { color: var(--c-muted); font-size: 0.98rem; line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.support-card__cue { color: var(--c-teal-dark); font-weight: 600; font-size: 1.1rem; transition: transform var(--ease); }
.support-card__link:hover .support-card__cue { transform: translateX(4px); }

/* 3. Carry their love forward */
.section--quiet { background: var(--c-cream); text-align: center; padding-block: clamp(4.5rem, 11vw, 8rem); }
.section--quiet p { margin-inline: auto; }
.section--quiet .display { margin-top: 2.25rem; font-size: clamp(2rem, 5.5vw, 3rem); }

/* 4. Faith & Hope */
.section--faith { background: var(--c-white); border-top: 1px solid var(--c-line); }
.section--faith h2 { max-width: 20ch; }

/* 5. Book */
.section--book { background: var(--c-ivory); border-top: 1px solid var(--c-line); }
.book { display: grid; gap: 2.25rem; align-items: center; grid-template-columns: 1fr; }
.book__cover { display: flex; justify-content: center; }
.book__cover a { display: block; border-radius: 6px; }
.book-cover img {
  width: min(60vw, 300px); height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 24px -8px rgba(20, 38, 63, 0.45), 0 30px 60px -30px rgba(20, 38, 63, 0.5);
}
.book__name { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 1.25rem; }
.book__title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--c-navy); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; }
.book__subtitle { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--c-blue); }
.book__author { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); margin-top: 0.35rem; }
.book-formats { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.format { display: inline-flex; align-items: baseline; gap: 0.5rem; padding: 0.6rem 1rem; border: 1px dashed var(--c-line); border-radius: 999px; font-size: 0.92rem; color: var(--c-muted); background: var(--c-white); }
.format__name { font-weight: 600; color: var(--c-navy); }
.format__status { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* 6. Memorials */
.section--memorials { background: var(--c-navy); color: var(--c-on-dark); }
.section--memorials h2, .section--memorials .display { color: var(--c-white); }
.section--memorials .eyebrow { color: var(--c-gold); }
.section--memorials p { color: var(--c-on-dark); }

/* 7. Freely given */
.section--freely { background: var(--c-cream); text-align: center; }
.section--freely p { margin-inline: auto; }
.section--freely .display { margin-top: 2rem; }

/* 8. Closing */
.section--closing {
  position: relative; isolation: isolate; text-align: center;
  color: var(--c-on-dark);
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(211, 173, 85, 0.28), transparent 60%),
    linear-gradient(180deg, var(--c-blue) 0%, var(--c-navy) 55%, var(--c-navy-deep) 100%);
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.section--closing::before {
  /* quiet horizon line */
  content: ''; position: absolute; left: 0; right: 0; top: 34%; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(211, 173, 85, 0.35), transparent);
}
.section--closing h2, .section--closing .display { color: var(--c-white); }
.section--closing p { margin-inline: auto; color: var(--c-on-dark); }
.section--closing .display { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy-deep); color: var(--c-on-dark-muted); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; font-size: 0.92rem; }
.site-footer__inner { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer__name { font-family: var(--font-display); font-size: 1.3rem; color: var(--c-white); margin: 0 0 0.35rem; }
.site-footer__tagline { font-family: var(--font-display); font-style: italic; color: var(--c-on-dark); margin: 0 0 0.5rem; }
.site-footer__phrase { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold); margin: 0; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__nav a { color: var(--c-on-dark); text-decoration: none; padding: 0.3rem 0; display: inline-block; }
.site-footer__nav a:hover { color: var(--c-gold-soft); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--c-gold); }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem; }
.site-footer__disclaimer { font-size: 0.85rem; line-height: 1.6; max-width: 70ch; color: var(--c-on-dark-muted); }
.site-footer__copy { margin: 0; font-size: 0.82rem; color: var(--c-on-dark-muted); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--c-cream); padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 3.5rem); border-bottom: 1px solid var(--c-line); }
.page-head h1 { margin-bottom: 0.5em; }
.page-head .lead { margin-bottom: 1rem; }
.page-head--404 .hero__actions { margin-top: 1.5rem; }
.page-head--404 .hero__actions .btn { flex: 0 1 auto; }

.notice {
  display: inline-flex; align-items: flex-start; gap: 0.6rem;
  background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal);
  border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem; color: var(--c-text); max-width: var(--measure);
}
.notice__dot { flex: none; width: 0.55rem; height: 0.55rem; margin-top: 0.5rem; border-radius: 50%; background: var(--c-teal); }

.topic-list { display: grid; gap: 1rem; }
.topic { padding: 1.5rem 1.5rem 1.4rem; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); scroll-margin-top: 1.5rem; }
.topic:target { border-color: var(--c-gold); box-shadow: inset 4px 0 0 var(--c-gold); }
.topic__title { font-size: 1.35rem; margin-bottom: 0.4rem; }
.topic__blurb { color: var(--c-muted); margin-bottom: 0.75rem; }
.topic__status { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-teal-dark); }

.page-book .book__h1 { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem; }
.page-book .book__h1 .book__title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-book .book__h1 .book__subtitle { font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 400; }
.page-book .book__author { margin-bottom: 1.5rem; }
.page-book .book-cover img { width: min(70vw, 340px); }

/* ---------- Responsive ---------- */
@media (min-width: 40em) {
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; }
  .site-footer__legal { grid-column: 1 / -1; }
}
@media (min-width: 48em) {
  .book { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 3.5rem; }
  .page-book .book { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
}
@media (min-width: 64em) {
  .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__inner { grid-template-columns: 1.6fr 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .support-card__link:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer__nav, .nav-toggle, .hero__media, .btn { display: none !important; }
  .hero, .section--memorials, .section--closing { background: none; color: #000; }
}

/* ==========================================================================
   Support guides (/support/…) — quiet, reading-focused
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap--reading { width: min(100% - 2 * var(--gutter), 42rem); margin-inline: auto; }
.page-guide main { background: var(--c-ivory); }

/* Page head: restrained harbor-light treatment — cream field with a soft
   sunrise glow and a thin gold horizon line. No photograph. */
.guide__head {
  position: relative; isolation: isolate;
  background:
    radial-gradient(60rem 22rem at 85% -20%, rgba(211, 173, 85, 0.22), transparent 65%),
    radial-gradient(40rem 18rem at 10% 110%, rgba(159, 199, 201, 0.22), transparent 60%),
    var(--c-cream);
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.75rem, 7vw, 4.5rem);
}
.guide__head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(211, 173, 85, 0.7) 30%, rgba(211, 173, 85, 0.7) 70%, transparent);
}
.guide__head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.4em; }
.guide__subtitle { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.4; color: var(--c-blue); margin-bottom: 2rem; }

.breadcrumb { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); font-size: 0.85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.breadcrumb li + li::before { content: '\203A'; margin-right: 0.5rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-teal-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-muted); }

/* Reading body */
.guide__body { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 4.5rem); }
.guide__body p { font-size: 1.125rem; line-height: 1.75; margin-bottom: 1.25em; max-width: none; }
.guide__section { margin-top: clamp(3rem, 7vw, 4.5rem); }
.guide__section h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 0.75em; padding-top: 0.25rem; }
.guide__section h2::before { content: ''; display: block; width: 3rem; height: 2px; background: var(--c-gold); margin-bottom: 1.1rem; opacity: 0.8; }

/* Display lines within the guide */
.guide .display--guide { text-wrap: pretty; font-size: clamp(1.5rem, 3.6vw, 1.95rem); line-height: 1.3; margin: 1.75rem 0 1.75rem; padding-left: 1.25rem; border-left: 3px solid var(--c-gold); max-width: none; }
.guide .display--opening { border-left: 0; padding-left: 0; font-size: clamp(1.5rem, 3.8vw, 2.05rem); margin: 0; }
.guide .display--final { font-size: clamp(1.7rem, 4.2vw, 2.3rem); }
.guide .display-list { list-style: none; margin: 1.5rem 0 1.5rem; padding: 0.15rem 0 0.15rem 1.25rem; border-left: 3px solid var(--c-gold); }
.display-list li { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.4; color: var(--c-navy); margin: 0.25rem 0; }
.guide .sayings { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0 0 0 1.25rem; border-left: 3px solid var(--c-line); }
.sayings li { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2.8vw, 1.35rem); line-height: 1.45; color: var(--c-muted); margin: 0.35rem 0; }

.scripture { margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); }
.scripture blockquote { margin: 0; }
.scripture blockquote p { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.25; color: var(--c-navy); margin: 0 0 0.5rem; }
.scripture figcaption { font-size: 0.9rem; letter-spacing: 0.06em; color: var(--c-muted); }

.care-list { margin: 1.25rem 0 1.5rem; padding-left: 1.5rem; }
.care-list li { font-size: 1.125rem; line-height: 1.7; margin: 0.4rem 0; padding-left: 0.25rem; }
.care-list li::marker { color: var(--c-teal); }
.stanza p { margin-bottom: 0.5em; }
.stanza { margin-bottom: 1.25em; }
.upcoming-ref { font-style: italic; color: var(--c-navy); }

/* "More help right now" panel — calm, clearly separated */
.help-panel { background: var(--c-cream); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.help-panel h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.help-panel__grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.help-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.25rem; }
.help-card--petloss { border-top: 4px solid var(--c-teal); }
.help-card--crisis { border-top: 4px solid var(--c-navy); }
.help-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.help-card p { font-size: 1rem; line-height: 1.6; }
.help-card__phone { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; margin: 0.25rem 0 0.75rem; }
.help-card__phone a { color: var(--c-navy); text-decoration: none; }
.help-card__phone a:hover { text-decoration: underline; }
.help-card__link { margin-bottom: 0; font-weight: 600; }
.help-card__link a::after { content: ' \2197'; font-weight: 400; }

/* Related + closing */
.guide__related { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.guide__related h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.guide .related { display: grid; gap: 0.6rem; margin: 1.25rem 0 0; padding: 0; }
.related__link, .related__soon { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-white); }
.related__link { color: var(--c-navy); font-weight: 600; text-decoration: none; }
.related__link::after { content: '\2192'; color: var(--c-teal-dark); }
.related__link:hover { border-color: var(--c-teal-soft); }
.related__soon { background: var(--c-cream); border-color: rgba(211, 173, 85, 0.35); color: var(--c-navy); }
.related__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.related__badge { flex: none; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-teal-dark); background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(211, 173, 85, 0.35); border-radius: 999px; padding: 0.3rem 0.7rem; }

.guide__closing { text-align: center; padding-block: clamp(3rem, 8vw, 5rem) clamp(3.5rem, 9vw, 6rem); }
.guide__closing h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
.guide__closing p { margin-inline: auto; font-size: 1.1rem; }

@media (min-width: 40em) {
  .help-panel__grid { grid-template-columns: 1fr 1fr; }
}

/* Guide: veterinary information panel + urgent note (facing-euthanasia) */
.help-card--vet { border-top: 4px solid var(--c-teal); margin-top: 1.5rem; }
.resource-list { display: grid; gap: 1rem; margin: 0.75rem 0 0; padding: 0; }
.resource-list li + li { border-top: 1px solid var(--c-line); padding-top: 1rem; }
.resource-list .help-card__link { margin-bottom: 0.35rem; }
.resource-list p:last-child { margin-bottom: 0; }
.urgent-note { max-width: none; margin: 1.5rem 0 0; padding: 1rem 1.25rem; background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-navy); border-radius: 10px; font-size: 1rem; line-height: 1.6; color: var(--c-navy); }
.urgent-note strong { font-weight: 600; }
.guide .display--closing { border-left: 0; padding-left: 0; margin: 1.5rem auto 0.5rem; font-size: clamp(1.4rem, 3.4vw, 1.8rem); }

/* Guide: extra breathing room before a resource panel that follows an emotional ending */
.help-panel--breathe { margin-top: clamp(1.5rem, 5vw, 3.5rem); }

/* Guide: generous room between a strong article ending and related support (no resource panel between) */
.guide__related--breathe { padding-top: clamp(3.5rem, 9vw, 6.5rem); border-top: 1px solid var(--c-line); }

/* Cards inside the two-column resource grid align to the same top edge */
.help-panel__grid .help-card { margin-top: 0; }

/* About page: pastoral-support phone line and boundary note */
.about__phone { font-weight: 600; font-size: 1.25rem; color: var(--c-navy); margin: 1.5rem 0 0.75rem; }
.about__phone a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 0.2em; }
.guide__body .about__boundary { font-size: 1rem; line-height: 1.6; color: var(--c-muted); padding: 1rem 1.25rem; background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal); border-radius: 10px; }

/* Contact page: pastoral-support lines and the reach card */
.contact__line { font-weight: 600; font-size: 1.15rem; color: var(--c-navy); margin: 0 0 0.5rem; }
.contact__line + .contact__line { margin-bottom: 1.5rem; }
.contact__line a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 0.2em; overflow-wrap: anywhere; display: inline-block; padding: 0.15rem 0; }
.contact-card { font-style: normal; background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 0 0 1.5rem; }
.contact-card .eyebrow { margin-bottom: 0.5rem; }
.contact-card__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--c-navy); margin: 0 0 0.6rem; }
.guide__body .contact-card__line { font-weight: 600; font-size: 1.15rem; margin: 0 0 0.4rem; }
.contact-card__line a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 0.2em; overflow-wrap: anywhere; display: inline-block; padding: 0.15rem 0; }

/* Contact: pastoral portrait in "Talk with a pastor" — stacked above the text on small screens,
   beside the opening paragraphs from 48em; text stays primary and the reading measure is unchanged. */
.talk__portrait { margin: 0 0 1.5rem; width: min(60vw, 260px); }
.talk__portrait img { width: 100%; height: auto; border-radius: 12px; display: block; }
@media (min-width: 48em) {
  .talk__portrait { float: right; width: 260px; margin: 0.35rem 0 1rem 2rem; }
  .guide__section:has(.talk__portrait)::after { content: ''; display: table; clear: both; }
}

/* Legal / informational pages (Privacy Policy): calm reading layout, no guide panels */
.legal__head { padding-bottom: clamp(2rem, 5vw, 3rem); }
.legal__head h1 { margin-bottom: 0.35em; }
.legal__updated { font-size: 0.9rem; color: var(--c-muted); letter-spacing: 0.02em; margin: 0; }
.legal__body { padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 7vw, 4.5rem); }
.legal__body p { font-size: 1.0625rem; line-height: 1.7; max-width: none; }
.legal__body h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); margin: clamp(2.25rem, 5vw, 3rem) 0 0.6em; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.legal__list { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.legal__list li { line-height: 1.6; margin: 0.35rem 0; padding-left: 0.2rem; }
.legal__list li::marker { color: var(--c-teal); }
.legal__contact { font-weight: 600; color: var(--c-navy); }
.legal__contact a, .legal__address a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 0.2em; overflow-wrap: anywhere; display: inline-block; padding: 0.15rem 0; }
.legal__address { font-style: normal; background: var(--c-white); border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal); border-radius: 10px; padding: 1rem 1.25rem; }
.legal__address p { margin: 0 0 0.35rem; }
