/* ATP Mental Health — corporate site
   Type: Playfair Display (display) + DM Sans (text), matching Affordable Psych
   Color: taken from the ATP logo */
:root {
  --sky: #27a4de;
  --navy: #00417b;
  --leaf: #187eb6; /* middle of the leaf gradient in the tree mark */
  --navy-deep: #062a4f;
  --ink: #12263f;
  --body: #3d4f63;
  --muted: #6a7b8e;
  --rust: #c0571e;
  --rust-soft: #fbeee6;
  --mist: #f3f8fc;
  --line: #dde7f0;
  --white: #ffffff;
  --grad: linear-gradient(180deg, var(--sky) 0%, var(--navy) 100%);
  --grad-diag: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 42, 79, .06), 0 8px 28px rgba(6, 42, 79, .08);
  --max: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
strong, b { font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.15; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
h1 em, h2 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
p { margin: 0 0 1.1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px;
}
.lede { font-size: 1.05rem; line-height: 1.75; color: var(--body); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: .88rem; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; cursor: pointer;
}
.btn-primary { background: var(--grad-diag); color: var(--white); box-shadow: 0 6px 18px rgba(0, 65, 123, .25); }
.btn-primary:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 65, 123, .3); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-rust { background: var(--rust); color: var(--white); }
.btn-rust:hover { background: #a74916; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rust); padding-bottom: 4px; }
.nav-links .btn { padding: 10px 20px; font-size: .82rem; color: var(--white); box-shadow: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 85% 10%, #e3f2fb 0%, rgba(227, 242, 251, 0) 60%), linear-gradient(180deg, var(--white), var(--mist)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding: 96px 0 104px; }
.hero h1 { margin-bottom: 22px; }
.hero-mark { justify-self: center; position: relative; }
.hero-mark img { width: min(420px, 100%); filter: drop-shadow(0 18px 40px rgba(0, 65, 123, .12)); }
.hero-mark::before { content: ""; position: absolute; inset: 8% 2% 18% 2%; background: radial-gradient(circle, rgba(39, 164, 222, .16), transparent 68%); z-index: -1; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; font-size: .93rem; color: var(--muted); }
.hero-tags li::before { content: "●"; color: var(--rust); font-size: .6em; margin-right: 8px; vertical-align: middle; }

.page-hero { background: linear-gradient(180deg, var(--white), var(--mist)); padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

/* Sections */
section { padding: 96px 0; }
.section-alt { background: var(--mist); }
.section-head { margin-bottom: 52px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 600; text-decoration: none; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(39, 164, 222, .14), rgba(0, 65, 123, .14)); color: var(--navy);
}
.icon svg { width: 26px; height: 26px; }
.icon.rust { background: var(--rust-soft); color: var(--rust); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--rust); border-bottom: 2.5px solid var(--rust); transform: rotate(-45deg);
}

/* Structure diagram */
.org { display: grid; justify-items: center; gap: 0; }
.org-node {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px;
  box-shadow: var(--shadow); text-align: center; min-width: 260px;
}
.org-node.parent { border-top: 4px solid var(--navy); }
.org-node .k { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.org-node .n { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 700; }
.org-node .d { font-size: .92rem; color: var(--muted); }
.org-stem { width: 2px; height: 34px; background: var(--line); }
.org-kids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; position: relative; padding-top: 34px; }
.org-kids::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 2px; background: var(--line); }
.org-kids .org-node { position: relative; min-width: 0; }
.org-kids .org-node::before { content: ""; position: absolute; top: -35px; left: 50%; width: 2px; height: 34px; background: var(--line); }
.org-node.live { border-top: 4px solid var(--sky); }
.org-node.soon { border-top: 4px solid var(--rust); }

/* ATP explainer */
.meaning { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.meaning .card { border-top: 4px solid var(--sky); }
.meaning .card.rust { border-top-color: var(--rust); }
.big-letters { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }

/* Leader */
.leader { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.leader-badge {
  border-radius: 20px; background: var(--grad-diag); color: var(--white); padding: 36px 30px; text-align: center; box-shadow: var(--shadow);
}
.leader-badge .initials { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .5); font-family: var(--serif); font-size: 2.6rem; font-weight: 700; }
.leader-badge h3 { color: var(--white); margin-bottom: 4px; }
.leader-badge .cred { font-size: .92rem; opacity: .9; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.creds li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--ink); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--white); background: var(--grad-diag);
}
.step h3 { font-size: 1.1rem; }

/* CTA band */
.cta-band { background: var(--navy-deep); background-image: radial-gradient(900px 400px at 15% 0%, rgba(39, 164, 222, .35), transparent 60%), radial-gradient(700px 360px at 100% 100%, rgba(192, 87, 30, .28), transparent 60%); color: #d9e7f3; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #c8dcee; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--navy); }

/* Callout */
.callout { border-left: 4px solid var(--rust); background: var(--rust-soft); padding: 18px 22px; border-radius: 0 10px 10px 0; color: var(--ink); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1px solid #c9d6e2; border-radius: 10px; background: var(--white); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(39, 164, 222, .18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.hidden { display: none; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list strong { display: block; color: var(--ink); }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: #041f3b; color: #a9bfd4; padding: 72px 0 32px; font-size: .88rem; }
.site-footer a { color: #d6e5f2; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.foot-brand img { width: 46px; }
.foot-brand .t { font-family: var(--serif); font-size: 1.45rem; color: var(--white); font-weight: 400; line-height: 1; white-space: nowrap; }
.foot-brand .s { font-style: italic; color: #e9905f; }
.site-footer h4 { font-family: var(--sans); font-weight: 600; color: var(--white); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 52px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: .85rem; }
.crisis { font-size: .85rem; color: #8ea8c0; margin-top: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .grid-2, .leader { grid-template-columns: 1fr; }
  .hero-grid { padding: 64px 0 72px; gap: 24px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 220px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .leader { gap: 32px; }
  .leader-badge { max-width: 340px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; box-shadow: 0 16px 30px rgba(6, 42, 79, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 14px; justify-content: center; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--rust); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  section { padding: 68px 0; }
  .grid-3, .grid-2-cards, .meaning, .steps, .form .row, .foot-grid, .org-kids { grid-template-columns: 1fr; }
  .org-kids::before, .org-kids .org-node::before { display: none; }
  .org-kids { padding-top: 16px; gap: 14px; }
  .org-node { min-width: 0; width: 100%; }
  .card { padding: 26px; }
  .brand img { height: 44px; }
  .btn { width: 100%; justify-content: center; }
  .nav-links .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Header wordmark: Playfair Display, set like the Affordable|Psych wordmark */
.brand { gap: 10px; }
.brand img { height: 56px; width: auto; }
.brand-text { display: flex; align-items: baseline; gap: .28em; line-height: 1; font-family: var(--serif); font-size: 1.55rem; white-space: nowrap; }
.brand-text .b1 { font-weight: 400; color: var(--navy); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-text .b2 { font-style: italic; font-weight: 400; color: var(--rust); }
@media (max-width: 640px) { .brand img { height: 46px; } .brand-text { font-size: 1.3rem; } }
@media (max-width: 360px) { .brand-text { font-size: 1.12rem; } }

/* Telehealth band */
.tele { background: var(--grad-diag); color: #e6f2fb; }
.tele h2, .tele h3 { color: var(--white); }
.tele h2 em { background: none; -webkit-text-fill-color: #bfe6f8; color: #bfe6f8; }
.tele .lede { color: #d5e9f6; }
.tele .eyebrow { color: #ffd0b5; }
.tele-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.tele-item { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 28px; }
.tele-item .icon { background: rgba(255,255,255,.16); color: var(--white); }
.tele-item p { margin: 0; color: #d5e9f6; font-size: .95rem; }
.tele-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 40px 0 0; padding: 0; list-style: none; }
.tele-stats li { font-size: .9rem; color: #d5e9f6; }
.tele-stats b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(39,164,222,.12); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 500; margin-bottom: 18px; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.2); }
@media (max-width: 980px) { .tele-grid { grid-template-columns: 1fr; } }

/* Headshot */
.headshot { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 4px solid rgba(255,255,255,.75); box-shadow: 0 10px 30px rgba(6,42,79,.25); background: #e9eef3; }

/* Licensure tile map */
.lic-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.tilemap-scroll { overflow-x: auto; }
.tilemap { display: grid; grid-template-columns: repeat(11, minmax(28px, 1fr)); grid-auto-rows: 1fr; gap: 5px; min-width: 340px; max-width: 560px; }
.tile { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: .66rem; font-weight: 600; letter-spacing: .04em; background: #e6edf3; color: #8a9aab; }
.tile.active { background: var(--grad-diag); color: var(--white); box-shadow: 0 4px 12px rgba(0,65,123,.25); }
.tile.pending { background: var(--rust-soft); color: var(--rust); box-shadow: inset 0 0 0 2px var(--rust); }
.legend { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.legend li { display: flex; gap: 12px; align-items: flex-start; }
.legend .sw { flex: none; width: 18px; height: 18px; border-radius: 5px; margin-top: 4px; }
.legend .sw.active { background: var(--grad-diag); }
.legend .sw.pending { background: var(--rust-soft); box-shadow: inset 0 0 0 2px var(--rust); }
.legend strong { display: block; color: var(--ink); font-weight: 600; }

/* FAQ grid */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.faq .card h3 { font-size: 1.12rem; }

/* Credentials */
.cred-hero { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.cred-hero .headshot { margin: 0; width: 190px; height: 190px; border-color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.fact .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.fact .v { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-top: 4px; font-variant-numeric: tabular-nums; }
.fact .s { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.lic-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.lic-table th { text-align: left; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--mist); }
.lic-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; vertical-align: top; }
.lic-table tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag.ok { background: #e3f4ea; color: #1d7a45; }
.tag.wait { background: var(--rust-soft); color: var(--rust); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.timeline h3 { font-size: 1.08rem; margin-bottom: 2px; }
.timeline p { margin: 0; font-size: .95rem; }
.docs { columns: 2; column-gap: 40px; }
.docs li { break-inside: avoid; }

@media (max-width: 980px) {
  .lic-wrap, .faq { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cred-hero { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .cred-hero .headshot { width: 140px; height: 140px; }
  .facts { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .docs { columns: 1; }
}

/* Future full-practice states on the licensure map */
.tile.future { background: #e3f2fb; color: var(--leaf, #187eb6); box-shadow: inset 0 0 0 1.5px rgba(39,164,222,.55); }
.legend .sw.future { background: #e3f2fb; box-shadow: inset 0 0 0 1.5px rgba(39,164,222,.55); }

/* Affordable Psych branding (matches the affordablepsych.org wordmark) */
.ap-word { display: flex; align-items: center; gap: 14px; font-weight: 400; margin-bottom: .4em; }
.ap-word img { width: 54px; height: auto; flex: none; }
.ap-word .a { color: #153151; }
.ap-word .p { color: #6284a0; font-style: italic; }
.ap-logo { width: 116px; height: auto; margin-bottom: 18px; }
.org-mark { width: 34px; height: auto; margin: 0 auto 8px; }

/* Affordable Psych Roots logo */
.roots-logo-link { display: block; width: fit-content; margin: 0 auto 26px; }
.roots-logo { width: 200px; height: auto; }
