/* ==========================================================================
   Jade and Pearl Counseling — design system
   Palette drawn from the practice's business card and brand stationery.
   ========================================================================== */

:root {
  --jade-soft: #a9cdb6;
  --jade-tint: #dcebe1;
  --jade-mist: #eff6f1;
  --sage: #6f9c7d;
  --sage-text: #4e7359;
  --sage-deep: #3f5c4b;
  --terracotta: #b87a55;
  --terracotta-deep: #9a5a34;
  --terracotta-tint: #f3e4da;
  --cream: #faf6f0;
  --pearl: #fffdfa;
  --ink: #33302b;
  --ink-soft: #5b564e;
  --line: #e6ded2;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(51, 48, 43, 0.05), 0 8px 24px -14px rgba(51, 48, 43, 0.14);
  --shadow-md: 0 2px 6px rgba(51, 48, 43, 0.05), 0 18px 44px -22px rgba(51, 48, 43, 0.2);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --container: 1120px;
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--terracotta-deep);
  text-decoration-color: rgba(154, 90, 52, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

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

strong {
  font-weight: 600;
}

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

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.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;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 0.9rem;
}

.note {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Spacing + width utilities (keeps the CSP free of inline styles) */
.mt-sm { margin-top: 1rem; }
.mt-14 { margin-top: 1.4rem; }
.mt-md { margin-top: 1.6rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-xl { margin-bottom: 2.5rem; }
.max-34 { max-width: 34ch; }
.max-70 { max-width: 70ch; }
.ml-05 { margin-left: 0.5rem; }
.mx-auto { margin-inline: auto; }
.portal-narrow { max-width: 640px; margin-inline: auto; }
.section--tall { padding-top: clamp(4rem, 12vw, 8rem); }
.quote--left { text-align: left; margin: 2rem 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--terracotta-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: #84502c;
}

.btn--secondary {
  background: var(--sage-text);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--sage-deep);
}

.btn--outline {
  border-color: var(--sage-text);
  color: var(--sage-text);
  background: transparent;
}

.btn--outline:hover {
  background: var(--sage-text);
  color: #fff;
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
}

.btn__icon {
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage-text);
}

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

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--terracotta-deep);
}

.primary-nav a[aria-current="page"] {
  color: var(--terracotta-deep);
  border-bottom-color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--jade-mist);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(169, 205, 182, 0.55), rgba(169, 205, 182, 0));
  pointer-events: none;
}

.page-hero .eyebrow {
  color: var(--sage-text);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  margin-bottom: 0.35em;
}

.page-hero .lead {
  max-width: 62ch;
  margin-bottom: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section--tint {
  background: var(--jade-mist);
}

.section--pearl {
  background: var(--pearl);
  border-block: 1px solid var(--line);
}

.section--sage {
  background: var(--sage-deep);
  color: var(--cream);
}

.section--sage h2,
.section--sage h3 {
  color: var(--cream);
}

.section--sage .lead {
  color: rgba(250, 246, 240, 0.85);
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

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

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

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

/* ---------- Cards ---------- */

.card {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.35em;
}

.card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--jade-soft);
}

.card__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-text);
  margin-bottom: 0.55rem;
}

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

.card__more {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--terracotta-deep);
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 0.4rem 0.9rem;
  background: var(--jade-tint);
  border: 1px solid rgba(111, 156, 125, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-deep);
}

.chips a {
  color: inherit;
  text-decoration: none;
}

.chips li:hover {
  border-color: var(--sage);
  background: var(--jade-tint);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 4.6rem;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-text);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}

.steps p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Photo placeholders ---------- */

.photo-placeholder {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 25% 25%, rgba(169, 205, 182, 0.5), transparent 55%),
    radial-gradient(circle at 78% 80%, rgba(184, 122, 85, 0.18), transparent 50%),
    var(--jade-tint);
  border: 1px dashed rgba(111, 156, 125, 0.55);
  color: var(--sage-deep);
}

.photo-placeholder__icon {
  opacity: 0.75;
}

.photo-placeholder__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 26ch;
}

.photo-placeholder__sub {
  font-size: 0.8rem;
  color: var(--sage-text);
  max-width: 32ch;
}

.photo-placeholder--portrait {
  aspect-ratio: 4 / 5;
}

.photo-placeholder--landscape {
  aspect-ratio: 16 / 10;
}

.photo-placeholder--circle {
  aspect-ratio: 1;
  border-radius: 50%;
  max-width: 320px;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(169, 205, 182, 0.45), rgba(169, 205, 182, 0));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(184, 122, 85, 0.12), rgba(184, 122, 85, 0));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin-bottom: 0.6em;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 1rem;
  margin-top: 1.8rem;
}

.hero__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero__inline li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.hero__aside {
  display: grid;
  gap: 1rem;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 859px) {
  .split--reverse .split__media {
    order: 0;
  }
}

.split__body > :first-child {
  margin-top: 0;
}

/* ---------- Credential / info lists ---------- */

.cred-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  align-items: start;
  margin: 0 0 1rem;
}

.cred-list li:last-child {
  margin-bottom: 0;
}

.cred-list__icon {
  margin-top: 2px;
  color: var(--terracotta);
}

.cred-list strong {
  display: block;
}

.cred-list span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.insurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insurance-list li {
  margin: 0;
  padding: 0.7rem 1.2rem;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}

/* ---------- Portal (secure hand-off) cards ---------- */

.portal-card {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  background: var(--pearl);
  border: 1px solid rgba(184, 122, 85, 0.4);
  border-left-width: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .portal-card {
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
  }
}

.portal-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracotta-tint);
  color: var(--terracotta-deep);
}

.portal-card h3 {
  margin-bottom: 0.4em;
}

.portal-card p {
  max-width: 60ch;
}

.portal-card .btn {
  margin-top: 0.6rem;
}

.redirect-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Callout / notice blocks ---------- */

.notice {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  background: var(--terracotta-tint);
  border: 1px solid rgba(184, 122, 85, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
}

.notice__icon {
  margin-top: 3px;
  color: var(--terracotta-deep);
}

.notice p {
  margin: 0;
}

.notice--sage {
  background: var(--jade-mist);
  border-color: rgba(111, 156, 125, 0.4);
}

.notice--sage .notice__icon {
  color: var(--sage-text);
}

/* ---------- Service blocks ---------- */

.service {
  scroll-margin-top: 100px;
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}

.service:first-of-type {
  border-top: none;
}

.service__grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 760px) {
  .service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service__grid .card {
  background: var(--cream);
}

.service__grid .card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.3em;
}

.service__grid .card p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  margin-inline: auto;
}

.faq-list details {
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--ink);
}

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

.faq-list summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: auto;
  margin-top: 7px;
  border-right: 2px solid var(--terracotta-deep);
  border-bottom: 2px solid var(--terracotta-deep);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-list summary:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: -3px;
}

.faq-list details > div {
  padding: 0 1.3rem 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.faq-list details > div p:last-child,
.faq-list details > div ul:last-child {
  margin-bottom: 0;
}

/* ---------- Quote ---------- */

.quote {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--sage-deep);
}

.quote footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-text);
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band .lead {
  margin-inline: auto;
  max-width: 56ch;
  margin-bottom: 1.8rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--sage-deep);
  color: rgba(250, 246, 240, 0.88);
  padding: clamp(2.8rem, 6vw, 4rem) 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--jade-tint);
  text-decoration-color: rgba(220, 235, 225, 0.4);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  color: var(--cream);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .brand__name,
.footer-brand .brand {
  color: var(--cream);
}

.footer-brand .brand__sub {
  color: var(--jade-tint);
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(250, 246, 240, 0.9);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin: 0 0 0.6rem;
}

.footer-social {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(220, 235, 225, 0.45);
  color: var(--jade-tint);
}

.footer-social__note {
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.75);
}

.footer-crisis {
  margin: 2.4rem 0 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(220, 235, 225, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.footer-crisis p {
  margin: 0;
}

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

.footer-legal {
  margin: 2.4rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(220, 235, 225, 0.28);
  font-size: 0.85rem;
  color: rgba(250, 246, 240, 0.75);
}

.footer-legal p {
  margin: 0 0 0.4rem;
}

/* ---------- Reveal animation (progressive enhancement) ---------- */

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

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card--link:hover {
    transform: none;
  }

  .faq-list summary::after,
  .nav-toggle__bar {
    transition: none;
  }
}

/* ---------- Responsive header ---------- */

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .primary-nav a {
    display: block;
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a[aria-current="page"] {
    border-bottom-color: var(--terracotta);
  }

  .nav-cta {
    margin-top: 0.6rem;
    justify-content: center;
  }
}
