/*
Theme Name: Overstad 2026
Theme URI: https://overstadchiropractic.com
Author: Dependent Media
Author URI: https://dependentmedia.com
Description: Standalone theme for Overstad Chiropractic, Coon Rapids MN. No page builder.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: overstad
*/

:root {
    --navy: #0D2B55;
    --navy-deep: #081F40;
    --navy-soft: #16396B;
    --copper: #C17E35;
    --copper-dark: #A3682A;
    --gold: #F2C230;
    --cream: #F8F6F2;
    --sand: #EFE9DE;
    --white: #FFFFFF;
    --ink: #142038;
    --muted: #5A6377;
    --line: #E4DED2;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 40px -18px rgba(13, 43, 85, .35);
    --shadow-sm: 0 6px 18px -8px rgba(13, 43, 85, .25);
    --diag: 4.5vw;
    --header-h: 84px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration-color: rgba(193, 126, 53, .5); text-underline-offset: 3px; }
a:hover { color: var(--copper-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .9em; }
.ov-icon { width: 1.1em; height: 1.1em; flex: none; }

.eyebrow { font: 700 .8rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin: 0 0 .9rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--gold { color: var(--gold); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font: 700 .9rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--copper { background: var(--copper); color: var(--white); box-shadow: 0 10px 24px -10px rgba(193, 126, 53, .8); }
.btn--copper:hover { background: var(--copper-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--lg { padding: 1.1rem 2rem; font-size: .95rem; }
.btn--sm { padding: .8rem 1.3rem; font-size: .8rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 700 .85rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--copper); text-decoration: none; }
.link-arrow .ov-icon { transition: transform .2s; }
a:hover .link-arrow .ov-icon, .link-arrow:hover .ov-icon { transform: translateX(4px); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .85); font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .45em; color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__contact, .topbar__meta { display: flex; gap: 1.6rem; align-items: center; }
.topbar__meta span .ov-icon { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand img { width: 174px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; white-space: nowrap; padding: .6rem .8rem; color: var(--white); font-weight: 600; text-decoration: none; border-radius: 8px; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.is-current > a { color: var(--gold); }
.site-nav .has-sub { display: flex; align-items: center; }
.site-nav .has-sub > a { padding-right: .2rem; }
.sub-toggle { background: none; border: 0; color: var(--white); padding: .3rem; cursor: pointer; display: flex; }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: .6rem; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.site-nav .sub a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.site-nav .sub a:hover { background: var(--cream); color: var(--copper-dark); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub, .site-nav .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__cta { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45em; color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone .ov-icon { color: var(--gold); }
.header-phone:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: .5rem; cursor: pointer; }
.nav-toggle .ov-icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

/* ---------- diagonals ---------- */
.diag-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%); padding-bottom: calc(var(--diag) + 4rem) !important; }
.diag-both { clip-path: polygon(0 var(--diag), 100% 0, 100% calc(100% - var(--diag)), 0 100%); padding-top: calc(var(--diag) + 4.5rem) !important; padding-bottom: calc(var(--diag) + 4.5rem) !important; margin: calc(var(--diag) * -1) 0; position: relative; z-index: 2; }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% 20%, var(--navy-soft), transparent 60%), var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero__glow { position: absolute; inset: auto -10% -30% auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(193, 126, 53, .18), transparent); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero h1::after { content: ""; display: block; width: 140px; height: 3px; margin-top: 1.4rem; background: linear-gradient(90deg, var(--copper), transparent); }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .86); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.6rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; margin: 0; padding: 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.hero__meta li { display: inline-flex; align-items: center; gap: .45em; }
.hero__meta .ov-icon { color: var(--gold); }
.hero__media { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__portrait { position: relative; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden; border: 6px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); aspect-ratio: 428 / 600; }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.float-review { position: absolute; left: -18%; bottom: 8%; width: 270px; margin: 0; background: var(--white); color: var(--ink); padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.float-review blockquote { margin: .4rem 0 .5rem; font-size: .95rem; line-height: 1.45; }
.float-review figcaption { font-size: .8rem; font-weight: 700; color: var(--muted); }
.float-badge { position: absolute; right: -6%; top: 9%; display: flex; flex-direction: column; gap: .15rem; background: var(--gold); color: var(--navy); padding: .9rem 1.1rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); line-height: 1.2; animation: float 7s ease-in-out infinite reverse; }
.float-badge__k { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.float-badge__v { font-size: .85rem; }
.float-badge__v strong { font-family: var(--serif); font-size: 1.05rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

.stars { display: flex; gap: 2px; color: var(--gold); }
.stars .ov-icon { width: 16px; height: 16px; }
.stars--lg { justify-content: center; margin-bottom: 1.2rem; }
.stars--lg .ov-icon { width: 22px; height: 22px; }

/* ---------- stats ---------- */
.stats { position: relative; z-index: 3; margin-top: calc(var(--diag) * -1 - 2.5rem); }
.stats__card { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 1.8rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stats__card li { text-align: center; padding: .4rem 1rem; border-left: 1px solid var(--line); }
.stats__card li:first-child { border-left: 0; }
.stats__card strong { display: block; font: 700 clamp(2rem, 3.5vw, 2.6rem)/1 var(--serif); color: var(--copper); margin-bottom: .35rem; }
.stats__card span { font-size: .95rem; color: var(--muted); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .88); }
.section--navy h2 { color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.section-head--light p:last-child { color: rgba(255, 255, 255, .75); }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; text-align: left; }
.section-head--row h2 { margin: 0; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--ink); }
.service-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 2.2rem 1.5rem 1.6rem; }
.service-card__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold); flex: none; }
.service-card__icon .ov-icon { width: 26px; height: 26px; }
.service-card__body .service-card__icon { position: absolute; top: -27px; left: 1.5rem; border: 4px solid var(--white); width: 60px; height: 60px; }
.service-card h3 { margin: .3rem 0 .5rem; }
.service-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.also-offered { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5em; margin: 2.5rem 0 0; color: var(--muted); text-align: center; }
.also-offered .ov-icon { color: var(--copper); }
.also-offered a { font-weight: 700; }

/* video */
.video-section__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.video-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame__play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border-radius: 50%; border: 0; background: var(--copper); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 12px rgba(193, 126, 53, .3); transition: transform .2s, box-shadow .2s; }
.video-frame__play:hover { transform: scale(1.07); box-shadow: 0 0 0 18px rgba(193, 126, 53, .25); }
.video-frame__play .ov-icon { width: 32px; height: 32px; margin-left: 5px; }
.video-frame.is-playing .video-frame__play { display: none; }
.pull-quote { margin: 1.8rem 0 0; padding: 1.2rem 0 1.2rem 1.4rem; border-left: 3px solid var(--copper); font: italic 500 1.2rem/1.5 var(--serif); color: var(--navy); }
.pull-quote cite { display: block; margin-top: .6rem; font: 700 .85rem/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }

/* doctor */
.doctor__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.doctor__media { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.doctor__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 428 / 560; object-fit: cover; object-position: 50% 20%; }
.doctor__media::before { content: ""; position: absolute; inset: 1.6rem -1.6rem -1.6rem 1.6rem; border: 2px solid var(--copper); border-radius: var(--radius); z-index: -1; }
.doctor__media { z-index: 0; }
.doctor__badge { position: absolute; left: -1.4rem; bottom: 2rem; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center; }
.doctor__badge strong { display: block; font: 700 2.2rem/1 var(--serif); color: var(--gold); }
.doctor__badge span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.checklist .ov-icon { color: var(--white); background: var(--copper); border-radius: 50%; padding: 4px; width: 24px; height: 24px; margin-top: 1px; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.8rem; }
.quote-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.quote-card__tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.quote-card blockquote { margin: .8rem 0 1.2rem; flex: 1; font: italic 500 1.08rem/1.55 var(--serif); color: var(--white); }
.quote-card figcaption { font-weight: 700; font-size: .92rem; color: rgba(255, 255, 255, .7); }
.quote-card--light { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); break-inside: avoid; margin-bottom: 1.5rem; }
.quote-card--light .quote-card__tag { color: var(--copper); }
.quote-card--light blockquote { color: var(--ink); }
.quote-card--light figcaption { color: var(--muted); }
.quote-masonry { columns: 3 320px; column-gap: 1.5rem; }
.big-quote { margin: 0 auto; font: italic 500 clamp(1.4rem, 2.6vw, 2rem)/1.45 var(--serif); color: var(--white); }
.big-quote__cite { margin-top: 1.2rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--gold); }

/* office gallery */
.office-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1rem; }
.office-gallery figure { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; }
.office-gallery figure:first-child { aspect-ratio: auto; }
.office-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.office-gallery figure:hover img { transform: scale(1.05); }
.office-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; color: var(--white); font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(8, 31, 64, .85)); }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card time { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }
.post-card h3 { margin: .5rem 0; font-size: 1.25rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--copper-dark); }
.post-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .6rem 1rem; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 700; color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--white); }

/* visit + forms */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list li > .ov-icon { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: .15rem; }
.info-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--copper-dark); }
.info-list--cards li { background: var(--white); padding: 1.2rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.hours { margin: 0; display: grid; gap: .25rem; }
.hours div { display: flex; justify-content: space-between; gap: 1.5rem; }
.hours dt, .hours dd { margin: 0; }
.hours dd { font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 10; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow); border-top: 5px solid var(--copper); scroll-margin-top: calc(var(--header-h) + 20px); }
.section--white .form-card { background: var(--cream); }
.form-title { font-size: 1.8rem; }
.ov-form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field span { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field em { color: var(--copper); font-style: normal; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(193, 126, 53, .18); }
.form-fine { font-size: .85rem; color: var(--muted); margin: 0; }
.form-note { display: flex; gap: .8rem; padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; }
.form-note p { margin: .2rem 0 0; }
.form-note--ok { background: #E8F3EA; color: #1E5631; }
.form-note--ok .ov-icon { width: 26px; height: 26px; }
.form-note--err { background: #FCEBE6; color: #8A2B12; font-weight: 600; }

/* inner pages */
.page-hero { position: relative; background: var(--navy); color: var(--white); padding: clamp(3.5rem, 7vw, 6rem) 0 calc(var(--diag) + clamp(3rem, 6vw, 5rem)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 30%, rgba(13, 43, 85, .55)); z-index: 1; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 16em; }
.page-hero__lede { font-size: 1.2rem; max-width: 40em; color: rgba(255, 255, 255, .85); margin: 0; }
.page-hero--post h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.post-meta { color: rgba(255, 255, 255, .75); margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; }
.prose p, .prose li { font-size: 1.1rem; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--copper); }
.prose img { border-radius: var(--radius-sm); }
.prose .btn { margin-top: .8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { background: var(--white); padding: 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 1.2rem; margin: .9rem 0 .4rem; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.feature__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(193, 126, 53, .14); color: var(--copper); }
.feature__icon .ov-icon { width: 22px; height: 22px; }
.feature-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature--inline { display: flex; gap: 1rem; background: var(--cream); box-shadow: none; padding: 1.2rem; }
.feature--inline h3 { margin: 0 0 .25rem; }
.mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mini-service { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--radius); background: var(--cream); text-decoration: none; color: var(--muted); font-size: .98rem; transition: transform .2s, box-shadow .2s; }
.mini-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--muted); }
.mini-service strong { display: block; font: 700 1.15rem/1.3 var(--serif); color: var(--navy); margin-bottom: .25rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-card__img { aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--sand); }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.team-card__body { padding: 1.5rem; }
.team-card h3 { margin: 0; }
.team-card__role { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: .3rem 0 .8rem; }
.team-card p:last-child { color: var(--muted); font-size: 1rem; margin: 0; }
.seminar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.seminar { padding: 1.8rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.seminar__num { font: 700 2rem/1 var(--serif); color: var(--copper); }
.seminar h3 { margin: .8rem 0 .5rem; font-size: 1.2rem; }
.seminar p { color: var(--muted); margin: 0; font-size: 1rem; }
.post-body { padding-top: 3rem; }
.post-feature { margin: 0 0 2.2rem; }
.post-feature img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.post-cta { margin: 3rem 0 2rem; padding: 2rem; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .85); }
.post-cta h2 { color: var(--white); font-size: 1.6rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; }
.post-nav a { text-decoration: none; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%); color: rgba(255, 255, 255, .85); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 36em; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .75); padding: 4.5rem 0 0; font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer__brand img { width: 200px; margin-bottom: 1.2rem; }
.site-footer h3 { font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-social { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.hours--footer { margin-top: 1rem; font-size: .95rem; }
.site-footer .muted { color: rgba(255, 255, 255, .5); }
.site-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.site-footer__base p { margin: 0; }
.mobile-cta { display: none; }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .site-nav > ul > li > a { padding: .6rem .55rem; }
    .header-phone span { display: none; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    :root { --header-h: 72px; }
    .brand img { width: 150px; }
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: var(--nav-top, 114px) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem clamp(16px, 4vw, 40px) 2rem; background: var(--navy); overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
    .nav-open .site-nav { transform: none; }
    .nav-open .nav-toggle__open { display: none; }
    .nav-open .nav-toggle__close { display: block; }
    .nav-open { overflow: hidden; }
    .site-nav > ul { flex-direction: column; }
    .site-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .site-nav > ul > li > a { padding: 1rem .2rem; font-size: 1.15rem; }
    .site-nav .has-sub { flex-wrap: wrap; justify-content: space-between; }
    .sub-toggle { padding: .8rem; }
    .site-nav .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
    .site-nav .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; box-shadow: none; padding: 0 0 .8rem .8rem; }
    .site-nav .has-sub.is-open .sub { display: block; }
    .site-nav .has-sub:hover .sub { display: none; }
    .site-nav .has-sub.is-open:hover .sub { display: block; }
    .site-nav .sub a { color: rgba(255, 255, 255, .85); }
    .site-nav .sub a:hover { background: rgba(255, 255, 255, .06); color: var(--gold); }
    .site-nav__cta { flex-direction: column; align-items: stretch; margin-top: 1.5rem; }
    .header-phone { justify-content: center; padding: .8rem; }
    .header-phone span { display: inline; }
    .hero__grid, .video-section__grid, .doctor__grid, .visit__grid, .split { grid-template-columns: 1fr; }
    .hero__media { margin-top: 1rem; width: min(80%, 380px); }
    .float-review { left: -14%; width: 240px; }
    .doctor__media { max-width: 380px; }
    .quote-grid, .post-grid, .team-grid, .feature-grid, .seminar-grid { grid-template-columns: repeat(2, 1fr); }
    .mini-services { grid-template-columns: 1fr; }
    .office-gallery { grid-template-columns: repeat(2, 1fr); }
    .office-gallery figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .topbar__contact a:last-child { display: none; }
}
@media (max-width: 680px) {
    :root { --diag: 8vw; }
    body { font-size: 1rem; padding-bottom: 64px; }
    .topbar__meta a { display: none; }
    .topbar__inner { justify-content: center; gap: 1.2rem; font-size: .85rem; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__media { width: 82%; }
    .float-review { position: relative; left: auto; bottom: auto; width: auto; margin: -3rem .5rem 0; }
    .float-badge { right: -8%; }
    .stats__card { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
    .stats__card li:nth-child(3) { border-left: 0; }
    .service-grid, .quote-grid, .post-grid, .team-grid, .feature-grid, .seminar-grid, .field-row { grid-template-columns: 1fr; }
    .section-head--row { flex-direction: column; align-items: flex-start; }
    .doctor__badge { left: .8rem; }
    .doctor__media::before { inset: 1rem -.8rem -1rem .8rem; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .cta-band__actions .btn { flex: 1 1 100%; }
    .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 40; justify-content: center; padding: 1rem; border-radius: 999px; background: var(--copper); color: var(--white); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
    .page-request-appointment .mobile-cta, .page-contact .mobile-cta, .nav-open .mobile-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
