/* AS Neuroservices — Alexis Stewart, Neurological Occupational Therapy
   Low-arousal, high-legibility design for an audience that may experience
   cognitive fatigue, visual-perceptual difficulty and sensory sensitivity. */

:root {
  /* Warm neutrals */
  --bg:        #f6f4ee;
  --surface:   #fffefb;
  --surface-2: #efece3;
  --border:    #dcd8cc;

  /* Muted greens */
  --green-900: #263c2e;  /* deepest, headings + primary button */
  --green-700: #35543f;
  --green-600: #4a6b53;
  --sage-100:  #e6ece2;  /* soft fills */
  --sage-050:  #eef2ea;

  /* Text */
  --ink:       #1e231c;  /* body — ~15:1 on --bg */
  --ink-muted: #474c42;  /* secondary — ~8:1 on --bg */

  /* Interaction */
  --link:      #2f5138;
  --focus:     #8a4a12;  /* warm terracotta, high visibility on greens+neutrals */

  --maxw:      68rem;
  --measure:   62ch;     /* keeps body lines under ~70 chars */
  --radius:    14px;
  --gap:       clamp(1.5rem, 4vw, 2.75rem);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Warm serif for headings */
h1, h2, h3, .brandmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino,
               "Book Antiqua", Georgia, serif;
  color: var(--green-900);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.3rem); margin: 0 0 0.4em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--ink); }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

/* Focus — visible on every interactive element */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  background: var(--green-900);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; }

/* Layout */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
section { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.section-alt { background: var(--sage-050); }
.stack > * + * { margin-top: 1rem; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.brandmark { font-size: 1.15rem; color: var(--green-900); text-decoration: none; font-weight: 600; }
.brandmark span { display: block; font-size: 0.78rem; font-family: inherit;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  font-weight: 400; font-family: "Segoe UI", Roboto, sans-serif; }
.nav { display: flex; gap: 0.5rem 1.4rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.25rem;
  border-radius: 6px; min-height: 48px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid var(--green-900);
}
.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-secondary { background: transparent; color: var(--green-900); }
.btn-secondary:hover { background: var(--sage-100); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 6rem); }
.hero .eyebrow {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-600); font-weight: 600; margin: 0 0 1rem;
}
.hero p.lead { max-width: 56ch; }

/* Cards grid */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--ink-muted); }
.card a { font-weight: 600; }

/* FND lead card */
.card-feature {
  background: var(--sage-100);
  border: 2px solid var(--green-600);
  grid-column: 1 / -1;
}
.card-feature .tag {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-700); font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-feature h3 { font-size: 1.4rem; }
.card-feature p { color: var(--ink); }

/* Plain feature list (goals) */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
@media (min-width: 720px) { .tick-list { grid-template-columns: 1fr 1fr; gap: 0.9rem 2rem; } }
.tick-list li {
  position: relative; padding-left: 2rem; max-width: var(--measure);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--green-600);
}

/* About */
.about-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 260px 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); text-align: center; padding: 1rem;
  font-size: 0.9rem;
}

/* Pillars */
.pillar h3 { color: var(--green-700); }
.pillar { border-left: 4px solid var(--green-600); padding-left: 1.25rem; }
.pillars { display: grid; gap: 1.75rem; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* Fees table */
.fees { max-width: 44rem; }
table.fees-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fees-table caption { text-align: left; color: var(--ink-muted); padding-bottom: 0.75rem; }
.fees-table th, .fees-table td { padding: 0.95rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--border); }
.fees-table thead th { background: var(--sage-050); font-family: inherit; }
.fees-table tbody tr:last-child td { border-bottom: 0; }
.fees-table td.price { font-weight: 700; color: var(--green-900); white-space: nowrap; }
.fees-note { margin-top: 1rem; color: var(--ink-muted); font-size: 0.98rem; }

/* Form */
.form-grid { display: grid; gap: 1.25rem; max-width: 40rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--green-900); }
.field .hint { font-size: 0.9rem; color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.9rem; border: 2px solid var(--border);
  border-radius: 10px; background: var(--surface); width: 100%;
  min-height: 48px;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--green-600); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #9a2f21;
}
.err { color: #8a291d; font-size: 0.92rem; min-height: 1.2em; }
.check {
  display: flex; gap: 0.75rem; align-items: flex-start;
  max-width: var(--measure);
}
.check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: 0.2rem; flex: none; }
.check label { font-weight: 400; color: var(--ink); }
.form-note { font-size: 0.92rem; color: var(--ink-muted); max-width: 40rem; }
.form-status { font-weight: 600; color: var(--green-700); }

/* FND page specifics */
.draft-banner {
  background: #fdf3e3; border: 1px solid #e4c48a; color: #5a3f16;
  border-radius: var(--radius); padding: 1.1rem 1.35rem; margin-bottom: 2.25rem;
}
.draft-banner strong { color: #4a3311; }
.draft-tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700; color: #6a4a15;
  background: #f6e4c4; border: 1px solid #e0c185;
  padding: 0.15rem 0.55rem; border-radius: 999px; margin-left: 0.5rem;
  vertical-align: 0.15em;
}
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.6rem; max-width: var(--measure); }
.callout {
  background: var(--sage-050); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; max-width: var(--measure);
}
.callout h3 { margin-top: 0; }
.resource-links { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.resource-links a { font-weight: 600; }

.faq { margin: 1.25rem 0 0; }
.faq dt { font-weight: 600; color: var(--green-900); font-size: 1.1rem; margin-top: 1.75rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.faq dd { margin: 0.4rem 0 0; max-width: var(--measure); color: var(--ink); }

.backlink { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.5rem;
  color: var(--ink-muted); text-decoration: none; min-height: 48px; }
.backlink:hover { color: var(--green-900); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--green-900); color: #eef2ea;
  padding-block: clamp(2.5rem, 6vw, 3.5rem); margin-top: 2rem;
}
.site-footer a { color: #dfe8dc; }
.site-footer .wrap { display: grid; gap: 0.9rem; }
.site-footer h2 { color: #fff; font-size: 1.3rem; }
.site-footer p { color: #dbe4d7; max-width: var(--measure); margin-bottom: 0; }
.footer-contact { display: grid; gap: 0.4rem; margin: 0.5rem 0 0; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-meta { margin-top: 1.5rem; font-size: 0.88rem; color: #b9c6b3; }

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

/* ============================================================
   V2 polish — hierarchy, rhythm, hero, about, referrers, footer
   ============================================================ */

/* Stronger heading scale + weight for clearer hierarchy */
h1 { font-size: clamp(2.05rem, 5.4vw, 3.15rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); font-weight: 600; }

/* More vertical rhythm between sections */
section { padding-block: clamp(3.25rem, 8vw, 5.25rem); }

/* Section-heading accent bar — gives each band a clear start */
main section > .wrap > h2 {
  position: relative; padding-top: 1rem;
}
main section > .wrap > h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 2.75rem; height: 4px; border-radius: 2px; background: var(--green-600);
}

/* Hero */
.hero { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }
.hero-copy .lead { font-size: 1.25rem; max-width: 34ch; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 320px; height: auto; }
@media (max-width: 879px) { .hero-visual svg { max-width: 190px; } }

/* FND feature card — genuine primacy */
.card-feature { padding: clamp(1.75rem, 4vw, 2.6rem); }
.card-feature h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.5rem; }
.card-feature p { margin-bottom: 0.9rem; }
.card-feature p:last-child { margin-bottom: 0; }

/* About block — finished without a photo */
.about-block {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 5px solid var(--green-600);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 50rem;
}
.about-block .lead { font-size: 1.25rem; color: var(--ink); }
.about-block p { max-width: 60ch; }
.signoff {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: var(--green-700); font-weight: 600; font-size: 1.05rem;
  margin: 1.35rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border);
}

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

/* Footer as a proper two-column block */
.footer-grid { display: grid; gap: 1.75rem 3rem; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-name {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color: #fff; font-size: 1.3rem; font-weight: 600; margin: 0 0 0.15rem;
}
.footer-role { color: #cdd8c8; margin: 0 0 0.85rem; font-size: 1rem; }
.footer-block h2 { margin-bottom: 0.6rem; }
