/* ══════════════════════════════════════
   RUSSELL COUNSELING AND CONSULTING
   TPA Child Theme — client.css
   Extracted from approved mockup patrick-russell-b-1.html
   ══════════════════════════════════════ */

:root {
  --primary: #4B6F78;
  --primary-dark: #3A5660;
  --primary-light: #6A8E97;
  --secondary: #8B6A4F;
  --accent: #6F8A63;
  --accent-dark: #547049;
  --bg: #E8E2D8;
  --text: #2F3A3D;
  --ink: #1A2628;
  --white: #F8F5F0;
  --footer-bg: #1A2628;
  --footer-text: #A8BBBF;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
  --section-y: 68px;
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  background: var(--white);
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════
   BUTTON SYSTEM
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s ease, color 0.25s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover { transform: translateY(-3px); }
.btn > * { position: relative; z-index: 1; }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(75, 111, 120, 0.42);
}
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent::after { background: rgba(255, 255, 255, 0.16); }
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(111, 138, 99, 0.44);
}
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light::after { background: rgba(255, 255, 255, 0.55); }
.btn-light:hover {
  background: var(--white);
  box-shadow: 0 6px 22px rgba(47, 58, 61, 0.15);
}
.btn-outline-dark { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline-dark::after { background: var(--primary); transform: scaleX(0); transform-origin: left center; }
.btn-outline-dark:hover {
  color: var(--white);
  box-shadow: 0 6px 22px rgba(75, 111, 120, 0.32);
}
.btn-outline-dark:hover::after { transform: scaleX(1); }
.btn-outline-dark > * { position: relative; z-index: 1; }

/* Scroll reveal — 2 elements only */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   NAVIGATION
   NOTE: TPA_Nav_Walker outputs:
     parent li  → class="menu-item dropdown"
     parent a   → class="dropdown-toggle"
     submenu ul → class="dropdown-menu"
   ══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-color: rgba(26, 38, 40, 0.97);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(75,111,120,0.07) 38px, rgba(75,111,120,0.07) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(75,111,120,0.04) 38px, rgba(75,111,120,0.04) 39px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 138, 99, 0.22);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 28px rgba(0, 0, 0, 0.32); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.88; }
.logo-mark { flex-shrink: 0; display: block; }
.logo-wordmark { display: flex; align-items: center; gap: 10px; }
.logo-name {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-rule-v {
  width: 1px;
  height: 26px;
  background: rgba(232, 226, 216, 0.2);
  flex-shrink: 0;
}
.logo-practice-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-practice-stack span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 226, 216, 0.5);
  line-height: 1.1;
}
.logo-amp {
  color: var(--accent) !important;
  letter-spacing: 0.06em !important;
}

/* ── Desktop nav links (wp_nav_menu outputs <ul class="nav-links">) ── */
.nav-links {
  display: none;
  align-items: center;
  flex: 1;
  margin-left: 40px;
  list-style: none;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Regular + dropdown parent items — same height box so baseline aligns */
.nav-links > li {
  display: flex;
  align-items: center;
  position: relative;
  height: 40px;
}

/* All top-level anchors — same display model (flex, never inline) */
.nav-links > li > a,
.nav-links > li > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(232, 226, 216, 0.93);
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
  height: 40px;
  text-decoration: none;
  cursor: pointer;
}

/* Dropdown toggle — not clickable (links to #) */
.nav-links > li > .dropdown-toggle {
  cursor: default;
  pointer-events: none;
}

/* Underline sweep on hover — regular links only */
.nav-links > li:not(.dropdown) > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15px;
  right: 15px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease);
}
.nav-links > li:not(.dropdown) > a:hover { color: var(--white); }
.nav-links > li:not(.dropdown) > a:hover::after { transform: scaleX(1); }

/* Dropdown toggle hover color */
.nav-links .dropdown:hover > .dropdown-toggle { color: var(--white); }

/* Dropdown indicator chevron — via ::after on dropdown-toggle */
.nav-links .dropdown > .dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-links .dropdown:hover > .dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 2px;
  border-color: var(--white);
}

/* Dropdown submenu */
.nav-links .dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ink);
  border: 1px solid rgba(111, 138, 99, 0.42);
  border-radius: 3px;
  min-width: 220px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: 14px 0 8px;
  list-style: none;
}
.nav-links .dropdown:hover > .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(232, 226, 216, 0.78);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(111, 138, 99, 0.12); color: var(--white); }

/* Nav right — dual-stack CTA button */
.nav-right { display: none; align-items: center; margin-left: auto; flex-shrink: 0; }
.nav-dual {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
  margin: 2px 0;
}
.nav-dual-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2px 20px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid rgba(111, 138, 99, 0.35);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.nav-dual-top:hover {
  background: var(--accent-dark);
  color: var(--white);
}
.nav-dual-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2px 20px;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.nav-dual-bottom:hover {
  background: #7a5c42;
  color: var(--white);
}

/* Hamburger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(232,226,216,0.9);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* When the drawer is open, hide the header burger so it doesn't compete with the
   drawer's own × close button (two controls stacked in the corner). */
body.nav-open .burger { opacity: 0; pointer-events: none; }

/* Mobile nav overlay */
.mob-nav {
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(111,138,99,0.18);
  padding: 48px 28px 30px;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  overflow-y: auto;
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
}
.mob-nav.open { display: block; }

/* Mobile nav close button */
.mobile-nav-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,226,216,0.7);
  transition: transform 0.25s ease, color 0.2s;
}
.mobile-nav-close:hover { transform: rotate(90deg); color: var(--bg); }
.mobile-nav-close svg { width: 22px; height: 22px; display: block; }

/* Mobile nav links list */
.mob-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mob-nav-links > li > a,
.mob-nav-links > li > .dropdown-toggle {
  display: block;
  padding: 13px 0;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(232, 226, 216, 0.88);
  border-bottom: 1px solid rgba(232, 226, 216, 0.08);
  letter-spacing: 0.02em;
  text-decoration: none;
}
/* Parent items with submenus — flex row for chevron toggle */
.mob-nav-links > li.dropdown,
.mob-nav-links > li.menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid rgba(232, 226, 216, 0.08);
}
.mob-nav-links > li.dropdown > a,
.mob-nav-links > li.dropdown > .dropdown-toggle,
.mob-nav-links > li.menu-item-has-children > a {
  flex: 1;
  border-bottom: none;
  padding: 13px 0;
}

/* Mobile submenu toggle button (injected by JS) */
.mobile-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px 0 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.mobile-nav-toggle svg { display: block; transition: transform 0.3s ease; }
.mob-nav-links li.dropdown.submenu-open > .mobile-nav-toggle svg,
.mob-nav-links li.menu-item-has-children.submenu-open > .mobile-nav-toggle svg {
  transform: rotate(180deg);
}

/* Mobile submenus — reset the desktop dropdown's absolute positioning + chrome
   so the submenu flows INLINE under its parent (not detached at the drawer bottom) */
.mob-nav-links .dropdown-menu,
.mob-nav-links .sub-menu {
  display: none;
  position: static;
  top: auto;
  left: auto;
  min-width: 0;
  width: 100%;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mob-nav-links li.submenu-open > .dropdown-menu,
.mob-nav-links li.submenu-open > .sub-menu {
  display: block;
}
.mob-nav-links .dropdown-menu li,
.mob-nav-links .sub-menu li { list-style: none; }
.mob-nav-links .dropdown-menu li a,
.mob-nav-links .sub-menu li a {
  display: block;
  padding: 10px 0 10px 20px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--accent);
  border-bottom: 1px solid rgba(232,226,216,0.06);
  text-decoration: none;
}

/* Mobile CTA */
.mob-cta {
  margin-top: 24px;
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 2px;
  padding: 15px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
  text-decoration: none;
}
.mob-cta:hover { background: var(--accent-dark) !important; }

/* Desktop nav show/hide */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-right { display: flex; }
  .burger { display: none; }
}

/* ══════════════════════════════════════
   HERO — architectural split
   ══════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  padding-top: 70px;
}
.hero-text-panel {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 28px;
  position: relative;
  overflow: hidden;
}
/* Topographic grid decoration */
.hero-text-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(75,111,120,0.07) 38px, rgba(75,111,120,0.07) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(75,111,120,0.04) 38px, rgba(75,111,120,0.04) 39px);
  pointer-events: none;
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.05;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(232,226,216,0.62);
  margin-top: 22px;
  max-width: 440px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-img-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
/* Absolutely position the image so the text column / min-height sets the hero
   height — otherwise this portrait image's intrinsic height inflates the hero
   past the fold. The image then fills that height via object-fit: cover. */
.hero-img-panel picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 768px) {
  .hero { grid-template-columns: 55fr 45fr; }
  /* Align the hero copy to the site container gutter — the same x as the header
     logo — instead of letting margin-left:auto shove it against the image seam
     (which left a 236/56 gap split at 1440 and read as pushed toward center). */
  .hero-text-panel {
    padding: 70px 56px;
    padding-left: max(56px, calc((100vw - var(--container)) / 2 + 28px));
  }
  .hero-inner { max-width: 500px; margin-left: 0; }
}

/* ══════════════════════════════════════
   PAIN — editorial beats
   ══════════════════════════════════════ */
.pain-section { background: var(--bg); padding: var(--section-y) 0; }
.pain-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.pain-intro {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  font-style: italic;
  color: var(--primary-dark);
  max-width: 620px;
  margin-bottom: 58px;
  font-family: var(--font-heading);
}
.pain-beats { max-width: none; }
.pain-beat {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 28px;
  padding: 44px 0;
  border-top: 1px solid rgba(75,111,120,0.15);
  align-items: start;
  width: 60%;
}
.pain-beat:first-child { border-top: none; padding-top: 0; }
.pain-beat:nth-child(2) { margin-left: 20%; }
.pain-beat:nth-child(3) { margin-left: 40%; }
.beat-mark {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.35;
  line-height: 1;
  padding-top: 6px;
}
.beat-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.25;
}
.beat-content p { font-size: 16px; line-height: 1.88; color: rgba(47,58,61,0.82); }
.beat-content p + p { margin-top: 12px; }

/* ══════════════════════════════════════
   BRIDGE CTA — cinematic full-bleed
   ══════════════════════════════════════ */
.bridge-cta {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.bridge-cta-img { position: absolute; inset: 0; z-index: 0; }
.bridge-cta-img picture,
.bridge-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bridge-cta-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,38,40,0.88) 0%, rgba(26,38,40,0.75) 50%, rgba(26,38,40,0.25) 100%);
}
.bridge-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  max-width: 560px;
}
.bridge-inner h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 600; color: var(--bg); margin-bottom: 24px; }
.bridge-rule { width: 44px; height: 1.5px; background: var(--accent); margin-bottom: 24px; }
.bridge-inner p { font-size: 16.5px; line-height: 1.82; color: rgba(232,226,216,0.84); margin-bottom: 14px; }
.bridge-inner p:last-of-type { margin-bottom: 36px; }

/* ══════════════════════════════════════
   BIO — editorial portrait
   ══════════════════════════════════════ */
.bio-section { background: var(--white); padding: var(--section-y) 0; }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: start;
}
.bio-portrait { position: relative; }
.bio-portrait img {
  width: 100%;
  max-width: 400px;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: contrast(1.04) saturate(0.88);
}
.bio-portrait::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(26,38,40,0.25) 0%, transparent 100%);
  pointer-events: none;
}
.bio-credentials {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.bio-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.bio-rule { width: 36px; height: 1.5px; background: var(--accent); margin-bottom: 26px; }
.bio-text p { font-size: 16px; line-height: 1.9; color: rgba(47,58,61,0.84); margin-bottom: 16px; }
.bio-text-divider { width: 100%; height: 1px; background: rgba(75,111,120,0.15); margin: 24px 0; }
.bio-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid rgba(75,111,120,0.35);
  padding-bottom: 2px;
  transition: gap 0.2s, border-color 0.2s;
  margin-top: 22px;
  text-decoration: none;
}
.bio-cta-link:hover { gap: 14px; border-color: var(--primary); }
@media (min-width: 768px) {
  .bio-grid { grid-template-columns: 380px 1fr; align-items: center; }
}

/* ══════════════════════════════════════
   SERVICES — overlapping staggered cards
   ══════════════════════════════════════ */
.services-section {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(75,111,120,0.08) 38px, rgba(75,111,120,0.08) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(75,111,120,0.05) 38px, rgba(75,111,120,0.05) 39px);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.services-header { margin-bottom: 60px; }
.services-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.services-header h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 600; color: var(--text); }
.stagger-wrap { position: relative; }
.stagger-card {
  border-radius: 5px;
  padding: 50px 44px 46px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
  width: 60%;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
}
.stagger-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.09) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.stagger-card > div { position: relative; z-index: 1; }
.stagger-card:hover { transform: translateY(-7px) !important; box-shadow: 0 24px 54px rgba(47,58,61,0.27) !important; }
.stagger-card:nth-child(1) { margin-left: 0; background: var(--accent); box-shadow: 0 8px 32px rgba(47,58,61,0.14); }
.stagger-card:nth-child(2) { margin-left: 20%; margin-top: -36px; background: var(--primary); box-shadow: 0 12px 36px rgba(47,58,61,0.18); }
.stagger-card:nth-child(3) { margin-left: 40%; margin-top: -36px; background: var(--secondary); box-shadow: 0 16px 40px rgba(47,58,61,0.20); }
.stagger-card h3 { font-size: clamp(22px, 2.5vw, 28px); color: var(--white); margin-bottom: 12px; }
.stagger-card p { font-size: 15px; line-height: 1.72; color: rgba(250,250,248,0.86); flex: 1; margin-bottom: 26px; max-width: 380px; }
.stagger-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(250,250,248,0.4);
  padding-bottom: 2px;
  transition: gap 0.2s;
  text-decoration: none;
}
.stagger-link:hover { gap: 12px; }
.card-mtn {
  position: absolute;
  bottom: 16px;
  right: 20px;
  width: 72px;
  height: 44px;
  opacity: 0.15;
  color: white;
  pointer-events: none;
}

/* Mobile: stack cards */
@media (max-width: 767px) {
  .stagger-card { width: 100%; margin-left: 0 !important; margin-top: 16px !important; box-shadow: 0 6px 24px rgba(47,58,61,0.15) !important; }
  .stagger-card:first-child { margin-top: 0 !important; }
}

/* ══════════════════════════════════════
   FINAL CTA — diptych
   ══════════════════════════════════════ */
.final-cta { display: grid; grid-template-columns: 1fr; min-height: 580px; border-top: 1px solid rgba(111,138,99,0.18); }
.diptych-img { position: relative; min-height: 320px; overflow: hidden; }
.diptych-img picture,
.diptych-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.diptych-panel {
  background: var(--ink);
  padding: 64px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.diptych-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(75,111,120,0.05) 40px, rgba(75,111,120,0.05) 41px);
  pointer-events: none;
}
.diptych-panel h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.diptych-panel p {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(232,226,216,0.78);
  margin-bottom: 13px;
  position: relative;
  z-index: 1;
}
.diptych-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 26px 0 36px;
  position: relative;
  z-index: 1;
}
.diptych-contact a {
  font-size: 17px;
  font-weight: 500;
  color: var(--bg);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.2s;
  text-decoration: none;
}
.diptych-contact a:hover { color: rgba(232,226,216,0.65); }
.diptych-contact svg { flex-shrink: 0; width: 16px; height: 16px; opacity: 0.7; }

/* Form — WPForms replaces this fallback */
.dip-form { position: relative; z-index: 1; }
.dip-form-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,226,216,0.45);
  margin-bottom: 20px;
}
.dip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dfg { display: flex; flex-direction: column; margin-bottom: 12px; }
.dfg label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,226,216,0.5);
  margin-bottom: 5px;
}
.dfg input, .dfg textarea {
  background: rgba(232,226,216,0.06);
  border: 1px solid rgba(232,226,216,0.18);
  border-bottom: 1.5px solid rgba(232,226,216,0.35);
  border-radius: 0;
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--bg);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.dfg input::placeholder, .dfg textarea::placeholder { color: rgba(232,226,216,0.28); }
.dfg input:focus, .dfg textarea:focus { border-bottom-color: var(--accent); background: rgba(232,226,216,0.09); }
.dfg textarea { min-height: 90px; resize: vertical; }
.dip-submit {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.dip-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.16);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
  pointer-events: none;
}
.dip-submit:hover::after { transform: scaleX(1); }
.dip-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(111,138,99,0.44);
}
@media (min-width: 768px) {
  .final-cta { grid-template-columns: 1fr 1fr; }
  .diptych-img { min-height: unset; }
}
@media (max-width: 767px) {
  .dip-row { grid-template-columns: 1fr; }
  .diptych-panel { padding: 50px 28px; }
}

/* ══════════════════════════════════════
   WPForms overrides — diptych panel dark background
   ══════════════════════════════════════ */
.diptych-panel .wpforms-container .wpforms-form .wpforms-field input,
.diptych-panel .wpforms-container .wpforms-form .wpforms-field textarea {
  background: rgba(232,226,216,0.06) !important;
  border: 1px solid rgba(232,226,216,0.18) !important;
  border-bottom: 1.5px solid rgba(232,226,216,0.35) !important;
  border-radius: 0 !important;
  padding: 11px 12px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  color: var(--bg) !important;
  width: 100% !important;
  box-shadow: none !important;
}
.diptych-panel .wpforms-container .wpforms-form .wpforms-field input:focus,
.diptych-panel .wpforms-container .wpforms-form .wpforms-field textarea:focus {
  border-bottom-color: var(--accent) !important;
  background: rgba(232,226,216,0.09) !important;
  outline: none !important;
  box-shadow: none !important;
}
.diptych-panel .wpforms-container .wpforms-form .wpforms-field-label {
  font-family: var(--font-body) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(232,226,216,0.5) !important;
}
.diptych-panel .wpforms-container .wpforms-form .wpforms-field input::placeholder,
.diptych-panel .wpforms-container .wpforms-form .wpforms-field textarea::placeholder {
  color: rgba(232,226,216,0.28) !important;
}
/* Taller textarea — compensated by tighter field spacing so panel height stays fixed */
.diptych-panel .wpforms-container .wpforms-form .wpforms-field textarea {
  min-height: 140px !important;
  resize: none !important;
}
.diptych-panel .wpforms-container .wpforms-form .wpforms-field {
  margin-bottom: 10px !important;
}
.diptych-panel .wpforms-container .wpforms-form .wpforms-submit-container .wpforms-submit,
.diptych-panel .wpforms-form button[type="submit"] {
  width: 100% !important;
  padding: 15px !important;
  background: var(--accent) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.25s ease !important;
}
.diptych-panel .wpforms-container .wpforms-form .wpforms-submit-container .wpforms-submit:hover,
.diptych-panel .wpforms-form button[type="submit"]:hover {
  background: var(--accent-dark) !important;
}
/* Disable WPForms site-wide CSS */
.wpforms-container-full { font-family: var(--font-body); }

/* ── WPForms: strip field-row wrapper box (name field simple format) ──
   .wpforms-field-row is the wrapper WPForms renders around name sub-inputs.
   In simple format it's still emitted — remove any border/background on it. */
.wpforms-form .wpforms-field-row,
.wpforms-form .wpforms-field-row-block,
.wpforms-form .wpforms-name-row,
.wpforms-form .wpforms-name-row-first,
.wpforms-form .wpforms-name-row-last {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* Column wrappers inside a row */
.wpforms-form .wpforms-field-row-block .wpforms-field-medium,
.wpforms-form .wpforms-name-row-first .wpforms-field-medium,
.wpforms-form .wpforms-name-row-last .wpforms-field-medium {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* Sub-labels (First / Last) — hidden via sublabel_hide=1 in form data,
   but add CSS belt-and-suspenders */
.wpforms-form .wpforms-field-name .wpforms-field-sublabel {
  display: none !important;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background-color: var(--footer-bg);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(75,111,120,0.07) 38px, rgba(75,111,120,0.07) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(75,111,120,0.04) 38px, rgba(75,111,120,0.04) 39px);
  padding: 44px 0 26px;
  border-top: 1px solid rgba(111,138,99,0.18);
}
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.foot-brand:hover { opacity: 0.8; }
.foot-social { display: flex; align-items: center; gap: 22px; }
.foot-social a {
  color: var(--footer-text);
  opacity: 0.65;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.foot-social a:hover { opacity: 1; }
.foot-social svg { width: 19px; height: 19px; }
.pt-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--footer-text) !important;
  opacity: 0.65;
  border: 1px solid rgba(168,187,191,0.3);
  padding: 3px 7px;
  transition: opacity 0.2s;
  text-decoration: none;
}
.pt-badge:hover { opacity: 1 !important; }
/* PT verified badge image version */
.footer-pt-badge { display: inline-flex; align-items: center; opacity: 0.75; transition: opacity 0.2s; }
.footer-pt-badge:hover { opacity: 1; }
.footer-pt-badge img { height: 36px; width: auto; display: block; }
.foot-legal { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: rgba(168,187,191,0.78); }
.foot-legal a { color: rgba(168,187,191,0.78); transition: color 0.2s; text-decoration: none; }
.foot-legal a:hover { color: var(--footer-text); }
.foot-copy { font-size: 12px; color: rgba(168,187,191,0.38); }

/* ══════════════════════════════════════
   INNER PAGE STYLES
   ══════════════════════════════════════ */

/* Inner hero */
.inner-hero {
  position: relative;
  height: clamp(257px, 37.5vw, 450px);
  overflow: hidden;
  padding-top: 70px;
  display: flex;
  align-items: flex-end;
}
.inner-hero-img { position: absolute; inset: 0; }
.inner-hero-img picture,
.inner-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.inner-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,38,40,0.78) 0%, rgba(26,38,40,0.22) 60%, rgba(26,38,40,0.12) 100%);
}
.inner-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0 clamp(64px, 7vw, 92px);
  text-align: center;
}
.inner-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.1;
}
.inner-hero-sub {
  font-size: 16px;
  color: rgba(232,226,216,0.72);
  margin-top: 12px;
  font-weight: 500;
}

/* Service/specialty page content */
.service-body {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-y) 28px;
}
/* Plain h2+p content sections inside service body */
.service-body h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 52px 0 20px;
  line-height: 1.2;
  scroll-margin-top: 96px;
}
.service-body h2:first-child {
  margin-top: 0;
}
.service-body p {
  font-size: 17px;
  line-height: 1.88;
  color: rgba(47,58,61,0.84);
  margin-bottom: 18px;
}
.service-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.service-body ol { list-style: decimal; padding-left: 24px; margin-bottom: 20px; }
.service-body ul li,
.service-body ol li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(47,58,61,0.84);
  margin-bottom: 8px;
}
.service-body li::marker { color: var(--accent); }
.service-body a.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 40px;
  transition: background 0.25s, transform 0.2s;
  margin-top: 8px;
}
.service-body a.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
/* Legacy .svc-intro — remove centering if still present in content */
.svc-intro {
  text-align: left;
  max-width: 100%;
  margin: 0 0 18px;
}
.svc-intro p {
  font-size: 17px;
  line-height: 1.88;
  color: rgba(47,58,61,0.84);
  margin-bottom: 18px;
}
.svc-img-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: stretch;
  margin-bottom: 60px;
}
.svc-img-section--reverse { direction: rtl; }
.svc-img-section--reverse > * { direction: ltr; }
.svc-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}
.svc-text-col h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}
.svc-text-col h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.svc-text-col p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(47,58,61,0.84);
  margin-bottom: 14px;
}
.svc-text-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.svc-text-col ul li {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(47,58,61,0.84);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.svc-text-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}
.svc-img-col { overflow: hidden; }
.svc-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .svc-img-section { grid-template-columns: 1fr; direction: ltr; }
  .svc-img-section--reverse { direction: ltr; }
  .svc-img-col { min-height: 280px; }
}

/* About page */
.about-intro-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
  padding: var(--section-y) 0;
}
.about-headshot img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: contrast(1.04) saturate(0.88);
}
.about-bio-credentials {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.about-bio-name {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}
.about-bio-rule { width: 40px; height: 1.5px; background: var(--accent); margin-bottom: 28px; }
.about-bio p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(47,58,61,0.84);
  margin-bottom: 16px;
}
.about-section-heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
}
.about-section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--accent);
  margin-top: 14px;
}
@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-headshot img { height: 360px; max-width: 340px; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: var(--section-y) 0;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.contact-info p { font-size: 16px; line-height: 1.9; color: rgba(47,58,61,0.84); margin-bottom: 14px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
  text-decoration: none;
}
.contact-detail:hover { color: var(--primary); }
.contact-detail svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-form-col h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
/* WPForms on contact page (white bg) */
.contact-form-col .wpforms-container .wpforms-form .wpforms-field input,
.contact-form-col .wpforms-container .wpforms-form .wpforms-field textarea {
  background: var(--white) !important;
  border: 1px solid rgba(75,111,120,0.25) !important;
  border-bottom: 2px solid rgba(75,111,120,0.4) !important;
  border-radius: 2px !important;
  padding: 11px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  color: var(--text) !important;
  width: 100% !important;
  box-shadow: none !important;
  transition: border-color 0.2s !important;
}
.contact-form-col .wpforms-container .wpforms-form .wpforms-field input:focus,
.contact-form-col .wpforms-container .wpforms-form .wpforms-field textarea:focus {
  border-bottom-color: var(--accent) !important;
  outline: none !important;
  box-shadow: none !important;
}
.contact-form-col .wpforms-container .wpforms-form .wpforms-field-label {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
}
.contact-form-col .wpforms-container .wpforms-form .wpforms-submit-container .wpforms-submit {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 14px 36px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background 0.25s !important;
}
.contact-form-col .wpforms-container .wpforms-form .wpforms-submit-container .wpforms-submit:hover {
  background: var(--accent-dark) !important;
}
/* Strip row-wrapper box on contact page too */
.contact-form-col .wpforms-form .wpforms-field-row,
.contact-form-col .wpforms-form .wpforms-field-row-block,
.contact-form-col .wpforms-form .wpforms-name-row {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.contact-form-col .wpforms-form .wpforms-field-name .wpforms-field-sublabel {
  display: none !important;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form-col, .contact-info-col { min-width: 0; }
  /* Stack the WPForms name fields so the row can't force the column wide. */
  .contact-form-col .wpforms-form .wpforms-field-row { grid-template-columns: 1fr; display: block; }
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════ */
@media (max-width: 768px) { :root { --section-y: 52px; } }
@media (max-width: 767px) {
  .pain-beat { width: 100%; }
  .pain-beat:nth-child(2), .pain-beat:nth-child(3) { margin-left: 0; }
}
@media (max-width: 480px) { :root { --section-y: 44px; } }

/* Logo on small screens */
@media (max-width: 520px) {
  .logo-name { font-size: 22px; }
  .logo-practice-stack span { font-size: 9px; letter-spacing: 0.1em; }
  .logo-mark { width: 22px; height: 19px; }
}

/* ══════════════════════════════════════
   LEGAL PAGES — never fade in
   ══════════════════════════════════════ */
body.page-terms-and-conditions .reveal,
body.page-terms-and-conditions .fade-in,
body.page-terms-conditions .reveal,
body.page-terms-conditions .fade-in,
body.page-privacy-policy .reveal,
body.page-privacy-policy .fade-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* ══════════════════════════════════════
   FORCE VISIBLE — inner page fallback
   ══════════════════════════════════════ */
@keyframes forceVisible {
  to { opacity: 1; transform: none; }
}

/* Inner page hero content — force visible immediately (not a scroll-reveal element) */
.inner-hero-content,
.inner-hero h1,
.inner-hero-sub {
  animation: forceVisible 0s 0s forwards;
}

/* Scroll-reveal: .reveal/.revealed */
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVE INVARIANTS
   ══════════════════════════════════════ */
html, body { overflow-x: clip; }

@media (max-width: 768px) {
  .nav-logo { min-width: 0; flex: 1 1 auto; }
  .logo-wordmark { white-space: normal; min-width: 0; }
  .burger { flex-shrink: 0; margin-left: auto; }
  .nav-links > li { white-space: normal; }
  .dropdown-menu, .dropdown-menu li, .dropdown-menu a { white-space: normal; }
}

/* ── Mobile portrait: show the ENTIRE hero image top-to-bottom (mountain
   peaks + full foreground). The desktop hero absolutely-positions the image
   and crops with object-fit:cover; on mobile we let it flow at its natural
   aspect so nothing vertical is lost (width may crop instead). ── */
@media (max-width: 768px) {
  .hero { min-height: auto; }
  .hero-img-panel { min-height: 0; overflow: visible; }
  .hero-img-panel picture { position: static; }
  .hero-img-panel img { position: static; width: 100%; height: auto; object-fit: contain; }
  /* Final CTA: shrink the long email so it fits comfortably on one line. */
  .diptych-contact a[href^="mailto:"] { font-size: 14px; word-break: break-word; }
  /* Service / Specialty inner-hero: hide the small tagline on mobile to
     declutter the hero (blog hero sub is unaffected). */
  body.page-template-page-service-php .inner-hero-sub { display: none; }
  /* Taller inner-hero on mobile so the full vertical of these landscape hero
     photos shows — the 240px panel cropped subjects' heads off the top. */
  .inner-hero { height: 300px; }
}

/* Mobile drawer submenu — dual selector */
.mob-nav-links,
.mob-nav-links ul,
.mob-nav-links .sub-menu,
.mob-nav-links .dropdown-menu {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.mob-nav-links li,
.mob-nav-links .sub-menu li,
.mob-nav-links .dropdown-menu li {
  list-style: none !important;
}

/* ══════════════════════════════════════
   TOUCH DEVICE ACCESSIBILITY
   ══════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .nav-logo { min-height: 44px; padding: 6px 0; box-sizing: border-box; }
  .logo-practice-stack span { font-size: 14px !important; line-height: 1.3 !important; }

  .nav-links > li > a,
  .nav-links > li > .dropdown-toggle {
    font-size: 14px !important;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 4px !important;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dropdown-menu a,
  .sub-menu a,
  .mob-nav a,
  .mob-nav-links a {
    font-size: 14px !important;
    min-height: 44px;
    padding: 12px 0 !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .btn-accent, .btn-primary, .btn-light, .btn-outline-dark,
  .mob-cta, .bio-cta-link, .stagger-link {
    font-size: 14px !important;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bio-credentials, .about-bio-credentials { font-size: 14px !important; line-height: 1.4 !important; }

  .foot-copy { font-size: 14px !important; }
  .foot-brand { min-height: 44px; padding: 8px 0; display: inline-flex; align-items: center; }
  .foot-legal a { min-height: 44px; padding: 12px 0; display: inline-block; box-sizing: border-box; }
  .foot-social a { min-width: 44px !important; min-height: 44px !important; }
  .footer-pt-badge, .pt-badge { min-height: 44px !important; display: inline-flex !important; align-items: center !important; }

  a[href^="tel:"], a[href^="mailto:"] {
    min-height: 44px;
    padding: 12px 0;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .wpforms-form .wpforms-submit,
  .contact-form-col .wpforms-form .wpforms-submit,
  .diptych-panel .wpforms-form .wpforms-submit,
  button[type="submit"].wpforms-submit {
    min-height: 44px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    box-sizing: border-box !important;
  }

  .wpforms-container .wpforms-field-label,
  .wpforms-container.wpforms-container .wpforms-field-label {
    font-size: 14px !important;
  }

  .burger { min-width: 44px !important; min-height: 44px !important; }

  /* No parallax on touch */
  .diptych-img img { transform: none !important; }

  .foot-legal a { min-height: 44px; padding: 12px 0; display: inline-block; }

  /* Touch a11y — elements flagged by viewport sweep on iPad Pro 11 landscape
     (1194px is still a touch device: hover:none + pointer:coarse). Eyebrows,
     FAQ toggles, and the dark diptych form label/submit are small by design on
     desktop but must render >=14px on touch. */
  .hero-kicker { font-size: 14px !important; }
  .pain-eyebrow { font-size: 14px !important; }
  .faq-question, .faq-q-text { font-size: 18px !important; }
  .diptych-panel .wpforms-container .wpforms-form .wpforms-field-label {
    font-size: 14px !important;
  }
  .diptych-panel .wpforms-container .wpforms-form .wpforms-submit-container .wpforms-submit,
  .diptych-panel .wpforms-form button[type="submit"] {
    font-size: 14px !important;
  }
  /* Stacked header CTA — each link stretches to half the nav height; force
     each to a 44px tap target (desktop nav only shows here on tablets). */
  .nav-dual-top, .nav-dual-bottom { min-height: 44px !important; }

  /* Contact-page form label (4-class base rule sets it ~11px) + FAQ category
     divider eyebrow — bump to 14px on touch. */
  .contact-form-col .wpforms-container .wpforms-form .wpforms-field-label {
    font-size: 14px !important;
  }
  .contact-form-col .wpforms-container .wpforms-form .wpforms-submit-container .wpforms-submit {
    font-size: 14px !important;
  }
  .faq-group-eyebrow,
  .services-eyebrow { font-size: 14px !important; }
  /* Footer legal links are 12.5px by design on desktop; CLAUDE.md requires
     >=14px on touch. */
  .foot-legal, .foot-legal a { font-size: 14px !important; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; height: auto; padding-top: 96px; padding-bottom: 32px; }
}

/* ── Landing page: hero CTA row — prevent wrap on desktop ───────────── */
@media (min-width: 769px) {
  body.landing-page .lp-hero-ctas {
    flex-wrap: nowrap;
    align-items: center;
  }
}

/* ── Landing page: about headshot — portrait instead of square ───────── */
body.landing-page .lp-about-headshot {
  width: 220px;
  height: 275px;
}
body.landing-page .lp-about-headshot picture,
body.landing-page .lp-about-headshot img {
  width: 220px;
  height: 275px;
  object-fit: cover;
  object-position: top center;
}

/* ── Landing page header: match main-site dark nav ──────────────────── */
body.landing-page .lp-header {
  background-color: rgba(26, 38, 40, 0.97);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(75,111,120,0.07) 38px, rgba(75,111,120,0.07) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(75,111,120,0.04) 38px, rgba(75,111,120,0.04) 39px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 138, 99, 0.22);
}
body.landing-page .lp-header--scrolled {
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.32);
}

/* Logo + tagline on dark bg */
body.landing-page .lp-logo {
  color: var(--lp-wash);
}
body.landing-page .lp-logo-tag {
  color: rgba(232, 226, 216, 0.62);
}

/* Nav links on dark bg */
body.landing-page .lp-nav-links a {
  color: rgba(232, 226, 216, 0.78);
}
body.landing-page .lp-nav-links a:hover {
  color: var(--lp-wash);
}

/* Phone on dark bg */
body.landing-page .lp-header-phone {
  color: var(--lp-wash);
}
body.landing-page .lp-header-phone .lp-phone-call {
  color: rgba(111, 138, 99, 0.9);
}

/* Hamburger bars on dark bg */
body.landing-page .lp-menu-toggle span {
  background: var(--lp-wash);
}
