/* ============================================================
   Hello Empathy Counseling
   One stylesheet for the whole site. Sections are in page order.
   To change a colour everywhere, edit the variables below.
   ============================================================ */
/* Fonts are stored with the site (assets/fonts), so nothing loads from Google. */
@font-face { font-family: 'Outfit'; src: url("../assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --green: #254532;        /* main brand green */
  --green-deep: #1B3526;   /* footer, hover */
  --green-mid: #3F6B52;    /* small labels on light backgrounds */
  --sage: #E3EADD;         /* soft bands */
  --gold: #C1A763;         /* lines and shapes only, never text on light */
  --gold-light: #F4E0A0;   /* text and links on green */
  --gold-button: #DCC37C;
  --paper: #FAF7F0;        /* page background */
  --white: #FFFFFF;
  --ink: #1E2B24;          /* body text */
  --line: #DDD6C4;
  --on-green: #EAF0E8;     /* body text on green */

  /* One typeface for the whole site: wide, round and friendly. */
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --width: 1180px;
  --radius: 22px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { margin: 0; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; color: var(--green); }

p { margin: 0 0 1rem; max-width: 40rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; border-radius: 4px; }
.on-green :focus-visible, footer :focus-visible { outline-color: var(--gold-light); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--gold-button); color: var(--green-deep); padding: 0.75rem 1.25rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; }
.section { padding: 6.5rem 0; }
.bg-sage { background: var(--sage); }
.lead { font-size: 1.35rem; line-height: 1.5; max-width: 33rem; }
.stack > * + * { margin-top: 1.25rem; }
.after { margin-top: 2.5rem; }
.section h2 + p { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  min-height: 52px;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.btn-gold { background: var(--gold-button); border-color: var(--gold-button); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-deep); }
.btn-quiet { background: transparent; color: var(--green); }
.btn-quiet:hover { background: var(--green); color: var(--white); }
.text-link { display: inline-block; padding: 0.85rem 0.25rem; font-weight: 600; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

/* ---------- Header and navigation (green, uses the original logo) ---------- */
.site-header { background: var(--paper); position: relative; z-index: 100; }
.site-nav {
  max-width: var(--width); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem 1.75rem; flex-wrap: wrap; }
.nav-links a { display: block; padding: 0.7rem 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--green-mid); }
.nav-links a[aria-current="page"] { color: var(--green); font-weight: 600; box-shadow: 0 2px 0 var(--gold); }
.nav-links .btn { min-height: 46px; padding: 0.6rem 1.4rem; color: var(--white); }
.nav-links .btn:hover { color: var(--white); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 13px 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--green); border-radius: 2px; }

/* ---------- Home: top section (a rounded green panel) ---------- */
.hero { padding: 0.5rem 1.5rem 0; }
.hero-panel {
  max-width: 1320px; margin: 0 auto; background: var(--green); color: var(--on-green);
  border-radius: 36px; overflow: hidden; position: relative;
}
.hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2.5rem 4rem; padding: 0 4.5rem; max-width: var(--width); margin: 0 auto; }
.hero-text { flex: 1 1 30rem; min-width: 0; padding: 5.5rem 0; align-self: center; }
.hero-text h1 { color: var(--white); }
.hero-text .lead { margin-top: 1.75rem; color: var(--on-green); }
.hero-text .button-row { margin-top: 2.25rem; }
.hero-text .text-link { color: var(--gold-light); }
.hero-text .text-link:hover { color: var(--white); }
.hero-photo { flex: 0 1 25rem; margin: 3.5rem auto 0; position: relative; }
.hero-photo .portrait { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: center top; border-radius: 240px 240px 0 0; }
.hero-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1rem 1.5rem;
  text-align: center; font-size: 1rem; line-height: 1.4; color: var(--white);
  background: linear-gradient(to top, rgba(27, 53, 38, 0.92) 30%, rgba(27, 53, 38, 0));
}

/* One gentle entrance when the page first loads. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-photo { animation: rise 0.7s ease both; }
  .hero-text .lead { animation-delay: 0.1s; }
  .hero-text .button-row { animation-delay: 0.2s; }
  .hero-photo { animation-delay: 0.15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- Facts row under the top panel ---------- */
.facts-wrap { padding: 2.75rem 0 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.75rem 0; }
.facts > div { padding: 0.25rem 2rem; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-weight: 500; color: var(--green-mid); font-size: 1rem; }
.facts dd { margin: 0.2rem 0 0; font-size: 1.2rem; font-weight: 500; line-height: 1.35; color: var(--green); }

/* ---------- Heading on the left, content on the right ---------- */
.split { display: flex; flex-wrap: wrap; gap: 3rem 5rem; align-items: center; }
.split-top { align-items: flex-start; }
.split-intro { flex: 1 1 20rem; min-width: 0; }
.split-intro p { margin-top: 1.25rem; }
.split-main { flex: 1.4 1 30rem; min-width: 0; }
.split-side { flex: 1 1 22rem; min-width: 0; }
.split > .big-list, .split > .faq { flex: 1.6 1 32rem; min-width: 0; }

/* ---------- Large linked list (what I can help with) ---------- */
.big-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--green); }
.big-list li { border-bottom: 1px solid var(--line); }
.big-list a { display: block; padding: 1.4rem 0; text-decoration: none; color: var(--ink); transition: padding-left 0.2s ease, background-color 0.2s ease; }
.big-list strong { display: block; font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.55rem, 2.3vw, 1.95rem); line-height: 1.2; color: var(--green); }
.big-list span { display: block; margin-top: 0.3rem; }
.big-list a:hover { padding-left: 1rem; background: var(--sage); color: var(--ink); }

/* ---------- Quote band ---------- */
.quote-band { padding: 0 1.5rem; }
.quote-band .container { max-width: 1320px; background: var(--green); color: var(--white); border-radius: 36px; padding: 4.5rem; }
.quote-band .container { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; }
.quote-band img { width: 150px; flex: none; }
.quote-band blockquote { margin: 0; flex: 1 1 28rem; }
.quote-band blockquote p { max-width: none; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.15; color: var(--white); margin-bottom: 1.25rem; text-wrap: balance; }
.quote-band cite { font-style: normal; color: var(--gold-light); }

/* ---------- Credentials list ---------- */
.credentials { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.credentials li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.credentials strong { display: block; font-weight: 600; color: var(--green); }
.photo-rounded { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 200px 200px var(--radius) var(--radius); }

/* ---------- Columns with a gold top line (services, approaches) ---------- */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2.5rem 3rem; margin-top: 2.75rem; }
.column { border-top: 3px solid var(--gold); padding-top: 1.5rem; }
.column h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.meta { font-weight: 600; color: var(--green-mid); }

/* ---------- Numbered steps (cards with a small picture inside) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; margin: 2.75rem 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; background: var(--sage); border-radius: 28px; padding: 2.25rem 2rem 2.5rem; text-align: center; }
.bg-sage .steps li { background: var(--paper); }
.steps li::before { content: "0" counter(step); display: block; font-size: 2.1rem; font-weight: 400; line-height: 1; color: var(--green); margin-bottom: 0.4rem; }
.steps h3 { font-weight: 500; margin-bottom: 1.5rem; }
.steps p { margin: 0 auto; max-width: 19rem; font-size: 1.05rem; }
.vignette { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.95rem; font-weight: 500; color: var(--green); box-shadow: 0 6px 16px -10px rgba(27, 53, 38, 0.5); }
.chip svg { width: 18px; height: 18px; flex: none; }
.chip-gold { background: var(--gold-light); }
.chip:nth-child(2) { transform: translateX(14px); }
.chip:nth-child(3) { transform: translateX(-10px); }
.steps-plain li { text-align: left; }
.steps-plain h3 { margin-bottom: 0.5rem; }
.steps-plain p { margin: 0; }

/* ---------- Questions (opens and closes without script) ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--green); }
.bg-sage .faq details { border-bottom-color: #C9D3C2; }
.faq summary { cursor: pointer; font-size: 1.25rem; font-weight: 500; color: var(--green); padding: 1.3rem 2.5rem 1.3rem 0; min-height: 52px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-size: 1.8rem; font-weight: 400; line-height: 1; color: var(--green-mid); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin: 0 0 1.4rem; }

/* ---------- Pull quote on a light background (About page) ---------- */
.pull-quote { margin: 4rem 0 0; padding: 0 0 0 2rem; border-left: 4px solid var(--gold); }
.pull-quote p { max-width: none; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--green); margin-bottom: 0.75rem; }
.pull-quote cite { font-style: normal; }

/* ---------- Closing call to action ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--white); border-radius: 36px; padding: 4.5rem;
  display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; align-items: center; justify-content: space-between;
}
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 340px; height: 340px;
  background: url("../assets/brand/mark.svg") center / contain no-repeat; opacity: 0.14; pointer-events: none;
}
.cta h2 { color: var(--white); }
.cta-text { flex: 1 1 26rem; min-width: 0; position: relative; z-index: 1; }
.cta-text p { margin-top: 1.25rem; font-size: 1.25rem; color: var(--on-green); max-width: 30rem; }
.cta-actions { flex: 0 1 23rem; display: flex; flex-direction: column; gap: 0.8rem; position: relative; z-index: 1; }
.cta-actions p { margin: 0; color: var(--on-green); }
.cta-actions a:not(.btn) { color: var(--gold-light); }
.cta-actions .small { font-size: 0.95rem; color: #D5DDD3; }

/* ---------- Inner page heading (green band) ---------- */
.page-header { margin: 0.5rem 1.5rem 5.5rem; }
.page-header .container { max-width: 1320px; background: var(--green); color: var(--on-green); border-radius: 36px; padding: 4.5rem; }
.page-header h1 { color: var(--white); font-size: clamp(2.6rem, 5.4vw, 4.6rem); max-width: 18ch; }
.page-header p { margin-top: 1.25rem; font-size: 1.35rem; line-height: 1.5; max-width: 36rem; }
.page-header + .section, .page-header + section { padding-top: 0; }
h1.plain { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }

/* ---------- Services page ---------- */
.topic { padding: 1.9rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0.5rem 3rem; scroll-margin-top: 1rem; }
.topic:first-child { border-top: 2px solid var(--green); }
.topic h3 { font-weight: 500; letter-spacing: -0.02em; font-size: 1.7rem; line-height: 1.2; }
.topics { margin-top: 2.75rem; }

/* ---------- Resources page ---------- */
.crisis-box { background: var(--green-deep); color: var(--white); border-radius: var(--radius); padding: 2.75rem 3rem; }
.crisis-box h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 1rem; }
.crisis-box p { color: var(--on-green); }
.crisis-box ul { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.crisis-box a { display: inline-block; padding: 0.55rem 0; color: var(--gold-light); font-weight: 600; }
.crisis-box a:hover { color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2.5rem 3rem; margin-top: 2.75rem; }
.card { border-top: 3px solid var(--gold); padding-top: 1.5rem; }
.card h3 { margin-bottom: 0.6rem; }
.link-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 2px solid var(--green); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 1.1rem 0; font-weight: 600; }
.fine-print { font-size: 0.95rem; color: var(--green-mid); margin-top: 2rem; }

/* ---------- Contact page ---------- */
.email-big { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.2; word-break: break-word; }
.note { background: var(--sage); border-radius: 14px; padding: 1.15rem 1.4rem; font-size: 1rem; max-width: 40rem; }
.bg-sage .note { background: var(--paper); }
.panel { border-top: 3px solid var(--gold); padding-top: 1.5rem; }
.panel h3 { margin-bottom: 0.75rem; }

/* ---------- Footer ---------- */
footer { background: var(--green-deep); color: #EDE7D6; font-size: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; padding-top: 4rem; padding-bottom: 2.5rem; }
.footer-about { flex: 1 1 18rem; }
.footer-about img { height: 46px; width: auto; }
.footer-about p { margin-top: 1.25rem; max-width: 24rem; }
footer a { color: var(--gold-light); }
footer a:hover { color: var(--white); }
.footer-nav { flex: 1 1 10rem; display: flex; flex-direction: column; }
.footer-nav a { padding: 0.45rem 0; color: #EDE7D6; font-weight: 500; }
.footer-crisis { flex: 1 1 20rem; border: 1.5px solid var(--gold); border-radius: 16px; padding: 1.4rem 1.5rem; align-self: flex-start; }
.footer-crisis strong { color: var(--gold-light); font-weight: 600; font-size: 1.1rem; }
.footer-crisis p { margin: 0.4rem 0 0; }
.footer-copy { padding-bottom: 2rem; color: #C9D2C7; font-size: 0.95rem; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .js .nav-toggle { display: flex; }
  .nav-links { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.75rem; }
  .js .nav-links { display: none; }
  .js .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 0.9rem 0; border-top: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links .btn { margin-top: 0.75rem; border-top: 2px solid var(--green); }
  .nav-logo img { height: 42px; }

  .section { padding: 4.25rem 0; }
  .hero { padding: 0 0.75rem; }
  .hero-panel { border-radius: 26px; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-text { padding: 3rem 0 0; }
  .hero-photo { flex-basis: 19rem; margin-top: 0.5rem; }
  .facts > div { border-left: 0; padding: 0; }
  .quote-band { padding: 0 0.75rem; }
  .quote-band .container { padding: 2.75rem 1.6rem; border-radius: 26px; }
  .quote-band img { width: 96px; }
  .cta { padding: 2.75rem 1.6rem; border-radius: 24px; }
  .cta::after { width: 220px; height: 220px; right: -50px; bottom: -50px; }
  .page-header { margin: 0 0.75rem 3.75rem; }
  .page-header .container { padding: 2.75rem 1.6rem; border-radius: 26px; }
  .crisis-box { padding: 2rem 1.5rem; }
  .pull-quote { padding-left: 1.25rem; }
  .topic { grid-template-columns: 1fr; }
  
}

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