/*
 * ASSUMPTIONS: shared behavior and accessibility live here; each direction owns its visual voice.
 * OPEN QUESTION: replace the demo scheduler disclosure only after a live booking endpoint is approved.
 * DIRECTION: real photography remains structural; cards never become a generic icon grid.
 */

:root {
  --brand-cyan: #c8683e;
  --brand-teal: #a94e2c;
  --brand-blue: #33506a;
  --brand-mint: #e0a97b;
  --ink: #271e17;
  --muted: #6d5f53;
  --paper: #f6efe1;
  --white: #ffffff;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --shell: min(1240px, calc(100vw - 48px));
  --section-space: clamp(82px, 9vw, 144px);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(23, 33, 38, 0.12);
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: auto; }
iframe { display: block; width: 100%; border: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-progress {
  position: fixed;
  z-index: 90;
  inset: 0 0 auto;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand-cyan);
}

.announcement {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.announcement .shell {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.announcement a { text-decoration: none; }
.announcement a:hover { color: var(--brand-mint); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: min(230px, 100%); }

.main-nav { justify-self: end; }
.main-nav ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); padding: 0; margin: 0; list-style: none; }
.main-nav a { position: relative; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -9px;
  height: 2px;
  background: var(--brand-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; border: 0; background: transparent; font-weight: 800; padding: 12px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--brand-teal);
  border-radius: var(--radius);
  padding: 12px 22px;
  background: var(--brand-teal);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8, 127, 152, 0.22); }
.button:focus-visible { outline: 3px solid var(--brand-mint); outline-offset: 3px; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button-small { min-height: 42px; padding: 10px 17px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; text-decoration: none; }
.text-link::after { content: '→'; transition: transform 180ms ease; }
.text-link:hover::after { transform: translateX(5px); }

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
h1 { font-size: clamp(54px, 7.7vw, 122px); }
h2 { font-size: clamp(42px, 5.3vw, 78px); }
h3 { font-size: clamp(25px, 2.4vw, 38px); line-height: 1.05; }
h4 { font-size: 22px; line-height: 1.12; }
p { margin-block: 0 1em; }
.lede { max-width: 780px; color: var(--muted); font-size: clamp(20px, 2.2vw, 29px); line-height: 1.45; }

.home-hero { min-height: min(850px, calc(100vh - 124px)); overflow: clip; }
.hero-grid { min-height: inherit; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.hero-copy { position: relative; z-index: 2; padding: clamp(120px, 12vw, 168px) clamp(28px, 6vw, 96px) clamp(92px, 10vw, 150px) max(24px, calc((100vw - 1240px) / 2)); }
.hero-copy .lede { max-width: 680px; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-media { position: relative; min-height: 660px; overflow: hidden; }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-caption { position: absolute; inset: auto 24px 24px auto; max-width: 270px; padding: 16px 18px; background: var(--paper); font-size: 13px; line-height: 1.35; }
.hero-stamp { position: absolute; z-index: 2; inset: 34px auto auto 34px; display: grid; place-items: center; width: 132px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; color: var(--white); font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-align: center; text-transform: uppercase; animation: float-slow 6s ease-in-out infinite; }

.proof-ribbon { border-block: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { min-height: 138px; padding: 30px clamp(18px, 2.8vw, 42px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-family: var(--font-display); font-size: clamp(32px, 4vw, 55px); line-height: 1; }
.proof-item span { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

.section { padding-block: var(--section-space); }
.section-compact { padding-block: clamp(60px, 7vw, 96px); }
.section-dark { background: var(--ink); color: var(--white); }
.section-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr); align-items: end; gap: 60px; margin-bottom: clamp(46px, 7vw, 92px); }
.section-head .lede { justify-self: end; font-size: clamp(18px, 1.7vw, 23px); }
.section-dark .lede, .section-dark .eyebrow { color: color-mix(in srgb, var(--white) 68%, transparent); }

.service-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 18px; }
.service-tile { position: relative; grid-column: span 4; min-height: 540px; overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; }
.service-tile:nth-child(1), .service-tile:nth-child(5) { grid-column: span 7; }
.service-tile:nth-child(2), .service-tile:nth-child(6) { grid-column: span 5; }
.service-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.service-tile::after { content: ''; position: absolute; inset: 34% 0 0; background: linear-gradient(transparent, rgba(12, 20, 23, 0.92)); }
.service-tile:hover img { transform: scale(1.045); }
.service-tile-copy { position: absolute; z-index: 2; inset: auto 28px 28px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.service-number { align-self: start; color: var(--brand-mint); font-size: 12px; font-weight: 900; letter-spacing: 0.14em; }
.service-tile h3 { font-size: clamp(28px, 3vw, 46px); }
.service-tile p { grid-column: 2; max-width: 500px; margin: 8px 0 0; color: rgba(255,255,255,.78); }
.provenance-label { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; color: rgba(255,255,255,.66); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.provenance-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-mint); }
.provenance-label.is-generated::before { background: #e0964e; }

.service-text-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-text-item { grid-column: span 4; min-height: 340px; display: grid; grid-template-columns: 38px 1fr auto; gap: 16px; align-content: space-between; padding: clamp(28px, 3.5vw, 48px); background: var(--paper); text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.service-text-item:nth-child(1), .service-text-item:nth-child(5) { grid-column: span 7; }
.service-text-item:nth-child(2), .service-text-item:nth-child(6) { grid-column: span 5; }
.service-text-item > span { color: var(--brand-teal); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.service-text-item h3 { font-size: clamp(30px, 3.6vw, 52px); }
.service-text-item p:last-child { margin-top: 20px; color: var(--muted); }
.service-text-item b { align-self: start; font-size: 28px; font-weight: 400; }
.service-text-item:hover { background: var(--brand-teal); color: var(--white); }
.service-text-item:hover > span, .service-text-item:hover .eyebrow, .service-text-item:hover p:last-child { color: rgba(255,255,255,.75); }
.section-foot { margin: 34px 0 0; text-align: right; }

.care-index { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(34px, 7vw, 96px); align-items: start; }
.care-index-media { position: sticky; top: 126px; min-height: 670px; overflow: hidden; }
.care-index-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.condition-list { border-top: 1px solid var(--line); }
.condition-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 22px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.condition-row span:first-child { color: var(--brand-teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.condition-row h3 { font-size: clamp(27px, 3vw, 45px); }
.condition-row p { margin: 8px 0 0; color: var(--muted); }
.condition-row b { font-size: 25px; transition: transform 180ms ease; }
.condition-row:hover b { transform: translateX(7px); }

.doctor-mosaic { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 18px; align-items: stretch; }
.doctor-card { position: relative; min-height: 610px; overflow: hidden; background: #d8cdb9; text-decoration: none; }
.doctor-card:nth-child(2), .doctor-card:nth-child(3) { min-height: 520px; margin-top: 90px; }
.doctor-card img { height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.86); transition: transform 700ms ease; }
.doctor-card:hover img { transform: scale(1.03); }
.doctor-card-copy { position: absolute; inset: auto 0 0; padding: 54px 26px 24px; background: linear-gradient(transparent, rgba(13,22,25,.9)); color: var(--white); }
.doctor-card-copy p { margin: 7px 0 0; color: rgba(255,255,255,.75); }

.reviews-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(46px, 8vw, 110px); align-items: start; }
.rating-block { position: sticky; top: 130px; }
.rating-score { display: block; font-family: var(--font-display); font-size: clamp(100px, 15vw, 210px); line-height: .78; letter-spacing: -.09em; }
.stars { margin-top: 28px; color: var(--brand-cyan); letter-spacing: .16em; }
.review-stack { border-top: 1px solid currentColor; }
.review-quote { padding: 36px 0 40px; border-bottom: 1px solid currentColor; }
.review-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 48px); line-height: 1.12; }
.review-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }

.map-layout { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 620px; }
.map-frame { min-height: 620px; background: #e4dccd; }
.map-frame iframe { height: 100%; min-height: 620px; filter: saturate(.72) contrast(1.02); }
.map-copy { padding: clamp(50px, 7vw, 94px); background: var(--brand-teal); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.map-copy .eyebrow { color: var(--brand-mint); }
.map-copy h2 { font-size: clamp(44px, 5.5vw, 76px); }
.map-copy address { margin-top: 26px; font-style: normal; font-size: 20px; }
.map-copy .button { margin-top: 28px; align-self: flex-start; }

.cta-band { position: relative; overflow: hidden; background: var(--brand-blue); color: var(--white); }
.cta-band::before { content: '1982'; position: absolute; inset: -34px auto auto -20px; color: rgba(255,255,255,.08); font-family: var(--font-display); font-size: min(34vw, 420px); line-height: 1; }
.cta-inner { position: relative; z-index: 1; min-height: 520px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-block: clamp(92px, 11vw, 150px); }
.cta-inner h2 { max-width: 900px; }
.cta-actions { display: grid; gap: 12px; min-width: 210px; }

.breadcrumbs { padding-top: 22px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs i { margin-inline: 9px; font-style: normal; opacity: .45; }

.page-hero { padding-block: clamp(100px, 11vw, 160px) clamp(76px, 9vw, 126px); overflow: clip; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr); gap: clamp(42px, 8vw, 118px); align-items: center; }
.page-hero h1 { font-size: clamp(52px, 7vw, 105px); }
.page-hero .lede { margin-top: 28px; }
.page-hero-media { position: relative; min-height: 580px; overflow: hidden; }
.page-hero-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.page-hero-number { position: absolute; z-index: 2; inset: 22px auto auto 22px; display: grid; place-items: center; width: 72px; aspect-ratio: 1; background: var(--paper); color: var(--brand-teal); font-weight: 900; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(48px, 9vw, 126px); align-items: start; }
.article-main > p:first-of-type { font-family: var(--font-display); font-size: clamp(25px, 2.5vw, 36px); line-height: 1.35; }
.article-main h2 { margin: 76px 0 24px; font-size: clamp(39px, 4vw, 61px); }
.article-main h3 { margin: 42px 0 15px; }
.article-main p { max-width: 760px; }
.article-rail { position: sticky; top: 124px; border-top: 4px solid var(--brand-teal); }
.rail-block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.rail-block h3 { margin-bottom: 16px; font-size: 25px; }
.rail-block ul { padding: 0; margin: 0; list-style: none; }
.rail-block li { padding: 8px 0; color: var(--muted); }
.source-note { display: block; margin-top: 30px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.editorial-list { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.editorial-list li { padding: 18px 0 18px 38px; border-bottom: 1px solid var(--line); position: relative; }
.editorial-list li::before { content: '—'; position: absolute; left: 0; color: var(--brand-teal); font-weight: 900; }
.rail-photo { aspect-ratio: .92; overflow: hidden; margin-bottom: 26px; }
.rail-photo img { height: 100%; object-fit: cover; object-position: center top; }

.number-list { counter-reset: step; display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.number-list li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); list-style: none; }
.number-list li::before { content: counter(step, decimal-leading-zero); color: var(--brand-teal); font-size: 12px; font-weight: 900; letter-spacing: .12em; }

.faq-section { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(44px, 8vw, 110px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 28px 0; cursor: pointer; font-family: var(--font-display); font-size: clamp(23px, 2.1vw, 32px); line-height: 1.15; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--brand-teal); font-family: var(--font-body); font-size: 24px; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 760px; padding: 0 46px 30px 0; color: var(--muted); }

.team-profiles { display: grid; gap: clamp(70px, 11vw, 160px); }
.doctor-profile { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr); gap: clamp(44px, 8vw, 116px); align-items: center; }
.doctor-profile:nth-child(even) .profile-photo { order: 2; }
.profile-photo { min-height: 720px; overflow: hidden; }
.profile-photo img { height: 100%; object-fit: cover; object-position: center top; }
.profile-copy .lede { margin: 18px 0 28px; }
.profile-facts { display: grid; gap: 16px; margin-top: 30px; }
.profile-facts div { padding-top: 16px; border-top: 1px solid var(--line); }
.profile-facts dt { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.profile-facts dd { margin: 6px 0 0; color: var(--muted); }
.education-list { margin: 12px 0 0; padding-left: 19px; }

.staff-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.staff-card { background: var(--paper); }
.staff-card img { aspect-ratio: .84; object-fit: cover; object-position: center top; }
.staff-card-copy { padding: 22px; }
.staff-card h3 { font-size: 27px; }
.staff-card .role { color: var(--brand-teal); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.staff-card p:last-child { color: var(--muted); font-size: 14px; }

.mini-team-head { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 36px; }
.mini-team-head h2 { font-size: clamp(42px, 5vw, 70px); }
.mini-team-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mini-team-grid > a { grid-column: span 2; min-height: 350px; position: relative; overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; }
.mini-team-grid > a img { height: 100%; object-fit: cover; object-position: center top; }
.mini-team-grid > a span, .mini-clinic span { position: absolute; inset: auto 12px 12px; padding: 7px 9px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.mini-clinic { grid-column: span 6; min-height: 350px; position: relative; overflow: hidden; }
.mini-clinic img { height: 100%; object-fit: cover; }

.condition-photo-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 70px; background: var(--line); border: 1px solid var(--line); }
.condition-photo-strip a { min-height: 330px; position: relative; overflow: hidden; background: var(--ink); color: var(--white); text-decoration: none; }
.condition-photo-strip img { height: 100%; object-fit: cover; object-position: center top; filter: saturate(.78); transition: transform 500ms ease; }
.condition-photo-strip a:hover img { transform: scale(1.04); }
.condition-photo-strip span { position: absolute; inset: auto 10px 10px; padding: 7px 9px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 900; text-transform: uppercase; }

.story-timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.timeline-item { min-height: 310px; padding: 35px; border-right: 1px solid var(--line); }
.timeline-item:last-child { border-right: 0; }
.timeline-item strong { display: block; color: var(--brand-teal); font-family: var(--font-display); font-size: 50px; }
.timeline-item p { margin-top: 28px; color: var(--muted); }

.visit-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(48px, 8vw, 110px); }
.hours-list { border-top: 1px solid var(--line); }
.hours-row { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.hours-row dt { font-weight: 900; }
.hours-row dd { margin: 0; color: var(--muted); }

.new-patient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.new-patient-step { min-height: 360px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.new-patient-step span { color: var(--brand-teal); font-family: var(--font-display); font-size: 62px; }
.new-patient-step p { color: var(--muted); }
.privacy-strip { margin-top: 28px; padding: 24px 28px; background: color-mix(in srgb, var(--brand-mint) 20%, var(--paper)); border-left: 5px solid var(--brand-teal); }

.site-footer { background: #241a12; color: var(--white); padding: 86px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: clamp(30px, 6vw, 86px); }
.footer-brand img { width: 245px; filter: none; }
.footer-brand p { max-width: 360px; margin-top: 22px; color: rgba(255,255,255,.62); }
.footer-label { color: var(--brand-mint); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-hours { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 68px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.48); font-size: 12px; }

.floating-actions { position: fixed; z-index: 62; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.floating-button { width: 88px; min-height: 64px; border: 0; border-radius: calc(var(--radius) + 10px); box-shadow: var(--shadow); font-size: 12px; font-weight: 900; line-height: 1.1; cursor: pointer; }
.booking-launch { background: var(--brand-teal); color: var(--white); animation: pulse-ring 3.2s ease-out infinite; }
.assistant-launch { background: var(--white); color: var(--ink); }

.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; z-index: 120; inset: 0; padding: 28px; background: rgba(10, 15, 17, .74); backdrop-filter: blur(10px); overflow-y: auto; }
.modal-backdrop[hidden], .assistant-panel[hidden] { display: none; }
.booking-dialog { width: min(1000px, 100%); min-height: 650px; margin: min(5vh, 48px) auto; display: grid; grid-template-columns: .72fr 1.28fr; background: var(--paper); box-shadow: 0 30px 110px rgba(0,0,0,.35); animation: modal-rise 320ms ease both; }
.booking-visual { position: relative; padding: 42px; background: var(--brand-blue); color: var(--white); overflow: hidden; }
.booking-visual::after { content: 'G'; position: absolute; inset: auto -30px -90px auto; font-family: var(--font-display); font-size: 300px; line-height: 1; color: rgba(255,255,255,.08); }
.booking-visual img { width: 220px; filter: none; }
.booking-visual h2 { margin-top: 90px; font-size: 52px; }
.booking-visual p { color: rgba(255,255,255,.7); }
.booking-main { position: relative; padding: clamp(38px, 6vw, 72px); }
.modal-close { position: absolute; inset: 18px 18px auto auto; border: 0; background: transparent; font-weight: 900; cursor: pointer; }
.booking-main h2 { font-size: clamp(40px, 5vw, 65px); }
.booking-form { margin-top: 34px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label { display: grid; gap: 7px; margin-bottom: 18px; font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.field-label input, .field-label select { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 0; background: var(--white); padding: 12px 14px; color: var(--ink); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid span { min-height: 56px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); font-weight: 800; }
.choice-grid input:checked + span { border-color: var(--brand-teal); box-shadow: inset 0 0 0 2px var(--brand-teal); }
.demo-note { color: var(--muted); font-size: 13px; }
.booking-result { margin-top: 44px; }
.booking-result strong { display: block; color: var(--brand-teal); font-family: var(--font-display); font-size: 58px; }

.assistant-panel { position: fixed; z-index: 110; inset: 0 0 0 auto; width: min(430px, 100vw); display: grid; grid-template-rows: auto 1fr auto auto; background: var(--paper); box-shadow: -25px 0 90px rgba(0,0,0,.22); animation: panel-in 280ms ease both; }
.assistant-head { padding: 26px; background: var(--ink); color: var(--white); display: flex; justify-content: space-between; gap: 20px; }
.assistant-head p { margin: 3px 0 0; color: rgba(255,255,255,.65); font-size: 12px; }
.assistant-head button { border: 0; background: transparent; color: var(--white); cursor: pointer; }
.assistant-stream { overflow-y: auto; padding: 26px; }
.assistant-message { width: fit-content; max-width: 88%; margin: 0 0 12px; padding: 13px 16px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.assistant-message.is-user { margin-left: auto; background: var(--brand-teal); color: var(--white); border-color: var(--brand-teal); }
.assistant-questions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 22px 18px; }
.assistant-questions button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: transparent; font-size: 12px; cursor: pointer; }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 18px; border-top: 1px solid var(--line); }
.assistant-form input { min-width: 0; border: 1px solid var(--line); padding: 12px; }
.assistant-form button { border: 0; background: var(--ink); color: var(--white); padding: 11px 15px; font-weight: 900; }
.assistant-disclaimer { margin: 0; padding: 0 18px 14px; color: var(--muted); font-size: 11px; }

.mobile-dock { display: none; }
.reveal { opacity: 1; transform: none; }
.has-js .reveal { opacity: 0; transform: translateY(28px); }
.has-js .reveal.is-visible { animation: reveal-up 720ms cubic-bezier(.2,.7,.2,1) both; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes image-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes float-slow { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(24,168,189,.32), var(--shadow); } 70% { box-shadow: 0 0 0 18px rgba(24,168,189,0), var(--shadow); } 100% { box-shadow: 0 0 0 0 rgba(24,168,189,0), var(--shadow); } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(30px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes soft-blink { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; inset: 100% 0 auto; display: none; padding: 22px 24px 30px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 13px 0; font-size: 18px; }
  .header-actions .button-quiet { display: none; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: max(24px, calc((100vw - 820px) / 2)); }
  .hero-media { min-height: 560px; }
  .page-hero-media { min-height: 520px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-tile, .service-tile:nth-child(n) { grid-column: span 6; }
  .service-text-item, .service-text-item:nth-child(n) { grid-column: span 6; }
  .care-index, .reviews-layout, .map-layout, .visit-grid { grid-template-columns: 1fr; }
  .care-index-media, .rating-block { position: relative; top: auto; }
  .care-index-media { min-height: 520px; }
  .map-frame, .map-frame iframe { min-height: 500px; }
  .doctor-mosaic { grid-template-columns: 1fr 1fr; }
  .doctor-card:first-child { grid-column: 1 / -1; }
  .doctor-card:nth-child(n) { margin-top: 0; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-team-grid > a { grid-column: span 4; }
  .mini-clinic { grid-column: 1 / -1; }
  .condition-photo-strip { grid-template-columns: repeat(3, 1fr); }
  .story-timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-item:nth-child(2) { border-right: 0; }
  .timeline-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 34px, 620px); --section-space: 78px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .announcement .shell { justify-content: center; min-height: 36px; }
  .announcement span:last-child { display: none; }
  .header-inner { min-height: 72px; gap: 8px; }
  .brand img { width: 180px; }
  .header-actions { display: none; }
  .hero-copy { padding: 104px 20px 76px; }
  .hero-media { min-height: 440px; }
  .hero-media-caption { inset: auto 12px 12px; max-width: 250px; }
  .hero-stamp { width: 94px; inset: 18px auto auto 18px; font-size: 10px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { min-height: 115px; padding: 22px 18px; }
  .section-head, .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-head .lede { justify-self: start; }
  .service-bento { gap: 12px; }
  .service-tile, .service-tile:nth-child(n) { grid-column: 1 / -1; min-height: 470px; }
  .service-text-item, .service-text-item:nth-child(n) { grid-column: 1 / -1; min-height: 300px; }
  .service-tile-copy { inset: auto 20px 22px; }
  .care-index-media { min-height: 430px; }
  .condition-row { grid-template-columns: 38px 1fr auto; gap: 10px; }
  .condition-row p { display: none; }
  .doctor-mosaic { grid-template-columns: 1fr; }
  .doctor-card:first-child { grid-column: auto; }
  .doctor-card:nth-child(n) { min-height: 510px; }
  .reviews-layout { gap: 44px; }
  .rating-score { font-size: 116px; }
  .map-layout { min-height: 0; }
  .map-frame, .map-frame iframe { min-height: 420px; }
  .map-copy { padding: 60px 24px; }
  .cta-inner { min-height: 460px; grid-template-columns: 1fr; align-items: center; }
  .cta-actions { min-width: 0; }
  .page-hero { padding-top: 82px; }
  .page-hero-media { min-height: 430px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-rail { position: relative; top: auto; }
  .doctor-profile { grid-template-columns: 1fr; }
  .doctor-profile:nth-child(even) .profile-photo { order: initial; }
  .profile-photo { min-height: 560px; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .mini-team-head { align-items: flex-start; flex-direction: column; }
  .mini-team-grid { grid-template-columns: 1fr 1fr; }
  .mini-team-grid > a { grid-column: auto; min-height: 360px; }
  .mini-team-grid > a:nth-child(3), .mini-clinic { grid-column: 1 / -1; }
  .condition-photo-strip { grid-template-columns: 1fr 1fr; }
  .condition-photo-strip a:last-child { grid-column: 1 / -1; }
  .story-timeline { grid-template-columns: 1fr; }
  .timeline-item, .timeline-item:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .new-patient-grid { grid-template-columns: 1fr; }
  .new-patient-step { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .floating-actions { display: none; }
  .mobile-dock { position: fixed; z-index: 65; inset: auto 0 0; height: 64px; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--white); box-shadow: 0 -10px 34px rgba(0,0,0,.17); }
  .mobile-dock a, .mobile-dock button { display: grid; place-items: center; border: 0; border-right: 1px solid rgba(255,255,255,.16); background: transparent; color: inherit; font-size: 12px; font-weight: 900; text-decoration: none; }
  .mobile-dock button[data-msb-book] { background: var(--brand-teal); }
  .modal-backdrop { padding: 0; }
  .booking-dialog { min-height: 100vh; margin: 0; grid-template-columns: 1fr; }
  .booking-visual { min-height: 230px; padding: 28px; }
  .booking-visual h2 { margin-top: 44px; font-size: 40px; }
  .booking-main { padding: 58px 22px 34px; }
  .field-grid, .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .proof-grid, .staff-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-item:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v1 — Neighborly Modern: the real building is the welcome mat. */
:root {
  --ink: #271e17;
  --muted: #6d5f53;
  --paper: #f2e8d6;
  --white: #fffdf6;
  --line: rgba(24, 34, 38, .18);
  --radius: 30px;
  --shadow: 0 28px 70px rgba(49, 48, 39, .14);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
}

body { background-image: radial-gradient(rgba(23,109,156,.05) .7px, transparent .7px); background-size: 9px 9px; }
.site-header { box-shadow: 0 12px 38px rgba(42,47,43,.05); }
.home-hero { background: var(--paper); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy::after { content: ''; position: absolute; inset: 12% 28px 12% auto; width: 1px; background: var(--line); animation: line-drop 1.2s ease both; }
.hero-copy h1 { max-width: 850px; color: #33251c; }
.hero-copy h1 em { color: var(--brand-teal); font-style: italic; }
.hero-media { clip-path: inset(24px 24px 24px 0 round 0 34px 34px 0); }
.hero-media > img { animation: neighbor-pan 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-media-caption { border-radius: 18px; box-shadow: var(--shadow); }
.proof-item strong { color: var(--brand-teal); }
.section-dark { background: #3a2a20; }
.service-tile { border-radius: 30px; }
.service-tile:nth-child(3), .service-tile:nth-child(7) { border-radius: 110px 30px 30px 30px; }
.service-tile-copy { padding-right: 12px; }
.care-index-media { border-radius: 160px 30px 30px 30px; }
.doctor-card { border-radius: 220px 220px 30px 30px; }
.review-quote { border-color: rgba(255,255,255,.28); }
.map-layout { margin-inline: max(18px, calc((100vw - 1440px) / 2)); border-radius: 36px; overflow: hidden; box-shadow: var(--shadow); }
.page-hero { background: linear-gradient(110deg, #f2e8d6 0 68%, #f0e2cf 68%); }
.page-hero-media { border-radius: 180px 30px 30px 30px; box-shadow: var(--shadow); }
.profile-photo { border-radius: 240px 240px 34px 34px; }
.new-patient-step { border-radius: 28px; background: var(--white); }
.booking-dialog, .assistant-message { border-radius: 28px; }
.assistant-message.is-user { border-radius: 28px 28px 6px 28px; }
.assistant-message:not(.is-user) { border-radius: 28px 28px 28px 6px; }

@keyframes neighbor-pan { from { transform: scale(1.08); filter: saturate(.5); } to { transform: scale(1); filter: saturate(1); } }
@keyframes line-drop { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }

@media (max-width: 1050px) {
  .hero-copy::after { display: none; }
  .hero-media { clip-path: inset(0 18px 20px 18px round 32px); }
  .page-hero { background: var(--paper); }
}

@media (max-width: 760px) {
  .hero-media { clip-path: inset(0 10px 10px round 24px); }
  .map-layout { margin-inline: 12px; border-radius: 24px; }
  .service-tile:nth-child(n) { border-radius: 24px; }
}



body.roster-2 .doctor-mosaic { grid-template-columns: 1fr 1fr; }
body.roster-2 .mini-team-grid > a { grid-column: span 3; }
@media (max-width: 1080px) { body.roster-2 .mini-team-grid > a { grid-column: span 6; } }
@media (max-width: 760px) { body.roster-2 .doctor-mosaic { grid-template-columns: 1fr; } body.roster-2 .mini-team-grid > a { grid-column: auto; } }

.staff-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .staff-grid { grid-template-columns: 1fr; } }

.service-tile--type { background: var(--brand-teal); }
.service-tile--type:nth-child(odd) { background: var(--brand-blue); }
.service-tile--type::after { display: none; }
.service-tile--type .service-tile-copy { inset: auto 28px 28px; }

.legacy-content { font-size: 17px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.legacy-content h2 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.12; margin: 1.6em 0 .5em; }
.legacy-content h3 { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 1.4em 0 .4em; }
.legacy-content h4 { font-size: 17px; font-weight: 800; margin: 1.2em 0 .3em; }
.legacy-content > :first-child { margin-top: 0; }
.legacy-content ul, .legacy-content ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.legacy-content li { margin: .3em 0; }
.legacy-content li:has(> img) { list-style: none; margin-left: -1.2em; }
.legacy-content img { max-width: min(100%, 520px); height: auto; border-radius: 12px; margin: 1em 0; display: block; }
.legacy-content table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.legacy-content td, .legacy-content th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legacy-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.legacy-content a { color: var(--brand-teal); overflow-wrap: anywhere; }
.legacy-content .video-link a::before { content: "▶ "; }
.legacy-merge { border-top: 1px solid var(--line); }
.rail-hours { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.rail-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rail-hours li span:last-child { text-align: right; }
.book-panel { background: var(--ink); color: var(--white); border-radius: 16px; padding: clamp(22px, 4vw, 36px); margin: 0 0 32px; }
.book-panel h2 { color: var(--white); margin-top: 0; }
.book-panel .button-quiet { color: var(--white); border-color: rgba(255,255,255,.4); }
.contact-form { display: grid; gap: 14px; margin: 1em 0 2em; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.contact-form .form-note { font-size: 13px; color: var(--muted); margin: 0; }
.contact-form [data-aiss-form-status] { font-weight: 700; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; padding: 0; list-style: none; }
.resource-grid li { border-bottom: 1px solid var(--line); padding: 10px 0; }

.brand img, .footer-brand img { height: auto; }
@media (max-width: 760px) {
  .announcement span:first-child { display: none; }
  .announcement a { white-space: nowrap; }
}

/* three staff after 2026-10-12 */
.staff-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .staff-grid { grid-template-columns: 1fr; } }
