/* Fonts: Sora / Nunito Sans */
:root{
  --clay:#8C6A52;
  --taupe:#A48B6E;
  --taupe-light:#C4AF95;
  --taupe-pale:#EADFCF;
  --olive:#6E7D5B;
  --olive-dark:#57624A;
  --sand:#F2EDE5;
  --sand-warm:#EDE4D6;
  --ink:#3C352F;
  --ink-soft:#6B5F53;
  --white-warm:#FBF9F5;

  --font-head:'Sora', sans-serif;
  --font-body:'Nunito Sans', sans-serif;

  --container: 1180px;

  /* Footer bg/text convention consumed by parent .site-footer rule */
  --footer-bg:#3C352F;
  --footer-text:#D9CFC2;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  padding-bottom:0;
  background:var(--sand);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;cursor:pointer;}

h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:700;
  color:var(--ink);
  margin:0;
  text-wrap:balance;
  letter-spacing:-0.01em;
}
p{text-wrap:pretty;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow{
  font-family:var(--font-head);
  font-size:0.8rem;
  font-weight:600;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--olive-dark);
}

/* ---------- ORGANIC BLOBS (reusable, non-arch) ---------- */
.blob{
  position:absolute;
  border-radius:38% 62% 61% 39% / 42% 39% 61% 58%;
  filter:blur(0px);
  z-index:0;
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  font-family:var(--font-head);
  font-weight:600;
  font-size:0.98rem;
  letter-spacing:0.01em;
  padding:1rem 2.15rem;
  border:2px solid transparent;
  border-radius:4px 22px 4px 22px;
  transition:background-color .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--clay);
  color:var(--white-warm);
  box-shadow:0 0 0 0 rgba(140,106,82,0);
}
.btn-primary:hover{
  background:var(--olive-dark);
  box-shadow:0 8px 24px -8px rgba(87,98,74,0.55);
}
.btn-primary:focus-visible{
  outline:3px solid var(--taupe);
  outline-offset:3px;
}
.btn-outline{
  background:transparent;
  border-color:var(--taupe);
  color:var(--ink);
}
.btn-outline:hover{
  background:var(--taupe);
  color:var(--white-warm);
}

/* ---------- HEADER / NAV ---------- */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(251,249,245,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(164,139,110,0.25);
}
.nav-wrap{
  display:flex;
  align-items:center;
  /* Now that the wordmark carries the practice name (not just a small
     logo mark), its width is close to the phone+CTA cluster's width —
     plain space-between now gives near-even gaps AND near-even outer
     margins AND a near-centered nav, without the matched-column hack
     this needed back when the logo was tiny. */
  justify-content:space-between;
  padding:1rem clamp(1.25rem, 4vw, 3rem);
  gap:1rem;
  max-width:1360px;
  margin:0 auto;
}
.wordmark{
  font-family:var(--font-head);
  font-weight:800;
  font-size:1.18rem;
  letter-spacing:-0.01em;
  color:var(--ink);
  line-height:1.05;
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.wordmark-logo{
  height:66px;
  width:auto;
  border-radius:9px;
  display:block;
}
.wordmark-text{
  font-family:var(--font-head);
  font-weight:700;
  font-size:0.82rem;
  line-height:1.2;
  color:var(--ink);
  max-width:200px;
}

nav.primary-nav{display:flex;}
.nav-list{display:flex;align-items:center;gap:0.25rem;}
.nav-item{position:relative;}
.nav-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.3rem;
  padding:0.7rem 0.75rem;
  font-family:var(--font-head);
  font-size:0.92rem;
  font-weight:600;
  color:var(--ink);
  border-radius:6px;
  white-space:nowrap;
  transition:color .2s ease, background .2s ease;
}
.nav-link:hover{color:var(--olive-dark);background:rgba(110,125,91,0.08);}
.caret{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;opacity:0.6;}

/* Parent dropdown items (About, Services, Specialties) are toggles, not destinations */
.nav-item.has-dropdown > .nav-link{cursor:default;}

.dropdown{
  position:absolute;
  top:100%;
  left:0;
  min-width:250px;
  background:var(--white-warm);
  border:1px solid rgba(164,139,110,0.3);
  border-radius:4px 18px 4px 18px;
  box-shadow:0 18px 40px -14px rgba(60,53,47,0.25);
  padding:0.5rem;
  opacity:0;
  visibility:hidden;
  transform:translateY(6px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.dropdown a{
  display:block;
  padding:0.65rem 0.9rem;
  font-size:0.9rem;
  font-weight:500;
  border-radius:4px;
  color:var(--ink);
}
.dropdown a:hover{background:var(--taupe-pale);color:var(--olive-dark);}

.nav-right{display:flex;align-items:center;gap:1rem;}
.nav-phone{
  font-family:var(--font-head);
  font-weight:700;
  font-size:0.95rem;
  color:var(--clay);
  white-space:nowrap;
}
.nav-phone:hover{color:var(--olive-dark);}

.nav-schedule-btn{
  font-family:var(--font-head);
  font-weight:600;
  font-size:0.82rem;
  letter-spacing:0.01em;
  padding:0.55rem 1rem;
  background:var(--clay);
  color:var(--white-warm);
  border-radius:4px 14px 4px 14px;
  white-space:nowrap;
  transition:background-color .28s ease, box-shadow .28s ease;
}
.nav-schedule-btn:hover{
  background:var(--olive-dark);
  box-shadow:0 8px 24px -8px rgba(87,98,74,0.55);
}

.hamburger{
  display:none;
  width:42px;height:42px;
  border:none;
  background:transparent;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.hamburger span{
  width:24px;height:2px;background:var(--ink);
  transition:transform .25s ease, opacity .25s ease;
}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height:min(94vh, 840px);
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:clamp(1.5rem,4vw,2.25rem) clamp(1.25rem,5vw,4rem);
}
.hero-media{
  position:absolute; inset:0; z-index:0;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(115deg, rgba(44,38,32,0.32) 0%, rgba(44,38,32,0.08) 38%, rgba(44,38,32,0) 60%);
}
.hero-inner{
  position:relative;
  z-index:1;
  max-width:1180px;
  margin:0 auto;
  width:100%;
}
.hero-card{
  background:var(--sand);
  max-width:600px;
  padding:clamp(2.25rem,4vw,3.25rem);
  border-radius:8px 46px 8px 46px;
  box-shadow:0 3rem 5rem -2rem rgba(35,30,25,0.55);
  text-align:left;
}
.hero h1{
  font-size:clamp(2.1rem, 4vw, 3.2rem);
  line-height:1.1;
}
.hero h1 .weight-heavy{
  font-weight:800;
  color:var(--ink);
}
.hero h1 .weight-light{
  font-weight:400;
  color:var(--olive-dark);
  font-style:italic;
}
.hero-sub{
  margin:1.5rem 0 0;
  max-width:40ch;
  font-size:clamp(1rem, 1.3vw, 1.16rem);
  color:var(--ink-soft);
  line-height:1.55;
}
.hero-rule{
  width:52px; height:3px; margin:1.6rem 0;
  background:var(--taupe);
}
.hero-line{
  font-size:0.92rem;
  font-weight:600;
  color:var(--clay);
  letter-spacing:0.02em;
}
.hero-cta{margin-top:2rem;}

/* ---------- SECTION DIVIDER (organic, diagonal) ---------- */
.divider{
  position:relative;
  height:clamp(50px,7vw,90px);
  overflow:hidden;
}
.divider svg{width:100%;height:100%;display:block;}

/* ---------- PAIN PANELS ---------- */
.pain-panel{
  position:relative;
  padding:clamp(2.75rem,6vw,4.75rem) 0;
}
.pain-panel.bg-sand{background:var(--sand);}
.pain-panel.bg-clay{background:var(--sand-warm);}

.pain-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,4rem);
  align-items:center;
}
.pain-head{
  text-align:left;
}
.pain-head .eyebrow{display:block;margin-bottom:0.6rem;}
.pain-head h2{
  font-size:clamp(1.6rem,3vw,2.35rem);
  line-height:1.18;
}
.pain-body{
  text-align:right;
}
.pain-body p{
  font-size:1.08rem;
  color:var(--ink-soft);
  margin:0 0 1rem;
}
.pain-body p:last-child{margin-bottom:0;}

.pain-panel.text-only .pain-row{grid-template-columns:1fr;}
.pain-center-frame{
  position:relative;
  max-width:820px;
  margin:0 auto;
}
.pain-center-blob{
  position:absolute;
  width:64%; height:78%;
  top:-12%; right:-9%;
  background:var(--taupe-pale);
  border-radius:44% 56% 60% 40% / 50% 44% 56% 50%;
  z-index:0;
}
.pain-center-blob.olive{ background:rgba(110,125,91,0.18); left:-9%; right:auto; }
.pain-panel.text-only .pain-center{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:0 auto;
  text-align:center;
  background:var(--white-warm);
  padding:clamp(2.25rem,4.5vw,3.5rem);
  border-radius:6px 44px 6px 44px;
  box-shadow:0 2rem 4rem -2rem rgba(60,53,47,0.28);
}
.quote-frame{position:relative; margin-top:3.75rem;}
.quote-mark{
  position:absolute; top:-2.6rem; left:50%; transform:translateX(-50%);
  font-family:var(--font-head); font-size:5.5rem; line-height:1;
  color:var(--taupe-light); opacity:0.7; z-index:0; pointer-events:none;
}
.pull-quote{
  position:relative; z-index:1;
  font-family:var(--font-head);
  font-style:italic;
  font-weight:500;
  font-size:clamp(1rem,1.3vw,1.15rem);
  line-height:1.5;
  color:var(--clay);
  margin:0;
}
.standout{
  font-family:var(--font-head);
  font-weight:700;
  font-size:clamp(1.15rem,1.8vw,1.4rem);
  color:var(--olive-dark);
  margin:1.4rem 0;
}
.pain-panel.text-only .eyebrow{display:block;margin-bottom:0.6rem;}
.pain-panel.text-only h2{
  font-size:clamp(1.5rem,2.8vw,2.1rem);
  margin-bottom:0.5rem;
}
.pain-panel.text-only .lede{
  font-size:1.08rem;
  color:var(--ink-soft);
  max-width:56ch;
  margin:0 auto;
}

/* image-vignette panels: full-width single column, image offset as organic blob */
.pain-panel.with-image .pain-row{
  grid-template-columns:0.85fr 1.15fr;
}
.pain-panel.with-image.flip .pain-row{
  grid-template-columns:1.15fr 0.85fr;
}
.pain-panel.with-image.flip .pain-media{order:2;}
.pain-panel.with-image.flip .pain-copy{order:1;}

.pain-media{
  position:relative;
  display:flex;
  justify-content:center;
}
.pain-media-shape{
  position:relative;
  width:min(100%, 420px);
  aspect-ratio:4/5;
  border-radius:63% 37% 41% 59% / 55% 48% 52% 45%;
  overflow:hidden;
  box-shadow:0 30px 60px -22px rgba(60,53,47,0.35);
}
.pain-media-shape img{
  width:100%;height:100%;object-fit:cover;
}
.pain-panel.with-image.flip .pain-media-shape{
  border-radius:37% 63% 59% 41% / 45% 52% 48% 55%;
}

.pain-copy{text-align:left;}
.pain-copy.mirror-right{text-align:right;}
.pain-copy .eyebrow{display:block;margin-bottom:0.6rem;}
.pain-copy h2{
  font-size:clamp(1.55rem,2.9vw,2.25rem);
  margin-bottom:1.1rem;
  line-height:1.2;
}
.pain-copy p{
  font-size:1.06rem;
  color:var(--ink-soft);
  margin:0 0 0.95rem;
}
.pain-copy p:last-child{margin-bottom:0;}

.panel-five{
  position:relative;
  background:var(--olive);
  color:var(--white-warm);
}
.panel-five .eyebrow{color:var(--taupe-pale);}
.panel-five h2{color:var(--white-warm);}
.panel-five p{color:rgba(251,249,245,0.92);}
.panel-five .pain-media-shape{box-shadow:0 30px 60px -18px rgba(0,0,0,0.4);}

/* ---------- BRIDGE CTA (mockup A style) ---------- */
.bridge-cta{
  position:relative;
  padding:clamp(3.5rem,7vw,5.5rem) 0;
  background-image:linear-gradient(180deg, rgba(60,53,47,0.72), rgba(60,53,47,0.82)), url('../images/home-cta1-wm.jpg');
  background-image:linear-gradient(180deg, rgba(60,53,47,0.72), rgba(60,53,47,0.82)), image-set(url('../images/home-cta1-wm.webp') type('image/webp'), url('../images/home-cta1-wm.jpg') type('image/jpeg'));
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  text-align:center;
  color:var(--white-warm);
}
@media (hover:none) and (pointer:coarse){
  .bridge-cta{background-attachment:scroll;}
}
.bridge-inner{
  max-width:680px;
  margin:0 auto;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:26px;
}
.mirror-mark{
  display:inline-flex;
  align-items:center;
  gap:1rem;
  margin-bottom:1.75rem;
}
.mirror-mark span{
  width:34px;height:34px;
  border:2px solid var(--taupe-light);
  border-radius:63% 37% 40% 60% / 55% 45% 55% 45%;
}
.mirror-mark span.right{transform:scaleX(-1);}
.bridge-cta h2{
  color:var(--white-warm);
  font-size:clamp(1.9rem,1.5rem + 1.6vw,2.6rem);
  font-weight:800;
}
.bridge-cta .pull-quote{
  color:var(--taupe);
  font-size:1.4rem;
}
.bridge-cta p.body-copy{
  font-size:1.08rem;
  color:#EFE7DA;
  max-width:56ch;
}

/* ---------- ABOUT / BIO ---------- */
.about{
  padding:clamp(3rem,6vw,5rem) 0;
  background:var(--sand);
  box-shadow:0 1px 0 rgba(164,139,110,0.22);
}
.about-grid{
  display:grid;
  grid-template-columns:0.7fr 1.3fr;
  gap:clamp(2.5rem,5vw,4.5rem);
  align-items:stretch;
  max-width:1040px;
  margin:0 auto;
}
.about-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  background:#948367;
  border-radius:6px 34px 6px 34px;
  box-shadow:0 20px 40px -22px rgba(60,53,47,0.3);
  padding:clamp(1.5rem,3vw,2.5rem);
}
.about-logo img{width:100%;max-width:320px;height:auto;}
.about-intro{
  max-width:none;
  margin:0;
  text-align:left;
}
.about-intro .eyebrow{display:block;margin-bottom:0.75rem;}
.about-intro h2{
  font-size:clamp(1.7rem,3.2vw,2.3rem);
  font-weight:700;
  margin-bottom:0.9rem;
}
.about-intro p{
  font-size:1.12rem;
  color:var(--ink-soft);
  margin:0 0 1rem;
}
.about-intro .more-link{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  margin-top:0.5rem;
  font-family:var(--font-head);
  font-weight:700;
  color:var(--clay);
  text-decoration:none;
  border-bottom:2px solid var(--taupe-light);
  padding-bottom:3px;
  transition:color .2s ease, border-color .2s ease;
}
.about-intro .more-link:hover{color:var(--olive-dark);border-color:var(--olive-dark);}

/* ---------- TEAM GRID (Version C — two-provider professional grid) ---------- */
.team-section{
  padding:clamp(3rem,6vw,5rem) 0;
  background:var(--sand-warm);
}
.team-trust-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:0.75rem;
  max-width:1040px;
  margin:0 auto clamp(2.25rem,4vw,3.25rem);
}
.team-trust-chip{
  font-family:var(--font-head);
  font-weight:600;
  font-size:0.82rem;
  letter-spacing:0.02em;
  color:var(--olive-dark);
  background:var(--white-warm);
  border:1px solid rgba(164,139,110,0.35);
  border-radius:4px 16px 4px 16px;
  padding:0.6rem 1.1rem;
}
.team-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:clamp(1.75rem,3.5vw,2.5rem);
  max-width:1040px;
  margin:0 auto;
}
.team-card{
  background:var(--white-warm);
  border-radius:6px 34px 6px 34px;
  padding:clamp(1.75rem,3vw,2.25rem);
  box-shadow:0 20px 40px -26px rgba(60,53,47,0.3);
  text-align:left;
  display:flex;
  flex-direction:column;
}
.team-photo{
  width:100%;
  aspect-ratio:4/5;
  border-radius:4px 22px 4px 22px;
  overflow:hidden;
  margin-bottom:1.25rem;
}
.team-photo img{width:100%;height:100%;object-fit:cover;}
.team-card h3{font-size:1.25rem;margin-bottom:0.25rem;}
.team-card .team-credentials{
  font-family:var(--font-body);
  font-weight:700;
  font-size:0.78rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--olive-dark);
  margin-bottom:0.9rem;
}
.team-card p{
  font-size:1rem;
  color:var(--ink-soft);
  margin:0 0 1rem;
}
.team-card .more-link{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  margin-top:auto;
  font-family:var(--font-head);
  font-weight:700;
  color:var(--clay);
  border-bottom:2px solid var(--taupe-light);
  padding-bottom:2px;
  align-self:flex-start;
}
.team-card .more-link:hover{color:var(--olive-dark);border-color:var(--olive-dark);}

/* ---------- SERVICES ("What We Offer" -- mockup A color) ---------- */
.services{
  padding:clamp(3.5rem,6.5vw,5.5rem) 0 clamp(2rem,3.5vw,2.75rem);
  background:#6E7D5B94;
  text-align:center;
  box-shadow:0 1px 0 rgba(164,139,110,0.24);
}
.services .eyebrow{display:block;margin-bottom:0.6rem;color:var(--white-warm);}
.services h2{
  font-size:clamp(1.8rem,3.4vw,2.5rem);
  color:var(--white-warm);
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.4rem;
  margin-top:clamp(2.5rem,5vw,3.5rem);
}
.service-card{
  position:relative;
  background:#463D34;
  border-radius:6px 26px 6px 26px;
  padding:2.1rem 1.6rem;
  text-align:left;
  display:flex;
  flex-direction:column;
  gap:1.1rem;
  box-shadow:0 0 0 0 rgba(0,0,0,0);
  transition:background .28s ease, transform .28s ease, box-shadow .28s ease;
}
.service-card:hover{
  background:#4F453B;
  transform:translateY(-8px);
  box-shadow:0 22px 42px -20px rgba(20,17,14,0.55);
}
.service-card a.service-card-link{color:inherit;text-decoration:none;display:flex;flex-direction:column;gap:1.1rem;}
/* Stretched-link: extend the click target over the card's full padded face,
   not just the icon/heading/blurb the anchor visually wraps. */
.service-card a.service-card-link::after{
  content:"";
  position:absolute;
  inset:0;
}
.service-icon{
  display:flex; align-items:center; justify-content:center;
  width:48px; height:48px;
  border-radius:50%;
  background:rgba(164,139,110,0.22);
  transition:transform .35s cubic-bezier(0.34,1.56,0.64,1), background .28s ease;
}
.service-card:hover .service-icon{
  transform:scale(1.12) rotate(-6deg);
  background:rgba(164,139,110,0.4);
}
.service-icon svg{width:24px;height:24px;stroke:var(--taupe-light);fill:none;}

/* staggered entrance for each card -- uses the standalone `translate` property
   (independent of `transform`) so the entrance delay never lags the hover lift */
.service-card.reveal{
  opacity:0;
  transform:none;
  translate:0 28px;
  transition:opacity .7s cubic-bezier(0.16,1,0.3,1) var(--reveal-delay,0s),
             translate .7s cubic-bezier(0.16,1,0.3,1) var(--reveal-delay,0s),
             background .28s ease, transform .28s ease, box-shadow .28s ease;
}
.service-card.reveal.is-visible{opacity:1;translate:0 0;}
.service-grid .service-card.reveal:nth-child(1){--reveal-delay:0s;}
.service-grid .service-card.reveal:nth-child(2){--reveal-delay:.12s;}
.service-grid .service-card.reveal:nth-child(3){--reveal-delay:.24s;}
.service-grid .service-card.reveal:nth-child(4){--reveal-delay:.36s;}
.service-card h3{
  color:var(--white-warm);
  font-size:1.12rem;
}
.service-card p{
  color:#C9BEB0;
  font-size:0.92rem;
  margin:0;
}

/* ---------- FINAL CTA ---------- */
.final-cta{
  position:relative;
  padding:clamp(3.5rem,7vw,5.5rem) 0;
  background-image:linear-gradient(180deg, rgba(60,53,47,0.78), rgba(60,53,47,0.86)), url('../images/home-cta2-wm.jpg');
  background-image:linear-gradient(180deg, rgba(60,53,47,0.78), rgba(60,53,47,0.86)), image-set(url('../images/home-cta2-wm.webp') type('image/webp'), url('../images/home-cta2-wm.jpg') type('image/jpeg'));
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  color:var(--white-warm);
}
@media (hover:none) and (pointer:coarse){
  .final-cta{background-attachment:scroll;}
}
.final-cta-inner{
  max-width:620px;
  margin:0 auto;
  text-align:center;
  position:relative;
}
.final-cta-inner .mirror-mark span{border-color:var(--taupe);}
.final-cta h2{
  color:var(--white-warm);
  font-size:clamp(1.8rem,3.6vw,2.6rem);
  margin-bottom:1.1rem;
}
.final-cta p.body-copy{
  font-size:1.08rem;
  color:rgba(251,249,245,0.9);
  margin:0 auto 2.5rem;
  max-width:52ch;
}

/* ---- Final CTA: two-column split, compact form on the right ---- */
.final-cta-inner.final-cta-split{
  max-width:1080px;
  text-align:left;
  display:grid;
  grid-template-columns:1fr 480px;
  gap:clamp(2.5rem,5vw,3.5rem);
  align-items:center;
}
@media (max-width:1024px){
  .final-cta-inner.final-cta-split{grid-template-columns:1fr 1fr;}
  .nav-wrap{--nav-side:225px;}
  .nav-link{padding:0.7rem 0.45rem;font-size:0.88rem;}
  .nav-right{gap:0.7rem;}
  .nav-schedule-btn{font-size:0.78rem;padding:0.5rem 0.85rem;}
}
.final-cta-copy h2{text-align:left;}
.final-cta-copy p.body-copy{margin:0 0 1.75rem;max-width:46ch;text-align:left;}
.final-cta-copy .contact-direct{
  justify-content:flex-start;
  border-bottom:none;
  padding-bottom:0;
  margin-bottom:0;
}
.final-cta-copy .contact-direct .label{color:rgba(251,249,245,0.7);}
.final-cta-copy .contact-direct a{color:var(--taupe-light);}
.final-cta-copy .contact-direct a:hover{color:var(--white-warm);}
.contact-panel-compact{padding:clamp(1.5rem,3vw,2rem);}
.contact-panel-compact .form-row{gap:0.7rem;}
.contact-panel-compact .form-field{margin-bottom:0.7rem;}
.contact-panel-compact .form-field label{font-size:0.8rem;margin-bottom:0.3rem;}
.contact-panel-compact .form-field input,
.contact-panel-compact .form-field textarea{padding:0.6rem 0.75rem;font-size:0.92rem;}
.contact-panel-compact .form-field textarea{min-height:70px;}
.contact-panel-compact .form-submit{padding:0.75rem 1.5rem;font-size:0.92rem;}

.contact-panel{
  background:var(--white-warm);
  border-radius:8px 32px 8px 32px;
  padding:clamp(2rem,4vw,2.75rem);
  text-align:left;
  color:var(--ink);
  box-shadow:0 40px 80px -30px rgba(0,0,0,0.5);
}
.contact-direct{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  justify-content:center;
  margin-bottom:1.75rem;
  padding-bottom:1.75rem;
  border-bottom:1px solid rgba(164,139,110,0.35);
}
.contact-direct a{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.05rem;
  color:var(--clay);
}
.contact-direct a:hover{color:var(--olive-dark);}
.contact-direct .label{
  display:block;
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.7rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--ink-soft);
  margin-bottom:0.2rem;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.form-field{margin-bottom:1rem;}
.form-field label{
  display:block;
  font-family:var(--font-head);
  font-weight:600;
  font-size:0.85rem;
  margin-bottom:0.4rem;
  color:var(--ink);
}
.form-field input,
.form-field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:1rem;
  padding:0.8rem 0.95rem;
  border:1.5px solid rgba(164,139,110,0.45);
  border-radius:4px 14px 4px 14px;
  background:var(--sand);
  color:var(--ink);
  transition:border-color .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--clay);
  background:var(--white-warm);
}
.form-field textarea{resize:vertical;min-height:110px;}
.form-submit{
  width:100%;
  justify-content:center;
  margin-top:0.5rem;
}

/* ---------- FOOTER (mockup A style: two justified rows + divider) ---------- */
.site-footer{
  background:var(--ink);
  color:#D9CFC2;
  padding:clamp(2.75rem,5vw,4rem) 0;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:2.5rem;
  flex-wrap:wrap;
  padding-bottom:2.5rem;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:1rem;
}
.footer-brand img{height:56px;width:auto;border-radius:10px;display:block;}
.footer-brand-text{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.1rem;
  color:var(--white-warm);
}
.footer-brand-text small{
  display:block;
  font-family:var(--font-body);
  font-weight:400;
  font-size:0.84rem;
  color:var(--taupe-light);
  margin-top:3px;
}
.footer-social{display:flex;gap:0.75rem;}
.footer-social a{
  width:38px;height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1.5px solid rgba(164,139,110,0.55);
  border-radius:50%;
  color:var(--sand);
  transition:background .2s ease, border-color .2s ease;
}
.footer-social a:hover{background:var(--taupe);border-color:var(--taupe);}
.footer-social svg{width:17px;height:17px;fill:currentColor;}

.footer-bottom{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.5rem;
  padding-top:1.75rem;
  text-align:center;
}
.footer-legal{
  display:flex;
  gap:1.5rem;
  flex-wrap:wrap;
  justify-content:center;
  font-size:0.85rem;
}
.footer-legal a{color:var(--taupe-light);}
.footer-legal a:hover{color:var(--white-warm);}
.footer-legal a.footer-legal-full{flex-basis:100%;margin-top:0.35rem;text-align:center;}
.footer-payments{
  display:flex;
  align-items:center;
  gap:0.9rem;
  flex-wrap:wrap;
}
.payments-text{
  font-size:0.8rem;
  color:rgba(242,237,229,0.6);
  white-space:nowrap;
}
.payments-text strong{color:var(--taupe-light);}
.footer-card-icons{display:flex;gap:0.5rem;}
.footer-card-icons svg{border-radius:4px;box-shadow:0 0 0 1px rgba(242,237,229,0.15);}
.footer-copy-inline{padding-top:0;}
.footer-payments-standalone{justify-content:center;padding-top:1.5rem;}
.footer-copy{
  font-size:0.8rem;
  color:rgba(242,237,229,0.6);
  padding-top:1.5rem;
  text-align:center;
}

/* ---------- SCROLL REVEAL (max 3 uses) ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .9s cubic-bezier(0.16,1,0.3,1), transform .9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
}

/* ---------- INNER PAGES ---------- */
.inner-hero{
  position:relative;
  min-height:525px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  margin-bottom:0;
}
.inner-hero img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
/* Source crop has both faces in the upper third — default center crop cut
   off both heads, leaving only chins/mugs visible in the short hero band. */
.inner-hero img[src*="couples-therapy-hero"]{ object-position:center 12%; }
/* Both people's heads sit in the top third of the source photo — default
   center crop cut off the man's forehead and the therapist's whole face. */
.inner-hero img[src*="focus-forward-behavioral-support-program-hero"]{ object-position:center 5%; }
.inner-hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(44,38,32,0.15) 0%, rgba(44,38,32,0.62) 100%);
}
.inner-hero-content{
  position:relative; z-index:1;
  padding:clamp(1.5rem,3vw,2.75rem) 0;
  width:100%;
}
.inner-hero-content .eyebrow{color:var(--taupe-pale);display:block;margin-bottom:0.5rem;}
.inner-hero-content h1{
  color:var(--white-warm);
  font-size:clamp(1.9rem,3.6vw,2.75rem);
}
/* No-hero-image fallback (page.php) renders <section class="inner-hero-content">
   standalone with no dark photo behind it — white text is invisible there. */
section.inner-hero-content h1{color:var(--ink);}
/* Texas Consumer Protection page only — title centered per client request. */
.page-texas-consumer-protection section.inner-hero-content h1{text-align:center;}
.inner-content{
  padding:60px 0;
}
.inner-lead{margin:0;text-align:left;}
.inner-lead h2{
  font-family:var(--font-head);
  font-style:normal;
  font-weight:600;
  color:var(--ink);
  font-size:clamp(1.7rem,3vw,2.3rem);
  line-height:1.15;
}
.service-body > h2,
.service-body > .svc-img-section{margin-top:60px;}
.service-body > .inner-lead{margin-top:0;}
/* The first/last child of any .service-body inside a section carries the
   section's own top/bottom padding already — an element-level margin on
   top of that makes the visible gap uneven (confirmed on the closing
   section: h2's 46-84px margin-top stacked on the section padding, so the
   top gap read much larger than the bottom). Zero both ends, !important
   because .service-body > h2 above is otherwise equal-or-higher specificity
   depending on selector order — so the section's padding is the only thing
   measured, top and bottom, everywhere this pattern is used. */
.inner-content .service-body > *:first-child{margin-top:0 !important;}
.inner-content .service-body > *:last-child{margin-bottom:0 !important;}
.service-body h2{
  font-family:var(--font-head);
  font-weight:600;
  font-size:clamp(1.7rem,3vw,2.3rem);
  line-height:1.15;
  margin-bottom:0.9rem;
}
.service-body p{
  font-size:1.08rem;
  color:var(--ink-soft);
  margin:0 0 1rem;
}
.service-body em{color:var(--clay);font-style:italic;}
.service-body ul{list-style:disc;padding-left:1.5rem;margin:0 0 1.25rem;}
.service-body li{margin-bottom:0.5rem;color:var(--ink-soft);font-size:1.06rem;}
.service-body blockquote{
  font-family:var(--font-head);font-style:italic;color:var(--clay);
  border-left:3px solid var(--taupe);margin:1.5rem 0;padding:0.25rem 0 0.25rem 1.25rem;
}
.service-body blockquote p{margin:0 0 0.4rem;color:var(--clay);}
.service-body h3{font-size:1.2rem;font-weight:600;margin:1.5rem 0 0.5rem;color:var(--ink);}
.svc-img-section{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,4vw,3.25rem);
  align-items:start;
  margin:0;
}
.svc-img-section--reverse{direction:rtl;}
.svc-img-section--reverse > *{direction:ltr;}
.svc-text-col{display:flex;flex-direction:column;justify-content:center;}
/* Flex containers don't collapse a child's own margin -- the last
   paragraph's margin-bottom was counting toward the column's height,
   so align-items:stretch matched the image to text-plus-trailing-margin
   instead of where the text itself actually ends, leaving the image
   looking taller than the copy. */
.svc-text-col > *:last-child{margin-bottom:0;}
.svc-img-col{border-radius:6px 32px 6px 32px;overflow:hidden;}
/* Desktop: show each body photo at its own native size/aspect ratio
   instead of stretching+cropping it to match the text column's height.
   The width/height="700"/"875" HTML attributes exist only to reserve
   layout space pre-load (preventing CLS) -- aspect-ratio:auto tells the
   browser to ignore that hinted ratio once the real image is available
   and use its true intrinsic proportions, so mixed portrait/landscape
   photos across sections all render uncropped. */
.svc-img-col img{width:100%;height:auto;aspect-ratio:auto;object-fit:cover;}
.svc-closing{margin-top:60px;}

/* Medication Management's photo (focus-forward-body4-wm.jpg) is landscape
   -- stack it full-width above the heading/text instead of beside it,
   since a single wide image beside a tall text column reads oddly in a
   two-column grid regardless of crop. */
.section-closing .svc-img-section{grid-template-columns:1fr;align-items:start;direction:ltr;}
.section-closing .svc-img-col{order:-1;margin-bottom:clamp(1.5rem,3vw,2rem);}

/* Team / About page bio rows */
.about-bio-row{
  display:grid;
  /* Photo column pinned to its own max-width (380px) instead of an fr
     share — the text column (About Kimm + About Cali both use this,
     Rule #2 shared template) claims all the remaining space instead of
     a fixed 1.15fr, so the long QMHP-CS credential line has room to sit
     on one line without shrinking the headshot. */
  grid-template-columns:minmax(280px,380px) 1fr;
  gap:clamp(2.5rem,5vw,4rem);
  align-items:start;
  margin-top:60px;
}
.about-bio-row:first-child{margin-top:0;}
.about-bio-photo{
  border-radius:6px 32px 6px 32px;
  overflow:hidden;
  aspect-ratio:4/5;
  max-width:380px;
  margin:0 auto;
  position:sticky;
  top:clamp(90px,12vh,140px);
  box-shadow:0 20px 40px -26px rgba(60,53,47,0.3);
}
.about-bio-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.about-bio-card{
  background:var(--white-warm);
  border-radius:6px 32px 6px 32px;
  padding:clamp(1.75rem,3vw,2.5rem);
  box-shadow:0 20px 40px -26px rgba(60,53,47,0.3);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.about-bio-card h2{margin-bottom:0.3rem;}
.about-bio-card .team-credentials{
  font-family:var(--font-body);font-weight:700;font-size:0.8rem;
  letter-spacing:0.06em;text-transform:uppercase;color:var(--olive-dark);
  margin:0 0 1.1rem;
  white-space:nowrap;
}
.about-bio-card p{color:var(--ink-soft);font-size:1.06rem;margin:0 0 1rem;}
.about-bio-card > *:last-child{margin-bottom:0;}

/* FAQ accordion (Numbered Timeline approach) */
.faq-list{max-width:840px;margin:0 auto;}
.faq-item{
  border-top:1px solid rgba(164,139,110,0.35);
  padding:1.75rem 0;
}
.faq-item:last-child{border-bottom:1px solid rgba(164,139,110,0.35);}
.faq-item-head{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:1.25rem;
  cursor:pointer;
  background:none;
  border:none;
  width:100%;
  text-align:left;
  padding:0;
  font-family:inherit;
}
.faq-item-head h3{
  font-size:1.2rem;
  font-weight:600;
}
.faq-toggle{
  width:28px;height:28px;flex-shrink:0;
  border-radius:50%;
  border:1.5px solid var(--taupe);
  position:relative;
}
.faq-toggle::before,.faq-toggle::after{
  content:"";position:absolute;background:var(--olive-dark);
  top:50%;left:50%;transform:translate(-50%,-50%);
}
.faq-toggle::before{width:10px;height:2px;}
.faq-toggle::after{width:2px;height:10px;transition:transform .3s cubic-bezier(0.22,1,0.36,1);}
.faq-item.open .faq-toggle::after{transform:translate(-50%,-50%) scaleY(0);}
.faq-answer{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows .4s cubic-bezier(0.22,1,0.36,1);
}
.faq-item.open .faq-answer{grid-template-rows:1fr;}
.faq-answer-inner{overflow:hidden;}
.faq-answer p{
  margin:0;
  padding-top:1rem;
  font-size:1.06rem;
  line-height:1.65;
  color:var(--ink-soft);
}

/* Contact page */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2.5rem,5vw,4rem);
  align-items:stretch;
}
.contact-grid .contact-info-card,
.contact-grid .contact-form-col{height:100%;}
.contact-grid .contact-form-col{display:flex;}
.contact-grid .contact-panel{width:100%;display:flex;flex-direction:column;justify-content:center;}
.contact-info-card{
  background:var(--sand-warm);
  border-radius:6px 32px 6px 32px;
  padding:clamp(1.75rem,3vw,2.5rem);
}
.contact-info-card h2{margin-bottom:1rem;}
.contact-info-card p{color:var(--ink-soft);margin:0 0 1.5rem;}
.contact-info-row{margin-bottom:1.25rem;}
.contact-info-card > *:last-child{margin-bottom:0;}
.contact-info-row .label{
  display:block;font-family:var(--font-body);font-weight:600;font-size:0.7rem;
  letter-spacing:0.1em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:0.25rem;
}
.contact-info-row a,.contact-info-row span{font-family:var(--font-head);font-weight:700;font-size:1.05rem;color:var(--clay);}
.contact-info-row a:hover{color:var(--olive-dark);}
.contact-form-col .contact-panel{box-shadow:0 20px 40px -26px rgba(60,53,47,0.3);}

/* Legal pages */
.legal-body{max-width:840px;margin:0 auto;}
.legal-body h2{margin-top:2rem;margin-bottom:0.75rem;font-size:1.4rem;}
.legal-body p,.legal-body li{color:var(--ink-soft);font-size:1.02rem;margin:0 0 1rem;}
.legal-body ul{list-style:disc;padding-left:1.5rem;}

/* Blog */
.blog-hero-sub{font-style:italic;color:var(--ink-soft);max-width:56ch;}
.blog-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:2.5rem;}
.blog-card{border-top:1px solid rgba(164,139,110,0.3);padding-top:2rem;}
.blog-card:first-child{border-top:none;padding-top:0;}
.blog-card-meta{font-size:0.82rem;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;color:var(--olive-dark);margin-bottom:0.5rem;}
.blog-card h2{font-size:1.5rem;margin-bottom:0.6rem;}
.blog-card p{color:var(--ink-soft);margin:0 0 0.75rem;}
.blog-card .more-link{font-family:var(--font-head);font-weight:700;color:var(--clay);}
.blog-card .more-link:hover{color:var(--olive-dark);}
.single-post-body{max-width:700px;margin:0 auto;font-size:1.12rem;line-height:1.85;color:var(--ink-soft);}
.single-post-body p:first-of-type::first-letter{
  font-family:var(--font-head);font-weight:800;font-size:3.4rem;line-height:0.8;
  float:left;padding:0.1rem 0.5rem 0 0;color:var(--clay);
}
.single-post-body h2,.single-post-body h3{color:var(--ink);margin:2rem 0 0.75rem;}
.single-post-body blockquote{
  font-family:var(--font-head);font-style:italic;font-size:1.3rem;color:var(--clay);
  border-left:none;border-top:2px solid var(--taupe);margin:2rem 0;padding-top:1rem;
}
.single-post-back{display:inline-block;margin-bottom:1.5rem;font-family:var(--font-head);font-weight:700;color:var(--clay);}
.single-post-meta{font-size:0.85rem;color:var(--ink-soft);margin-bottom:1rem;}

/* ================= RESPONSIVE ================= */
@media (max-width:1024px){
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .about-grid{grid-template-columns:1fr;text-align:center;}
  .about-logo{margin-bottom:0.5rem;}
  .about-intro{text-align:center;}
  .pain-row{grid-template-columns:1fr;text-align:left;}
  .pain-body{text-align:left;}
  .pain-panel.with-image .pain-row,
  .pain-panel.with-image.flip .pain-row{grid-template-columns:1fr;}
  .pain-panel.with-image .pain-media,
  .pain-panel.with-image.flip .pain-media{order:1 !important;}
  .pain-panel.with-image .pain-copy,
  .pain-panel.with-image.flip .pain-copy{order:2 !important;text-align:left;}
  .pain-copy.mirror-right{text-align:left;}
  .team-grid{grid-template-columns:1fr;}
  .svc-img-section,.about-bio-row,.contact-grid{grid-template-columns:1fr;}
  .svc-img-section--reverse{direction:ltr;}
  .svc-img-col,.about-bio-photo{order:-1;max-height:340px;}
}

@media (max-width:768px),
       (hover:none) and (pointer:coarse) and (max-height:500px){
  nav.primary-nav{
    position:fixed;
    top:0;right:0;
    height:100vh;
    height:100dvh;
    width:min(84vw,340px);
    background:var(--white-warm);
    box-shadow:-14px 0 40px rgba(60,53,47,0.25);
    transform:translateX(100%);
    transition:transform .32s cubic-bezier(0.16,1,0.3,1);
    z-index:200;
    padding:5.5rem 1.75rem 2rem;
    overflow-y:auto;
  }
  nav.primary-nav.open{transform:translateX(0);}
  .nav-list{flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;gap:0.25rem;}
  .nav-item{width:100%;}
  .nav-link{width:100%;padding:0.9rem 0.5rem;justify-content:space-between;white-space:normal;}
  .dropdown{
    position:static;
    opacity:1;visibility:visible;transform:none;
    box-shadow:none;border:none;
    display:none;
    width:100%;
    background:var(--sand-warm);
    margin-bottom:0.25rem;
  }
  .dropdown,.dropdown li,.dropdown a{white-space:normal;}
  .nav-item.open .dropdown{display:block;}
  .hamburger{display:flex;}
  .nav-phone{display:none;}
  .nav-schedule-btn{display:none;}

  .hero{min-height:auto; padding:3.25rem 1.25rem;}
  .hero-card{max-width:none;}

  .pain-panel{padding:3.25rem 0;}
  .pain-media-shape{aspect-ratio:1/1;max-width:320px;margin:0 auto;}

  .about{padding:3.5rem 0;}

  .services{padding:3.5rem 0 2rem;}
  .service-grid{grid-template-columns:1fr;}

  .form-row{grid-template-columns:1fr;}
  .contact-direct{flex-direction:column;gap:1rem;align-items:center;}

  .final-cta-inner.final-cta-split{grid-template-columns:1fr;text-align:center;gap:2rem;}
  .final-cta-copy{text-align:center;}
  .final-cta-copy h2{text-align:center;}
  .final-cta-copy p.body-copy{margin:0 auto 1.75rem;max-width:52ch;text-align:center;}
  .final-cta-copy .contact-direct{justify-content:center;}

  .footer-top{justify-content:center;text-align:center;}
  .footer-bottom{justify-content:center;text-align:center;}
  .footer-legal{flex-wrap:wrap;justify-content:center;}
  .footer-payments{justify-content:center;}
  .payments-text{white-space:normal;}

  .inner-hero-content h1{font-size:clamp(1.6rem,6vw,2.1rem);}
  .faq-answer p{padding-left:0;}
}

@media (max-width:480px){
  .hero h1{font-size:clamp(2rem,8vw,2.6rem);}
  .contact-panel{padding:1.5rem;border-radius:6px 20px 6px 20px;}
  .service-card{padding:1.6rem 1.3rem;}
  .bridge-cta,.final-cta{background-attachment:scroll;}
}

/* Touch-device minimum font-size floor for fine print */
@media (hover:none) and (pointer:coarse){
  .footer-copy,.payments-text,.footer-legal a,.eyebrow{font-size:max(0.88rem, 14px);}
}

/* ========== MOBILE RESPONSIVE INVARIANTS — DO NOT REMOVE ========== */
html, body { overflow-x: clip; }

@media (max-width: 768px) {
  .wordmark { min-width: 0; flex: 1 1 auto; }
  .nav-right { flex-shrink: 0; }
}

/* ========== TOUCH-DEVICE ACCESSIBILITY — DO NOT REMOVE ========== */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .dropdown a {
    font-size: 14px !important;
    min-height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .btn,
  button,
  a.nav-phone,
  a.nav-schedule-btn {
    font-size: 14px !important;
    min-height: 44px;
    box-sizing: border-box;
  }
  .hamburger span { flex-shrink: 0; height: 2px; min-height: 2px; }
  a[href^="tel:"], a[href^="mailto:"] {
    min-height: 44px;
    padding: 8px 0;
    display: inline-block;
    box-sizing: border-box;
  }
  .footer a, .footer-brand-text {
    min-height: 44px;
    padding: 6px 0;
    display: inline-block;
    box-sizing: border-box;
  }
}

/* ========== WPFORMS — compact-variant spacing only ==========
   Colors/fonts/radius/touch-a11y come from the fleet-wide WPForms
   stylesheet in tpa-base/functions.php, driven by the --form-* tokens
   in style.css. This block only tightens spacing inside the condensed
   two-column final-CTA form panel — it must not redeclare color/font
   properties the parent system already owns. */
.contact-panel-compact .wpforms-field {
  margin-bottom: 0.7rem !important;
}
/* Mockup pairs Name + Email in a 2-column .form-row; WPForms flattens every
   field into one container with no such grouping. Re-create the grid on the
   field container itself and span the wider fields across both columns. */
.contact-panel-compact .wpforms-field-container,
.contact-form-col .wpforms-field-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.contact-panel-compact .wpforms-field-name,
.contact-panel-compact .wpforms-field-email,
.contact-form-col .wpforms-field-name,
.contact-form-col .wpforms-field-email {
  grid-column: span 1;
}
.contact-panel-compact .wpforms-field-text,
.contact-panel-compact .wpforms-field-textarea,
.contact-form-col .wpforms-field-text,
.contact-form-col .wpforms-field-textarea {
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .contact-panel-compact .wpforms-field-container,
  .contact-form-col .wpforms-field-container {
    grid-template-columns: 1fr;
  }
  .contact-panel-compact .wpforms-field-name,
  .contact-panel-compact .wpforms-field-email,
  .contact-form-col .wpforms-field-name,
  .contact-form-col .wpforms-field-email {
    grid-column: 1 / -1;
  }
}
.contact-panel-compact input,
.contact-panel-compact textarea {
  padding: 0.6rem 0.75rem !important;
}
.contact-panel-compact textarea {
  min-height: 70px !important;
}
.contact-panel-compact .wpforms-submit-container {
  margin-top: 0.3rem !important;
}
/* Match the mockup's plain .btn.btn-primary exactly — the parent's generic
   WPForms button (uppercase, 700 weight, letter-spacing) doesn't match this
   site's button design. */
.wpforms-container .wpforms-form button.wpforms-submit {
  font-family: var(--font-head) !important;
  font-weight: 600 !important;
  font-size: 0.98rem !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  padding: 1rem 2.15rem !important;
  border-radius: 4px 22px 4px 22px !important;
  /* Mockup's .btn-primary has no shadow at rest — only on hover. */
  box-shadow: 0 0 0 0 rgba(140,106,82,0) !important;
  transition: background-color .28s ease, box-shadow .28s ease !important;
}
/* Mockup's hover is a plain background-color swap + shadow — no sliding
   color-sweep overlay like the parent's generic WPForms button. */
.wpforms-container .wpforms-form button.wpforms-submit::after {
  content: none !important;
}
.wpforms-container .wpforms-form button.wpforms-submit:hover,
.wpforms-container .wpforms-form button.wpforms-submit:focus-visible {
  background: var(--form-btn-bg-hover) !important;
  box-shadow: 0 8px 24px -8px rgba(87,98,74,0.55) !important;
}
.contact-panel-compact .wpforms-form button.wpforms-submit {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.92rem !important;
}
/* Mockup shows no required-field asterisks anywhere. */
.wpforms-container .wpforms-required-label {
  display: none !important;
}
.wpforms-container .wpforms-form .wpforms-field-label {
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  opacity: 1 !important;
}
.contact-panel-compact .wpforms-field-label {
  font-size: 0.8rem !important;
  margin-bottom: 0.3rem !important;
}
/* Desktop/precise-pointer only — touch devices keep the parent's 16px
   floor (prevents iOS Safari's zoom-on-focus). */
@media (hover: hover) and (pointer: fine) {
  .contact-panel-compact input[type=text],
  .contact-panel-compact input[type=email],
  .contact-panel-compact input[type=tel],
  .contact-panel-compact textarea {
    font-size: 0.92rem !important;
  }
}
.wpforms-container .wpforms-form input[type=text],
.wpforms-container .wpforms-form input[type=email],
.wpforms-container .wpforms-form input[type=tel],
.wpforms-container .wpforms-form textarea {
  border-radius: 4px 14px 4px 14px !important;
}

/* ========== FORCE-VISIBLE SAFETY NET ========== */
@keyframes forceVisible {
  to { opacity: 1; transform: none; }
}
/* Inner-page content doesn't use scroll-reveal (.reveal) — safe to force-visible
   if JS fails entirely. Homepage .reveal/.fade-in elements are NEVER included
   here (would kill the scroll-triggered entrance animation). */
.inner-content,
.inner-hero-content,
.contact-grid,
.about-bio-row {
  animation: forceVisible 0s 0s forwards;
}
.reveal.is-visible {
  animation: none;
}

/* ---------- SECTION CLOSING (last content section before Final CTA on every inner page, olive) ---------- */
.section-closing{
  background:var(--olive);
  padding:clamp(2rem,3.5vw,2.75rem) 0;
}
.section-closing h1,
.section-closing h2,
.section-closing h3{color:var(--white-warm);}
.section-closing p,
.section-closing li{color:rgba(251,249,245,0.92);}
.section-closing strong{color:var(--white-warm);}
.section-closing em{color:var(--taupe-pale);font-style:italic;}
.section-closing a{color:var(--taupe-pale);}
.section-closing a:hover{color:var(--white-warm);}
.section-closing .team-credentials{color:var(--taupe-pale);}
.section-closing .more-link{color:var(--white-warm);border-color:rgba(251,249,245,0.55);}
.section-closing .more-link:hover{color:var(--taupe-pale);border-color:var(--taupe-pale);}
.section-closing .team-card{background:rgba(251,249,245,0.08);box-shadow:none;}
.section-closing .faq-item{border-color:rgba(251,249,245,0.3);}
.section-closing .faq-toggle{border-color:var(--taupe-pale);}
.section-closing .faq-toggle::before,
.section-closing .faq-toggle::after{background:var(--white-warm);}
.section-closing .svc-img-col{box-shadow:0 20px 40px -26px rgba(0,0,0,0.4);}

/* ========== SHORT LANDSCAPE PHONES: HERO MUST CLEAR THE NAV ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    height: auto;
    padding-top: clamp(1.5rem, 4vw, 2.25rem);
    padding-bottom: 1.5rem;
  }
}
