/* ============================================================
   Embrace Psychiatry — design system
   Dark, masculine, military-influenced, olive accent
   ============================================================ */

:root {
  --bg: #0A0B0D;
  --surface: #13151A;
  --surface-2: #1A1D24;
  --border: #26292F;
  --border-strong: #353941;
  --text: #E8E6E1;
  --text-2: #9A988F;
  --text-3: #8C8A80;
  --accent: #A8B07A;
  --accent-hover: #BAC288;
  --accent-muted: #6E724E;
  --success: #7A9E6A;
  --danger: #D88871;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --max-w: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;

  --t-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- Typography ----- */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.h-hero {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h-page {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h-section {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.h-sub {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-2);
  line-height: 1.5;
  max-width: 60ch;
}

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 10vw, 128px);
}

.section-tight {
  padding-block: clamp(48px, 7vw, 80px);
}

.divider {
  border-top: 1px solid var(--border);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }

.btn-arrow::after {
  content: "→";
  font-weight: 500;
}

/* ----- Migration banner ----- */
.migration-banner {
  background: var(--accent-muted);
  color: var(--bg);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
}
.migration-banner a { color: var(--bg); text-decoration: underline; }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-2);
  transition: color var(--t-fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none;
  border: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.nav-dropdown > button:hover { color: var(--text); }
.nav-dropdown > button::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  list-style: none;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { gap: 16px; }
}
.mobile-menu {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) 24px;
}
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.mobile-menu .btn { margin-top: 20px; }

/* ----- Hero ----- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/images/hero.png') center / cover no-repeat;
  filter: grayscale(0.4) contrast(1.05) brightness(0.55);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,0.5) 0%, rgba(10,11,13,0.85) 70%, rgba(10,11,13,0.98) 100%),
    radial-gradient(60% 80% at 30% 40%, rgba(10,11,13,0) 0%, rgba(10,11,13,0.7) 100%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(96px, 14vw, 180px);
  max-width: 880px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 40px; max-width: 56ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-size: 13px;
  color: var(--text-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ----- Reticle accent ----- */
.reticle {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid var(--accent-muted);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}
.reticle::before, .reticle::after {
  content: "";
  position: absolute;
  background: var(--accent-muted);
}
.reticle::before {
  left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
}
.reticle::after {
  top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%);
}

/* ----- Service grid ----- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background var(--t-base);
}
.svc-card:hover { background: var(--surface-2); }
.svc-card .eyebrow { color: var(--accent); }
.svc-card h3 { font-size: 24px; font-weight: 700; }
.svc-card p { color: var(--text-2); font-size: 15px; flex: 1; }
.svc-card a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.svc-card a::after { content: "→"; transition: transform var(--t-fast); }
.svc-card a:hover::after { transform: translateX(3px); }

@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; }
}

/* ----- Steps ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--border-strong);
  padding-top: 24px;
  counter-increment: step;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

/* ----- Trust ----- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-item {
  background: var(--surface);
  padding: 28px 24px;
}
.trust-item h3, .trust-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.trust-item p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ----- Two-column (intro / split) ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split-img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.05); }
.split-img.tall { aspect-ratio: 3/4; }
.split-img.wide { aspect-ratio: 4/3; }

@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 2; }
}

/* ----- Page header (interior pages) ----- */
.page-header {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(72px, 10vw, 120px);
}
.page-header .eyebrow { margin-bottom: 24px; display: inline-flex; align-items: center; gap: 12px; }
.page-header .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.page-header h1 { margin-bottom: 20px; }
.page-header p { max-width: 60ch; }

/* ----- Pricing table ----- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
.pricing-table th, .pricing-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-table thead th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-2);
}
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
}
@media (max-width: 640px) {
  .pricing-table th, .pricing-table td { padding: 14px 16px; font-size: 14px; }
  .pricing-table .price { font-size: 18px; }
}

/* ----- FAQ ----- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.faq-item h2, .faq-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}
.faq-item p { color: var(--text-2); max-width: 70ch; }

/* ----- Locations grid ----- */
.loc-state {
  padding-block: 48px;
  border-top: 1px solid var(--border);
}
.loc-state:first-child { border-top: 0; }
.loc-state h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.loc-state h2 .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.loc-grid a {
  background: var(--surface);
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-fast), color var(--t-fast);
}
.loc-grid a:hover { background: var(--surface-2); color: var(--accent); }
.loc-grid a::after { content: "↗"; color: var(--text-3); font-size: 12px; }
.loc-grid a:hover::after { color: var(--accent); }

/* ----- Service page hero ----- */
.svc-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(72px, 10vw, 120px);
  border-bottom: 1px solid var(--border);
}
.svc-hero-img {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-hero-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) contrast(1.05) brightness(0.95); }
@media (max-width: 840px) {
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero-img { aspect-ratio: 4/3; max-height: 50vh; }
}

/* ----- Prose blocks (long-form) ----- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 56px; margin-bottom: 16px; }
.prose h3 { font-size: 20px; margin-top: 32px; margin-bottom: 10px; font-weight: 600; }
.prose p { margin-bottom: 18px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 24px 22px; }
.prose li { margin-bottom: 8px; color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout {
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  background: var(--surface);
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text);
}

/* ----- CTA band ----- */
.cta-band {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(48px, 7vw, 80px);
}
.cta-band h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 28ch;
}
@media (max-width: 720px) {
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: 64px 32px;
  font-size: 14px;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 32ch; line-height: 1.55; }
.footer-col h4, .footer-col .col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-2);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
}
.footer-crisis {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-2);
}
.footer-crisis strong { color: var(--text-2); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ----- Utility ----- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }

.kv-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 14px; }
.kv-list dt { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.kv-list dd { color: var(--text); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-muted);
  padding: 4px 10px;
  border-radius: 999px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 100;
  transition: top var(--t-base);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* small */
@media (max-width: 480px) {
  .hero-trust { flex-direction: column; gap: 10px; }
}

/* ----- Responsive grid utilities ----- */
.grid-svc-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 6vw, 80px);
}
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.grid-loc-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}
@media (max-width: 840px) {
  .grid-svc-page { grid-template-columns: 1fr; gap: 32px; }
  .grid-2-col { grid-template-columns: 1fr; gap: 32px; }
  .grid-loc-page { grid-template-columns: 1fr; gap: 32px; }
}

/* Page header should align with content (full container) */
.page-header .container { padding-inline: var(--gutter); }

/* Centered narrow column */
.col-narrow { max-width: 880px; margin-inline: auto; }

/* Section title block */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 40ch; font-size: 15px; }

/* Big blocks at top of services etc */
.svc-rules {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 80px);
}
@media (max-width: 840px) {
  .svc-rules { grid-template-columns: 1fr; gap: 24px; }
}

