:root {
  --paper: #f6f3ed;
  --ink: #20312d;
  --muted: #66736d;
  --line: rgba(32, 49, 45, 0.14);
  --sage: #6f8b79;
  --sage-dark: #385a4f;
  --clay: #b56f4c;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(32, 49, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 35px rgba(32, 49, 45, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 253, 248, 0.72);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 24px;
  font-weight: 720;
}

.brand small {
  margin-top: 4px;
  color: currentColor;
  opacity: 0.76;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(20px, 5vw, 72px) 72px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 44, 40, 0.82) 0%, rgba(32, 49, 45, 0.62) 42%, rgba(32, 49, 45, 0.08) 78%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-hero .eyebrow {
  font-size: 16px;
  font-weight: 820;
}

.hero .eyebrow {
  color: #f1b58c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 520;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4.4vw, 54px);
  font-weight: 520;
}

h3 {
  font-size: 19px;
  font-weight: 730;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 4px;
  padding: 12px 20px;
  font-weight: 760;
}

.button.primary {
  background: var(--clay);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 253, 248, 0.58);
  color: var(--white);
}

.button.quiet {
  border: 1px solid var(--line);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--sage-dark);
  font-weight: 780;
  border-bottom: 2px solid rgba(181, 111, 76, 0.42);
}

section {
  padding: clamp(68px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.band {
  background: var(--white);
}

.section-heading {
  max-width: 730px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro-text {
  color: var(--muted);
  font-size: 18px;
}

.intro-text p {
  margin: 0 0 18px;
}

.services {
  max-width: 1240px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.service-card {
  display: block;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.58);
  padding: 26px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.service-card:hover {
  border-color: rgba(181, 111, 76, 0.42);
  box-shadow: 0 12px 32px rgba(32, 49, 45, 0.08);
  transform: translateY(-2px);
}

.service-card .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--sage-dark);
  font-size: 22px;
}

.service-card p,
.step p,
.contact-panel p {
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
}

.scales {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.scale-summary {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.scale-summary p {
  margin: 0;
}

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.step span {
  color: var(--clay);
  font-weight: 800;
}

.step p {
  grid-column: 2;
  margin: 6px 0 0;
}

.contact {
  padding-bottom: clamp(44px, 8vw, 90px);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--sage-dark);
  color: var(--white);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.contact-panel .eyebrow {
  color: #f4c29d;
}

.contact-panel p {
  max-width: 610px;
  color: rgba(255, 253, 248, 0.78);
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list a,
.contact-list span {
  display: block;
  border-bottom: 1px solid rgba(255, 253, 248, 0.22);
  padding: 12px 0;
  color: rgba(255, 253, 248, 0.9);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

.chatbox {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 20;
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(32, 49, 45, 0.22);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.chatbox.is-open .chat-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: var(--sage-dark);
  color: var(--white);
  padding: 18px;
}

.chat-head strong,
.chat-head small {
  display: block;
}

.chat-head strong {
  font-size: 17px;
}

.chat-head small {
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
}

.chat-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 253, 248, 0.36);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-body {
  padding: 18px;
}

.chat-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.chat-actions {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.chat-actions a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 730;
}

.chat-actions a:hover {
  border-color: rgba(181, 111, 76, 0.48);
}

.chat-body .chat-note {
  color: var(--clay);
  font-size: 13px;
}

.detail-page {
  background: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px clamp(20px, 3.8vw, 46px) 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sage-dark);
  font-weight: 730;
}

.related-links {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.related-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--sage-dark);
  font-weight: 730;
}

.related-links a:hover {
  border-color: rgba(181, 111, 76, 0.48);
}

.related-links .local-service-note {
  margin: 20px 0 0;
  font-size: 16px;
}

.detail-header {
  position: sticky;
}

.detail-hero {
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: clamp(46px, 7vw, 76px);
  background: var(--paper);
}

.detail-hero > div {
  max-width: 980px;
}

.detail-hero h1 {
  max-width: 900px;
  color: var(--ink);
}

.hero-detail-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.detail-hero-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(34px, 5vw, 62px);
  padding-left: clamp(20px, 3.8vw, 46px);
  padding-right: clamp(20px, 3.8vw, 46px);
}

.detail-hero-with-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.approach-article {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 44px);
  color: var(--ink);
}

.approach-article section {
  padding: clamp(34px, 5vw, 58px) 0 0;
}

.approach-article .lead {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.55;
}

.approach-article p {
  color: var(--muted);
  font-size: 18px;
}

.approach-article h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3.3vw, 42px);
}

.approach-article ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.approach-article li {
  position: relative;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 15px 16px 15px 38px;
  color: var(--ink);
}

.approach-article li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.approach-article blockquote {
  margin: 26px 0 0;
  border-left: 4px solid var(--clay);
  background: var(--paper);
  padding: 22px 26px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.topic-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.topic-card:hover {
  border-color: rgba(181, 111, 76, 0.42);
  box-shadow: 0 12px 32px rgba(32, 49, 45, 0.08);
  transform: translateY(-2px);
}

.topic-card h3 {
  font-size: 18px;
}

.topic-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.topic-card ul {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.brain-diagram {
  max-width: 760px;
  margin: 26px 0 22px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.brain-diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.brain-outline {
  fill: rgba(255, 253, 248, 0.72);
  stroke: var(--sage-dark);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brain-fold {
  fill: none;
  stroke: rgba(56, 90, 79, 0.58);
  stroke-width: 5;
  stroke-linecap: round;
}

.region {
  fill: var(--clay);
  stroke: var(--white);
  stroke-width: 5;
}

.circuit {
  fill: none;
  stroke: rgba(181, 111, 76, 0.72);
  stroke-width: 4;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
}

.label-line {
  fill: none;
  stroke: rgba(32, 49, 45, 0.42);
  stroke-width: 3;
  stroke-linecap: round;
}

.brain-diagram text {
  fill: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.phq-section,
.screening-section {
  margin-top: clamp(42px, 7vw, 76px);
  border-top: 1px solid var(--line);
}

.phq-intro {
  max-width: 760px;
}

.phq-intro p:last-child {
  color: var(--muted);
}

.phq-intro .source-note {
  font-size: 15px;
}

.source-note a {
  color: var(--sage-dark);
  font-weight: 760;
  border-bottom: 1px solid rgba(181, 111, 76, 0.42);
}

.phq-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.phq-question {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.phq-question legend {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
}

.phq-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.phq-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.phq-option:has(input:checked) {
  border-color: rgba(181, 111, 76, 0.72);
  background: rgba(181, 111, 76, 0.1);
}

.phq-option input {
  accent-color: var(--clay);
}

.phq-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  border: 1px solid rgba(56, 90, 79, 0.24);
  border-radius: 8px;
  background: var(--sage-dark);
  color: var(--white);
  padding: 20px;
}

.phq-result div {
  display: grid;
  gap: 4px;
}

.phq-result span,
.phq-result p {
  color: rgba(255, 253, 248, 0.76);
}

.phq-result strong {
  font-size: 24px;
  line-height: 1.2;
}

.phq-result p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
}

.phq-result .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.phq-alert {
  border-radius: 6px;
  background: #9f2d24;
  padding: 14px;
  color: var(--white) !important;
  font-weight: 760;
}

.mdq-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.mdq-form h3 {
  margin-top: 0;
}

.form-help {
  margin-top: -8px;
  color: var(--muted);
  font-size: 16px;
}

.mdq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px 18px;
}

.mdq-question p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
}

.mdq-options,
.mdq-impact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
}

.mdq-impact-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mdq-result .mdq-note {
  color: rgba(255, 253, 248, 0.82);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 88vh;
    padding-top: 122px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(27, 44, 40, 0.86), rgba(32, 49, 45, 0.52)), linear-gradient(0deg, rgba(27, 44, 40, 0.42), transparent);
  }

  .intro,
  .scales,
  .process,
  .detail-hero-with-image,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .approach-article ul,
  .topic-grid,
  .phq-options,
  .phq-result,
  .mdq-question,
  .mdq-options,
  .mdq-impact-options {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
  }

  h1 {
    font-size: 34px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .chatbox {
    right: 14px;
    bottom: 14px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step p {
    grid-column: auto;
  }
}
