/* ==========================================================================
   Weave Mental Health — Design System
   Warm · Calm · Professional · Modern · Trustworthy · Minimalist
   Palette: sage green, soft blue, warm neutrals, earth tones
   ========================================================================== */

:root {
  /* ---- Official Brand Kit values - do not alter ---- */
  --brand-forest:    #2F4A3D;
  --brand-sage:      #7D9686;
  --brand-mist:      #C7D6CF;
  --brand-sea-glass: #AFC7C8;
  --brand-sand:      #C9B59B;
  --brand-cream:     #F6F3EE;

  /* ---- Role tokens ----
     Original names kept so the rest of the stylesheet needs no rewrite.
     Where a Brand Kit colour is too light for text (SAGE is 2.88:1 and
     SAND 1.80:1 against the cream), the text token uses a darkened version
     of that same colour - same family, but passing 4.5:1. */
  --cream: var(--brand-cream);
  --sand: #EFE9E0;           /* alternating section background - light SAND */
  --linen: #E4DCD0;          /* hairline border */
  --sage: var(--brand-sage); /* decorative: borders, fills, details */
  --sage-dark: #5D7064;      /* darkened SAGE - 4.78:1, link colour */
  --sage-deep: var(--brand-forest);
  --sage-tint: #E3EAE5;      /* lightened MIST, soft fills */
  --mist: var(--brand-mist);
  --blue: var(--brand-sea-glass);
  --blue-tint: #E7EEEE;
  --earth: #746859;          /* darkened SAND - 4.91:1 on cream, 4.50:1 on the alt background */
  --earth-tint: #F0E7DC;
  --ink: #253129;
  --muted: #636B64;
  --white: #FFFFFF;

  /* Type - Brand Kit: Lora (headings) + Inter (body) */
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px -12px rgba(53, 70, 60, 0.18);
  --shadow-card: 0 6px 24px -10px rgba(53, 70, 60, 0.16);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

a { color: var(--sage-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--earth); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Woven texture (brand motif — subtle crosshatch of threads)
   -------------------------------------------------------------------------- */
.weave-texture {
  position: relative;
}
.weave-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.weave-texture-dark::before {
  background-image: radial-gradient(circle at 18% 0%, rgba(110,133,116,.10), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(143,175,180,.08), transparent 50%);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--sage-deep);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--earth);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 238, 0.92);   /* Brand Kit CREAM */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linen);
}
.nav-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sage-deep);
  white-space: nowrap;
}
.logo svg { flex-shrink: 0; }
.logo span em { font-style: normal; color: var(--sage); }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
}
.nav-links a {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover:not(.btn), .nav-links a.active:not(.btn) {
  border-bottom-color: var(--sage);
}
.nav-links a.btn {
  padding: 11px 22px;
  font-size: .88rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--sage-dark); }
.nav-links a.btn { color: var(--white); }
.nav-links a.btn:hover { color: var(--white); }

.menu-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle .bar {
  width: 24px; height: 2px;
  background: var(--sage-deep);
  transition: transform .25s ease, opacity .25s ease;
}
.menu-checkbox:checked ~ .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-checkbox:checked ~ .menu-toggle .bar:nth-child(2) { opacity: 0; }
.menu-checkbox:checked ~ .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-checkbox:focus-visible ~ .menu-toggle {
  outline: 3px solid var(--earth);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
/* Background uses --sage-dark rather than pure SAGE: white on SAGE is only
   3.19:1 and the 15px button label needs 4.5:1. --sage-dark gives 5.29:1. */
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--sage-deep); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--sage);
  color: var(--sage-dark);
}
.btn-outline:hover { background: var(--sage-tint); color: var(--sage-dark); }
.btn-light {
  background: var(--cream);
  color: var(--sage-deep);
}
.btn-light:hover { background: var(--white); color: var(--sage-deep); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--sage-tint) 0%, var(--cream) 55%, var(--blue-tint) 100%);
  padding: 96px 24px 84px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.hero-contact-line { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero-contact-line a { font-weight: 700; }

.hero-art {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(143,175,180,.5), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(160,124,95,.35), transparent 55%),
    linear-gradient(150deg, var(--sage) 0%, var(--sage-dark) 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--sage-tint) 0%, var(--cream) 70%);
  padding: 72px 24px 56px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 62ch; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 14px;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 72px 0; }
.section-alt { background: var(--sand); }
.section-blue { background: var(--blue-tint); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px -12px rgba(53,70,60,.24); }
.card-img {
  height: 150px;
  position: relative;
  background: linear-gradient(140deg, var(--sage-tint), var(--blue-tint));
}
.card-img.tone-sage  { background: linear-gradient(140deg, #DCE6DB, #C6D5C8); }
.card-img.tone-blue  { background: linear-gradient(140deg, #E2ECED, #C9DBDD); }
.card-img.tone-earth { background: linear-gradient(140deg, #EFE4D8, #DECDBB); }
.card-img.tone-deep  { background: linear-gradient(140deg, #CBD8CE, #AFC3B4); }
.card-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.16) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.16) 0 2px, transparent 2px 12px);
}
.card-img .card-icon {
  position: absolute;
  left: 22px; bottom: -24px;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.card-body { padding: 36px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 0; flex: 1; }
.card-link {
  margin-top: 14px;
  font-weight: 800;
  font-size: .88rem;
  color: var(--sage-dark);
}
.card:hover .card-link { color: var(--earth); }

/* Compact link cards (areas of focus hub) */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.area-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.area-card:hover { transform: translateY(-3px); color: var(--sage-dark); }
.area-card .thread-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--sage-tint);
}
.area-card:nth-child(3n) .thread-dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.area-card:nth-child(3n+2) .thread-dot { background: var(--earth); box-shadow: 0 0 0 4px var(--earth-tint); }
.area-card .arrow { margin-left: auto; color: var(--sage); font-weight: 800; }

/* --------------------------------------------------------------------------
   Belief / checklist lists
   -------------------------------------------------------------------------- */
.belief-list, .check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.belief-list li, .check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1.02rem;
}
.belief-list li::before, .check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-tint);
  border: 2px solid var(--sage);
}
.belief-list li::after, .check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 12px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--sage-dark);
  border-bottom: 2px solid var(--sage-dark);
  transform: rotate(-45deg);
}

/* Quote-style list (who we help) */
.question-list {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.question-list li {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--sage-deep);
  box-shadow: var(--shadow-card);
}
.question-list li:nth-child(even) { border-left-color: var(--earth); }

/* --------------------------------------------------------------------------
   Service blocks (services page)
   -------------------------------------------------------------------------- */
.service-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
  margin-bottom: 22px;
}
.service-block .service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-block:nth-child(even) .service-icon { background: var(--blue-tint); }
.service-block h3 { margin-bottom: 6px; }
.service-block p { color: var(--muted); margin-bottom: 0; }
.service-block .service-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 18px; }
.service-block .service-links a { font-weight: 800; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Focus / outcomes boxes (area landing pages)
   -------------------------------------------------------------------------- */
.focus-outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}
.focus-box, .outcome-box {
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}
.focus-box { background: var(--white); border-top: 4px solid var(--sage); }
.outcome-box { background: var(--white); border-top: 4px solid var(--earth); }
.focus-box h3, .outcome-box h3 { margin-bottom: 14px; font-size: 1.15rem; }
.focus-box ul, .outcome-box ul { list-style: none; display: grid; gap: 9px; }
.focus-box li, .outcome-box li { position: relative; padding-left: 26px; font-size: .98rem; }
.focus-box li::before, .outcome-box li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
}
.focus-box li::before { background: var(--sage-tint); border: 2px solid var(--sage); }
.outcome-box li::before { background: var(--earth-tint); border: 2px solid var(--earth); }

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(140deg, var(--sage-dark), var(--sage-deep));
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner p { color: rgba(250,247,241,.85); max-width: 60ch; margin: 0 auto 24px; }
.cta-banner .cta-contacts {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px;
  margin-top: 20px;
  font-size: .98rem;
  position: relative; z-index: 1;
}
.cta-banner .cta-contacts a { color: var(--white); font-weight: 700; }
.cta-banner .cta-contacts a:hover { color: var(--earth-tint); }
.cta-banner .btn { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Crisis notice
   -------------------------------------------------------------------------- */
.crisis-notice {
  background: #FBF3E4;
  border: 1px solid #E8D9BC;
  border-left: 5px solid #C9A265;
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  font-size: .97rem;
}
.crisis-notice strong { color: #7A5C2E; }
.crisis-notice p { margin-bottom: .6rem; }
.crisis-notice p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Rates table
   -------------------------------------------------------------------------- */
.rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 720px; margin: 0 auto; }
.rate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
  text-align: center;
  border-top: 4px solid var(--sage);
}
.rate-card:nth-child(2) { border-top-color: var(--blue); }
.rate-card .rate-length { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--muted); }
.rate-card .rate-price { font-family: var(--font-display); font-size: 2.6rem; color: var(--sage-deep); margin: 8px 0 4px; }
.rate-card .rate-note { color: var(--muted); font-size: .92rem; }

/* Info panels */
.info-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 34px 36px;
  margin-bottom: 24px;
}
.info-panel h2, .info-panel h3 { margin-bottom: 12px; }
.info-panel ul { margin: 0 0 1rem 1.2rem; }
.info-panel li { margin-bottom: 6px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
}
.contact-card h3 { margin-bottom: 10px; }
.contact-card .big-link { font-size: 1.25rem; font-weight: 800; display: inline-block; margin: 4px 0; }
.contact-card p { color: var(--muted); margin-bottom: .4rem; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}
.portrait-placeholder {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 30% 25%, rgba(143,175,180,.45), transparent 55%),
    linear-gradient(160deg, var(--sage-tint), var(--sage) 130%);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 13px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 13px);
}
.portrait-placeholder span {
  position: relative;
  padding: 14px 18px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--sage-deep);
  opacity: .75;
}
.credential-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.chip {
  background: var(--sage-tint);
  color: var(--sage-deep);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .86rem;
  font-weight: 800;
}
.chip.blue { background: var(--blue-tint); }
.chip.earth { background: var(--earth-tint); color: #6E4E33; }

.story-panel {
  background: linear-gradient(140deg, var(--sage-deep), var(--sage-dark));
  color: var(--cream);
  border-radius: var(--radius);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.story-panel h2 { color: var(--white); }
.story-panel p { color: rgba(250,247,241,.88); position: relative; z-index: 1; }
.story-panel em { color: var(--earth-tint); font-family: var(--font-display); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--sage-dark);
  box-shadow: var(--shadow-card);
}

/* Resources page */
.resource-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  margin-bottom: 22px;
  border-left: 5px solid var(--sage);
}
.resource-section:nth-child(even) { border-left-color: var(--blue); }
.resource-section h2 { font-size: 1.35rem; margin-bottom: 10px; }
.resource-section p { color: var(--muted); }
.resource-section ul { margin: 8px 0 0 1.2rem; color: var(--muted); }
.resource-section li { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--sage-deep);
  color: rgba(250,247,241,.82);
  padding: 64px 24px 0;
  margin-top: 72px;
  position: relative;
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}
footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
footer p { font-size: .93rem; margin-bottom: .5rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; font-size: .93rem; }
footer a { color: rgba(250,247,241,.82); }
footer a:hover { color: var(--earth-tint); }
.footer-crisis {
  background: rgba(0,0,0,.18);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: .88rem;
  line-height: 1.6;
}
.footer-crisis strong { color: #E8CFA0; }
.footer-bottom {
  border-top: 1px solid rgba(250,247,241,.15);
  text-align: center;
  padding: 20px 0 26px;
  font-size: .88rem;
  position: relative;
  z-index: 1;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { max-width: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--linen);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open,
  .menu-checkbox:checked ~ .nav-links { display: flex; }
  .menu-toggle { display: flex; }
}

@media (max-width: 820px) {
  .focus-outcome-grid, .contact-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
}

/* ==========================================================================
   Brand Kit - client revision round
   ========================================================================== */

/* Official logo replaces the placeholder. The Brand Kit lockup already
   balances "Weave" against "Mental Health", so the header no longer crowds
   the two together. */
.logo { gap: 0; white-space: normal; }
/* Safari resolves `width:auto` on a flex-item image from its intrinsic width,
   so the logo blew up. An explicit aspect-ratio makes the width derive from
   the height deterministically in every engine. */
.logo img {
  height: clamp(42px, 4.6vw, 58px);
  width: auto;
  aspect-ratio: 900 / 359;
  flex: 0 0 auto;
  align-self: center;
  object-fit: contain;
}

/* Hero headline: keeps the final word from sitting alone on its own line. */
.hero h1,
.page-hero h1,
.section-head h2 {
  text-wrap: balance;
}

/* Belief list ("Healthy coping strategies are good"):
   - the block sat offset to the right of the section heading
   - with 9 items across 2 columns the last one sat alone and opened a gap */
.belief-list, .check-list { justify-items: start; }
.belief-list li.span-all, .check-list li.span-all { grid-column: 1 / -1; }

/* Brand Kit service icons */
/* `height:100%` cannot resolve inside a flex container using align-items:center
   - Safari falls back to the image's intrinsic 240px and it overflowed the card.
   Fixed pixel sizes remove the ambiguity; overflow:hidden is the safety net. */
.service-block .service-icon { padding: 8px; overflow: hidden; }
.service-block .service-icon img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Treatment Approaches now link through to their related area pages */
.tag-cloud a {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--sage-dark);
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, color .2s ease;
}
.tag-cloud a:hover { border-color: var(--sage); color: var(--earth); }

/* Secondary logo (Brand Kit stacked variation), light version, in the footer */
.footer-logo {
  width: 230px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 900 / 788;
  object-fit: contain;
  margin-bottom: 18px;
}

/* Brand pattern/texture in the official kit colours (was generic white) */
.weave-texture::before {
  background-image:
    repeating-linear-gradient(45deg, rgba(199,214,207,.07) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(201,181,155,.06) 0 2px, transparent 2px 14px);
}

/* "Remove extra left spacing" - tightens the gap between marker and text */
.belief-list li, .check-list li { padding-left: 28px; }

/* Long unbreakable strings in the legal pages (email addresses, URLs) overflowed
   their panel at 375px. Applies to the whole class, not just the page that showed it. */
.info-panel p, .info-panel li, .contact-card p { overflow-wrap: anywhere; }

/* The global focus ring uses --earth, which is only 1.78:1 against the dark
   footer - a keyboard user could not see where they were. Cream on forest is
   8.75:1. Same problem on the dark CTA banner and page heroes. */
footer a:focus-visible,
.cta-banner a:focus-visible,
.page-hero a:focus-visible,
.hero a:focus-visible {
  outline: 3px solid var(--brand-cream);
  outline-offset: 3px;
}

/* Photo slots. Explicit aspect-ratio on every one: a percentage height inside a
   flex/grid parent is exactly what broke the logo in Safari earlier. */
.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.portrait-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.about-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.about-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
