/* Michelle Avery Ferguson, LMSW — calm, readable, no motion. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #2b2a29;
  --muted: #55524e;
  --line: #ddd8cf;
  --brand: #339966;        /* original site green: decoration only (not enough contrast for text) */
  --link: #1d6a43;         /* darker green for text and links: 6.6:1 on --bg */
  --link-hover: #124a2e;
  --tint: #edf5f0;
  --notice: #fdf6e7;
  --notice-line: #d9b45c;
  --focus: #0b5cad;
  --radius: 10px;
  --measure: 44rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.4rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol, blockquote, figure { margin: 0 0 1.1rem; }

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--surface); color: var(--link); padding: 0.6rem 1rem;
  border: 2px solid var(--link); border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header { background: var(--surface); border-bottom: 4px solid var(--brand); position: relative; z-index: 5; }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.brand img { flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.brand-tagline { font-size: 0.95rem; color: var(--muted); }

.nav-toggle {
  font: inherit; font-weight: 700; color: var(--link); background: var(--surface);
  border: 2px solid var(--link); border-radius: 999px; padding: 0.4rem 1.1rem; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--tint); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--text); }
.site-nav a:hover { color: var(--link-hover); text-decoration: underline; }
.nav-list a[aria-current] { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.header-phone { font-weight: 600; color: var(--link) !important; white-space: nowrap; }
.site-nav .nav-cta { white-space: nowrap; color: #ffffff; text-decoration: none; }
.nav-cta[aria-current="page"] { background: var(--link-hover); }
.submenu-toggle { display: none; }

/* Small screens: the menu is a stacked panel under the header */
@media (max-width: 59.99rem) {
  .header-inner { gap: 0.75rem; }
  .brand { flex: 1 1 0; min-width: 0; gap: 0.6rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tagline { font-size: 0.85rem; }
  .site-nav { flex: 1 0 100%; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { display: block; padding: 0.7rem 0.25rem; font-size: 1.1rem; }
  .submenu { padding: 0 0 0.6rem 1rem !important; }
  .submenu a { display: block; padding: 0.4rem 0.25rem; font-weight: 500; }
  .header-phone { display: inline-block; margin: 1rem 1.25rem 0.5rem 0.25rem; }
  .nav-cta { margin: 1rem 0 0.5rem; }
}

/* Large screens: one row, dropdowns under Services and Practice info */
@media (min-width: 60rem) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 1.5rem; }
  .nav-list { display: flex; align-items: center; gap: 1.5rem; }
  .nav-list > li { position: relative; display: flex; align-items: center; }
  .nav-list > li > a { padding: 0.5rem 0; }

  .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; margin-left: 0.15rem; padding: 0;
    background: none; border: 0; border-radius: 6px; cursor: pointer; color: var(--text);
  }
  .submenu-toggle::before {
    content: ""; width: 0.45rem; height: 0.45rem; margin-top: -0.25rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  }
  .has-menu.open .submenu-toggle::before { transform: rotate(225deg); margin-top: 0.25rem; }
  .submenu-toggle:hover { background: var(--tint); }

  .submenu {
    display: none; position: absolute; top: 100%; left: -1rem; min-width: 21rem;
    background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgb(0 0 0 / 0.1);
    padding: 0.5rem 0 !important;
  }
  .has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.open .submenu { display: block; }
  .submenu a { display: block; padding: 0.5rem 1rem; font-weight: 500; }
  .submenu a:hover { background: var(--tint); }
  .submenu a[aria-current] { background: var(--tint); }
}
@media (min-width: 60rem) and (max-width: 71.99rem) {
  .header-phone { display: none; }
}

/* Main */
main { padding-top: 2rem; padding-bottom: 3rem; }
main > * { max-width: var(--measure); }
main > .wide { max-width: none; }

.lede { font-size: 1.25rem; color: var(--muted); }

.callout {
  border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0;
  border-left: 6px solid var(--brand); background: var(--tint);
}
.callout p:last-child { margin-bottom: 0; }
.callout-notice { background: var(--notice); border-left-color: var(--notice-line); }

blockquote {
  margin-left: 0; padding: 0.75rem 1.25rem; border-left: 4px solid var(--line);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}

figure img { border-radius: var(--radius); display: block; }
figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; }

.portrait { float: right; width: min(42%, 300px); margin: 0.25rem 0 1rem 1.5rem; border-radius: var(--radius); }
@media (max-width: 34rem) {
  .portrait { float: none; width: 100%; max-width: 320px; margin: 0 0 1.25rem; }
}

.button {
  display: inline-block; background: var(--link); color: #ffffff; font-weight: 700;
  padding: 0.75rem 1.4rem; border-radius: 999px; text-decoration: none;
}
.button:hover { background: var(--link-hover); color: #ffffff; }

.badge { float: right; width: 150px; margin: 0 0 1rem 1.5rem; }
@media (max-width: 34rem) { .badge { width: 110px; margin-left: 1rem; } }
h2 { clear: both; }

.fee-list, .link-list { padding-left: 1.25rem; }
.fee-list li, .link-list li { margin-bottom: 0.35rem; }
.footnote { font-size: 0.95rem; color: var(--muted); }

.contact-methods { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.contact-methods li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.contact-methods .label { display: block; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* Home */
.hero { text-align: center; margin: 0 auto 1rem; }
.hero img { width: min(100%, 420px); }
.hero p { font-size: 1.25rem; }

.cards {
  list-style: none; padding: 0; margin: 2rem 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--brand);
  border-radius: var(--radius); padding: 1.1rem 1.25rem 1.25rem;
}
.card h2 { margin-top: 0; font-size: 1.25rem; }
.card p { font-size: 1.02rem; }
.card p:last-child { margin-bottom: 0; }

.about-teaser { overflow: hidden; }

/* Footer */
.site-footer { background: #24302a; color: #eef2ef; padding: 2rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #cfeedd; }
.site-footer a:hover { color: #ffffff; }
.site-footer h2 { color: #ffffff; font-size: 1.05rem; margin: 0 0 0.5rem; }
.site-footer address { font-style: normal; margin-bottom: 0.75rem; }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: 1.5rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.crisis-line { border-top: 1px solid #3e4c44; padding-top: 1rem; }
.copyright { color: #b9c4bd; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-nav, .nav-toggle, .skip-link { display: none !important; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
}
