/*
Theme Name: Lakeside Spine & Wellness
Theme URI: https://copperbuilds.com/
Author: CopperBuilds
Author URI: https://copperbuilds.com/
Description: Block-content WordPress theme for Lakeside Spine & Wellness, a chiropractic clinic in Round Rock, TX. All copy lives in the block editor. SEO titles, meta and schema are left to RankMath or Yoast.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: Proprietary, built by CopperBuilds for Lakeside Spine & Wellness
Text Domain: lakeside-spine-wellness
*/

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F7F5;
  --white: #FFFFFF;
  --ink: #13303A;
  --text: #243740;
  --muted: #4C6068;
  --moss: #2F6B58;
  --moss-tint: #E3EEE8;
  --sage: #9CBBA8;
  --dawn: #F6A57B;
  --dawn-hover: #F0905F;
  --line: #D2DED8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 48, 58, .06), 0 8px 24px rgba(19, 48, 58, .06);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .4em; max-width: 68ch; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.lw-wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.lw-section { padding-block: clamp(48px, 7vw, 96px); }
.lw-section-tight { padding-block: clamp(32px, 4.5vw, 56px); }
.lw-band-white { background: var(--white); }
.lw-band-tint { background: var(--moss-tint); }
.lw-band-ink { background: var(--ink); color: #DCE8E4; }
.lw-band-ink h2, .lw-band-ink h3 { color: #fff; }
.lw-band-ink a { color: #fff; }
.lw-band-ink .lw-note, .lw-band-ink .lw-lead { color: #B9CCC6; }
.lw-lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.lw-narrow { max-width: 760px; }

/* ---------- Buttons (paragraph blocks styled as buttons) ---------- */
.lw-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.4em 0 0; }
p.lw-cta { margin: 0; max-width: none; }
p.lw-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
p.lw-cta-primary a { background: var(--dawn); color: var(--ink); }
p.lw-cta-primary a:hover { background: var(--dawn-hover); color: var(--ink); }
p.lw-cta-primary a:active { transform: translateY(1px); }
p.lw-cta-secondary a { background: transparent; color: var(--ink); border-color: var(--ink); }
p.lw-cta-secondary a:hover { background: var(--ink); color: #fff; }
.lw-band-ink p.lw-cta-secondary a { color: #fff; border-color: #fff; }
.lw-band-ink p.lw-cta-secondary a:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 245, .96);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.site-logo svg { width: 43px; height: 47px; flex-shrink: 0; }
.site-logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.05; letter-spacing: -.01em; }
.site-logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); letter-spacing: 0; margin-top: 3px; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; margin: 0; }
.nav-link, .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; white-space: nowrap;
  font: 600 1rem var(--font-body); color: var(--ink);
  background: none; border: 0; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer;
}
.nav-link:hover, .nav-toggle-sub:hover { background: var(--moss-tint); color: var(--ink); }
.nav-toggle-sub::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.nav-sub {
  display: none; position: absolute; left: 0; top: 100%;
  min-width: 250px; padding: 8px; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav-item.is-open > .nav-sub,
.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub { display: block; }
.nav-sub li { margin: 0; max-width: none; }
.nav-sub a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 500;
}
.nav-sub a:hover { background: var(--moss-tint); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--moss); }
.header-book {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; background: var(--dawn); color: var(--ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease;
}
.header-book:hover { background: var(--dawn-hover); color: var(--ink); }
.menu-toggle {
  display: none; min-width: 48px; min-height: 48px; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav-link, .nav-toggle-sub { padding: 0 9px; }
}
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .site-nav, .header-actions { display: none; }
  .site-header.is-open { position: fixed; inset: 0 0 auto 0; bottom: 0; overflow-y: auto; background: var(--paper); }
  .site-header.is-open .site-header-inner { flex-wrap: wrap; }
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions { display: block; width: 100%; margin: 0; }
  .site-header.is-open .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.is-open .nav-link,
  .site-header.is-open .nav-toggle-sub { width: 100%; justify-content: space-between; min-height: 52px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.is-open .nav-sub { position: static; display: none; box-shadow: none; border: 0; background: var(--moss-tint); border-radius: 0; min-width: 0; }
  .site-header.is-open .nav-item.is-open > .nav-sub { display: block; }
  .site-header.is-open .nav-item:hover > .nav-sub { display: none; }
  .site-header.is-open .nav-item.is-open:hover > .nav-sub { display: block; }
  .site-header.is-open .header-actions { padding: 20px 0 32px; display: flex; flex-direction: column; align-items: stretch; }
  .site-header.is-open .header-phone { display: block; text-align: center; padding: 12px; }
  .site-header.is-open .header-book { justify-content: center; min-height: 54px; }
}

@media (max-width: 380px) {
  .site-logo-text small { display: none; }
  .site-logo-text { font-size: 1.1rem; }
  .site-header-inner { gap: 10px; }
}

/* ---------- Hero ---------- */
.lw-hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); overflow: hidden; }
.lw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.lw-hero h1 { max-width: 15ch; }
.lw-hero .lw-lead { margin-bottom: 0; }
.lw-hero-offer { margin: 1.4em 0 0; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); max-width: 34rem; }
.lw-hero-offer p { margin: 0; max-width: none; }
.lw-hero-offer strong { color: var(--ink); }
/* Interactive spine figure */
.sp-fig { margin: 0; width: min(100%, 330px); }
.sp-stage { position: relative; }
.sp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-hot {
  position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; z-index: 2;
  transition: opacity .4s ease;
}
.sp-hot span {
  position: absolute; inset: 14px; border-radius: 50%; background: #E23B30; border: 2px solid #fff;
  animation: sp-pulse 1.8s ease-out infinite;
}
.sp-hot:hover span { background: #F0584C; }
.sp-hot:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.sp-hot.is-gone { opacity: 0; pointer-events: none; }
@keyframes sp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 59, 48, .55); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(226, 59, 48, 0); }
}
.glow-hurt { animation: sp-throb 1.6s ease-in-out infinite; }
@keyframes sp-throb { 0%, 100% { opacity: .3; } 50% { opacity: .85; } }
.glow-calm { opacity: .5; }
.bulge { transform-box: fill-box; transform-origin: center; animation: sp-bulge 1.6s ease-in-out infinite; }
@keyframes sp-bulge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.sp-caption { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.sp-caption .sp-msg { display: block; max-width: 34ch; }
.sp-caption .sp-after { display: none; }
.sp-caption .sp-after p { margin: 0 0 .5em; max-width: 34ch; }
.sp-caption .sp-lead { color: var(--moss); font-weight: 600; }
.sp-caption .sp-find { color: var(--text); }
.sp-caption .sp-find strong { color: var(--ink); }
.sp-caption a.sp-book {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; margin-top: 6px;
  border-radius: 999px; background: var(--dawn); color: var(--ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.sp-caption a.sp-book:hover { background: var(--dawn-hover); color: var(--ink); }
.sp-caption a.sp-book:active { transform: translateY(1px); }
.sp-caption a.sp-call { display: block; margin-top: 10px; min-height: 24px; font-weight: 600; font-size: .95rem; }
.sp-caption .sp-replay {
  margin-top: 6px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted);
  font: 500 .92rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sp-caption .sp-replay:hover { color: var(--ink); }
.sp-caption small { display: block; margin-top: 8px; font-size: .82rem; }
.sp-fig[data-state="calm"] .sp-msg-hurt { display: none; }
.sp-fig[data-state="calm"] .sp-after { display: block; }
.sp-fig[data-state="calm"] .glow-hurt, .sp-fig[data-state="calm"] .bulge { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .sp-hot span, .glow-hurt, .bulge { animation: none; }
  .glow-hurt { opacity: .6; }
  html { scroll-behavior: auto; }
}
@media (max-width: 820px) {
  .lw-hero-grid { grid-template-columns: 1fr; }
  .sp-fig { width: min(72%, 260px); }
  .lw-hero h1 { max-width: none; }
}

/* ---------- Fact strip ---------- */
.lw-facts { background: var(--white); border-block: 1px solid var(--line); }
.lw-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.lw-fact { padding: 22px 20px; border-left: 1px solid var(--line); margin: 0; }
.lw-fact:first-child { border-left: 0; padding-left: 0; }
.lw-fact p.lw-fact-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin: 0 0 4px; }
.lw-fact p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 820px) {
  .lw-facts-grid { grid-template-columns: 1fr 1fr; }
  .lw-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .lw-fact { border-top: 1px solid var(--line); }
  .lw-fact:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Answer box (quotable direct answer) ---------- */
.lw-answer { background: var(--moss-tint); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin: 0 0 2em; }
.lw-answer h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .5em; }
.lw-answer p { margin: 0; font-size: 1.125rem; color: var(--ink); }

/* ---------- Conditions grid (asymmetric) ---------- */
.lw-cond-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 28px; }
.lw-cond { grid-column: span 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.lw-cond.lw-cond-large { grid-column: span 6; padding: 28px; background: var(--ink); border-color: var(--ink); }
.lw-cond.lw-cond-large h3, .lw-cond.lw-cond-large p { color: #fff; }
.lw-cond.lw-cond-large p { color: #DCE8E4; }
.lw-cond.lw-cond-large a { color: var(--dawn); }
.lw-cond h3 { margin-bottom: .4em; }
.lw-cond p { margin: 0 0 .8em; font-size: .98rem; color: var(--muted); }
.lw-cond p:last-child { margin-bottom: 0; }
.lw-cond a { font-weight: 600; }
.lw-cond:hover { border-color: var(--moss); box-shadow: var(--shadow); }
@media (max-width: 960px) {
  .lw-cond { grid-column: span 6; }
  .lw-cond.lw-cond-large { grid-column: span 12; }
}
@media (max-width: 560px) {
  .lw-cond, .lw-cond.lw-cond-large { grid-column: span 12; }
}

/* ---------- Steps (real sequence, so numbered) ---------- */
.lw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; counter-reset: step; }
.lw-step { margin: 0; padding-top: 18px; border-top: 3px solid var(--sage); counter-increment: step; }
.lw-step h3::before { content: counter(step) ". "; color: var(--moss); }
.lw-step p { color: var(--muted); }
@media (max-width: 760px) { .lw-steps { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Offer band ---------- */
.lw-offer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.lw-offer-price { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 600; line-height: 1; color: #fff; margin: 0 0 .15em; }
.lw-offer-grid ul { list-style: none; padding: 0; }
.lw-offer-grid li { position: relative; padding-left: 28px; margin-bottom: .7em; }
.lw-offer-grid li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px;
  border-left: 2px solid var(--dawn); border-bottom: 2px solid var(--dawn); transform: rotate(-45deg);
}
@media (max-width: 820px) { .lw-offer-grid { grid-template-columns: 1fr; } }

/* ---------- Two-column text blocks ---------- */
.lw-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.lw-two h3 { margin-bottom: .3em; }
.lw-two > div > p { color: var(--muted); }
@media (max-width: 760px) { .lw-two { grid-template-columns: 1fr; } }
.lw-points { display: grid; grid-template-columns: 1fr 1fr; gap: 28px clamp(24px, 5vw, 64px); margin-top: 28px; }
.lw-point { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.lw-point h3 { margin-bottom: .3em; }
.lw-point p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .lw-points { grid-template-columns: 1fr; } }

/* ---------- Hours / info ---------- */
.lw-hours { list-style: none; padding: 0; margin: 0 0 1em; }
.lw-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; max-width: 360px; }
.lw-hours strong { color: var(--ink); }

/* ---------- FAQ (core Details block) ---------- */
.wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; margin: 0 0 10px; max-width: 820px; }
.wp-block-details summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 600; color: var(--ink); min-height: 52px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(45deg);
  transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.wp-block-details summary:hover { background: var(--moss-tint); border-radius: var(--radius-sm); }
.wp-block-details > p, .wp-block-details > ul { padding: 0 18px; }
.wp-block-details > :last-child { margin-bottom: 18px; }

/* ---------- Closing CTA ---------- */
.lw-cta-band { text-align: center; }
.lw-cta-band h2 { max-width: 20ch; margin-inline: auto; }
.lw-cta-band p { margin-inline: auto; }
.lw-cta-band p.lw-cta { margin-inline: 0; }
.lw-cta-band .lw-actions { justify-content: center; }

/* ---------- Inner pages ---------- */
.lw-page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 36px); }
.lw-page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 20ch; }
.lw-crumbs { margin: 0 0 1em; font-size: .92rem; color: var(--muted); }
.lw-crumbs a { color: var(--muted); }
.lw-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.lw-main > h2 { margin-top: 1.6em; }
.lw-main > h2:first-child { margin-top: 0; }
.lw-aside { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.lw-aside h2 { font-size: 1.5rem; }
.lw-aside p { font-size: .98rem; color: var(--muted); }
.lw-aside .lw-actions { flex-direction: column; align-items: stretch; margin-top: 1em; }
.lw-aside p.lw-cta a { width: 100%; }
@media (max-width: 920px) {
  .lw-split { grid-template-columns: 1fr; }
  .lw-aside { position: static; }
}
.lw-callout { background: #FFF6F0; border: 1px solid #EBC9B4; border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.6em 0; }
.lw-callout h3 { font-size: 1.15rem; margin-bottom: .4em; }
.lw-callout p:last-child, .lw-callout ul:last-child { margin-bottom: 0; }
.lw-note { font-size: .92rem; color: var(--muted); }
.lw-related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.lw-related li { margin: 0; }
.lw-related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; min-height: 44px; line-height: 28px; }
.lw-related a:hover { border-color: var(--moss); }

/* ---------- Forms ---------- */
.lw-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); max-width: 560px; }
.lw-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.lw-form .lw-field { margin-bottom: 16px; }
.lw-form input, .lw-form select, .lw-form textarea {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font: inherit; color: var(--text); background: var(--paper);
  border: 1px solid #A9BDB5; border-radius: var(--radius-sm);
}
.lw-form textarea { min-height: 96px; }
.lw-form input:focus, .lw-form select:focus, .lw-form textarea:focus { outline: 3px solid var(--moss); outline-offset: 1px; background: #fff; }
.lw-form button {
  width: 100%; min-height: 54px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--dawn); color: var(--ink); font: 600 1.0625rem var(--font-body);
  transition: background-color .18s ease;
}
.lw-form button:hover { background: var(--dawn-hover); }
.lw-form-note { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.lw-form-done { display: none; padding: 14px 16px; margin-top: 14px; background: var(--moss-tint); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; }
.lw-form.is-sent .lw-form-done { display: block; }

/* ---------- Blog ---------- */
.lw-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.lw-post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; }
.lw-post-card h2 { font-size: 1.35rem; }
.lw-post-card h2 a { color: var(--ink); text-decoration: none; }
.lw-post-card h2 a:hover { color: var(--moss); }
.lw-post-card p { color: var(--muted); font-size: .98rem; }
.lw-post-meta { font-size: .88rem; color: var(--muted); }
.lw-article { max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D9D4; padding-top: clamp(40px, 6vw, 72px); }
.site-footer a { color: #E9F1EE; text-decoration: none; }
.site-footer a:hover { color: var(--dawn); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .8em; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.footer-grid p { font-size: .98rem; max-width: 34ch; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: #fff; margin-bottom: .5em; }
.footer-bottom { margin-top: 40px; padding-block: 22px 96px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer-bottom p { max-width: 90ch; margin: 0 0 .6em; }
.footer-bottom p a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 50px;
    border-radius: 999px; font-weight: 600; text-decoration: none;
  }
  .mobile-bar .mb-call { border: 2px solid var(--ink); color: var(--ink); }
  .mobile-bar .mb-book { background: var(--dawn); color: var(--ink); }
}

/* ---------- Photos ---------- */
.lw-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.lw-page-hero-grid figure.lw-photo { margin: 0; }
@media (max-width: 820px) { .lw-page-hero-grid { grid-template-columns: 1fr; } }
figure.lw-photo { margin: 0 0 1.6em; }
figure.lw-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--moss-tint); }
.lw-mosaic { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; align-self: stretch; }
.lw-mosaic figure.lw-photo { margin: 0; min-height: 0; overflow: hidden; border-radius: var(--radius); }
.lw-mosaic figure.lw-photo img { height: 100%; aspect-ratio: auto; border-radius: 0; }
.lw-mosaic figure.lw-photo:first-child { grid-row: 1 / span 2; }
.lw-who { align-items: center; }
@media (max-width: 760px) {
  .lw-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lw-mosaic figure.lw-photo:first-child { grid-row: auto; grid-column: 1 / span 2; }
  .lw-mosaic figure.lw-photo img { aspect-ratio: 4 / 3; height: auto; }
  .lw-mosaic figure.lw-photo:first-child img { aspect-ratio: 16 / 10; }
}

/* ---------- Doctor, credentials, quotes ---------- */
.lw-doctor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; margin-top: 24px; }
.lw-doctor h3 { margin-bottom: .1em; }
.lw-doctor p.lw-role { margin-bottom: .8em; color: var(--muted); font-weight: 600; }
.lw-creds { list-style: none; padding: 0; margin: 1.3em 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.lw-creds li { position: relative; padding-left: 28px; margin: 0; max-width: none; }
.lw-creds li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.4 8.5 11 1.5' fill='none' stroke='%232F6B58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.lw-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.lw-quote-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.lw-quotes .wp-block-quote { margin: 0; padding: 0; border: 0; }
.lw-quotes .wp-block-quote p { margin: 0 0 .9em; max-width: none; color: var(--ink); font-size: 1.05rem; }
.lw-quotes cite { font-style: normal; font-weight: 600; font-size: .92rem; color: var(--muted); }
.lw-answer .lw-note { margin: .8em 0 0; }
@media (max-width: 900px) { .lw-quotes { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .lw-doctor { grid-template-columns: 1fr; } .lw-creds { grid-template-columns: 1fr; } }

/* ---------- Home photos: doctor, faces, steps, why ---------- */
figure.lw-doctor-photo { margin: 0; width: clamp(150px, 20vw, 230px); }
figure.lw-doctor-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
figure.lw-face { margin: 0 0 14px; width: 60px; }
figure.lw-face img { width: 60px; height: 60px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; }
figure.lw-step-img { margin: 0 0 14px; }
figure.lw-step-img img { aspect-ratio: 4 / 3; }
.lw-why-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 56px); align-items: center; margin-top: 24px; }
.lw-why-grid figure.lw-why-photo { margin: 0; }
.lw-why-grid figure.lw-why-photo img { aspect-ratio: 4 / 5; }
.lw-why-grid .lw-points { margin-top: 0; }
@media (max-width: 820px) {
  .lw-why-grid { grid-template-columns: 1fr; }
  .lw-why-grid figure.lw-why-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- X-ray hero ---------- */
.lw-hero.lw-hero-xray { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(520px, 40vw, 640px); padding-block: clamp(32px, 4vw, 56px); background: #A8B3A4; }
.lw-hero-xray figure.lw-hero-bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.lw-hero-xray figure.lw-hero-bg img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; object-position: 100% 30%; background: none; }
.lw-hero-xray::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(244, 247, 245, .9) 0%, rgba(244, 247, 245, .72) 38%, rgba(244, 247, 245, 0) 62%); pointer-events: none; }
.lw-hero-xray .lw-wrap { width: 100%; }
.lw-hero-xray .lw-hero-copy { max-width: 560px; }
.lw-hero-xray h1 { max-width: none; font-size: clamp(2rem, 3.4vw, 3rem); }
.lw-hero-xray .lw-lead { color: var(--ink); }
.lw-hero-note { position: absolute; right: 16px; bottom: 12px; margin: 0; max-width: none; padding: 4px 10px; border-radius: 999px; background: rgba(244, 247, 245, .82); color: var(--muted); font-size: .8rem; }
.lw-explainer-art { display: flex; justify-content: center; margin: 1.2em 0 1.6em; }
@media (max-width: 1000px) {
  .lw-hero.lw-hero-xray { flex-direction: column-reverse; align-items: stretch; min-height: 0; padding: 0; background: var(--paper); }
  .lw-hero-xray figure.lw-hero-bg { position: relative; inset: auto; z-index: 0; height: clamp(240px, 52vw, 400px); }
  .lw-hero-xray figure.lw-hero-bg img { object-position: 75.4% 28%; }
  .lw-hero-xray::before { display: none; }
  .lw-hero-xray .lw-wrap { padding-block: 32px 28px; }
  .lw-hero-xray .lw-hero-copy { max-width: none; }
  .lw-hero-note { right: 12px; bottom: 8px; }
}

/* ---------- Sources ---------- */
.lw-sources { font-size: .92rem; color: var(--muted); padding-left: 1.1em; }
.lw-sources li { max-width: none; margin-bottom: .5em; }
.lw-sources a { overflow-wrap: anywhere; }
.lw-main > h2 + .lw-note { margin-top: -.4em; }

/* ---------- Overflow guards ---------- */
.lw-hero-grid > *, .lw-split > *, .lw-two > *, .lw-offer-grid > *, .lw-points > * { min-width: 0; }
