/* ==========================================================================
   CaveHill Counselling: site styles
   Warm neutrals, Literata headings, Figtree body. No framework.
   ========================================================================== */

:root {
  --paper: #f9f8f5;
  --stone: #efece6;
  --mist: #e6e3dc;
  --sandstone: #d8d3c9;
  --line: #e3dfd7;
  --ink: #1c1c1a;
  --body: #3a3935;
  --muted: #605d57;
  --pewter: #8a857c;
  --night: #1d1d1b;
  --radius: 20px;
  --radius-lg: 28px;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.35);
  --header-h: 76px;
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 1.125rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
}

p,
li {
  text-wrap: pretty;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.4em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--night);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Layout
   ========================================================================== */

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(780px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--stone {
  background: var(--stone);
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section--flush {
  padding-top: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head > :last-child {
  margin-bottom: 0;
}

.section-head p {
  max-width: 60ch;
  color: var(--muted);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  max-width: none;
}

.section-head--split h2 {
  margin: 0;
}

.section-head--split > p {
  max-width: 44ch;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid > .span-all {
  grid-column: 1 / -1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split--center {
  align-items: center;
}

/* Small pieces
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--pewter);
}

.lede {
  max-width: 46ch;
  color: var(--body);
  font-size: 1.2rem;
  line-height: 1.6;
}

.lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.95rem;
}

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.4;
}

.chips-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.after-chips {
  margin-top: 24px;
}

.also {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.also a {
  font-weight: 600;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  font-size: 1.15rem;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.contact-list .icon-tile {
  width: 44px;
  height: 44px;
  margin: 0;
  background: #fff;
}

.contact-list .icon-tile svg {
  width: 20px;
  height: 20px;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--night);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--stone);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  color: var(--ink);
  font-weight: 600;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(249, 248, 245, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: 190px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.site-nav .btn {
  padding: 11px 20px;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 960px) {
  /* Without JavaScript the links simply wrap below the logo. */
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-bottom: 14px;
  }

  .js .site-header .wrap {
    flex-wrap: nowrap;
    height: var(--header-h);
    padding-top: 0;
  }

  .js .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 10px;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }

  .site-header.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
  }

  .js .site-header.is-open .site-nav {
    display: flex;
  }

  .js .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .js .site-nav a:not(.btn)::after {
    display: none;
  }

  .js .site-nav a[aria-current] {
    font-weight: 700;
  }

  .js .site-nav .btn {
    margin-top: 20px;
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* Home hero
   ========================================================================== */

.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 104px);
  background: var(--stone);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 40px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--sandstone);
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.trust svg {
  width: 16px;
  height: 16px;
  color: var(--ink);
}

.hero-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
}

.arch {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius);
  background: var(--mist);
  box-shadow: var(--shadow);
}

.arch picture {
  display: block;
  width: 100%;
  height: 100%;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 36px;
  left: -28px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 270px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
}

.hero-badge .icon-tile {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--stone);
}

.hero-badge .icon-tile svg {
  width: 22px;
  height: 22px;
}

.hero-badge strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}

.hero-badge div span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Inner page hero
   ========================================================================== */

.page-hero {
  padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 7vw, 88px);
  background: var(--stone);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.page-hero--media .page-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.page-hero--split .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
}

.page-hero .hero-sub {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--body);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.hero-text {
  max-width: 62ch;
  margin-top: 22px;
}

.page-hero--split .hero-text {
  margin-top: 0;
}

.hero-text > :last-child {
  margin-bottom: 0;
}

.hero-text .cta-row {
  margin-top: 24px;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-note strong {
  color: var(--body);
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.byline img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.byline a {
  color: var(--ink);
  font-weight: 600;
}

.page-hero-media {
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.crumbs {
  margin-bottom: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li {
  margin: 0;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--pewter);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--ink);
}

/* Cards
   ========================================================================== */

.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
}

.card p,
.card li {
  font-size: 1.05rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.link-card:hover {
  border-color: transparent;
  box-shadow: 0 22px 40px -24px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.link-card h3 a {
  color: inherit;
  text-decoration: none;
}

/* The heading link covers the whole card. */
.link-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.link-card h3 a:focus-visible {
  outline: none;
}

.link-card:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.link-card p {
  color: var(--muted);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.link-card:hover .more svg {
  transform: translateX(4px);
}

.card--spaced {
  margin-bottom: 20px;
}

.area-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: start;
}

.area-card p {
  margin-bottom: 0;
}

.creds li strong {
  display: block;
}

.creds li span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.creds-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

.card--row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
}

.card--row .icon-tile {
  margin: 0;
}

.card--row h3 {
  margin: 0 0 4px;
}

.card--row p {
  margin: 0;
}

.card--row .more {
  margin: 0;
  padding: 0;
}

/* Lists
   ========================================================================== */

.dash-list,
.check-list {
  padding: 0;
  list-style: none;
}

.dash-list li {
  position: relative;
  padding-left: 26px;
}

.dash-list li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 12px;
  height: 1.5px;
  background: var(--pewter);
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li + li {
  margin-top: 14px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--pewter);
  -webkit-mask: var(--icon-check) center / contain no-repeat;
  mask: var(--icon-check) center / contain no-repeat;
}

.steps-list {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  min-height: 34px;
  margin: 0;
  padding-left: 54px;
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  font: 600 0.95rem/34px var(--serif);
  text-align: center;
}

.steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: -16px;
  left: 16.5px;
  width: 1px;
  background: var(--sandstone);
}

/* Detail rows: heading on the left, copy on the right
   ========================================================================== */

.detail-list {
  border-top: 1px solid var(--sandstone);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px clamp(24px, 5vw, 72px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--sandstone);
}

.detail h2 {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.detail-body > :last-child {
  margin-bottom: 0;
}

/* FAQ
   ========================================================================== */

.faq {
  margin-top: clamp(48px, 6vw, 72px);
}

.faq-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
}

.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font: 600 1.15rem/1.4 var(--serif);
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: var(--ink);
  -webkit-mask: var(--icon-plus) center / contain no-repeat;
  mask: var(--icon-plus) center / contain no-repeat;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: #000;
}

.faq-answer {
  max-width: 70ch;
  padding: 0 0 24px;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

/* Home: about, approach, steps
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.portrait {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin: 0;
}

.split .portrait {
  position: static;
  max-width: 420px;
}

.portrait figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.portrait figcaption strong {
  display: block;
  font-size: 1.05rem;
}

.chunk {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--sandstone);
}

.chunk-num {
  color: var(--muted);
  font: 600 1rem/1.9 var(--serif);
}

.chunk h3 {
  margin-bottom: 8px;
}

.chunk p:last-child {
  margin-bottom: 0;
}

.pull {
  margin: 32px 0 0;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--night);
  color: #fff;
}

.pull p {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
}

.pull .pull-cite {
  margin-top: 14px;
  color: #b3aea4;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing {
  margin: 28px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  margin: 0;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  font: 600 1.05rem/1 var(--serif);
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Hours
   ========================================================================== */

.hours-card {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #dcd9d2;
}

.hours-card h2,
.hours-card h3,
.hours-card strong {
  color: #fff;
}

.hours-card .hours-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
}

.hours-card--compact {
  max-width: 640px;
  margin-inline: auto;
}

.hours-table {
  --rule: var(--line);
  --sub: var(--muted);
  --cell: var(--body);
  --head: var(--ink);
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.hours-card .hours-table {
  --rule: rgba(255, 255, 255, 0.14);
  --sub: #a9a49a;
  --cell: #dcd9d2;
  --head: #fff;
  margin: 0;
}

.hours-table th,
.hours-table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.hours-table th + th,
.hours-table th + td,
.hours-table td + td {
  padding-left: 20px;
}

.hours-table thead th {
  padding-top: 0;
  color: var(--head);
  font: 600 1.05rem/1.3 var(--serif);
  white-space: normal;
}

.hours-where {
  display: block;
  margin-top: 2px;
  color: var(--sub);
  font: 400 0.85rem/1.4 var(--sans);
}

.hours-table tbody tr {
  border-top: 1px solid var(--rule);
}

.hours-table tbody th {
  width: 1%;
  color: var(--head);
  font-weight: 600;
}

.hours-table td {
  color: var(--cell);
  font-variant-numeric: tabular-nums;
}

.hours-off {
  color: var(--sub);
}

.hours-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}

.hours-foot p {
  margin: 0;
}

.hours-card a {
  color: #fff;
  font-weight: 600;
}

/* Counsellor card, related links, service area
   ========================================================================== */

.counsellor {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.counsellor-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
  background: var(--mist);
}

.counsellor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counsellor h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.counsellor p {
  font-size: 1.05rem;
}

.fee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.fee-list li {
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--stone);
  color: var(--ink);
  font-size: 0.9rem;
}

.counsellor .cta-row {
  margin-top: 24px;
}

.related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.related h3 {
  margin: 0;
  color: var(--muted);
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related li {
  margin: 0;
}

.related a {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--sandstone);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.related a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.area {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 22px;
  align-items: start;
  margin-bottom: 20px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.area .icon-tile {
  grid-row: span 2;
  margin: 0;
}

.area h3 {
  margin: 0 0 4px;
}

.area p {
  margin: 0;
  font-size: 1.05rem;
}

/* Notices
   ========================================================================== */

.notice {
  padding: clamp(24px, 3vw, 36px);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
}

.notice h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.notice > :last-child {
  margin-bottom: 0;
}

/* Prices
   ========================================================================== */

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card > p {
  margin-bottom: 24px;
}

.prices {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-amount {
  color: var(--ink);
  font: 600 clamp(1.8rem, 3vw, 2.2rem)/1 var(--serif);
}

.price-duration {
  color: var(--muted);
  font-size: 0.98rem;
}

.info-items {
  display: grid;
  gap: 18px;
}

.info-items p {
  margin: 4px 0 0;
}

/* Calls to action
   ========================================================================== */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background: var(--stone);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-band p {
  max-width: 46ch;
}

.cta-band .cta-row {
  margin-top: 8px;
}

.cta-band--media {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.cta-band--media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.cta-band--media h2 {
  margin-bottom: 16px;
}

/* About page
   ========================================================================== */

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.story-media {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin: 0;
}

.story-media img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.story-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.prose {
  max-width: 66ch;
}

.prose > :last-child {
  margin-bottom: 0;
}

/* 404
   ========================================================================== */

.error-page {
  padding: clamp(72px, 12vw, 160px) 0;
  background: var(--stone);
  text-align: center;
}

.error-page h1 {
  margin: 0;
  color: var(--pewter);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
}

.error-page .cta-row {
  justify-content: center;
}

.error-page p {
  color: var(--muted);
}

.error-page .cta-row + p {
  margin-top: 24px;
}

/* Footer
   ========================================================================== */

.site-footer {
  padding: 72px 0 32px;
  background: var(--night);
  color: #c9c6bf;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 40px;
}

.footer-brand img {
  width: 180px;
}

.footer-tagline {
  margin: 22px 0 18px;
  color: #fff;
  font: 600 1.45rem/1.25 var(--serif);
}

.footer-nap {
  line-height: 1.75;
}

.site-footer strong {
  color: #fff;
}

.footer-heading {
  margin: 0 0 14px;
  color: #9b978f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0;
}

.footer-crisis {
  align-self: start;
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-crisis p {
  margin: 0;
}

.footer-crisis a {
  text-decoration: underline;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8f8b83;
  font-size: 0.85rem;
}

/* Reveal on scroll (only when JavaScript is running)
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .story,
  .split,
  .cta-band,
  .cta-band--media {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    justify-self: start;
    max-width: 440px;
  }

  .portrait,
  .story-media {
    position: static;
    max-width: 420px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero--media .page-hero-grid,
  .page-hero--split .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero--split .page-hero-grid {
    gap: 24px;
  }

  .page-hero-media {
    display: none;
  }

  .page-hero-media.is-kept {
    display: block;
    justify-self: start;
    max-width: 280px;
  }

  .split .portrait {
    max-width: 380px;
  }
}

@media (max-width: 800px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .card--row .more {
    grid-column: 2;
  }

  .area-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail h2 {
    position: static;
  }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .counsellor {
    grid-template-columns: minmax(0, 1fr);
  }

  .counsellor-photo {
    max-width: 170px;
  }

  .chunk {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .area {
    grid-template-columns: minmax(0, 1fr);
  }

  .area .icon-tile {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .card--row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .card--row .icon-tile {
    margin-bottom: 16px;
  }

  .card--row p {
    margin-bottom: 8px;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .wrap,
  .wrap-narrow {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 156px;
  }

  .hero-badge {
    bottom: 16px;
    left: 12px;
  }

  .cta-row .btn {
    width: 100%;
    padding-inline: 18px;
  }

  .cta-band {
    padding: 28px 22px;
  }

  .hours-table th + th,
  .hours-table th + td,
  .hours-table td + td {
    padding-left: 14px;
  }

  .js .site-nav {
    padding-inline: 16px;
  }
}
