/* =============================================================
   Elgie Therapy — Components
   Direction 03 · Linen & Light
   Pairs with tokens.css + colors_and_type.css
   ============================================================= */

/* ============= BUTTONS ============= */
/* Primary is reserved for "Book Free Consultation" only. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  line-height: 1;
  min-height: var(--tap-min);
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg-default);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur-quick) var(--ease-out),
    color var(--dur-quick) var(--ease-out),
    border-color var(--dur-quick) var(--ease-out),
    transform var(--dur-quick) var(--ease-out),
    box-shadow var(--dur-quick) var(--ease-out);
  user-select: none;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--c-ink-200); color: var(--c-ink-400);
  cursor: not-allowed; box-shadow: none;
}
.btn .ico { width: 16px; height: 16px; flex-shrink: 0; }

/* TIER 1 — Primary, terra fill. Reserved for primary booking CTA. */
.btn-primary {
  background: var(--accent);
  color: var(--fg-onAccent);
  border-color: var(--accent);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--accent-press); border-color: var(--accent-press); transform: translateY(0); box-shadow: 0 2px 0 rgba(0,0,0,0.06); }

/* TIER 2 — Secondary, ink outline */
.btn-secondary {
  background: transparent;
  color: var(--fg-default);
  border-color: var(--c-ink-700);
}
.btn-secondary:hover { background: var(--c-ink-900); color: var(--fg-onDark); }
.btn-secondary:active { background: var(--c-ink-700); }

/* TIER 3 — Tertiary, subtle */
.btn-tertiary {
  background: transparent;
  color: var(--fg-default);
  border-color: var(--line-default);
}
.btn-tertiary:hover { background: var(--bg-tint); border-color: var(--line-strong); }

/* TIER 4 — Link button (used for "Contact for questions" etc.) */
.btn-link {
  min-height: 0; padding: 6px 0;
  border: 0; background: none;
  color: var(--accent-onCream);
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-link:hover { color: var(--accent-press); text-decoration-thickness: 1.5px; }

/* Sizes */
.btn-lg { padding: 18px 28px; font-size: 17px; min-height: 56px; }
.btn-sm { padding: 10px 14px; font-size: 13px; min-height: 36px; }

/* Block / full width */
.btn-block { display: flex; width: 100%; }

/* Long-label CTAs are allowed to wrap on narrow viewports to prevent
   horizontal overflow (verified on insurance-fees + anxiety pages). */
@media (max-width: 560px) {
  .btn { white-space: normal; text-wrap: balance; }
  /* When CTA rows stack on phones, make the buttons full-width with even gaps
     so the visual rhythm doesn't break between primary and secondary tiers. */
  .hero-cta-row,
  .hstack {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta-row > .btn,
  .hstack > .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============= TRUST STRIP ============= */
.trust-strip {
  display: flex; align-items: center; gap: 14px 18px;
  flex-wrap: wrap;
  font-size: var(--fs-body-sm);
  color: var(--fg-muted);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line-soft);
}
.trust-strip b { color: var(--fg-default); font-weight: var(--fw-semibold); }
.trust-strip .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--fg-subtle); opacity: 0.7;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: var(--fw-semibold);
  padding: 5px 10px;
  background: var(--bg-tint);
  border-radius: var(--r-pill);
  color: var(--fg-default);
}
.trust-chip svg { width: 12px; height: 12px; color: var(--c-sage-700); }

/* ============= NAV ============= */
.site-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg-page) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px var(--gutter-desktop);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6);
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg-default);
  text-decoration: none;
  font-optical-sizing: auto;
}
.site-logo .mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.site-logo .mark svg { width: 14px; height: 14px; color: var(--c-linen-50); }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-links a {
  font-size: 14px; color: var(--fg-default); text-decoration: none;
  font-weight: var(--fw-medium); padding: 8px 4px;
}
.nav-links a:hover { color: var(--accent-onCream); }
.nav-links a[aria-current="page"] {
  color: var(--accent-onCream);
  border-bottom: 1.5px solid var(--accent);
}
.nav-cta-cluster { display: flex; align-items: center; gap: 12px; }
.nav-call {
  font-size: 13px;
  color: var(--fg-default); text-decoration: none;
  font-weight: var(--fw-medium);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-call svg { width: 14px; height: 14px; color: var(--accent-onCream); }
.nav-cta { /* the persistent Book button in nav */
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--fg-onAccent);
  text-decoration: none;
  border: 1px solid var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-quick) var(--ease-out);
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  color: var(--fg-default); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* Mobile menu — drops down below the nav. Hidden by default; visible
   when JS adds .is-open to .site-nav. Pure CSS would also work, but the
   sliding panel feels best with the small JS toggle wired in each page. */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 10px 24px -16px rgba(23, 20, 17, 0.18);
  padding: var(--space-5) var(--gutter-mobile) var(--space-5);
  flex-direction: column;
  gap: 2px;
  animation: nav-slide var(--dur-quick) var(--ease-out);
}
@keyframes nav-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-nav.is-open .mobile-menu { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  color: var(--fg-default);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu a[aria-current="page"] {
  color: var(--accent-onCream);
}
.mobile-menu a[aria-current="page"]::after {
  content: "•"; color: var(--accent);
  font-size: 18px; line-height: 1;
}
.mobile-menu .mm-divider {
  height: 1px; background: var(--line-soft);
  margin: 6px 0;
}
.mobile-menu .mm-call {
  font-family: var(--font-sans);
  font-size: 14px; font-weight: var(--fw-semibold);
  color: var(--accent-onCream);
  border-bottom: 0;
  padding: 14px 4px 4px;
  gap: 8px;
  justify-content: flex-start;
}
.mobile-menu .mm-call::after { content: none; }
.mobile-menu .mm-call svg {
  width: 16px; height: 16px;
  color: var(--accent-onCream);
}

/* Hamburger ↔ close X swap */
.nav-toggle .ico-close { display: none; }
.site-nav.is-open .nav-toggle .ico-menu { display: none; }
.site-nav.is-open .nav-toggle .ico-close { display: inline-block; }

@media (max-width: 880px) {
  .nav-links, .nav-call { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Compact nav — applies whenever the hamburger is showing (tablet + mobile).
   Matches the CTA to the logo's optical height and reduces gutter so the
   cluster hugs the right edge cleanly. */
@media (max-width: 880px) {
  .site-nav-inner {
    padding: 10px var(--gutter-mobile);
    gap: var(--space-3);
  }
  .site-logo { font-size: 16px; gap: 8px; }
  .site-logo .mark { width: 22px; height: 22px; }
  .site-logo .mark svg { width: 12px; height: 12px; }
  .nav-cta-cluster { gap: 4px; }
  .nav-cta {
    font-size: 12.5px;
    padding: 7px 12px;
    min-height: 32px;
    gap: 4px;
    border-radius: 6px;
    white-space: nowrap;
  }
  .nav-cta svg { width: 12px; height: 12px; }
  .nav-toggle { padding: 6px 4px 6px 8px; margin-right: -4px; }
  .nav-toggle svg { width: 22px; height: 22px; }
}

/* ============= MOBILE STICKY BOOKING BAR ============= */
.sticky-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-bar);
  display: none;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sticky);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  grid-template-columns: 1fr auto;
  align-items: center;
}
@media (max-width: 760px) {
  .sticky-mobile-bar { display: grid; }
  body.has-sticky-bar { padding-bottom: 84px; }
}
.sticky-mobile-bar .smb-primary {
  /* uses .btn .btn-primary .btn-block */
}
.sticky-mobile-bar .smb-call {
  width: var(--tap-min); height: var(--tap-min);
  border-radius: var(--r-sm);
  display: inline-grid; place-items: center;
  background: var(--bg-tint);
  color: var(--fg-default);
  text-decoration: none;
  border: 1px solid var(--line-default);
}
.sticky-mobile-bar .smb-call svg { width: 20px; height: 20px; color: var(--accent-onCream); }

/* ============= HERO ============= */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
}
.hero-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--space-9);
  align-items: center;
}
@media (max-width: 880px) {
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
    padding: 0 var(--gutter-mobile);
  }
}
.hero-art {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 5/6;
  background: var(--c-linen-200);
  position: relative;
  box-shadow: var(--shadow-3);
}
.hero-art .photo-slot {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.4) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, var(--c-blush-200) 0%, var(--c-blush-300) 100%);
  color: var(--c-terra-700);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.hero-cta-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin: var(--space-6) 0;
}
/* Horizontal button cluster — base rule so wrapped/stacked buttons keep a gap
   at ALL widths. Previously .hstack was only defined at <=560px, so buttons
   touched when they wrapped between 561-880px. flex `gap` covers row + column. */
.hstack { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============= INLINE CTA BLOCK (repeats mid-page) ============= */
.cta-block {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--space-7) var(--space-8);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-6);
  margin: var(--space-9) auto;
  max-width: var(--container-default);
  position: relative;
}
.cta-block::before {
  content: "";
  position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 56px; background: var(--accent); border-radius: 0 4px 4px 0;
}
.cta-block .cta-title {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.cta-block .cta-sub { color: var(--fg-muted); font-size: 15px; margin: 0; }
@media (max-width: 760px) {
  .cta-block { grid-template-columns: 1fr; padding: var(--space-6); }
  .cta-block::before { display: none; }
}

/* ============= CARDS ============= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--space-6);
  transition: border-color var(--dur-quick), box-shadow var(--dur-quick), transform var(--dur-quick);
}
.card-hover:hover { border-color: var(--line-default); box-shadow: var(--shadow-2); transform: translateY(-2px); }

.card-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-onCream);
  margin: 0 0 var(--space-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.card-eyebrow .num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-terra-100);
  color: var(--accent-press);
  font-weight: 700; letter-spacing: 0;
  font-size: 12px;
}
.card-title {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg-default);
  margin: 0 0 var(--space-2);
}
.card-body { color: var(--fg-muted); font-size: 15px; line-height: 1.55; margin: 0; }
.card-foot {
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.card-service { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.card-service .card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-oat-100);
  color: var(--accent-press);
  margin-bottom: var(--space-2);
}
.card-service .card-icon svg { width: 22px; height: 22px; }

/* Testimonial / Quote card  (kept generic; site avoids client reviews) */
.card-quote {
  background: var(--c-oat-100);
  border: 0;
  position: relative;
  padding-left: var(--space-7);
}
.card-quote::before {
  content: "\201C";
  position: absolute; left: var(--space-4); top: 4px;
  font-family: var(--font-serif);
  font-size: 56px; line-height: 1; color: var(--accent);
}

/* FAQ accordion item */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 17px;
  color: var(--fg-default);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary .chev {
  width: 20px; height: 20px; flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
  color: var(--fg-muted);
}
details[open] .faq-summary .chev { transform: rotate(180deg); color: var(--accent-onCream); }
.faq-body {
  padding: 0 0 var(--space-5) 0;
  color: var(--fg-muted); font-size: 15.5px; line-height: 1.6;
  max-width: 70ch;
}

/* ============= FORMS ============= */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field-label {
  font-size: 13px; font-weight: 600; color: var(--fg-default);
  display: inline-flex; align-items: center; gap: 6px;
}
.field-label .opt { color: var(--fg-subtle); font-weight: 400; }
.field-hint { font-size: 12px; color: var(--fg-muted); }
.field-input, .field-textarea, .field-select {
  font-family: var(--font-sans); font-size: 15px;
  color: var(--fg-default);
  padding: 0 14px;
  min-height: var(--field-h);
  background: var(--bg-raised);
  border: 1px solid var(--line-default);
  border-radius: var(--field-radius);
  outline: none;
  transition: border-color var(--dur-quick), box-shadow var(--dur-quick);
  width: 100%;
}
.field-textarea { padding: 12px 14px; min-height: 120px; resize: vertical; line-height: 1.55; }
.field-input::placeholder, .field-textarea::placeholder { color: var(--fg-subtle); }
.field-input:hover, .field-textarea:hover, .field-select:hover { border-color: var(--line-strong); }
.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: var(--accent); box-shadow: var(--focus-ring);
}
.field-error .field-input,
.field-error .field-textarea,
.field-error .field-select { border-color: var(--c-error); background: var(--c-error-bg); }
.field-error-msg {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--c-error); margin-top: 2px;
}
.field-error-msg svg { width: 14px; height: 14px; }

.field-check, .field-radio {
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--fg-default); cursor: pointer; padding: 6px 0;
  line-height: 1.4;
}
.field-check input, .field-radio input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-raised);
  flex-shrink: 0;
}
.field-check input { border-radius: 4px; }
.field-radio input { border-radius: 50%; }
.field-check input:checked {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5L7 12L13 5' stroke='%23FBF6EA' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat;
}
.field-radio input:checked {
  background: radial-gradient(circle, var(--accent) 40%, var(--bg-raised) 45%);
  border-color: var(--accent);
}

/* ============= ALERTS / CALLOUTS ============= */
.callout {
  background: var(--c-oat-100);
  border-left: 3px solid var(--accent);
  padding: var(--space-5);
  border-radius: var(--r-sm);
  color: var(--fg-default);
  font-size: 15px; line-height: 1.55;
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start;
}
.callout .ico { color: var(--accent-press); margin-top: 2px; }
.callout.info { background: var(--c-info-bg); border-color: var(--c-info); }
.callout.info .ico { color: var(--c-info); }
.callout.success { background: var(--c-success-bg); border-color: var(--c-success); }
.callout.success .ico { color: var(--c-success); }
.callout.warn { background: var(--c-warning-bg); border-color: var(--c-warning); }
.callout.warn .ico { color: var(--c-warning); }

/* ============= NUMBERED STEPS ============= */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-6); }
.steps > li {
  position: relative;
  padding-left: 64px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--accent-onCream);
  letter-spacing: -0.02em;
}
.steps > li h4 { margin: 0 0 4px; }
.steps > li p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }

/* ============= SECTION HEADER ============= */
.section { padding: var(--section-y-desktop) 0; }
.section-tight { padding: var(--section-y-tablet) 0; }
@media (max-width: 760px) { .section, .section-tight { padding: var(--section-y-mobile) 0; } }
.section.bg-tint, .section.bg-sage, .section.bg-blush, .section.bg-ink { padding-left: 0; padding-right: 0; }
.section-inner {
  max-width: var(--container-default);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}
@media (max-width: 880px) { .section-inner { padding: 0 var(--gutter-mobile); } }
.section-narrow { max-width: var(--container-narrow); }
.section-prose  { max-width: var(--container-prose); }

.section-header { margin-bottom: var(--space-9); max-width: 60ch; }

/* Stacked content sections on the SAME (page) background double their vertical
   padding (e.g. 90+90 or 72+72 = 144–180px of dead space with no divider).
   Collapse the following section's top padding so the gap is one section's worth.
   Colored bands (.bg-tint/.bg-sage/.bg-blush/.bg-ink) are excluded so their
   content keeps breathing room inside the band, and the color change still
   justifies the larger gap. */
.section:not([class*="bg-"]) + .section:not([class*="bg-"]) { padding-top: 0; }

/* ============= BADGE / PILL ============= */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-oat-200); color: var(--c-ink-700);
}
.badge-accent { background: var(--c-terra-100); color: var(--accent-press); }
.badge-sage   { background: var(--c-sage-100); color: var(--c-sage-700); }
.badge-info   { background: var(--c-info-bg); color: var(--c-info); }

/* ============= TABLE ============= */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th, .table td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.table th {
  font-family: var(--font-sans); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted);
  background: var(--bg-tint);
}
.table tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-tint) 35%, transparent); }

/* ============= FOOTER ============= */
.site-footer {
  background: var(--bg-inverse);
  color: var(--fg-onDark);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-8);
}
/* Tighten the gap above the footer on phones (was 96px margin + 72px padding
   = 168px regardless of viewport; now ~72px on mobile, ~112px on desktop). */
@media (max-width: 760px) {
  .site-footer { margin-top: var(--space-7); padding-top: var(--space-8); }
}
.site-footer a { color: var(--fg-onDark); text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--c-blush-300); }
.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-8);
}
@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: 0 var(--gutter-mobile); }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col p { margin: 0; }
.footer-col .site-logo { margin-bottom: 0 !important; }
.footer-col h6 {
  font-family: var(--font-sans); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  margin: 0 0 var(--space-3); font-weight: 600;
  opacity: 0.65;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.55; }
/* Footer text lives on a dark surface. The global `p { color: var(--fg-default) }`
   rule (ink-900) would otherwise paint these paragraphs dark-on-dark (invisible),
   since the footer background is also ink-900. Force the on-dark text color. */
.site-footer p { color: var(--fg-onDark); }
.footer-bottom {
  max-width: var(--container-wide);
  margin: var(--space-8) auto 0;
  padding: var(--space-5) var(--gutter-desktop) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: 12px; opacity: 0.65;
}
.footer-disclaimer {
  background: rgba(255,255,255,0.04); border-radius: var(--r-sm);
  padding: 12px 16px; margin-top: var(--space-5);
  font-size: 13px; line-height: 1.55; opacity: 0.85;
}

/* ============= ICONS (generic) ============= */
/* The icon sprite (assets/icons.svg) is Lucide LINE icons — they must be
   stroked, not filled. fill/stroke inherit into the <use> shadow content, so
   setting them on the host <svg> renders the referenced symbol correctly.
   Without this, open-path icons (menu/hamburger, arrows, chevrons, checks…)
   render completely invisible. */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-logo .mark svg { fill: currentColor; stroke: none; } /* logo mountain is a filled shape */
.ico { display: inline-block; width: 1em; height: 1em; stroke-width: 1.75; }

/* ============= CONTACT (HIPAA-safe form embed) ============= */
/* See: uploads/secure-contact-form-instructions.md
   The vendor (default: SimplePractice integrated contact form) hosts the
   actual form. This card is just the brand-styled wrapper. */
#contact { scroll-margin-top: 88px; }
.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--space-7);
  display: grid; gap: var(--space-5);
}
@media (max-width: 760px) { .contact-card { padding: var(--space-6); } }
.contact-embed-slot {
  background: var(--c-oat-100);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: grid; gap: var(--space-3);
  justify-items: center;
}
.contact-embed-slot .ico-shield {
  width: 48px; height: 48px;
  background: var(--c-blush-200);
  color: var(--c-terra-700);
  display: grid; place-items: center;
  border-radius: var(--r-sm);
}
.contact-embed-slot .ico-shield svg { width: 24px; height: 24px; }
.contact-embed-slot .marker-note {
  font-size: 14.5px; color: var(--fg-muted); max-width: 52ch; margin: 0;
  line-height: 1.55;
}
.contact-embed-slot .btn { margin-top: var(--space-2); }
.contact-embed-slot .btn .ico { width: 14px; height: 14px; }
.contact-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: 13px; color: var(--fg-muted);
}
.contact-trust li {
  display: inline-flex; align-items: center; gap: 6px;
}
.contact-trust li svg { width: 14px; height: 14px; color: var(--c-sage-700); }

/* ============= UTILITIES ============= */
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-8 > * + * { margin-top: var(--space-8); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flow > * + * { margin-top: var(--space-4); }
.flow-loose > * + * { margin-top: var(--space-6); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* Skip link: reveal on keyboard focus so sighted keyboard users can see it */
.visually-hidden:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; margin: 0; padding: 10px 16px;
  overflow: visible; clip: auto; clip-path: none;
  background: var(--bg-surface); color: var(--accent-onCream);
  border-radius: var(--r-sm); box-shadow: var(--shadow-2);
  font-weight: var(--fw-medium); z-index: 9999;
}

/* Decorative — editorial paper texture overlay (very subtle) */
.paper {
  position: relative;
}
.paper::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.45;
}
