/* Dr. Jack Mustard, D.C. — design system
   Palette: warm linen, deep olive, brass. Type: Instrument Serif (display) + Manrope (text). */
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/assets/fonts/manrope.woff2) format("woff2-variations"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f6f2ea;
  --bg-2: #ede6d8;
  --bg-3: #e3d8c4;
  --paper: #fbf9f4;
  --ink: #1b1c18;
  --ink-2: #3d3e37;
  --muted: #6c6a60;
  --line: #d9d0bf;
  --line-soft: #e6dfd1;
  --olive: #262d23;
  --olive-2: #323a2e;
  --brass: #a8792c;
  --brass-light: #d3a659;
  --on-dark: #ece6d9;
  --on-dark-muted: #a9ab9c;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--brass-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 10px; }
.icon { flex: none; }

/* Type */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; margin: 0 0 .45em; color: inherit; }
h1 { font-size: clamp(3rem, 7.2vw, 6.6rem); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.12; letter-spacing: -.005em; }
h1 em, h2 em, .display em { font-style: italic; color: var(--brass); }
.on-dark h1 em, .on-dark h2 em { color: var(--brass-light); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 26px; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.65; color: var(--ink-2); max-width: 54ch; }
.on-dark .lead { color: var(--on-dark); }
.muted { color: var(--muted); }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(84px, 11vw, 160px) 0; }
.section-tight { padding: clamp(64px, 8vw, 110px) 0; }
.bg-2 { background: var(--bg-2); }
.on-dark { background: var(--olive); color: var(--on-dark); }

/* Buttons & links */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn .icon { width: 17px; height: 17px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--olive-2); }
.btn-brass { background: var(--brass-light); color: var(--ink); }
.btn-brass:hover { background: #e2b86b; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn-line-light { border-color: rgba(236,230,217,.5); color: var(--on-dark); }
.btn-line-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-sm { --h: 44px; padding: 0 20px; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: gap .3s var(--ease), color .3s; }
.link-arrow .icon { width: 16px; height: 16px; }
.link-arrow:hover { gap: 14px; color: var(--brass); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 38px; }

/* Header */
.topbar { background: var(--olive); color: var(--on-dark-muted); font-size: .8rem; letter-spacing: .02em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; height: 40px; align-items: center; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--brass-light); }
.topbar span + span::before { content: "·"; margin: 0 12px; opacity: .5; }
.site-header { position: sticky; top: 0; z-index: 80; background: rgba(246,242,234,.9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1; }
.brand-name { font: 400 1.7rem/1 var(--serif); letter-spacing: -.01em; }
.brand-name small { font-size: .62em; margin-left: 2px; color: var(--muted); }
.brand-sub { margin-top: 6px; font: 600 .62rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.main-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); content: ""; transition: transform .3s var(--ease); }
.nav-toggle .bars { top: 19px; }
.nav-toggle .bars::before { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(-7px) rotate(-90deg); }
.mobile-nav { padding: 12px var(--gutter) 28px; border-top: 1px solid var(--line); }
.mobile-nav ul { list-style: none; margin: 0 0 22px; padding: 0; }
.mobile-nav li a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font: 400 1.75rem/1.1 var(--serif); text-decoration: none; }

/* Hero */
.hero { position: relative; min-height: min(92svh, 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #3a3426; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 70% 60%; transform: scale(1.04); animation: heroIn 2.4s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,12,.72) 0%, rgba(20,18,12,.38) 45%, rgba(20,18,12,0) 75%), linear-gradient(0deg, rgba(20,18,12,.55) 0%, rgba(20,18,12,0) 45%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 6vw, 72px); padding-top: 140px; }
.hero h1 { max-width: 11.5ch; margin-bottom: .32em; }
.hero h1 em { color: var(--brass-light); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero .btn-line-light { border-color: rgba(255,255,255,.55); color: #fff; }
.hero .btn-line-light:hover { color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: clamp(48px, 7vw, 96px) 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255,255,255,.25); list-style: none; }
.hero-facts li { padding: 0 48px 0 0; margin-right: 48px; border-right: 1px solid rgba(255,255,255,.25); font-size: .9rem; color: rgba(255,255,255,.78); line-height: 1.4; }
.hero-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts strong { display: block; font: 400 1.9rem/1.1 var(--serif); color: #fff; margin-bottom: 4px; }

/* Intro */
.intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.intro-statement { font: 400 clamp(1.9rem, 3.3vw, 3rem)/1.18 var(--serif); letter-spacing: -.01em; margin: 0 0 40px; }
.intro-statement em { color: var(--brass); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--ink-2); }
.intro-figure { margin-top: clamp(60px, 8vw, 120px); display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: end; }
.intro-figure figure { margin: 0; }

.img-frame { position: relative; overflow: hidden; background: var(--bg-3); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover .img-frame img, .img-frame:hover img { transform: scale(1.035); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-32 { aspect-ratio: 3 / 2; }

/* Section heading row */
.head-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.head-row h2 { margin: 0; }
.head-row p { margin: 0; color: var(--ink-2); max-width: 46ch; justify-self: end; }
.on-dark .head-row p { color: var(--on-dark-muted); }

/* Conditions: editorial index */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 70px 1.1fr 1fr 150px 40px; gap: 28px; align-items: center; padding: 30px 0; text-decoration: none; transition: padding .5s var(--ease); }
.index .num { font: italic 400 1rem/1 var(--serif); color: var(--muted); }
.index .name { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.05 var(--serif); letter-spacing: -.01em; transition: color .3s; }
.index .desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.index .thumb { width: 150px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.index .thumb img { width: 100%; height: 100%; object-fit: cover; }
.index .go, .svc .go { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, border-color .3s, color .3s; }
.index .go .icon, .svc .go .icon { width: 16px; height: 16px; }
.index a:hover { padding-left: 14px; }
.index a:hover .name { color: var(--brass); }
.index a:hover .thumb { opacity: 1; transform: none; }
.index a:hover .go, .svc a:hover .go { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Approach (dark) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(236,230,217,.18); }
.steps li { padding: 40px 40px 0 0; margin-right: 40px; border-right: 1px solid rgba(236,230,217,.18); }
.steps li:last-child { border-right: 0; margin-right: 0; }
.step-n { display: block; font: italic 400 3.4rem/1 var(--serif); color: var(--brass-light); margin-bottom: 28px; }
.steps h3 { margin-bottom: .55em; }
.steps p { color: var(--on-dark-muted); margin: 0; max-width: 34ch; }

/* Doctor */
.doctor { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.doctor-portrait { position: relative; }
.doctor-portrait .img-frame { aspect-ratio: 4 / 5; background: #e3d7c1; }
.doctor-portrait .img-frame img { object-position: 50% 0; }
.doctor-tag { position: absolute; right: -28px; bottom: 40px; background: var(--paper); padding: 20px 24px; box-shadow: 0 30px 60px -30px rgba(27,28,24,.35); }
.doctor-tag strong { display: block; font: 400 1.35rem/1.1 var(--serif); }
.doctor-tag span { font-size: .82rem; color: var(--muted); }
.quote { font: italic 400 clamp(1.6rem, 2.5vw, 2.15rem)/1.3 var(--serif); margin: 0 0 30px; padding: 0 0 0 28px; border-left: 1px solid var(--brass); color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 36px 0; }
.stat-row div { padding: 22px 0; }
.stat-row div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-row strong { display: block; font: 400 2.4rem/1 var(--serif); }
.stat-row span { font-size: .82rem; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.services-aside { position: sticky; top: 130px; }
.services-aside .img-frame { margin-top: 40px; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 1fr 40px; gap: 6px 24px; padding: 34px 0; text-decoration: none; }
.svc h3 { margin: 0; transition: color .3s; }
.svc p { grid-column: 1; margin: 0; color: var(--muted); max-width: 52ch; }
.svc .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.svc a:hover h3 { color: var(--brass); }

/* Gallery band */
.band { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
.band .img-frame:nth-child(2) { margin-top: clamp(40px, 6vw, 90px); }

/* First visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .t-n { font: italic 400 1.7rem/1 var(--serif); color: var(--brass); }
.timeline h3 { font-size: 1.45rem; margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); }
.pay { margin-top: 44px; padding: 32px; background: var(--paper); border: 1px solid var(--line-soft); }
.pay h3 { font-size: 1.5rem; }
.pay ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.pay li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 500; }
.pay p { margin: 0; }

/* Location */
.location { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 560px; }
.map { position: relative; background: var(--bg-3); min-height: 380px; }
.map iframe, .map-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(.95) brightness(1.02); }
.location-card { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.details { list-style: none; margin: 8px 0 0; padding: 0; }
.details li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(236,230,217,.18); font-size: .98rem; }
.details li:last-child { border-bottom: 1px solid rgba(236,230,217,.18); }
.details .k { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 5px; }
.details a { text-decoration: none; border-bottom: 1px solid rgba(236,230,217,.35); }
.details a:hover { color: var(--brass-light); border-color: var(--brass-light); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 110px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font: 400 1.45rem/1.25 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { position: relative; flex: none; width: 16px; height: 16px; }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 7.5px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] .pm::after { transform: rotate(0); }
.faq-list .answer { padding: 0 48px 28px 0; color: var(--ink-2); }
.faq-list .answer p { margin: 0; }

/* Closing CTA */
.closing { text-align: center; }
.closing h2 { font-size: clamp(3rem, 8vw, 7.4rem); margin-bottom: .25em; }
.closing .lead { margin: 0 auto; }
.closing .actions { justify-content: center; }

/* Inner page hero */
.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.page-hero h1 { font-size: clamp(2.9rem, 6vw, 5.6rem); max-width: 13ch; }
.page-hero.no-media h1 { max-width: 16ch; }
.page-hero .img-frame { aspect-ratio: 4 / 5; max-height: 640px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 40px; padding: 0; font-size: .8rem; letter-spacing: .04em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(48px, 7vw, 120px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 3vw, 2.7rem); color: var(--ink); margin: 1.5em 0 .5em; }
.prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brass); }
.prose strong { color: var(--ink); font-weight: 600; }
.ticks { list-style: none; margin: 0 0 1.6em; padding: 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 14px; height: 1px; background: var(--brass); }
.prose .quote-block { margin: 0 0 1.8em; font: italic 400 1.65rem/1.35 var(--serif); color: var(--ink); padding-left: 28px; border-left: 1px solid var(--brass); }
.aside { position: sticky; top: 120px; display: grid; gap: 24px; align-self: start; }
.card { background: var(--paper); border: 1px solid var(--line-soft); padding: 32px; }
.card-h { font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.card .details li { border-color: var(--line); grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
.card .details li:first-child { border-top: 0; padding-top: 0; }
.card .details .k { color: var(--muted); padding: 0; }
.card .details a { border-color: var(--line); }
.card .details a:hover { color: var(--brass); border-color: var(--brass); }
.card .btn + .btn { margin-top: 10px; }
.card .details + .btn { margin-top: 24px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 1.25rem/1.2 var(--serif); }
.related li:last-child a { border-bottom: 0; padding-bottom: 0; }
.related li:first-child a { padding-top: 0; }
.related .icon { width: 16px; height: 16px; color: var(--muted); }
.related a:hover { color: var(--brass); }

/* Tiles (index pages) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 36px); }
.tile { text-decoration: none; display: block; }
.tile .img-frame { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.tile .t-num { font: italic 400 1rem/1 var(--serif); color: var(--muted); }
.tile h2, .tile h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: 8px 0 8px; transition: color .3s; }
.tile p { color: var(--muted); margin: 0; font-size: .96rem; }
.tile:hover h2, .tile:hover h3 { color: var(--brass); }

/* Stats (about) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 2.4em; }
.stats div { padding: 24px 0; }
.stats div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.stats strong { display: block; font: 400 2.6rem/1 var(--serif); color: var(--ink); }
.stats span { font-size: .82rem; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 110px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); }
.form { background: var(--paper); border: 1px solid var(--line-soft); padding: clamp(28px, 4vw, 52px); scroll-margin-top: 120px; }
.form h2 { font-size: clamp(2.1rem, 3.2vw, 2.9rem); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 22px; }
label { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.opt { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
input, select { font: 400 16px/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 12px; width: 100%; min-height: 46px; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6a60' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center/16px no-repeat; padding-right: 24px; }
input:focus, select:focus { outline: 0; border-bottom-color: var(--ink); }
input::placeholder { color: #a7a295; }
input[aria-invalid="true"] { border-bottom-color: #a33a2a; }
.form .btn { margin-top: 12px; }
.form-status { margin: 18px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #3d5a2e; }
.form-status.err { color: #a33a2a; }
.form-note { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }
.map-block { position: relative; aspect-ratio: 4 / 3; margin-top: 28px; background: var(--bg-3); }

/* Footer */
.site-footer { background: var(--olive); color: var(--on-dark-muted); padding: clamp(72px, 9vw, 120px) 0 36px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(236,230,217,.14); }
.footer-mark { font: 400 clamp(2.2rem, 3.4vw, 3rem)/1.05 var(--serif); color: var(--on-dark); margin: 0 0 18px; }
.footer-mark em { color: var(--brass-light); }
.footer-h { font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; font-size: .8rem; opacity: .85; }
.footer-legal p { margin: 0; max-width: 80ch; }

/* Mobile call bar */
.callbar { display: none; }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .12s; }
.js [data-reveal="3"] { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1120px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .index a { grid-template-columns: 50px 1fr 1fr 40px; }
  .index .thumb { display: none; }
  .article { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  body { font-size: 16.5px; padding-bottom: 60px; }
  .topbar { display: none; }
  .header-inner { height: 70px; }
  .brand-name { font-size: 1.45rem; }
  .hero { min-height: 88svh; }
  .hero::after { background: linear-gradient(0deg, rgba(20,18,12,.85) 0%, rgba(20,18,12,.5) 55%, rgba(20,18,12,.15) 100%); }
  .hero-media img { object-position: 78% 50%; }
  .hero-content { padding-top: 120px; }
  .hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 44px; }
  .hero-facts li { padding: 0; margin: 0; border: 0; font-size: .74rem; }
  .hero-facts strong { font-size: 1.45rem; }
  .intro, .doctor, .services, .visit, .faq-grid, .contact, .page-hero-grid, .article { grid-template-columns: 1fr; }
  .intro-cols { grid-template-columns: 1fr; gap: 0; }
  .head-row { grid-template-columns: 1fr; gap: 20px; }
  .head-row p { justify-self: start; }
  .index a { grid-template-columns: 34px 1fr 36px; gap: 6px 16px; padding: 24px 0; }
  .index .num { align-self: start; padding-top: 10px; }
  .index .desc { grid-column: 2; grid-row: 2; }
  .index .go { grid-row: 1 / span 2; grid-column: 3; width: 36px; height: 36px; }
  .index a:hover { padding-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 32px 0; margin: 0; border-right: 0; border-bottom: 1px solid rgba(236,230,217,.18); }
  .steps li:last-child { border-bottom: 0; padding-bottom: 0; }
  .step-n { font-size: 2.6rem; margin-bottom: 14px; }
  .doctor-tag { right: 12px; bottom: 12px; }
  .services-aside { position: static; }
  .services-aside .img-frame { display: none; }
  .band { grid-template-columns: 1fr 1fr; }
  .band .img-frame:nth-child(3) { display: none; }
  .location { grid-template-columns: 1fr; }
  .map { min-height: 340px; order: 2; }
  .page-hero .img-frame { aspect-ratio: 4 / 3; }
  .aside { position: static; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .callbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--olive); padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; color: var(--on-dark); text-decoration: none; font-size: .86rem; font-weight: 600; letter-spacing: .02em; }
  .callbar a:first-child { background: var(--brass-light); color: var(--ink); }
  .callbar a + a { border-left: 1px solid rgba(236,230,217,.14); }
  .callbar .icon { width: 17px; height: 17px; }
}
@media (max-width: 560px) {
  .actions .btn { flex: 1 1 100%; }
  .tiles { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .stat-row div + div, .stats div + div { padding-left: 14px; }
  .stat-row strong, .stats strong { font-size: 1.9rem; }
  .faq-list summary { font-size: 1.25rem; }
  .faq-list .answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .details li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.page-hero.no-media .page-hero-grid { grid-template-columns: 1fr; }

h1, h2, .intro-statement, .closing h2 { text-wrap: balance; }
.lead, .prose p { text-wrap: pretty; }
.hero h1 { max-width: 13ch; }
@media (max-width: 560px) { .hero .eyebrow .long { display: none; } }
