/* Solace Counseling Associates — production stylesheet
   Design system: navy #212431, olive #66612d, tint #f4f3ec, arch-top photo frames, pill buttons.
   Type: Cormorant Garamond (display), Figtree (body). Mobile-first. */

:root {
  --navy: #212431;
  --olive: #66612d;
  --olive-dark: #4c4820;
  --tint: #f4f3ec;
  --tint-alt: #faf9f4;
  --body: #4e5160;
  --hairline: #d9d8ce;
  --hairline-lt: #e6e4da;
  --foot-1: #c7c8cb;
  --foot-2: #9fa1a8;
  --foot-3: #b2b096;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', sans-serif;
  --pad: 20px;
  --maxw: 1160px;
}
@media (min-width: 880px) { :root { --pad: 48px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--sans); color: var(--navy); font-size: 16px; line-height: 1.6; background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--olive); }
a:hover { color: var(--olive-dark); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--navy); }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(28px, 4.5vw, 42px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; color: var(--body); }
.lead { font-size: 18px; line-height: 1.65; }
.eyebrow { color: var(--olive); font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; }
.serif-note { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--olive); }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; text-align: center; padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #313548; color: #fff; }
.btn-outline { background: none; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--tint); color: var(--navy); }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: var(--olive-dark); color: #fff; }
.btn-sm { font-size: 13px; padding: 9px 16px; }

/* Utility bar + header */
.utility { background: var(--navy); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 42px; }
.utility a { color: #fff; text-decoration: none; font-size: 14px; }
.utility .portal { color: #c9c6ae; margin-right: 24px; }
.utility a:hover { color: #fff; text-decoration: underline; }

.header { background: #fff; border-bottom: 1px solid var(--hairline-lt); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.logo img { height: 46px; width: auto; }
@media (min-width: 880px) { .logo img { height: 56px; } }
.nav { display: none; }
.nav a { color: var(--navy); text-decoration: none; font-size: 16px; margin-left: 30px; }
.nav a:hover { color: var(--olive); }
.nav .btn { margin-left: 30px; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }
@media (min-width: 880px) { .nav { display: flex; align-items: center; } .nav-toggle { display: none; } }

.mobile-menu { display: none; background: #fff; border-bottom: 1px solid var(--hairline); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 15px var(--pad); color: var(--navy); text-decoration: none; font-size: 17px; border-top: 1px solid var(--hairline-lt); }
.mobile-menu .btn { margin: 14px var(--pad) 18px; display: block; }

/* Hero */
.hero { background: var(--tint); padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 880px) { .hero { padding: 72px 0 84px; } .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.hero-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-trust { font-size: 15px; color: #6b6d5a; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: #fff; }
.arch img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }

/* Sections */
.section { padding: 56px 0; }
@media (min-width: 880px) { .section { padding: 84px 0; } }
.section-tint { background: var(--tint-alt); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 34px; }

/* Two-column intro (who we are) */
.split { display: grid; gap: 36px; }
@media (min-width: 880px) { .split { grid-template-columns: 1.2fr 0.8fr; gap: 72px; } }
.split-main { display: flex; flex-direction: column; gap: 16px; }
.rail { display: flex; flex-direction: column; gap: 0; align-self: start; }
.rail div { border-top: 1px solid var(--hairline); padding: 16px 0; font-family: var(--serif); font-size: 21px; color: var(--navy); }
.rail div:last-child { border-bottom: 1px solid var(--hairline); }

/* Services grid (home + landers) */
.svc-grid { display: grid; gap: 2px; background: var(--hairline-lt); border: 1px solid var(--hairline-lt); }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-cell { background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.svc-cell h3 { font-size: 26px; font-weight: 500; }
.svc-cell.note { background: var(--tint); justify-content: center; }
.svc-cell.note p { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--olive); }

/* Services page rows */
.svc-row { display: grid; gap: 28px; align-items: center; padding: 44px 0; border-top: 1px solid var(--hairline-lt); }
.svc-row:first-of-type { border-top: 0; }
@media (min-width: 880px) { .svc-row { grid-template-columns: 460px 1fr; gap: 72px; padding: 56px 0; } .svc-row.flip { grid-template-columns: 1fr 460px; } .svc-row.flip .svc-img { order: 2; } }
.svc-img { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--tint); }
.svc-img img { aspect-ratio: 480 / 340; object-fit: cover; width: 100%; }
.svc-body { display: flex; flex-direction: column; gap: 14px; }

/* Steps */
.steps { display: grid; gap: 28px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step { display: flex; gap: 16px; }
.step-n { font-family: var(--serif); font-size: 34px; color: var(--olive); flex-shrink: 0; line-height: 1; }
.step h3 { margin-bottom: 6px; }

/* Team band */
.team-band .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .team-band .wrap { grid-template-columns: 240px 1fr auto; gap: 56px; } }
.team-circle { width: 200px; height: 200px; border-radius: 999px; overflow: hidden; margin: 0 auto; }
.team-circle img { width: 100%; height: 100%; object-fit: cover; }

/* Locations */
.loc-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .loc-grid { grid-template-columns: repeat(4, 1fr); } }
.loc { border-top: 1px solid var(--hairline); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.loc h3 { font-size: 24px; }
.loc p { font-size: 15px; }

/* Photo strip */
.strip img { width: 100%; height: 220px; object-fit: cover; }
@media (min-width: 880px) { .strip img { height: 320px; } }

/* CTA banner */
.cta { background: var(--navy); color: #fff; text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { color: #fff; }
.cta p { color: var(--foot-1); max-width: 620px; }

/* Footer */
.footer { background: var(--navy); color: var(--foot-1); }
.footer .wrap { display: flex; flex-direction: column; gap: 22px; padding-top: 48px; padding-bottom: 40px; }
.footer-top { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 880px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer img { height: 44px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: var(--foot-1); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-locs { font-size: 14px; line-height: 1.8; color: var(--foot-1); }
.footer-meta { font-size: 13px; color: var(--foot-2); border-top: 1px solid #34384a; padding-top: 18px; }
.footer-meta a { color: var(--foot-3); text-decoration: none; }
.footer-meta a:hover { color: #fff; }

/* Forms */
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { font-size: 14px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--navy);
  padding: 13px 14px; border: 1px solid var(--hairline); border-radius: 10px; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%234e5160' stroke-width='2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--body); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--olive); flex-shrink: 0; }
.consent label { font-weight: 400; font-size: 13px; margin: 0; display: inline; }

/* Schedule page */
.sched { display: grid; gap: 44px; }
@media (min-width: 980px) { .sched { grid-template-columns: 1.15fr 0.85fr; gap: 80px; } }
.sidebar { display: flex; flex-direction: column; gap: 22px; align-self: start; }
.sidebar .card { background: var(--tint-alt); border: 1px solid var(--hairline-lt); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.sidebar .trust { display: flex; gap: 14px; align-items: center; }
.sidebar .trust img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; border: 3px solid var(--tint); }

.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 700px) { .faces { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1000px) { .faces { grid-template-columns: repeat(7, 1fr); } }
.face { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.face img { width: 100%; aspect-ratio: 1; border-radius: 999px; object-fit: cover; border: 3px solid var(--tint); }
.face:hover img { border-color: var(--olive); }
.face span { font-size: 12px; color: var(--body); text-align: center; line-height: 1.3; }

/* Provider popup + team modal */
.popup-backdrop { position: fixed; inset: 0; background: rgba(33, 36, 49, 0.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 60; }
.popup-backdrop.open { display: flex; }
.popup { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 86vh; overflow: auto; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.popup .head { display: flex; gap: 16px; align-items: center; }
.popup .head img { width: 84px; height: 84px; border-radius: 999px; object-fit: cover; border: 3px solid var(--tint); flex-shrink: 0; }
.popup .creds { color: var(--olive); font-weight: 500; }
.popup .sees { font-size: 13px; font-style: italic; color: #6b6d5a; }
.popup .bio { font-size: 14.5px; line-height: 1.65; color: var(--body); }
.popup .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Team page */
.office-group { padding-top: 40px; }
.office-group h2 { border-bottom: 1px solid var(--hairline); padding-bottom: 12px; margin-bottom: 8px; }
.team-grid { display: grid; gap: 26px 32px; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.tcard { border-top: 1px solid var(--hairline); padding-top: 18px; display: flex; gap: 14px; }
.tcard img, .tcard .initial { width: 84px; height: 84px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.tcard .initial { background: var(--tint); color: var(--olive); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 36px; }
.tcard-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tcard h3 { font-size: 21px; line-height: 1.2; }
.tcard .creds { font-weight: 500; color: var(--olive); }
.tcard .sees { font-size: 13px; font-style: italic; color: #6b6d5a; }
.tcard .focus { font-size: 13px; line-height: 1.5; }

/* FAQ */
.faq-row { border-top: 1px solid var(--hairline); padding: 24px 0; display: grid; gap: 10px; }
@media (min-width: 880px) { .faq-row { grid-template-columns: 360px 1fr; gap: 56px; } }
.faq-row h3 { font-size: 23px; }

/* Contact */
.contact { display: grid; gap: 44px; }
@media (min-width: 980px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Thank you */
.thanks { text-align: center; }
.thanks .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 72px; padding-bottom: 72px; }
.thanks .steps { text-align: left; max-width: 980px; }

/* Sticky call bar (schedule, mobile) */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--olive); z-index: 50; padding: 0; display: block; }
.callbar a { display: block; color: #fff; text-align: center; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 10px calc(15px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 880px) { .callbar { display: none; } }
body.has-callbar { padding-bottom: 64px; }
@media (min-width: 880px) { body.has-callbar { padding-bottom: 0; } }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Specificity fix: nav/menu context rules were overriding button text color */
.nav a.btn, .nav a.btn:hover, .mobile-menu a.btn, .mobile-menu a.btn:hover { color: #fff; }

/* Avatar stack (schedule sidebar) */
.avatars { display: flex; }
.avatars img { width: 54px; height: 54px; border-radius: 999px; object-fit: cover; border: 3px solid #ffffff; margin-left: -14px; background: var(--tint); }
.avatars img:first-child { margin-left: 0; }

/* Mobile hero: tighter first fold */
@media (max-width: 879px) {
  .hero { padding: 26px 0 38px; }
  .hero-copy { gap: 11px; }
  .hero h1 { font-size: clamp(29px, 7.5vw, 38px); }
  .serif-note { font-size: 17px; }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .svc-body .btn { display: block; width: 100%; text-align: center; }
}

/* Flexbox stretches direct-child images in the column footer; pin the logo */
.footer-top > img { align-self: flex-start; }
