/* FreeRivers CFO Advisory - shared styles for the general-site pages
   (/services/, /who-i-help/, /insights/, /resources/, /about/).
   Added 10.7.26 (Phase One architecture). The homepage and the /therapists/ funnel
   keep their own inline styles on purpose; values here mirror the homepage. */

:root {
  --cream: #F6F4EF;
  --cream-2: #EFEBE2;
  --navy: #1E2D32;
  --navy-soft: #3A4A50;
  --gold: #C99A3B;
  --gold-soft: #E4C887;
  --teal: #2F6A6E;
  --teal-soft: #7FA6A3;
  --sage: #B8CFCB;
  --line: rgba(30,45,50,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* ---------- Focus + skip link ---------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--cream);
  padding: 12px 20px; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header + global nav ---------- */
.site-header { padding: 10px 0; }
.logo-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 16px;
}
.logo-link { display: block; line-height: 0; }
.logo-link img { height: 150px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; }
.site-nav a {
  color: var(--navy-soft); font-weight: 600; font-size: 0.95rem;
  margin-left: 26px; transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav a.nav-cta,
.nav-cta-mobile {
  background: var(--navy); color: var(--cream);
  padding: 10px 20px; border-radius: 999px;
  transition: background 0.2s ease;
}
.site-nav a.nav-cta:hover, .nav-cta-mobile:hover { background: var(--teal); color: var(--cream); }
.nav-cta-mobile { display: none; font-weight: 600; font-size: 0.92rem; padding: 9px 16px; white-space: nowrap; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 13px; min-height: 44px;
  font: 600 0.95rem 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  transition: all 0.2s ease; border: 2px solid transparent;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--teal); transform: translateY(-1px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.text-link { font-weight: 600; color: var(--teal); }
.text-link:hover { color: var(--gold); }
.text-link::after { content: ' \2192'; }

/* ---------- Eyebrow + section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--gold); }
.section { padding: 84px 0; }
.section.alt { background: var(--cream-2); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; }
.section-head p { color: var(--navy-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Page head (interior pages) ---------- */
.page-head { background: var(--navy); color: var(--cream); padding: 96px 0 104px; }
.page-head { position: relative; overflow: hidden; }
.page-head picture { display: contents; }
.page-head .page-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.page-head .page-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(21,32,36,0.93) 0%, rgba(21,32,36,0.82) 42%, rgba(21,32,36,0.45) 75%, rgba(21,32,36,0.25) 100%);
}
.page-head > .wrap { position: relative; z-index: 2; }
/* About puts its text on the right, over the bright side of the photo: darken evenly */
.about-head .page-overlay { background: rgba(21,32,36,0.80); }
.page-head .lead, .page-head h1 { text-shadow: 0 1px 3px rgba(21,32,36,0.5); }
.page-head .eyebrow { color: var(--gold-soft); }
.page-head h1 {
  color: var(--cream); font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.14; max-width: 820px; margin-bottom: 20px;
}
.page-head h1 em { font-style: italic; color: var(--gold-soft); }
.page-head .lead { color: #CBD6D8; font-size: 1.15rem; max-width: 640px; }
.page-head .lead + .lead { margin-top: 12px; }
.page-head .cta-row { margin-top: 32px; }
.page-head .btn-primary { background: var(--cream); color: var(--navy); }
.page-head .btn-primary:hover { background: var(--gold-soft); color: var(--navy); }
.page-head .btn-ghost { border-color: rgba(246,244,239,0.55); color: var(--cream); }
.page-head .btn-ghost:hover { background: rgba(246,244,239,0.14); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 32px; display: flex; flex-direction: column;
}
.card .tag {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 12px;
}
.card h3 { font-size: 1.4rem; line-height: 1.25; margin-bottom: 12px; }
.card p { color: var(--navy-soft); font-size: 0.98rem; }
.card p + p { margin-top: 12px; }
.card .grow { flex-grow: 1; }
.card .card-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.card.featured { border-color: var(--teal); box-shadow: 0 18px 40px -28px rgba(47,106,110,0.55); }
.card.featured .tag { color: var(--teal); }
.card-link { color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(30,45,50,0.45); }
.card-link:hover h3 { color: var(--teal); }

/* ---------- Service blocks ---------- */
.service {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start;
}
.service + .service { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.service h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.18; margin-bottom: 16px; }
.service .intro p { color: var(--navy-soft); font-size: 1.05rem; }
.service .intro p + p { margin-top: 14px; }
.service .intro .cta-row { margin-top: 28px; }
.service .meta {
  margin-top: 22px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 1.05rem;
}
.service .meta span {
  display: block; font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400; font-size: 0.88rem; color: var(--navy-soft); margin-top: 2px;
}
.checklist { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; }
.checklist .list-title {
  font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); padding-bottom: 12px;
}
.checklist li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--navy); }
.checklist li:first-of-type { border-top: 0; }

/* ---------- Fit signals ---------- */
.signal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.signal { border-left: 3px solid var(--gold); padding-left: 20px; }
.signal h3 { font-size: 1.12rem; margin-bottom: 6px; }
.signal p { color: var(--navy-soft); font-size: 0.97rem; }

/* ---------- Callout band (mental-health pathway) ---------- */
.pathway {
  background: var(--navy); color: var(--cream); border-radius: 18px;
  padding: 44px 44px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
  border-top: 4px solid var(--gold);
}
.pathway .eyebrow { color: var(--gold-soft); }
.pathway h2 { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 14px; }
.pathway p { color: #CBD6D8; font-size: 1.03rem; }
.pathway ul { list-style: none; }
.pathway li { color: var(--cream); padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.12); font-weight: 600; }
.pathway li:first-child { border-top: 0; }
.pathway .btn-primary { background: var(--gold-soft); color: var(--navy); margin-top: 24px; }
.pathway .btn-primary:hover { background: var(--cream); color: var(--navy); }
.pathway.single { grid-template-columns: 1fr; }
.pathway.single p { max-width: 640px; }

/* ---------- Principles ---------- */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.principle { border-left: 3px solid var(--gold); padding-left: 22px; }
.principle h3 { font-size: 1.15rem; margin-bottom: 8px; }
.principle p { color: var(--navy-soft); font-size: 0.96rem; }

/* ---------- Prose (about, story) ---------- */
.prose p { color: var(--navy-soft); font-size: 1.06rem; }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin-bottom: 20px; }

/* ---------- About head (photo + intro) ---------- */
.about-head .wrap { display: grid; grid-template-columns: 1fr 1.45fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-head p { color: #CBD6D8; font-size: 1.05rem; }
.about-head p + p { margin-top: 14px; }
.about-head .about-meta { margin-top: 22px; font-size: 0.92rem; color: var(--sage); }
.listen {
  margin-top: 28px; padding: 18px 22px; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--teal); border-radius: 12px; color: var(--navy-soft); font-size: 0.98rem;
}
.listen a { font-weight: 600; }

/* ---------- Insight list ---------- */
.feature {
  display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 18px; padding: 40px 40px;
}
.feature .cat {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); margin-bottom: 12px;
}
.feature .cat span { color: var(--navy-soft); font-weight: 600; letter-spacing: 0.06em; }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 8px; }
.feature .deck { font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--navy-soft); margin-bottom: 18px; }
.feature p { color: var(--navy-soft); font-size: 1.02rem; max-width: 68ch; }
.feature p + p { margin-top: 12px; }
.feature .cta-row { margin-top: 26px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; list-style: none; }
.topics li {
  font-size: 0.9rem; font-weight: 600; color: var(--navy-soft);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}

/* ---------- Resource rows ---------- */
.res-group + .res-group { margin-top: 56px; }
.res-group > h2 { font-size: 1.5rem; margin-bottom: 18px; }
.resource {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 34px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center;
}
.resource .tag {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 10px;
}
.resource h3 { font-size: 1.35rem; margin-bottom: 10px; }
.resource p { color: var(--navy-soft); font-size: 0.98rem; }
.resource p + p { margin-top: 10px; }
.resource .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 96px 0; text-align: center; }
.final-cta h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 720px; margin: 0 auto 16px; line-height: 1.18; }
.final-cta p { color: var(--navy-soft); font-size: 1.1rem; max-width: 540px; margin: 0 auto 32px; }
.final-cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 48px; font-size: 0.92rem; color: var(--navy-soft); }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
.site-footer img { height: 170px; width: auto; display: block; margin-bottom: 10px; }
.site-footer .brand strong { display: block; color: var(--navy); font-size: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--navy-soft); font-weight: 600; }
.site-footer a:hover { color: var(--teal); }
.site-footer .col-title {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta-mobile { display: inline-block; margin-left: auto; }
  .logo-link img { height: 72px; }
  .logo-row { gap: 12px 10px; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { display: block; margin-left: 0; padding: 13px 2px; border-top: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--teal); }
  .site-nav a.nav-cta { display: none; }
}
@media (max-width: 860px) {
  .card-grid, .card-grid.three, .service, .signal-grid, .pathway,
  .principles-grid, .about-head .wrap, .resource { grid-template-columns: 1fr; }
  .service { gap: 28px; }
  .about-photo { width: 160px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
  .site-footer img { height: 110px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .page-head { padding: 60px 0 66px; }
  .page-head .page-overlay { background: rgba(21,32,36,0.80); }
  .pathway, .feature { padding: 30px 24px; }
  .card, .resource, .checklist { padding: 26px 22px; }
  .final-cta { padding: 72px 0; }
  .btn { padding: 14px 24px; }
  .pathway .btn { border-radius: 14px; line-height: 1.3; }
}
@media (max-width: 440px) {
  .nav-cta-mobile .long { display: none; }
}
@media (min-width: 441px) {
  .nav-cta-mobile .short { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
