/* G&A Behavior Therapy — theme styles (source of truth: index.html prototype) */
:root {
  --ink: #0a4d68;
  --ink-deep: #06344a;
  --paper: #f7f3ec;
  --paper-2: #efe7d8;
  --surface: #ffffff;
  --text: #1c2a31;
  --muted: #4a5960;
  --silver: #c0c0c0;
  --ochre: #e3a33b;
  --ochre-ink: #8a5708;
  --line: #d9cfbd;
  --on-dark: #f7f3ec;
  --on-dark-muted: #c8d6dc;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: 16px;
  --max: 1160px;
  --tap: 44px;
  --shadow: 0 1px 2px rgb(6 52 74 / .06), 0 8px 24px rgb(6 52 74 / .08);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-text);
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink-deep); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--ochre); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink-deep); color: var(--on-dark); padding: 12px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--paper-2); }
.eyebrow {
  font: 700 .8125rem/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre-ink);
  margin-bottom: 14px;
}
.h2 { font-size: clamp(2rem, 4.2vw, 2.875rem); max-width: 22ch; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }

.logo-g { fill: #0a4d68; } .logo-a { fill: #c0c0c0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.0625rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--paper); color: var(--ink-deep); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: var(--tap); padding: 8px 18px; font-size: 1rem; }

/* Top bar */
.topbar { background: var(--ink-deep); color: var(--on-dark-muted); font-size: .875rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; white-space: nowrap; }
.topbar ul { display: flex; gap: 24px; list-style: none; min-width: 0; }
.topbar li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar li span { overflow: hidden; text-overflow: ellipsis; }
.topbar svg { width: 16px; height: 16px; flex: none; color: var(--ochre); }
.topbar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .topbar { font-size: .8125rem; }
  .topbar .wrap { justify-content: center; }
  .topbar .tb-email, .topbar .tb-street { display: none; }
  .topbar ul { gap: 14px; }
  .topbar .wrap > a { display: none; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 243 236 / .96); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgb(247 243 236 / .9); backdrop-filter: blur(6px); } }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: var(--tap); margin-right: auto; }
.brand svg { height: 54px; width: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 999px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.nav a:hover { background: var(--paper-2); color: var(--ink-deep); }
.menu-toggle { display: none; }
@media (max-width: 899px) {
  .site-header .wrap { gap: 10px; min-height: 64px; }
  .brand svg { height: 44px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--tap); min-width: var(--tap); padding: 0 12px; border-radius: 999px;
    border: 2px solid var(--line); background: transparent; color: var(--ink-deep); font: 700 1rem var(--font-text); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; flex: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { width: 100%; border-radius: 10px; min-height: 52px; padding: 0 12px; font-size: 1.125rem; }
  .header-call .label-long { display: none; }
}
@media (max-width: 599px) {
  .header-call { width: var(--tap); height: var(--tap); min-height: var(--tap); padding: 0; }
  .header-call .hc-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.05; max-width: 15ch; text-wrap: balance; letter-spacing: -.02em; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; color: var(--ochre); pointer-events: none; }
.hero .lead { margin-top: 24px; color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 44px; border-top: 1px solid var(--line); list-style: none; }
.facts li { padding: 18px 16px 0 0; }
.facts strong { display: block; font: 700 1.375rem/1.2 var(--font-display); color: var(--ink-deep); }
.facts span { font-size: .9375rem; color: var(--muted); }

.visit {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 36px); border-top: 6px solid var(--ink);
}
.visit h2 { font-size: 1.75rem; margin-bottom: 20px; }
.visit dl { margin: 0; display: grid; gap: 18px; }
.visit dt { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 4px; }
.visit dd { margin: 0; }
.visit address { font-style: normal; }
.visit .tel-list { list-style: none; display: grid; gap: 2px; }
.visit .tel-list a, .inline-link {
  display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; font-size: 1.125rem;
}
.visit .directions { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; }
.visit .directions svg { width: 18px; height: 18px; }

/* Services */
.services { list-style: none; counter-reset: svc; border-top: 2px solid var(--ink-deep); }
.service {
  display: grid; gap: 8px 32px; padding-block: 32px; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .service { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.25fr); align-items: baseline; padding-block: 40px; }
}
.service-num { font: 700 clamp(2.5rem, 5vw, 3.5rem)/1 var(--font-display); color: var(--ochre); font-variant-numeric: lining-nums; }
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service h3 small { display: block; font: 400 1rem/1.4 var(--font-text); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.service p { color: var(--text); }
.service .ask { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); margin-top: 8px; font-weight: 700; }
.service .ask svg { width: 18px; height: 18px; }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.quote { position: relative; padding: clamp(32px, 5vw, 56px) 0 0 clamp(8px, 2vw, 24px); }
.quote::before {
  content: "&"; position: absolute; left: -.06em; top: -.32em; z-index: 0;
  font: 700 clamp(11rem, 24vw, 17rem)/1 var(--font-display); color: var(--silver); opacity: .55;
}
.quote blockquote { position: relative; margin: 0; }
.quote blockquote p { font: 600 clamp(1.75rem, 3.4vw, 2.5rem)/1.2 var(--font-display); color: var(--ink-deep); letter-spacing: -.01em; }
.quote figcaption { position: relative; margin-top: 18px; color: var(--muted); font-size: 1rem; }
.about-copy p + p { margin-top: 16px; }
.about-copy .h2 { margin-bottom: 20px; }

/* Steps */
.steps { list-style: none; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ochre); color: var(--ink-deep); font: 700 1.25rem/1 var(--font-display); margin-bottom: 18px;
}
.step h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Team */
.team { list-style: none; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.member figure { margin: 0; }
.member img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg);
  background: var(--paper-2);
}
.member figcaption { margin-top: 14px; }
.member .name { display: block; font: 700 clamp(1.0625rem, 1.6vw, 1.25rem)/1.25 var(--font-display); color: var(--ink-deep); }
.member .cred { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .875rem; font-weight: 700; color: var(--ink); }
.member .role { display: block; margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.team-note { margin-top: 32px; color: var(--muted); font-size: .9375rem; max-width: 70ch; }

/* Audiences */
.audiences { display: grid; gap: 20px; }
@media (min-width: 860px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.audience { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.audience--families { background: var(--ink); color: var(--on-dark); }
.audience--families h3, .audience--families .eyebrow { color: var(--on-dark); }
.audience--families .eyebrow { color: var(--ochre); }
.audience--pros { background: var(--surface); border: 1px solid var(--line); }
.audience h3 { font-size: clamp(1.625rem, 2.8vw, 2.125rem); }
.audience ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.audience li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.audience li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--ochre); }
.audience--pros li svg { color: var(--ink); }
.audience .btn { align-self: flex-start; margin-top: auto; }
.audience .actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact */
.contact { background: var(--ink-deep); color: var(--on-dark); }
.contact .h2, .contact h3 { color: var(--on-dark); }
.contact .eyebrow { color: var(--ochre); }
.contact .lead { color: var(--on-dark-muted); }
.contact a { color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.channels { list-style: none; display: grid; gap: 22px; margin-top: 36px; }
.channels li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.channels .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: var(--ochre); }
.channels .ic svg { width: 20px; height: 20px; }
.channels .k { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.channels a { overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; font-size: 1.125rem; }
.channels address { font-style: normal; }

.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form-card h3 { color: var(--ink-deep); font-size: 1.75rem; }
.form-card .form-intro { color: var(--muted); margin-top: 8px; }
.form-card a { color: var(--ink); }
.form-grid { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink-deep); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 2px solid #8f9ea4; background: #fff; color: var(--text); font: 400 1.0625rem/1.4 var(--font-text);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a4d68' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { display: none; margin-top: 6px; color: #9f1d16; font-weight: 700; font-size: .9375rem; }
.field .err.is-visible { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.form-foot small { color: var(--muted); font-size: .9375rem; max-width: 42ch; }
.form-status { margin-top: 16px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: #9f1d16; }
.form-status.is-ok { color: var(--ink); }

/* Footer */
.site-footer { background: #042636; color: var(--on-dark-muted); padding-block: 56px 32px; font-size: .9375rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { display: inline-block; background: var(--paper); border-radius: 14px; padding: 10px 14px; }
.footer-logo svg { height: 52px; width: auto; display: block; }
.site-footer h2 { font: 700 .8125rem/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgb(247 243 236 / .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(6 52 74 / .08);
  }
  .action-bar .btn { min-height: 50px; padding-inline: 12px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Reveal (only with JS and motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- WordPress-only ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap);
  padding: 0 8px; border-radius: 999px; font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--muted);
}
.lang-switch a[aria-current="true"] { color: var(--ink-deep); background: var(--paper-2); }
.lang-switch a:hover { color: var(--ink-deep); text-decoration: underline; }
.topbar .lang-switch a { min-height: 40px; color: var(--on-dark-muted); font-size: .8125rem; }
.topbar .lang-switch a[aria-current="true"] { color: var(--on-dark); background: rgb(255 255 255 / .1); }
.site-footer .lang-switch a { color: var(--on-dark-muted); }
.site-footer .lang-switch a[aria-current="true"] { color: var(--on-dark); background: rgb(255 255 255 / .1); }
.nav .lang-switch--menu { display: none; }
@media (max-width: 899px) {
  .nav .lang-switch--menu { display: flex; padding: 4px var(--gutter) 16px; gap: 8px; }
  .nav .lang-switch--menu a { min-height: 48px; padding: 0 16px; border: 1px solid var(--line); }
}

/* Inner pages */
.page-content { padding-block: clamp(48px, 7vw, 96px); }
.page-content .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.page-content h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 28px; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 1.75rem; margin-top: 1.8em; }
.entry h3 { font-size: 1.375rem; margin-top: 1.5em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .4em; }
@media (max-width: 767px) { .topbar .lang-switch { display: none; } }
