/* ==========================================================
   Dr Erica Eassom — site styles
   No external fonts or third-party requests, by design.
   ========================================================== */

:root {
  --navy: #003366;
  --navy-deep: #002247;
  --navy-tint: #e8eef5;
  --gold: #b08d2b;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #16202b;
  --ink-soft: #4a5562;
  --line: #dde2e8;
  --success: #1d6b3a;
  --error: #a3162b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1080px;
  --header-h: 72px;
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Anchored sections clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 3px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.brand-role { font-size: .78rem; color: var(--ink-soft); letter-spacing: .02em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
}
.site-nav a:hover { color: var(--navy); background: var(--navy-tint); }
.site-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 8px; }
.site-nav a.nav-cta:hover { background: var(--navy-deep); color: #fff; }

.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; padding: 8px 24px 20px; gap: 0; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .js .site-nav a:hover { background: none; }
  .js .site-nav a.nav-cta { margin: 16px 0 0; text-align: center; padding: 12px; border-radius: var(--radius); border: 0; }
  /* Without JS, keep the links visible but compact */
  html:not(.js) .site-nav ul { flex-wrap: wrap; justify-content: flex-end; }
  html:not(.js) .site-nav a { padding: 4px 8px; font-size: .82rem; }
  html:not(.js) .brand-role { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 2px solid var(--navy);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy-tint); color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) 0;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 64px; } }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); color: var(--ink); margin-bottom: .2em; }
.hero-role { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); color: var(--navy); margin-bottom: 1.1em; }
.hero-lead { font-size: 1.15rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }

.credentials {
  list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .9rem; color: var(--ink-soft);
}
.credentials strong { color: var(--ink); font-weight: 600; }

.portrait-frame { position: relative; max-width: 380px; margin: 0 auto; }
.portrait-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.portrait-frame img {
  position: relative; z-index: 1; border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 34, 71, .14);
  aspect-ratio: 829 / 985; object-fit: cover; width: 100%;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section-white { background: #fff; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.6fr 1fr; gap: 56px; } }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; border-top: 3px solid var(--navy);
}
.section-white .panel { background: var(--paper); }
.panel h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }

.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); }
.tick-list li:last-child { margin-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 10px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

.def-list { margin: 0; }
.def-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.def-list div:first-child { padding-top: 0; }
.def-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.def-list dt { font-weight: 600; color: var(--ink); }
.def-list dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }

.sub-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 720px) { .sub-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Expertise cards ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; border-left: 3px solid var(--navy);
}
.card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.card p { font-size: .96rem; }

.contexts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.contexts li {
  background: var(--navy-tint); color: var(--navy); font-weight: 600; font-size: .9rem;
  padding: 6px 14px; border-radius: 999px;
}

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .35em; }
.steps p { font-size: .96rem; }

.callout {
  margin-top: 40px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--navy-tint); border-left: 4px solid var(--navy); color: var(--ink);
}
.callout p { color: var(--ink); }

/* ---------- Therapy band ---------- */
.band { background: var(--navy); color: #dbe4ee; }
.band h2 { color: #fff; }
.band p { color: #c9d6e3; }
.band a { color: #fff; }
.band .btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.band .btn-light:hover { background: transparent; color: #fff; }
.band-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .band-inner { grid-template-columns: 1.6fr auto; gap: 56px; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin: -2px 0 2px; }
.req { color: var(--error); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #b9c2cc; border-radius: var(--radius);
  background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0,51,102,.25); border-color: var(--navy); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy-note {
  font-size: .9rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; color: var(--ink-soft);
}
.section-white .privacy-note { background: var(--paper); }

.form-status { font-weight: 600; padding: 14px 16px; border-radius: var(--radius); }
.form-status:empty { display: none; }
.form-status.is-success { background: #e7f4ec; color: var(--success); border: 1px solid #b7dcc4; }
.form-status.is-error { background: #fbe9ec; color: var(--error); border: 1px solid #efc0c8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c7d6; padding: 48px 0 40px; font-size: .92rem; }
.site-footer p { color: #b9c7d6; margin-bottom: .4em; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-name { font-family: var(--serif); color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: .2em; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: clamp(40px, 6vw, 72px) 0 80px; }
.prose { max-width: 46em; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.25rem; color: var(--ink-soft); margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); background: var(--navy-tint); }
.prose td { color: var(--ink-soft); }
.meta { font-size: .92rem; color: var(--ink-soft); }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; font-size: .92rem; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 32px; font-size: .95rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--serif); font-size: 5rem; color: var(--navy-tint); line-height: 1; font-weight: 700; -webkit-text-stroke: 1px var(--navy); }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .menu-toggle, .hero-actions, .band, #contact form, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .hero { padding: 16pt 0; border: 0; }
  a { text-decoration: none; color: #000; }
  .site-footer { background: #fff; color: #000; }
  .site-footer p, .site-footer a { color: #000; }
}

/* Simple header nav (privacy and 404 pages): always visible, no toggle */
@media (max-width: 820px) {
  .js .site-nav.site-nav-simple { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .js .site-nav.site-nav-simple ul { padding: 0; }
  .js .site-nav.site-nav-simple a.nav-cta { margin: 0; padding: 8px 12px; font-size: .88rem; }
}
@media (max-width: 480px) { .brand-role { font-size: .72rem; } .brand-name { font-size: 1rem; } }
