/* Treasure Valley Mental Health — site styles
   Palette: mist (page), ink (text), sage (accent), river (buttons/links), sand (quiet blocks) */

:root {
  --mist: #f6f8f4;
  --ink: #213b3f;
  --ink-soft: #4d6266;
  --sage: #7f9d86;
  --sage-tint: #e3ece4;
  --river: #4f7a95;
  --river-deep: #3c6178;
  --sand: #ebe6da;
  --line: #d7ddd6;
  --white: #ffffff;
  --radius: 10px;
  --max: 1080px;
  --serif: "Lora", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--river-deep); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.small { font-size: 0.92rem; color: var(--ink-soft); }

/* Crisis bar — persistent, calm, easy to read */
.crisis {
  background: var(--ink);
  color: #eef3ef;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px 24px;
}
.crisis a { color: #fff; font-weight: 600; text-decoration-color: var(--sage); }

/* Header */
.site-header {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; line-height: 1.1;
}
.brand span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.brand { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  background: var(--river); color: #fff; text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--river-deep); }
.btn.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.quiet:hover { background: var(--sage-tint); }

/* Hero with foothills */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .ridge {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto;
  z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero { padding: 88px 0 72px; }
body.home .hero { padding: 104px 0 88px; }
.hero-bg {
  position: absolute; inset: -24px; z-index: 0; pointer-events: none;
  background-image: url(images/hero.jpg), url(images/forest.jpg);
  background-size: cover, cover; background-position: center, center;
  filter: saturate(1.05); opacity: 0.5;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(246,248,244,0.96) 0%, rgba(246,248,244,0.86) 50%, rgba(246,248,244,0.55) 100%);
}
.hero-message { max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero h1 { margin-bottom: 0.3em; }
.hero-sub { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--river-deep); letter-spacing: 0.01em; margin-bottom: 18px; }
.hero .lead { max-width: 52ch; font-size: 1.22rem; }
.accepting {
  display: inline-block; background: var(--sage-tint); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero-meta { margin-top: 28px; font-size: 0.98rem; color: var(--ink-soft); }
.hero-meta strong { color: var(--ink); }

/* Faint photo behind inner page headers and the closing band */
.page-head, .cta-band { position: relative; overflow: hidden; }
.page-head::before, .cta-band::before {
  content: ""; position: absolute; inset: -24px; z-index: 0; pointer-events: none;
  background: url(images/forest.jpg) center / cover; filter: saturate(1.05);
}
.page-head::before { opacity: 0.2; }
.cta-band::before { opacity: 0.22; }
.page-head > .wrap, .cta-band > .wrap { position: relative; z-index: 1; }

/* "How to see us" section with the form beside it */
.reach { padding-top: 48px; }
.reach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.reach-item { padding: 18px 0; border-top: 1px solid var(--line); }
.reach-item:last-child { border-bottom: 1px solid var(--line); }
.reach-item h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.reach-item p { margin: 0; color: var(--ink-soft); }
.reach-item strong { color: var(--ink); }

/* Home page only: bolder imagery */
body.home .hero-bg { opacity: 1; filter: saturate(1.15); }
body.home .hero-veil { background: linear-gradient(90deg, rgba(246,248,244,0.94) 0%, rgba(246,248,244,0.8) 40%, rgba(246,248,244,0.12) 100%); }
body.home .cta-band::before { opacity: 0.4; filter: saturate(1.1); }
body.home .section.sage { position: relative; overflow: hidden; }
body.home .section.sage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url(images/forest.jpg) center / cover; opacity: 0.22; }
body.home .section.sage > .wrap { position: relative; z-index: 1; }

/* Form */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 12px 32px rgba(33, 59, 63, 0.08);
}
.form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card p { margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 12px 0 0; }
.form-success { display: none; background: var(--sage-tint); border-radius: 8px; padding: 18px; }
.form-success.show { display: block; }
.form-error { display: none; color: #8a3b2f; margin-top: 10px; }
.form-error.show { display: block; }

/* Sections */
.section { padding: 64px 0; }
.section.sand { background: var(--sand); }
.section.sage { background: var(--sage-tint); }
.section-head { max-width: 60ch; margin-bottom: 36px; }

/* Services: two-column rows with a rule, not cards */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.row h3 { margin-bottom: 4px; }
.row p:last-child { margin-bottom: 0; }

/* Tag list for concerns */
.callout.intern { background: var(--sand); border-left-color: var(--river); margin-top: 8px; }
.callout { background: var(--sage-tint); border-left: 4px solid var(--sage); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 36px; }
.prose .tags { margin: 8px 0 18px; padding-left: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.95rem;
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; background: var(--sage-tint); }
.person h3 { margin-bottom: 2px; font-size: 1.15rem; font-weight: 600; }
.person .role { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 8px; }

.bio { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.bio:last-child { border-bottom: 0; }
.bio img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; background: var(--sage-tint); }
.bio h2 { font-size: 1.9rem; }
.bio h2 a { color: inherit; text-decoration: none; }
.bio h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bio .role { color: var(--ink-soft); margin-bottom: 16px; }
.bio .actions .phone { font-weight: 600; }
.bio h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 20px 0 6px; }
.bio { scroll-margin-top: 96px; }
.bio .tagline { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink); margin-bottom: 18px; }
.bio .glance { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 20px 0 0; padding: 18px 20px; background: var(--mist); border-radius: var(--radius); }
.bio .glance dt { font-weight: 700; font-size: 0.95rem; }
.bio .glance dd { margin: 0; }
.bio .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.bio .actions .ext { font-weight: 600; }
.team-jump { margin-top: 20px; font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.team-jump span { color: var(--ink-soft); }
.team-jump a { font-weight: 600; }

/* Team cards on the home page link to each bio */
a.person { display: block; color: inherit; text-decoration: none; }
a.person img, a.person .photo-pending { transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.person:hover img, a.person:hover .photo-pending, a.person:focus-visible img, a.person:focus-visible .photo-pending {
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(33, 59, 63, 0.14);
}
a.person:hover h3, a.person:focus-visible h3 { text-decoration: underline; text-underline-offset: 3px; }
.person .more { display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--river-deep); }

/* Stand-in until a photo is added: same size and shape as the photos */
.photo-pending {
  display: grid; place-items: center; aspect-ratio: 3 / 4; width: 100%;
  border-radius: var(--radius); background: var(--sage-tint); color: var(--ink-soft);
  font-family: var(--serif); font-size: 2.6rem; font-weight: 500; letter-spacing: 0.02em;
}
.person .photo-pending { margin-bottom: 14px; }

/* Group photo on the team page */
.team-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-top: 28px; background: var(--sage-tint); }

/* Individual therapist pages */
.crop-top { object-position: 50% 10%; }
.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs span { margin: 0 8px; }
.profile { padding-bottom: 32px; }
.profile-hero { padding: 0; border-bottom: 0; }
.profile-hero h1 { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 2.7rem); }
.profile-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.profile-side { background: var(--mist); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.profile-side h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin: 0 0 8px; }
.profile-side h3 + ul { margin-bottom: 20px; }
.profile-side ul:not(.tags) { padding-left: 1.1em; margin-top: 0; }
.profile-side ul:not(.tags) li { margin-bottom: 4px; }
.profile-side .tags { margin: 0 0 20px; }
.profile-side .tags li { font-size: 0.88rem; padding: 5px 11px; }
.faq { border-top: 1px solid var(--line); padding: 14px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-soft); font-weight: 400; }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 10px 0 0; }

/* Specialty pages */
.page-head .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
a.row { display: block; color: inherit; text-decoration: none; }
a.row:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
a.row p { color: var(--ink-soft); }
.steps { padding-left: 1.2em; margin: 0 0 20px; }
.steps li { margin-bottom: 10px; }
.link-strip { line-height: 2; }
.link-strip a { margin-right: 6px; white-space: nowrap; }
.tags li a { color: inherit; text-decoration: none; font-weight: 600; }
.tags li:has(a):hover { border-color: var(--ink); }

.footer-brand { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; }
.site-footer .logo + .footer-brand { display: none; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.location iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.location address { font-style: normal; line-height: 1.7; }

/* CTA band */
.cta-band { background: var(--ink); color: #eef3ef; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdad3; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--sage-tint); }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer a { color: var(--ink); }
.site-footer .logo { max-width: 240px; margin-bottom: 12px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; font-size: 0.88rem; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }

/* Page header (inner pages) */
.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Prose pages */
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .location, .bio { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--mist); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border: 0; }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr; }
  .bio img, .bio .photo-pending { max-width: 240px; }
  .profile-body { grid-template-columns: 1fr; }
  .reach-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 48px; }
  body.home .hero-veil { background: linear-gradient(180deg, rgba(246,248,244,0.9) 0%, rgba(246,248,244,0.78) 70%, rgba(246,248,244,0.45) 100%); }
  .checks { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .bio .glance { grid-template-columns: 1fr; gap: 2px 0; }
  .bio .glance dd { margin-bottom: 10px; }
}
