/*
 * Ibeh Psychiatry — design system
 * Palette sampled from Dr. Ibeh's own consulting room: warm charcoal walls,
 * brass discs, white oak, ivory rug, green through the windows.
 *
 * Contrast note: --brass (#A8873E) is 3.09:1 on --bone and must never carry
 * body text on a light background. Use --brass-deep (5.11:1) for that.
 */

/* ---------------------------------------------------------------- fonts  */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterVar';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens  */
:root {
  --ink: #1b1b19;
  --ink-80: #3a3a35;
  --ink-65: #54534b;
  --bone: #f7f4ee;
  --bone-deep: #ede7dc;
  --bone-soft: #f2eee6;
  --white: #fffdfa;
  --brass: #a8873e;
  --brass-deep: #7e6428;
  --brass-light: #d4bc8a;
  --sage: #5f6e58;

  --rule: rgba(168, 135, 62, 0.34);
  --rule-soft: rgba(27, 27, 25, 0.12);
  --field-border: rgba(27, 27, 25, 0.5); /* 3.5:1 — WCAG 1.4.11 */
  --rule-ink: rgba(247, 244, 238, 0.18);

  --ff-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --ff-body: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 1.35rem + 5.4vw, 5.75rem);
  --fs-h1: clamp(2.2rem, 1.45rem + 3.3vw, 4.1rem);
  --fs-h2: clamp(1.8rem, 1.28rem + 2.3vw, 3rem);
  --fs-h3: clamp(1.28rem, 1.12rem + 0.78vw, 1.7rem);
  --fs-h4: clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  --fs-lead: clamp(1.09rem, 1.01rem + 0.42vw, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.6875rem;

  --lh-tight: 1.06;
  --lh-head: 1.14;
  --lh-body: 1.72;

  --track-eyebrow: 0.24em;
  --track-display: -0.018em;

  --sp-section: clamp(4.75rem, 3rem + 7.4vw, 10.5rem);
  --sp-gap: clamp(2rem, 1.2rem + 3.2vw, 4.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 3rem);
  --measure: 40rem;
  --maxw: 78rem;
  --maxw-narrow: 56rem;

  --focus: var(--brass-deep);
  --arch: 50% 50% 0 0 / 38% 38% 0 0;
  --arch-soft: 50% 50% 0 0 / 22% 22% 0 0;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- reset  */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clears the sticky header so anchor targets and focused elements are not
     hidden underneath it */
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* brass-deep is only 3.07:1 on ink, so dark surfaces switch to brass-light */
.section--ink,
.cta-band,
.site-footer { --focus: var(--brass-light); }

::selection { background: var(--brass-light); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--bone);
  padding: 0.85rem 1.4rem;
  font-size: var(--fs-sm);
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* .screen-reader-text is what WordPress core, Contact Form 7 and most plugins
   emit; without it their hidden labels render visibly. */
.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
  word-break: normal;
}
.screen-reader-text:focus {
  position: static;
  width: auto; height: auto;
  margin: 0; overflow: visible;
  clip: auto; clip-path: none;
  background: var(--ink); color: var(--bone);
  padding: 0.85rem 1.4rem;
  font-size: var(--fs-sm);
}

/* ----------------------------------------------------------- typography  */
.display,
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: var(--lh-head);
  letter-spacing: var(--track-display);
  font-variation-settings: 'opsz' 96, 'SOFT' 12;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

h4, h5, h6 {
  font-family: var(--ff-body);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.005em;
}

.hero-title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-variation-settings: 'opsz' 144, 'SOFT' 18;
}

.eyebrow {
  font-family: var(--ff-body);
  align-items: baseline;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--brass-deep);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: clamp(1.5rem, 3vw, 2.75rem);
  height: 1px;
  background: var(--brass);
  flex: none;
  transform: translateY(-0.28em);
}
.eyebrow--plain::before { display: none; }
.eyebrow--center { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-80);
  max-width: var(--measure);
}

.muted { color: var(--ink-65); }
.prose p + p { margin-top: 1.15em; }
.prose { max-width: var(--measure); }

em, i { font-style: italic; }
strong, b { font-weight: 600; }

.num {
  font-family: var(--ff-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  color: var(--brass-deep);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- layout  */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--maxw-narrow); }
.wrap--wide { max-width: 90rem; }

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: calc(var(--sp-section) * 0.62); }
.section--deep { background: var(--bone-deep); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--ink .lead,
.section--ink .muted { color: rgba(247, 244, 238, 0.72); }
.section--ink .eyebrow,
.cta-band .eyebrow { color: var(--brass-light); }
.section--ink .eyebrow::before,
.cta-band .eyebrow::before { background: var(--brass-light); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-gap); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.35rem; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule--soft { background: var(--rule-soft); }

.grid { display: grid; gap: var(--sp-gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  align-items: center;
}
.split--media-first > :first-child { order: -1; }
.split--tilt { grid-template-columns: 1.05fr 0.95fr; }

/* -------------------------------------------------------------- buttons  */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.02rem 2.05rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background 0.42s var(--ease), color 0.42s var(--ease),
    border-color 0.42s var(--ease), transform 0.42s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--brass {
  --btn-bg: var(--brass);
  --btn-fg: var(--ink);
  --btn-bd: var(--brass);
}
.btn--brass:hover { --btn-bg: var(--brass-light); --btn-bd: var(--brass-light); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: rgba(27,27,25,.3); }
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-bd: var(--rule-ink);
}
.btn--ghost-light:hover { --btn-bd: var(--brass-light); --btn-fg: var(--brass-light); }

.btn--light { --btn-bg: var(--bone); --btn-fg: var(--ink); --btn-bd: var(--bone); }
.btn--light:hover { --btn-bg: var(--brass-light); --btn-bd: var(--brass-light); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.35rem;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-deep);
  padding-bottom: 0.32rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.link-arrow::after { content: '\2192'; transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(5px); }
.section--ink .link-arrow,
.cta-band .link-arrow { color: var(--brass-light); border-color: var(--rule-ink); }
.section--ink .link-arrow:hover,
.cta-band .link-arrow:hover { color: var(--bone); border-color: var(--bone); }

.text-link {
  color: var(--brass-deep);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.text-link:hover { color: var(--ink); border-color: var(--ink); }
.section--ink .text-link,
.cta-band .text-link { color: var(--brass-light); }
.section--ink .text-link:hover,
.cta-band .text-link:hover { color: var(--bone); border-color: var(--bone); }

/* ---------------------------------------------------------------- media  */
.media { position: relative; overflow: hidden; background: var(--bone-deep); }
/* <picture> is the layout box the img fills; without an explicit height it
   collapses to the image's intrinsic ratio and object-fit never engages. */
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--arch { border-radius: var(--arch); }
.media--arch-soft { border-radius: var(--arch-soft); }
.media--r32 { aspect-ratio: 3 / 2; }
.media--r45 { aspect-ratio: 4 / 5; }
.media--r34 { aspect-ratio: 3 / 4; }
.media--r11 { aspect-ratio: 1 / 1; }
.media--r169 { aspect-ratio: 16 / 9; }

/* thin brass outline echoing the logo arch, offset behind the image */
.media-frame { position: relative; }
.media-frame::before {
  content: '';
  position: absolute;
  inset: -0.85rem -0.85rem auto -0.85rem;
  height: 70%;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: var(--arch);
  pointer-events: none;
  z-index: 0;
}
.media-frame > .media { position: relative; z-index: 1; }

.caption {
  margin-top: 1rem;
  font-size: var(--fs-xs);
  color: var(--ink-65);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- cards  */
.card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--rule); transform: translateY(-3px); }
.card h3 { font-size: var(--fs-h3); }
.card p { color: var(--ink-65); font-size: var(--fs-sm); line-height: 1.68; }

.card--arch { border-radius: var(--arch-soft); }

.card-icon {
  width: 34px; height: 41px;
  margin-bottom: 0.35rem;
}

.section--deep .card { background: var(--bone); }

/* ---------------------------------------------------------- trust strip  */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust > div {
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.4rem) clamp(0.75rem, 1.5vw, 1.75rem);
  text-align: center;
  border-left: 1px solid var(--rule-soft);
}
.trust > div:first-child { border-left: 0; }
.trust dt {
  font-family: var(--ff-display);
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.3rem);
  font-weight: 300;
  line-height: 1.1;
  font-variation-settings: 'opsz' 120;
}
.trust dd {
  margin-top: 0.55rem;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-65);
  line-height: 1.5;
}

/* -------------------------------------------------------------- process  */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 1rem + 2.5vw, 4rem);
  padding-block: clamp(2rem, 1.4rem + 1.8vw, 3.1rem);
  border-top: 1px solid var(--rule-soft);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule-soft); }
.step-n {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
  font-weight: 300;
  color: var(--brass);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
  min-width: 2.6ch;
}
.step h3 { margin-bottom: 0.7rem; }
.step p { color: var(--ink-65); max-width: 36rem; }
.section--ink .step { border-color: var(--rule-ink); }
.section--ink .step-n { color: var(--brass-light); }
.section--ink .step p { color: rgba(247, 244, 238, 0.72); }

/* ------------------------------------------------------------- timeline  */
.timeline { border-top: 1px solid var(--rule-soft); }
.tl-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: clamp(1rem, 0.6rem + 1.6vw, 2.5rem);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.tl-year {
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  color: var(--brass-deep);
  letter-spacing: 0.04em;
}
.tl-item h3 { margin-bottom: 0.3rem; font-size: var(--fs-h4); font-family: var(--ff-body); font-weight: 500; }
.tl-item p { color: var(--ink-65); font-size: var(--fs-sm); }

/* ------------------------------------------------------------ quote/endorse */
.quote { max-width: 48rem; }
.quote blockquote {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.05rem + 1.35vw, 2.15rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 110, 'SOFT' 14;
}
.quote figcaption {
  margin-top: 1.9rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-65);
}
.section--ink .quote figcaption { color: var(--brass-light); }
.quote-mark {
  font-family: var(--ff-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--brass);
  display: block;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ faq  */
.faq { border-top: 1px solid var(--rule-soft); }
.faq details {
  border-bottom: 1px solid var(--rule-soft);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.6rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass-deep); }
.faq summary::after {
  content: '';
  flex: none;
  width: 13px; height: 13px;
  margin-top: 0.45rem;
  background:
    linear-gradient(var(--brass-deep), var(--brass-deep)) center/100% 1.5px no-repeat,
    linear-gradient(var(--brass-deep), var(--brass-deep)) center/1.5px 100% no-repeat;
  transition: transform 0.38s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding-bottom: 1.7rem; max-width: 46rem; }
.faq .faq-body p { color: var(--ink-65); }

/* -------------------------------------------------------------- listings */
.tag-group + .tag-group { margin-top: 2.3rem; }
.tag-group h3 {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.95rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tags li {
  font-size: var(--fs-sm);
  color: var(--ink-80);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: var(--white);
}
.section--deep .tags li { background: var(--bone); }

.ticks { list-style: none; display: grid; gap: 0.8rem; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-65);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.7rem; height: 1px;
  background: var(--brass);
}
.section--ink .ticks li { color: rgba(247, 244, 238, 0.76); }

/* ------------------------------------------------------------- services  */
.service {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  padding-block: clamp(2.75rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--rule-soft);
}
.service:nth-child(even) > .service-media { order: 2; }
.service-summary {
  font-family: var(--ff-display);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-80);
  margin-block: 0.85rem 1.2rem;
}

/* ---------------------------------------------------------------- forms  */
.field { margin-bottom: 1.5rem; }
.field label,
.form-label {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-65);
  margin-bottom: 0.6rem;
}
.req { color: var(--brass-deep); }

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 0;
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 9.5rem; resize: vertical; line-height: 1.6; }

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 1.35rem, calc(100% - 1rem) 1.35rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px rgba(168, 135, 62, 0.22);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
::placeholder { color: #747269; opacity: 1; } /* 4.75:1 */

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-65);
  margin-block: 1.6rem;
}
.consent input[type='checkbox'] {
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.22rem;
  accent-color: var(--brass-deep);
}

/* ---------------------------------------------------------- crisis block */
.crisis {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brass);
  background: var(--white);
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
}
.crisis h2, .crisis h3 { font-size: var(--fs-h4); font-family: var(--ff-body); font-weight: 600; }
.crisis p { font-size: var(--fs-sm); color: var(--ink-65); margin-top: 0.7rem; }
.crisis-list { list-style: none; margin-top: 1.35rem; display: grid; gap: 0.9rem; }
.crisis-list li { font-size: var(--fs-sm); line-height: 1.55; }
.crisis-list strong { display: block; color: var(--ink); font-weight: 600; }

/* colour alone is not enough to mark these as links (WCAG 1.4.1) */
.crisis-link,
.crisis-list a {
  color: var(--brass-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.crisis-link:hover, .crisis-list a:hover { color: var(--ink); }
.site-footer .crisis-link { color: var(--brass-light); }
.site-footer .crisis-link:hover { color: var(--bone); }
.crisis-list span { color: var(--ink-65); }

.notice {
  font-size: var(--fs-sm);
  color: var(--ink-65);
  background: var(--bone-deep);
  border: 1px solid var(--rule-soft);
  padding: 1.15rem 1.35rem;
  line-height: 1.62;
}

/* --------------------------------------------------------- contact card  */
.info-list { list-style: none; display: grid; gap: 1.55rem; }
.info-list dt,
.info-list .k {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.4rem;
}
.info-list .v { font-size: var(--fs-body); color: var(--ink); line-height: 1.55; }
.info-list .v a { border-bottom: 1px solid var(--rule); }
.info-list .v a:hover { border-color: var(--ink); }

/* -------------------------------------------------------------- header   */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--rule-soft);
  background: rgba(247, 244, 238, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}
.brand { display: flex; align-items: center; flex: none; }
.brand { gap: 0.72rem; color: var(--ink); }
.brand svg { height: 2.55rem; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 1.24rem;
  letter-spacing: 0.22em;
  font-variation-settings: 'opsz' 100, 'SOFT' 20;
}
.brand-sub {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.395em;
  color: var(--brass-deep);
  margin-top: 0.42rem;
  text-indent: 0.06em;
}
.brand--rev { color: var(--bone); }
.brand--rev .brand-sub { color: var(--brass-light); }
.footer-brand .brand { margin-bottom: 1.4rem; }
.footer-brand .brand svg { height: 3rem; }
.footer-brand .brand-name { font-size: 1.44rem; }
.footer-brand .brand-sub { font-size: 0.56rem; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.6rem); }
.nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.6rem); list-style: none; }
.nav a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  position: relative;
  color: var(--ink-80);
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current='page']::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-soft);
  width: 2.9rem; height: 2.9rem;
  align-items: center; justify-content: center;
  cursor: pointer;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px; height: 1px;
  background: var(--ink);
  transition: transform 0.34s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-5px) rotate(-45deg); }

/* -------------------------------------------------------------- footer   */
.site-footer { background: var(--ink); color: var(--bone); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: var(--sp-gap);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--rule-ink);
}
.site-footer h2 {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; display: grid; gap: 0.75rem; }
.site-footer a { color: rgba(247, 244, 238, 0.78); font-size: var(--fs-sm); transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--bone); }
.site-footer p { color: rgba(247, 244, 238, 0.62); font-size: var(--fs-sm); }
.footer-brand svg { height: 3.4rem; width: auto; margin-bottom: 1.4rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2.1rem;
  font-size: var(--fs-xs);
  color: rgba(247, 244, 238, 0.5);
}
.footer-bottom a { font-size: var(--fs-xs); }
.footer-legal { max-width: 46rem; margin-top: 1.5rem; font-size: var(--fs-xs); line-height: 1.7; color: rgba(247, 244, 238, 0.46); }

/* ---------------------------------------------------------------- hero   */
.hero { position: relative; padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 34rem; }
.hero-title + p { margin-top: 1.9rem; }
.hero-meta {
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: var(--fs-xs);
  color: var(--ink-65);
  letter-spacing: 0.06em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-meta span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brass);
}

.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: 1.7rem; }

/* ------------------------------------------------------------- cta band  */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); }
.cta-band .bg {
  position: absolute; inset: 0;
  opacity: 0.22;
  filter: grayscale(0.35);
}
.cta-band .bg picture { display: block; width: 100%; height: 100%; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-inner { text-align: center; max-width: 44rem; margin-inline: auto; padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.cta-inner h2 { color: var(--bone); }
.cta-inner p { margin-top: 1.4rem; color: rgba(247, 244, 238, 0.76); }
.cta-inner .btn-row { justify-content: center; }

/* --------------------------------------------------------------- motion  */
/* Scoped to .js so that with JavaScript disabled or blocked, nothing is ever
   hidden. The .js class is set by a tiny inline script in the document head. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 5.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--rule-soft);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%);
    /* visibility (not just transform) so the links leave the tab order while
       closed; it is delayed on the way out so the slide still animates */
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
    max-height: calc(100dvh - 5.25rem);
    overflow-y: auto;
  }
  .nav.is-open {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.45s var(--ease), visibility 0s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule-soft); }
  .nav a { display: block; padding-block: 1.1rem; font-size: var(--fs-sm); letter-spacing: 0.1em; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1.4rem; width: 100%; }

  .hero-grid,
  .split,
  .split--tilt,
  .service,
  .grid--2 { grid-template-columns: 1fr; }
  .split--media-first > :first-child,
  .service:nth-child(even) > .service-media { order: 0; }
  .hero-copy { max-width: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust > div:nth-child(odd) { border-left: 0; }
  .trust > div:nth-child(n + 3) { border-top: 1px solid var(--rule-soft); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 620px) {
  .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .step { grid-template-columns: 1fr; gap: 0.8rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .media-frame::before { inset: -0.5rem -0.5rem auto -0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ------------------------------------------------- contact + legal bits  */
.contact-form p { margin: 0; }
.contact-form .field { margin-bottom: 1.4rem; }
.help {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--ink-65);
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
}
.detail-card h3 { font-size: var(--fs-h3); }
.section--deep .detail-card { background: var(--bone); }

.calendly-wrap {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  padding: 0.5rem;
  min-height: 700px;
}
.calendly-inline-widget { width: 100%; }

.legal-block { padding-block: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); border-top: 1px solid var(--rule-soft); }
.legal-block:last-child { border-bottom: 1px solid var(--rule-soft); }
.legal-block h2 { font-size: var(--fs-h3); margin-top: 0.5rem; }
.legal-block .prose p + p { margin-top: 0.9rem; }
.legal-block .prose p { font-size: var(--fs-sm); }

/* the crisis card should not be quiet on a psychiatry site */
.page-contact .crisis { background: var(--bone-deep); }

/* ---------------------------------------------------------- fee schedule */
.fees { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.fees col.c-dur { width: 8.5rem; }
.fees col.c-amt { width: 5.5rem; }
.fees caption { text-align: left; }
.fees thead th {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--brass-deep);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-body);
}
.fees thead th:not(:first-child) { text-align: right; }
.fees tbody th {
  font-weight: 400;
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.fees tbody td {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}
.fee-name {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.3;
}
.fee-note {
  display: block;
  margin-top: 0.45rem;
  font-size: var(--fs-xs);
  color: var(--ink-65);
  line-height: 1.6;
  max-width: 30rem;
  white-space: normal;
}
.fee-dur { font-size: var(--fs-sm); color: var(--ink-65); }
.fee-amt {
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  /* Stack each row as a card. table-layout:fixed and the <colgroup> widths must
     both be released, or the first cell stays locked to its column width. */
  .fees { display: block; table-layout: auto; }
  .fees colgroup, .fees col { display: none; }
  .fees thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fees tbody { display: block; }
  .fees tbody tr { display: block; padding-block: 1.3rem; border-bottom: 1px solid var(--rule-soft); }
  .fees tbody th, .fees tbody td {
    display: block; width: auto; border: 0; padding: 0; text-align: left; white-space: normal;
  }
  .fee-name { font-size: var(--fs-h4); }
  .fee-note { max-width: none; margin-top: 0.4rem; }
  .fee-dur { margin-top: 0.6rem; }
  .fee-amt { margin-top: 0.25rem; font-size: var(--fs-h3); }
}

/* ------------------------------------------------------- Contact Form 7  */
/* CF7 emits its own wrappers; these keep it inside the theme's field system. */
.wpcf7 { margin: 0; }
.wpcf7 form .field { margin-bottom: 1.4rem; }
.wpcf7 p { margin: 0; }
.wpcf7-form-control-wrap { display: block; }

.wpcf7 .ibeh-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-xs);
  color: #8c2f21;
  letter-spacing: 0.01em;
}
.wpcf7-form-control.wpcf7-not-valid {
  border-color: #b2543f;
  box-shadow: 0 0 0 3px rgba(178, 84, 63, 0.14);
}

.wpcf7 .wpcf7-response-output {
  margin: 1.6rem 0 0;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--brass);
  background: var(--bone-deep);
  font-size: var(--fs-sm);
  line-height: 1.6;
  border-radius: 0;
}
/* CF7's own CSS is disabled (inc/cf7.php); these two behaviours came from it. */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }

.wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--sage); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-left-color: #b2543f; }

/* CF7 renders [acceptance] as a label wrapping the checkbox */
.wpcf7 .consent .wpcf7-list-item { margin: 0; display: contents; }
.wpcf7 .consent label { display: contents; }
.wpcf7 .consent .wpcf7-list-item-label { color: inherit; }

.wpcf7-spinner {
  visibility: hidden;
  display: inline-block;
  background-color: var(--brass);
  opacity: 0.75;
  width: 24px; height: 24px;
  border: none;
  border-radius: 100%;
  padding: 0;
  margin: 0 0 0 0.9rem;
  position: relative;
}
.wpcf7-spinner::before {
  content: '';
  position: absolute;
  background-color: var(--bone);
  top: 4px; left: 4px;
  width: 6px; height: 6px;
  border: none;
  border-radius: 100%;
  transform-origin: 8px 8px;
  animation-name: ibeh-spin;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.wpcf7 form.submitting .wpcf7-spinner { visibility: visible; }
@keyframes ibeh-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wpcf7-spinner::before { animation-name: ibeh-blink; animation-duration: 2s; }
  @keyframes ibeh-blink { from { opacity: 0; } 50% { opacity: 1; } to { opacity: 0; } }
}

.wpcf7 input[type='submit'] { width: auto; }
@media (max-width: 620px) { .wpcf7 input[type='submit'] { width: 100%; } }
