/* Think Beyond Psych — shared styles for interior pages.
   The homepage (index.html) keeps its own inline CSS so its rendering is
   untouched; this file carries the same design tokens so interior pages
   read as the same site. Keep the :root block in sync with index.html. */

:root {
  --green: #397254;
  --green-light: #4a9e6b;
  --green-pale: #e8f2ec;
  /* Readable green for text on the dark green panels. */
  --green-on-dark: #8fd3a8;
  --green-dark: #2a5440;
  --cream: #faf7f2;
  --cream-mid: #f0ebe1;
  --text: #1a1a18;
  --text-2: #4a4a44;
  --text-3: #6b6b63;
  --rule: #d8d0c4;
  --white: #ffffff;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* Visible focus for keyboard users, on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── NAV ───────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 0 40px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 18px 0;
}
.nav-logo span { color: var(--green); font-style: italic; }

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  display: inline-block;
  padding: 20px 0;
}
.nav-links a:hover { color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: var(--radius);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

/* Mobile disclosure button — hidden on desktop. */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.nav-toggle:hover { border-color: var(--green); color: var(--green); }
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle .bars i { display: block; width: 15px; height: 1.5px; background: currentColor; }

/* ── BREADCRUMB ────────────────────────────────────────────────── */
.breadcrumb { padding: 20px 40px 0; max-width: 1100px; margin: 0 auto; width: 100%; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { font-size: 0.78rem; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: '/'; color: var(--rule); }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-2); }

/* ── PAGE HEADER ───────────────────────────────────────────────── */
.page-head { padding: 48px 40px 0; }
.wrap { max-width: 780px; margin: 0 auto; }
.wrap-wide { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

h1.page-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
}
h1.page-h1 em { color: var(--green); font-style: italic; }

.lede {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
}

.head-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 4px;
}
.head-meta a { color: var(--text-2); }

/* ── PROSE ─────────────────────────────────────────────────────── */
.prose { padding: 40px 40px 0; }

.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin: 48px 0 16px;
}
.prose h2 em { color: var(--green); font-style: italic; }

.prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin: 32px 0 10px;
}

.prose > *:first-child { margin-top: 0; }

.prose p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 20px;
}
.prose p strong, .prose li strong { color: var(--text); font-weight: 500; }

.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 10px;
}

.prose a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--green); }

.prose blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.28rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-2);
  border-left: 2px solid var(--green-light);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.6;
}

/* Callout box — reuses the homepage "what I don't treat" treatment. */
.note {
  background: #f5f0e8;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 32px 0;
}
.note h3, .note h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
}
.note p { font-size: 0.92rem; margin-bottom: 12px; }
.note p:last-child { margin-bottom: 0; }
.note ul { margin-bottom: 0; }
.note li { font-size: 0.92rem; }

.note-flag {
  background: #fbf3e4;
  border: 1px solid #e8d9b5;
  border-left: 3px solid #c9962f;
}

/* Fact strip: appointment lengths, formats, coverage. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
}
.facts div { background: var(--white); padding: 20px 22px; }
.facts dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.facts dd { font-size: 0.9rem; color: var(--text-2); font-weight: 300; line-height: 1.6; }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); color: var(--white); }

.btn-outline {
  border: 1.5px solid var(--green);
  color: var(--green);
  background: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
  display: inline-block;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { background: var(--green-pale); color: var(--green); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── CTA BAND ──────────────────────────────────────────────────── */
.cta-band { background: var(--green-dark); padding: 64px 40px; margin-top: 72px; }
.cta-band .wrap { max-width: 780px; }
.cta-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.cta-band h2 em { color: var(--green-on-dark); font-style: italic; }
.cta-band p {
  color: rgba(255,255,255,0.75);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 26px;
}
.cta-band a.btn-primary { background: var(--white); color: var(--green-dark); }
.cta-band a.btn-primary:hover { background: var(--green-pale); color: var(--green-dark); }
.cta-band a.btn-outline { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.92); }
.cta-band a.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.cta-band .cta-fine { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin: 20px 0 0; }
.cta-band .cta-fine a { color: rgba(255,255,255,0.92); }

/* ── RELATED LINKS ─────────────────────────────────────────────── */
.related { padding: 56px 40px 0; }
.related h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text);
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-grid a {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}
.related-grid a:hover { border-color: var(--green-light); transform: translateY(-2px); }
.related-grid strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.related-grid span { font-size: 0.84rem; color: var(--text-2); font-weight: 300; line-height: 1.6; display: block; }

/* ── CARD GRID (reflections index) ─────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem;
}
.card h2, .card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.card-sub { font-size: 0.8rem; font-style: italic; color: #767676; margin-bottom: 1rem; }
.card-excerpt { font-size: 0.9rem; color: #4a4a44; line-height: 1.65; flex: 1; }
.card-foot {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-author { display: flex; align-items: center; gap: 0.6rem; }
.card-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center top; }
.card-author-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.card-read {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--green); text-decoration: none; white-space: nowrap;
}
.card-read:hover { color: var(--green-dark); text-decoration: underline; }

/* ── ARTICLE BYLINE ────────────────────────────────────────────── */
.byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 8px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; }
.byline .name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.byline .role { font-size: 0.8rem; color: var(--text-3); }

.author-row {
  display: flex; align-items: center; gap: 0.75rem;
  border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2.5rem;
}
.author-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; }
.author-row .name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.author-row .role { font-size: 0.8rem; color: var(--text-3); }

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer { background: #1a1a18; padding: 56px 40px 32px; margin-top: 0; }
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400; color: rgba(255,255,255,0.75);
  text-decoration: none; display: inline-block; margin-bottom: 14px;
}
.footer-brand .footer-logo span { color: var(--green-light); font-style: italic; }
.footer-brand address {
  font-style: normal; font-size: 0.8rem; color: rgba(255,255,255,0.72);
  line-height: 1.8; font-weight: 300;
}
.footer-brand address a { color: rgba(255,255,255,0.86); text-decoration: none; }
.footer-brand address a:hover { color: var(--green-light); text-decoration: underline; }

.footer-col h2 {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
  margin-bottom: 14px; font-family: 'DM Sans', sans-serif;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 0.82rem; color: rgba(255,255,255,0.78);
  text-decoration: none; transition: color 0.2s; line-height: 1.5;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-base {
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.footer-crisis { font-size: 0.75rem; color: rgba(255,255,255,0.72); max-width: 520px; line-height: 1.6; }
.footer-crisis a { color: rgba(255,255,255,0.9); }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-nav { padding: 0 24px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 8px; padding: 12px 18px !important; }
  .breadcrumb, .page-head, .prose, .related { padding-left: 24px; padding-right: 24px; }
  .cta-band { padding: 48px 24px; }
  .site-footer { padding: 48px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDIONS ────────────────────────────────────────────── */
.faq-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  margin: 24px 0 32px;
}
.faq-item { border-bottom: 1px solid var(--rule); background: var(--white); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--green-pale); }
.faq-icon { color: var(--green); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── FORMS ─────────────────────────────────────────────────────── */
.tbp-form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  margin: 24px 0 12px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.form-submit:hover { background: var(--green-dark); }
.form-submit:disabled { opacity: 0.6; cursor: default; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.6;
}
.form-note a { color: var(--green-dark); }
.form-done { text-align: center; padding: 40px 20px; }
.form-done h3 { color: var(--green); margin-bottom: 12px; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; }
.form-done p { color: var(--text-2); font-size: 0.95rem; font-weight: 300; }
@media (max-width: 560px) { .tbp-form { padding: 24px 20px; } }

/* Visually hidden but available to screen readers. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Buttons inside prose keep their own colours. `.prose a` is more specific
   than `.btn-primary`, so without this a button dropped into body copy gets
   dark green text on a green background. */
.prose a.btn-primary { color: var(--white); text-decoration: none; }
.prose a.btn-primary:hover { color: var(--white); }
.prose a.btn-outline { color: var(--green); text-decoration: none; }
.prose a.btn-outline:hover { color: var(--green); }
