/* Brand: wecarechirotx.fit — quiet nonprofit clinic, dark gold on warm stone */
:root {
  --wec40-max: 1100px;
  --wec40-pad: clamp(1rem, 3vw, 1.7rem);
  --wec40-accent: var(--dna-accent, #c9a24a);
  --wec40-accent-2: var(--dna-accent-2, #d4b06a);
  --wec40-bg: var(--dna-bg, #1a1712);
  --wec40-surface: var(--dna-surface, #231f19);
  --wec40-ink: var(--dna-ink, #f2ebe0);
  --wec40-muted: var(--dna-ink-soft, #c4b8a6);
  --wec40-line: var(--dna-line, rgba(242, 235, 224, 0.14));
  --wec40-accent-ink: var(--dna-accent-ink, #1a140c);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wec40-bg);
  color: var(--wec40-ink);
  font-family: Lato, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.wec40-lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .wec40-brand b {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.wec40-wrap {
  width: min(var(--wec40-max), calc(100% - 2 * var(--wec40-pad)));
  margin-inline: auto;
}
.wec40-skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.65rem 0.9rem;
  background: var(--wec40-accent);
  color: var(--wec40-accent-ink);
  text-decoration: none;
}
.wec40-skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--wec40-accent-2); outline-offset: 3px; }

/* Split header: brand left, nav/actions right */
.wec40-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--wec40-line);
  background: color-mix(in srgb, var(--wec40-bg) 94%, transparent);
}
.wec40-head-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wec40-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}
.wec40-brand img { width: 40px; height: 40px; flex-shrink: 0; }
.wec40-brand span { display: grid; gap: 0.1rem; }
.wec40-brand b { font-size: 1.12rem; line-height: 1.1; }
.wec40-brand small {
  color: var(--wec40-muted);
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wec40-head-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  min-width: 0;
}
.wec40-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.wec40-nav a {
  color: var(--wec40-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.wec40-nav a:hover,
.wec40-nav a[aria-current="page"] { color: var(--wec40-ink); }
.wec40-call {
  color: var(--wec40-ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wec40-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  background: var(--wec40-accent);
  color: var(--wec40-accent-ink);
  font: 700 0.84rem/1 Lato, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.wec40-cta:hover { background: var(--wec40-accent-2); }
.wec40-burger {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--wec40-line);
  background: transparent;
  color: var(--wec40-ink);
}
.wec40-burger span,
.wec40-burger span::before,
.wec40-burger span::after {
  width: 18px;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
}
.wec40-burger span::before,
.wec40-burger span::after { content: ""; position: absolute; left: 0; }
.wec40-burger span::before { top: -6px; }
.wec40-burger span::after { top: 6px; }

.wec40-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1.25rem;
  padding: 2rem var(--wec40-pad);
  background: var(--wec40-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.wec40-drawer.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.wec40-drawer nav { display: grid; gap: 0.85rem; }
.wec40-drawer nav a {
  font: 600 1.75rem/1.1 "Playfair Display", Georgia, serif;
  text-decoration: none;
}
.wec40-drawer nav a[aria-current="page"] { color: var(--wec40-accent); }
.wec40-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wec40-line);
  background: transparent;
  color: var(--wec40-ink);
  font-size: 1.5rem;
}

main[data-page-slot] { flex: 1 1 auto; }
main[data-page-slot]:empty { min-height: 42vh; }

/* Minimal footer: one compact band */
.wec40-foot {
  margin-top: auto;
  padding-block: 1.35rem 1.25rem;
  border-top: 1px solid var(--wec40-line);
  background: var(--wec40-surface);
}
.wec40-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}
.wec40-foot-brand {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.wec40-foot-brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
}
.wec40-foot-brand span,
.wec40-foot-meta {
  color: var(--wec40-muted);
  font-size: 0.82rem;
}
.wec40-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.wec40-foot-nav a {
  color: var(--wec40-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.wec40-foot-nav a:hover,
.wec40-foot-nav a[aria-current="page"] { color: var(--wec40-ink); }
.wec40-foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}
.wec40-foot-meta a {
  color: var(--wec40-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wec40-legal {
  color: var(--wec40-muted);
  font-size: 0.76rem;
  width: 100%;
}

@media (max-width: 900px) {
  .wec40-nav,
  .wec40-head-end > .wec40-call,
  .wec40-head-end > .wec40-cta { display: none; }
  .wec40-burger { display: grid; }
}

@media (max-width: 420px) {
  .wec40-head-row { min-height: 68px; }
  .wec40-brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
