/* ===========================================================
   Ethan Leichter, LCSW — Practice Site
   Design tokens
   =========================================================== */

:root {
  /* Color */
  --bg: #F7F6F2;          /* warm paper, not stark clinical white */
  --bg-card: #FFFFFF;
  --ink: #1C2B33;         /* deep slate navy — primary text */
  --brand: #2C4A52;       /* deep teal-slate — authority, calm */
  --brand-dark: #1B363D;
  --accent: #8B3A3A;      /* muted clay red — used sparingly, gravity not cheer */
  --muted: #5F6F76;       /* secondary text */
  --line: #DBD6CB;        /* hairline border */
  --focus: #2C4A52;

  /* Type */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-label: 'IBM Plex Mono', monospace;

  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--brand-dark);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
  display: block;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: #6f2c2c; }

.btn-group { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  flex-wrap: wrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark img { width: 36px; height: 36px; }
.brand-mark .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand-dark);
  line-height: 1.1;
}
.brand-mark .brand-sub {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-nav a:hover { color: var(--brand); text-decoration: none; }
nav.main-nav a.current {
  color: var(--brand);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  font-family: var(--font-label);
  font-size: 0.88rem;
  color: var(--brand-dark);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}
.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.fact dt {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.3em;
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--brand-dark);
}

/* ---------- Sections ---------- */
section.page-section {
  padding: 4rem 0;
}
section.page-section.alt {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Signature divider: a calm line with one deliberate rise —
   steadiness interrupted once, then settled again. */
.pulse-divider {
  height: 28px;
  margin: 0;
  border: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20600%2028'%3E%3Cpath%20d='M0%2014%20H255%20L267%2014%20L274%204%20L283%2024%20L290%2014%20H600'%20fill='none'%20stroke='%238B3A3A'%20stroke-width='1.4'/%3E%3C/svg%3E") center/420px no-repeat;
}

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
}
.focus-card h3 { margin-bottom: 0; }

.credential-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.credential-list { list-style: none; margin: 0; padding: 0; }
.credential-list li {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.credential-list li:last-child { border-bottom: none; }
.credential-list .label { font-family: var(--font-label); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.credential-list .value { color: var(--brand-dark); font-weight: 600; text-align: right; }

/* ---------- Forms ---------- */
form.site-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark);
  margin-bottom: 0.4em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--brand);
}
.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.9em;
  margin-bottom: 1.5rem;
}
.honeypot-field { position: absolute; left: -9999px; }

/* ---------- Payment box ---------- */
.payment-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 460px;
}
.payment-box .note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8em; }

/* ---------- Crisis banner ---------- */
.crisis-note {
  background: #FBF6F0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.8em;
}
.footer-grid a { display: block; color: var(--ink); font-size: 0.92rem; margin-bottom: 0.5em; }
.footer-bottom {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header-bar { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  nav.main-nav { order: 3; width: 100%; gap: 1rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
  .header-cta { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.04);
}

.info-card h3 {
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: .7rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 1rem;
}

.service-list li:last-child {
    border-bottom: none;
}
.form-status {
    margin-top: 1rem;
    font-weight: 500;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: #c62828;
}