/* ==========================================================================
   Willowbank Counseling - shared styles for every page
   --------------------------------------------------------------------------
   REBRANDING: change the custom properties in :root below.
   - --ink           main text (soft charcoal, high contrast on the page)
   - --teal          accent for buttons and links (white text on it)
   - --blush / --mist  quiet section tints
   - --paper         page background
   - --font-display / --font-body  If you change them, also update the
     Google Fonts <link> in the <head> of every page.
   Readability first: keep body text at 4.5:1 contrast or better and lines
   no longer than about 70 characters.
   ========================================================================== */
:root {
  --ink: #273130;
  --ink-2: #4b5755;
  --teal: #3f6b70;
  --teal-d: #2e5357;
  --teal-50: #e6efef;
  --blush: #f5e8e1;
  --mist: #eef3f2;
  --paper: #fbf8f4;
  --white: #ffffff;
  --line: #e1dcd4;
  --error: #9e3a2b;
  --base: 1.125rem;

  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --container: 1080px;
  --measure: 40rem;
  --gutter: clamp(1.1rem, 5vw, 2.75rem);
  --r: 16px;
}
html.text-lg { --base: 1.3rem; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--base); line-height: 1.8; overflow-x: hidden; }
svg { display: block; max-width: 100%; }
a { color: var(--teal-d); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.15em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--teal); color: var(--white); padding: .7rem 1.1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; color: var(--white); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.label { font-size: .9rem; color: var(--teal-d); font-weight: 700; margin: 0 0 .75rem; letter-spacing: .02em; }
.lead { font-size: 1.15em; color: var(--ink-2); max-width: var(--measure); }
.prose { max-width: var(--measure); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .25s ease; }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-d); color: var(--white); }
.btn-quiet { border-color: var(--teal); color: var(--teal-d); background: transparent; }
.btn-quiet:hover { background: var(--teal-50); }

/* ---------- Crisis note ---------- */
.crisis { background: var(--blush); font-size: .95rem; line-height: 1.5; }
.crisis .container { display: flex; gap: .6rem; align-items: center; padding-top: .6rem; padding-bottom: .6rem; }
.crisis svg { width: 1.15rem; height: 1.15rem; flex: none; color: var(--error); }
.crisis p { margin: 0; }
.crisis-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--blush); border-radius: var(--r); padding: 1.25rem 1.4rem; border-left: 4px solid var(--error); }
.crisis-box svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--error); margin-top: .15rem; }
.crisis-box p { margin: 0; }
.crisis-box p + p { margin-top: .5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; min-height: 5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo svg { width: 2.3rem; height: 2.3rem; }
.logo-text { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.logo-text small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--ink-2); }
.tools { display: flex; align-items: center; gap: .5rem; }
.text-size { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .45rem .85rem; font: 700 .9rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.6rem; }
.text-size[aria-pressed="true"] { background: var(--teal-50); border-color: var(--teal); }
.text-size .big { font-size: 1.15em; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: var(--teal-50); color: var(--ink); border: 0; border-radius: 999px; padding: .55rem 1rem; font: 700 .95rem var(--font-body); cursor: pointer; min-height: 2.6rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1rem; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a { display: block; color: var(--ink); text-decoration: none; padding: .5rem .85rem; border-radius: 999px; }
.site-nav a:hover { background: var(--mist); }
.site-nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal-d); font-weight: 700; }
.site-nav .nav-cta { border: 2px solid var(--teal); color: var(--teal-d); font-weight: 700; margin-left: .35rem; }
.site-nav .nav-cta[aria-current="page"] { background: var(--teal); color: var(--white); }
@media (min-width: 901px) { .header-inner .site-nav { order: 2; } .tools { order: 3; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .8rem 1rem; border-radius: 10px; }
  .site-nav .nav-cta { margin: .5rem 0 0; text-align: center; border-radius: 999px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.3fr .7fr; } }
.hero h1 { max-width: 18ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1.25rem; }
.small-note { font-size: .95rem; color: var(--ink-2); }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 200px 200px var(--r) var(--r); background: linear-gradient(170deg, var(--blush), #ead6cb); display: grid; place-items: center; overflow: hidden; max-width: 22rem; width: 100%; justify-self: center; }
.portrait svg { width: 32%; color: var(--teal); opacity: .4; }
.img-label { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); background: rgba(255,255,255,.92); color: var(--ink); font-size: .8rem; padding: .25rem .75rem; border-radius: 999px; white-space: nowrap; font-weight: 700; }

/* ---------- Helps with ---------- */
.band-mist { background: var(--mist); }
.band-blush { background: var(--blush); }
.helps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.helps li { background: var(--white); border-radius: 12px; padding: .9rem 1.1rem; display: flex; gap: .7rem; align-items: center; line-height: 1.4; }
.helps li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal); flex: none; opacity: .7; }

/* ---------- Approaches (disclosure list) ---------- */
.approaches { margin-top: 2rem; display: grid; gap: .85rem; }
.approach { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.approach h3 { margin: 0; font-size: inherit; }
.approach-btn { width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.2rem 1.4rem; cursor: pointer; color: var(--ink); font: 500 1.2rem/1.35 var(--font-display); border-radius: var(--r); }
.approach-btn .short { display: block; font: 400 .95rem/1.5 var(--font-body); color: var(--ink-2); margin-top: .15rem; }
.approach-btn .t { flex: 1; }
.approach-btn .chev { width: 1.25rem; height: 1.25rem; flex: none; color: var(--teal); transition: transform .25s ease; }
.approach-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.approach-panel { padding: 0 1.4rem 1.4rem; max-width: calc(var(--measure) + 2.8rem); }
.approach-panel p:last-child { margin-bottom: 0; }
.approach-panel .for { font-size: .95rem; color: var(--ink-2); background: var(--mist); border-radius: 10px; padding: .7rem 1rem; }

/* ---------- About ---------- */
.about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: .8fr 1.2fr; } }
.about .portrait { max-width: 20rem; justify-self: start; border-radius: var(--r); aspect-ratio: 1; background: linear-gradient(170deg, var(--teal-50), #d4e2e2); }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; font-size: 1rem; }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.facts strong { font-weight: 700; color: var(--ink-2); }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal-d); font: 500 1.05rem var(--font-display); margin-bottom: .9rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-2); margin: 0; }

/* ---------- Quote ---------- */
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 36rem; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.5; }
.quote figcaption { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; }
.review-tag { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--white); border-radius: 999px; padding: .15rem .7rem; margin-bottom: 1.25rem; color: var(--ink-2); }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Fees ---------- */
.fees { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 1.5rem; }
.fee { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.fee h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.fee .amt { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.2; margin: .3rem 0 .1rem; }
.fee .len { color: var(--ink-2); font-size: .95rem; margin: 0; }
.fee.soft { background: var(--mist); border-color: transparent; }
.note-list { padding-left: 1.2rem; margin: 0; }
.note-list li { margin-bottom: .5rem; }

.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.15rem .1rem; cursor: pointer; color: var(--ink); font: 500 1.12rem/1.45 var(--font-display); }
.faq-btn .chev { width: 1.2rem; height: 1.2rem; flex: none; color: var(--teal); transition: transform .25s ease; }
.faq-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-panel { padding: 0 .1rem 1.25rem; color: var(--ink-2); max-width: var(--measure); }
.faq-panel p:last-child { margin: 0; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.25fr .75fr; align-items: start; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 4vw, 2.25rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .75rem; padding: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.2rem; }
.field label { font-weight: 700; font-size: 1rem; }
.optional { font-weight: 400; color: var(--ink-2); font-size: .92rem; }
.help { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 1.5px solid #c8c1b6; border-radius: 10px; padding: .75rem .9rem; min-height: 3.2rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(63, 107, 112, .4); outline-offset: 1px; border-color: var(--teal); background: var(--white); }
textarea { min-height: 8rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.err { color: var(--error); font-size: .95rem; }
.radios { display: grid; gap: .5rem; }
.radios label, .check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.radios input, .check input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--teal); flex: none; }
.row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.form-error-summary { background: #fbefec; color: var(--error); border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; }
.success h2 { margin-top: .5rem; }
.success-mark { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--teal-50); color: var(--teal-d); display: grid; place-items: center; }
.success-mark svg { width: 1.6rem; height: 1.6rem; }
.side-card { background: var(--mist); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.25rem; }
.side-card h2 { font-size: 1.3rem; }
.side-card p:last-child, .side-card ul:last-child { margin-bottom: 0; }
.side-card ul { padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; font-size: 1rem; color: var(--ink-2); margin-top: clamp(2rem, 5vw, 4rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-grid address { font-style: normal; }
.footer-crisis { margin-top: 2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }

.js .reveal { opacity: 0; transition: opacity .8s ease; }
.js .reveal.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; }
}
@media (max-width: 520px) {
  .text-size .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .logo-text small { font-size: .72rem; }
}
