/* PsychMed Care — shared stylesheet
   Hand-written, no frameworks, no external fonts. System font stacks only.
   Palette: deep slate-blue (#2E4B69) primary, warm off-white background,
   restrained warm brass accent. Zero JavaScript anywhere on the site. */

:root {
  --primary: #2e4b69;
  --primary-dark: #1f354c;
  --primary-deep: #16283a;
  --primary-mid: #48719c;
  --accent: #b3862c;
  --accent-dark: #96700f;
  --bg: #faf8f4;
  --sand: #f0ebdf;
  --ink: #26333d;
  --muted: #5b6d76;
  --line: #e0d9c9;
  --white: #ffffff;
  --crisis: #8c2323;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(22, 40, 58, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--primary-mid); }
a:hover { color: var(--accent-dark); }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.lead { font-size: 1.12rem; color: #3c4c57; }

/* ---------- Utility bar ---------- */
.topbar {
  background: var(--primary-deep);
  color: #dbe4ec;
  font-size: 0.82rem;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.02em;
}
.topbar strong { color: #e8c877; font-weight: 600; }

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-right: auto;
  line-height: 1.1;
}
.brand-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 700;
}
.brand-name .brand-accent { color: var(--accent-dark); }
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---------- Nav ---------- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--primary-dark);
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 6px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--sand);
  color: var(--primary);
}
.main-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -3px 0 var(--accent);
  border-radius: 6px 6px 0 0;
}
.header-phone {
  font-weight: 700;
  color: var(--primary) !important;
  white-space: nowrap;
}
.btn-book {
  background: var(--accent);
  color: var(--primary-deep) !important;
  font-weight: 700 !important;
  border-radius: 999px;
  padding: 10px 20px !important;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn-book:hover { background: var(--accent-dark); color: var(--white) !important; }

/* ---------- Hero / page heads ---------- */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.hero h1 { font-size: 2.5rem; }
.hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.page-head {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0 34px;
}
.page-head h1 { color: var(--white); margin: 0; }
.page-head p { color: #cfdde9; margin: 8px 0 0; max-width: 760px; }
.banner-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* ---------- Stat chips ---------- */
.stat-chips {
  list-style: none;
  margin: 20px 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stat-chips li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ---------- Sections & cards ---------- */
.section { padding: 46px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.35rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card .meta { color: var(--accent-dark); font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; }
.card .big-min {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.card ul { margin: 0 0 0.6em; padding-left: 20px; }
.card li { margin-bottom: 5px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--primary-mid); }
.btn.gold { background: var(--accent); color: var(--primary-deep) !important; }
.btn.gold:hover { background: var(--accent-dark); color: var(--white) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.btn-row .call-link { font-weight: 700; color: var(--primary); text-decoration: none; }
.btn-row .call-link:hover { text-decoration: underline; }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.pull-quote {
  background: var(--primary);
  color: #e6edf3;
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow);
}
.pull-quote blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8c877;
}

.note-box {
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section.alt .steps li { background: var(--bg); }
.steps .step-num {
  display: inline-block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; }

/* ---------- Hours table ---------- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { font-weight: 600; color: var(--primary); width: 45%; }
.hours-table td.closed { color: var(--muted); font-style: italic; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-dark);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open ] summary::after { content: "–"; }
.faq-item .faq-num { color: var(--accent-dark); font-size: 0.95rem; letter-spacing: 0.1em; }
.faq-item .faq-body { padding: 0 22px 20px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- CTA band (ends every page) ---------- */
.cta-band {
  background: var(--primary-dark);
  color: #dbe4ec;
  padding: 46px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  border: none;
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.cta-band p { max-width: 640px; margin: 0 auto 6px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .call-link { color: #e8c877; font-weight: 700; text-decoration: none; }
.cta-band .call-link:hover { text-decoration: underline; }

/* ---------- Crisis resources ---------- */
.crisis-alert {
  background: var(--crisis);
  color: #ffffff;
  text-align: center;
  padding: 28px 20px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.crisis-alert a { color: #ffd964; text-decoration: underline; }
.lifeline {
  background: var(--white);
  border: 3px solid var(--crisis);
  border-radius: var(--radius);
  text-align: center;
  padding: 32px 20px 26px;
  box-shadow: var(--shadow);
}
.lifeline .big-number {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 4.4rem;
  font-weight: 700;
  color: var(--crisis);
  line-height: 1;
  margin: 0 0 6px;
}
.lifeline .big-number a { color: inherit; text-decoration: none; }
.lifeline h2 { border: none; display: block; text-transform: none; letter-spacing: 0; }
.cards.spaced { margin-top: 22px; }
.card .big-action {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--crisis);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-deep);
  color: #c3d0db;
  padding: 46px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; letter-spacing: 0.04em; }
.site-footer .footer-logo { width: 110px; margin-bottom: 12px; border-radius: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #e9e2cf; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #e8c877; text-decoration: underline; }
.footer-brand-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 2px;
}
.footer-brand-sub { font-size: 0.85rem; color: #9db2c1; margin: 0; }
.compliance {
  border-top: 1px solid rgba(219, 228, 236, 0.22);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.86rem;
  color: #9db2c1;
}
.compliance p { margin: 0 0 8px; }
.compliance a { color: #e8c877; }
.copyright {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: #8499a9;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .header-inner { justify-content: center; }
  .brand { margin-right: 0; align-items: center; text-align: center; }
  .main-nav ul { justify-content: center; }
  body { font-size: 16px; }
}
