/* ==========================================================================
   Rise & Rooted Therapy
   Design system implementation of "Rise & Rooted | Color & Fonts"

   Color and type are locked to the brand deck. Two documented deviations,
   both accessibility corrections, are marked DEVIATION below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette — exact values from the brand deck */
  --bg:        #F7F1E6;  /* Background  — default ground for every page      */
  --surface:   #EDE3CF;  /* Surface     — panels, alternating sections       */
  --primary:   #5F6B48;  /* Primary     — buttons, nav states, deep bands    */
  --accent:    #B15E38;  /* Accent      — used sparingly, once per view      */
  --text:      #2E2A22;  /* Text        — body copy and headings             */
  --muted:     #7A7263;  /* Muted Text  — captions, helper text              */

  /* In-system derivations. No new hues introduced. */
  --primary-deep: #4E5839;
  --accent-deep:  #954B2B;
  --rule:         rgba(95, 107, 72, 0.22);
  --rule-strong:  rgba(95, 107, 72, 0.38);
  --rule-light:   rgba(247, 241, 230, 0.26);
  --shadow:       0 1px 2px rgba(46, 42, 34, 0.04),
                  0 8px 28px rgba(46, 42, 34, 0.06);

  /* Type */
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body:    "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --wrap:    1120px;
  --measure: 62ch;
  --gap:     clamp(1.5rem, 3vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius:  14px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;      /* 17px — inside the deck's 16–18px body range */
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

::selection { background: var(--surface); color: var(--text); }

/* --------------------------------------------------------------------------
   3. Typography
   Cormorant Garamond is for feeling, never for reading at length.
   Nunito is for everything functional.
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h1, .display {
  font-size: clamp(2.4rem, 5.4vw, 3.5rem);   /* 44–56px at desktop */
  line-height: 1.06;
  margin-bottom: 0.35em;
}

h2 { font-size: clamp(1.75rem, 3vw, 2rem); line-height: 1.18; }      /* 28–32px */
h3 { font-size: clamp(1.25rem, 2vw, 1.375rem); line-height: 1.3; }   /* 20–22px */
h4 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* The one italic Accent word permitted in a display line.
   Only ever used at 24px+, where Accent on Background passes AA large. */
.em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* DEVIATION 1 — Eyebrow color.
   The deck specifies Accent for 12px eyebrows, but its own contrast table and
   DO/DON'T page restrict Accent to 18pt+/14pt-bold. Measured: Accent on
   Background is 4.13:1, below the 4.5:1 needed for small text. Eyebrows are
   set in Primary (5.07:1, AA) instead. */
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;                 /* 12px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text);
}

.tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;                  /* 24px = 18pt, AA-large floor */
  line-height: 1.3;
  color: var(--primary);
  margin: 0;
}

.pull {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--primary);
  margin: 0;
  max-width: 30ch;
}

.caption,
figcaption {
  font-size: 0.8125rem;               /* 13px */
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.measure { max-width: var(--measure); }
.measure-wide { max-width: 74ch; }

/* DEVIATION 2 — Inline link color.
   The deck specifies inline links in Accent. At body size that is 4.13:1 and
   fails AA. Links are Primary with an underline; Accent is reserved for the
   hover state, where the underline already carries the affordance. */
a { color: var(--primary); }

.prose a,
a.inline {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

.prose a:hover,
a.inline:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--surface { background: var(--surface); }

/* Primary deep band — the deck's designated section separator. */
.section--primary {
  background: var(--primary);
  color: var(--bg);
}
.section--primary h1,
.section--primary h2,
.section--primary h3 { color: var(--bg); }
.section--primary .eyebrow { color: var(--bg); opacity: 0.72; }
.section--primary .pull { color: var(--bg); }
.section--primary .caption { color: rgba(247, 241, 230, 0.74); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2rem; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Editorial split: content left-anchored, calm field right.
   Columns align to the top so a short right-hand column reads as a margin
   note rather than floating in the middle of an empty field. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

/* Heroes pair a text column with an image of similar mass, where optical
   centering is the better read. */
.hero .split,
.split--center { align-items: center; }

/* For a long text column beside a short margin note, so the note does not
   leave half the row empty. */
.split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }

/* Drops the margin note to the heading's level rather than the eyebrow's. */
@media (min-width: 861px) { .rail { margin-top: 4.75rem; } }
.split--text-right > :first-child { order: 2; }

@media (max-width: 860px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--text-right > :first-child { order: 0; }
}

/* --------------------------------------------------------------------------
   5. Signature: the rooted rule
   A horizon hairline with a taproot descending from its left end. Marks the
   opening of every major section, echoing the practice name.
   -------------------------------------------------------------------------- */

.mark {
  --taproot: 26px;
  margin-bottom: calc(var(--taproot) + 1.5rem);
  position: relative;
}

.mark > .eyebrow { margin-bottom: 0.75rem; }

.mark::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: var(--rule);
}

.mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 1px;
  height: var(--taproot);
  background: linear-gradient(to bottom, var(--rule-strong), var(--rule));
}

/* The root tip. Non-text, so no contrast floor applies. */
.mark > .tip {
  position: absolute;
  left: -2px;
  top: calc(100% + var(--taproot) - 2px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.section--primary .mark::before { background: var(--rule-light); }
.section--primary .mark::after {
  background: linear-gradient(to bottom, rgba(247,241,230,0.4), rgba(247,241,230,0.12));
}
.section--primary .mark > .tip { background: var(--bg); }

.mark--center { text-align: center; }
.mark--center > .tip { left: calc(50% - 2px); }
.mark--center::after { left: 50%; }

/* --------------------------------------------------------------------------
   6. Buttons
   Nunito 700, uppercase, white on Primary, full pill radius.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.8125rem;               /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 1.0625rem 1.75rem;
  border-radius: 999px;               /* full pill */
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease,
              border-color 180ms ease, transform 180ms ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--primary);
  color: #FFFFFF;                     /* AA on Primary */
}
.btn--primary:hover { background: var(--primary-deep); }

.btn--accent {
  background: var(--accent);
  color: #FFFFFF;                     /* AA on Accent */
}
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { background: rgba(95, 107, 72, 0.07); border-color: var(--primary); }

/* On the Primary band, the CTA inverts to Background fill. */
.btn--onprimary {
  background: var(--bg);
  color: var(--primary);
}
.btn--onprimary:hover { background: #FFFFFF; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #FFF;
  padding: 0.85rem 1.25rem;
  z-index: 200;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px rgba(46, 42, 34, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  padding-block: 0.75rem;
}

.wordmark {
  display: inline-block;
  flex: 0 0 auto;
  width: 180px;
  max-width: 100%;
  text-decoration: none;
  line-height: 0;
}
.wordmark img { display: block; width: 100%; height: auto; }
.wordmark--footer { width: 240px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.9rem); }

.nav__link {
  font-family: var(--body);
  font-size: 0.8125rem;               /* 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  padding-block: 0.4rem;
  position: relative;
  white-space: nowrap;
  transition: color 160ms ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--primary); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  cursor: pointer;
}

/* Services disclosure — a native <details> so it works without JavaScript. */
.nav__group { position: relative; }

.nav__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nav__summary::-webkit-details-marker { display: none; }
.nav__summary::marker { content: ""; }

.nav__caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms ease;
}
.nav__group[open] .nav__summary { color: var(--primary); }
.nav__group[open] .nav__caret { transform: translateY(1px) rotate(-135deg); }

/* The rectangular menu panel. */
.nav__menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  z-index: 120;
}
/* Small pointer connecting panel to the summary. */
.nav__menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--bg);
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.nav__menu-link {
  display: block;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav__menu-link:hover { background: var(--surface); color: var(--primary); }
.nav__menu-link[aria-current="page"] { color: var(--primary); }
.nav__menu-link--all {
  border-bottom: 1px solid var(--rule);
  border-radius: 9px 9px 0 0;
  margin-bottom: 0.25rem;
  color: var(--primary);
}

@media (prefers-reduced-motion: no-preference) {
  .nav__group[open] .nav__menu { animation: nav-menu-in 180ms ease both; }
}
@keyframes nav-menu-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 1000px) {
  .nav__toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1.75rem;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link {
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.875rem;
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 1.25rem; }

  /* Services disclosure expands inline within the mobile stack. */
  .nav__group { width: 100%; }
  .nav__summary {
    justify-content: space-between;
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--rule);
    font-size: 0.875rem;
  }
  .nav__menu {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.5rem 0.5rem;
    background: transparent;
    animation: none !important;
  }
  .nav__menu::before { display: none; }
  .nav__menu-link {
    padding-block: 0.7rem;
    white-space: normal;
  }
  .nav__menu-link--all { margin-bottom: 0.5rem; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 8vw, 7rem); }

.hero__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* The hero figure is the layout wrapper; the card inside carries the visual
   frame and all the tilt/hover motion. Splitting them keeps the entrance
   (on the figure) and the tilt (on the card) from fighting over `transform`. */
.hero__figure { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .hero__figure { animation: hero-figure-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
}
@keyframes hero-figure-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 500ms ease;
  will-change: transform;
}
.hero__card img { width: 100%; display: block; }

/* Pointer devices: gently lift on hover. Desktop stays straight at rest. */
@media (hover: hover) {
  .hero__card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 22px 52px rgba(46, 42, 34, 0.18);
  }
  .hero__card:active {
    transform: rotate(0deg) scale(0.99);
    transition-duration: 200ms;
  }
}

/* Small touch devices retain the angled snapshot's gentle idle sway. */
@media (max-width: 860px) and (hover: none) and (prefers-reduced-motion: no-preference) {
  .hero__card { animation: hero-sway 7s ease-in-out infinite; }
}
@keyframes hero-sway {
  0%, 100% { transform: rotate(5deg); }
  50%      { transform: rotate(2.5deg); }
}

/* Mobile: the photo becomes a small angled snapshot in the bottom-right corner,
   sitting beside the buttons and meta (which are held to the left) so the whole
   hero stays as short as its content and is always fully visible without a
   scroll. */
@media (max-width: 860px) {
  .hero { padding-block: 1.5rem 1.75rem; }

  .hero .split { display: block; position: relative; }

  /* Tighten the type a little for the narrower column. */
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.35rem); line-height: 1.1; }
  .hero .tagline { font-size: 1.2rem; margin-bottom: 1rem; }

  /* Everything below the headline is held to the left so no copy runs under
     the photo, whatever the page's content length. */
  .hero .lede { font-size: 1rem; max-width: 63%; }
  .hero .btn-row { margin-top: 1.5rem; max-width: 63%; }
  .hero__meta { margin-top: 1rem; max-width: 60%; }

  .hero__figure {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36%;
    max-width: 144px;
    margin: 0;
  }
  .hero__card {
    transform: rotate(5deg);
    transform-origin: bottom right;
  }
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  text-decoration: none;
  color: var(--text);
  height: 100%;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.section--surface .card { background: var(--bg); }

a.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; font-size: 0.9375rem; }

.card__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

/* Numbered list — used only where order genuinely carries meaning. */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 2rem;
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.1rem;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 0.6rem; top: 1.9rem; bottom: 0.4rem;
  width: 1px;
  background: var(--rule);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   10. Prose — long-form article and page body
   -------------------------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.25em; margin-bottom: 0.5em; }
.prose h3 { margin-top: 1.9em; margin-bottom: 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-block: 1.15em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--primary); }

/* The direct-answer block: an answer engine should find the answer first. */
.answer {
  background: var(--surface);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.answer p:last-child { margin-bottom: 0; }

blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--rule-strong);
}
blockquote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   11. FAQ accordion
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: transparent;
  border: 0;
  padding: 1.4rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.35;
  color: var(--text);
  transition: color 160ms ease;
}
.faq__q:hover { color: var(--primary); }

.faq__icon {
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-top: 0.45rem;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  transition: transform 240ms ease, opacity 240ms ease;
}
.faq__icon::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq__icon::after  { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms ease;
}
.faq__a > div { overflow: hidden; }
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding-bottom: 1.4rem; color: var(--text); }
.faq__a p:first-child { padding-top: 0.15rem; }

/* --------------------------------------------------------------------------
   12. Breadcrumbs
   -------------------------------------------------------------------------- */

.crumbs {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0; padding: 0;
}
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 0.45rem; }

.field label {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(95, 107, 72, 0.16);
}

.field .hint { font-size: 0.8125rem; color: var(--muted); }

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   14. Notices
   -------------------------------------------------------------------------- */

.notice {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 1.6rem);
  font-size: 0.9375rem;
}
.notice strong { font-weight: 700; }

.notice--crisis {
  border: 1px solid var(--rule-strong);
  background: transparent;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--surface);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem;
  border-top: 1px solid var(--rule);
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1.4fr repeat(2, 1fr);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.6rem; }
.footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 160ms ease;
}
.footer a:hover { color: var(--primary); text-decoration: underline; }

/* The credential block. Repeated site-wide so the practice reads as one
   consistent entity to search and answer engines. */
.credential {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
}
.credential strong { display: block; font-weight: 700; }
.credential span { color: var(--muted); }

.footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Motion — calm, slow, and fully optional
   -------------------------------------------------------------------------- */

/* Scoped to .js, which an inline script in <head> sets. Without JavaScript, or
   for a crawler that does not execute it, content renders plainly visible
   instead of being stranded at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal[data-visible="true"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   17. Focus and utilities
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--primary :focus-visible { outline-color: var(--bg); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */

@media print {
  .header, .footer, .nav__toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
