/*
Theme Name: CEPI
Theme URI: https://myepdoc.com/
Author: Rizk Advertising
Description: Custom theme for Cardiac Electrophysiology Institute. Calm precision: white and cool-grey, ink navy, CEPI red.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: cepi
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--c-bg: #ffffff;
	--c-surface: #f4f5f7;
	--c-surface-2: #eef2f6;
	--c-ink: #101b3a;
	--c-ink-muted: #465068;
	--c-line: #e3e6eb;
	--c-accent: #dc2033;
	--c-accent-hover: #b81a2a;
	--c-navy: #0e1a3a;
	--c-sky: #5fb7de;

	--f-display: "Newsreader", Georgia, "Times New Roman", serif;
	--f-body: "Mulish", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--r-card: 16px;
	--r-media: 28px;
	--r-btn: 8px;
	--shadow: 0 1px 2px rgba(16, 27, 58, .04), 0 8px 24px rgba(16, 27, 58, .05);
	--shadow-lift: 0 2px 4px rgba(16, 27, 58, .05), 0 16px 36px rgba(16, 27, 58, .09);

	--container: 1320px;
	--gutter: 24px;
	--section-y: 96px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-accent-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8f1420; }
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 500;
	color: var(--c-ink);
	letter-spacing: -0.01em;
	line-height: 1.12;
	margin: 0 0 .5em;
	font-optical-sizing: auto;
}
h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.06; }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-size: clamp(21px, 2vw, 24px); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-surface); }
.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; }
.section-head p { color: var(--c-ink-muted); font-size: 19px; margin: 0; }
.lede { font-size: 19px; color: var(--c-ink-muted); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 1000; background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); transform: translateY(-400%); }
.skip-link:focus { transform: none; color: #fff; }

/* Icons */
.icon { width: 22px; height: 22px; flex: none; stroke-width: 1.75; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 34px; height: 34px; stroke-width: 1.5; }
.icon--xl { width: 52px; height: 52px; stroke-width: 1.35; }
.icon--accent { color: var(--c-accent); }
.icon--ink { color: var(--c-ink); }

/* Buttons */
.btn, .wp-block-button__link {
	white-space: nowrap;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px;
	font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1;
	border-radius: var(--r-btn); border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn--primary, .wp-block-button__link { background: var(--c-accent); color: #fff; }
.btn--primary:hover, .wp-block-button__link:hover { background: var(--c-accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(220, 32, 51, .22); }
.btn--secondary, .is-style-outline .wp-block-button__link, .btn-secondary .wp-block-button__link { background: transparent; color: var(--c-accent-hover); border-color: var(--c-accent); }
.btn--secondary:hover, .is-style-outline .wp-block-button__link:hover, .btn-secondary .wp-block-button__link:hover { background: var(--c-accent); color: #fff; transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--c-accent-hover); }

/* Cards */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover, .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* ECG motif */
.ecg-line { display: block; color: var(--c-accent); overflow: visible; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid transparent; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand img { width: 204px; height: auto; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--c-ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--c-accent); }
.site-header__actions { display: flex; align-items: center; gap: 22px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.nav-phone .icon { color: var(--c-ink); }
.nav-phone--mobile, .nav-toggle { display: none; }
.nav-toggle { background: none; border: 0; padding: 8px; color: var(--c-ink); cursor: pointer; }
.nav-toggle__close { display: none; }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.home-top { background: var(--c-surface); }
.home-top .site-header { background: rgba(255, 255, 255, .97); }
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f6f7f9 0%, var(--c-surface) 100%); }
.hero:focus { outline: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px; min-height: 620px; }
.hero__copy { align-self: center; padding-block: 72px 120px; max-width: 700px; position: relative; z-index: 2; }
.hero__title { margin-bottom: 28px; }
.hero__sub { font-size: 21px; line-height: 1.55; color: var(--c-ink); max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__photo { margin: 0; align-self: end; justify-self: center; position: relative; }
.hero__photo::before {
	content: ""; position: absolute; inset: 12% -8% 0; z-index: 0;
	background: radial-gradient(closest-side, #e6ebf2 0%, rgba(230, 235, 242, 0) 100%);
}
.hero__photo img { position: relative; z-index: 1; width: auto; max-height: 560px; }
.hero__ecg { position: absolute; left: 0; bottom: 22px; width: 48%; height: 70px; z-index: 1; }

/* ==========================================================================
   Scroll-film hero: a full-screen film the visitor scrubs by scrolling.
   Static (no JS, reduced motion, data saver): the first frame with the hero copy.
   ========================================================================== */
.shero { position: relative; background: var(--c-surface); --hdr: 84px; }
.shero:focus { outline: none; }
.shero__stage { position: relative; height: clamp(600px, calc(100vh - var(--hdr)), 980px); overflow: hidden; background: #0b1330; }
.shero__film { position: absolute; inset: 0; background: #0b1330; }
.shero__poster, .shero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shero__poster { object-fit: cover; object-position: 50% 50%; }
.shero__canvas { display: none; }
.shero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(7, 12, 32, 0.78) 0%, rgba(7, 12, 32, 0.55) 34%, rgba(7, 12, 32, 0) 64%),
		linear-gradient(0deg, rgba(7, 12, 32, 0.45) 0%, rgba(7, 12, 32, 0) 40%); }
.shero__copy-wrap { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none; }
.shero__copy { pointer-events: auto; max-width: 620px; padding-block: 40px; }
.shero .hero__title, .shero .hero__sub, .shero .hero__trust { color: #fff; font-variation-settings: normal; }
.shero .hero__title { text-shadow: 0 2px 30px rgba(7, 12, 32, 0.35); }
.shero .hero__sub { color: #e7ecf4; }
.shero .hero__trust { color: #d5dce8; }
.shero .hero__trust .icon { color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.btn--ghost:hover { background: #fff; color: var(--c-ink); transform: translateY(-2px); }

.shero__beats { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.shero__line { position: absolute; left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); bottom: 12%; max-width: 640px; margin: 0;
	font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.12; letter-spacing: -0.01em;
	color: #fff; font-variation-settings: normal; text-shadow: 0 2px 28px rgba(7, 12, 32, 0.75), 0 0 2px rgba(7, 12, 32, 0.4); opacity: 0; }

.shero__finale { position: absolute; inset: 0; z-index: 4; display: none; align-items: flex-end; justify-content: space-between; gap: 32px;
	padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.shero__finale-copy { align-self: center; max-width: 680px; min-width: min(560px, 46vw); flex: 1 1 auto; }
.shero__finale-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 4.4vw, 68px); line-height: 1.06; letter-spacing: -0.015em; color: var(--c-ink); margin-bottom: 26px; font-variation-settings: normal; }
.shero__who { margin: 0 0 30px; }
.shero__who b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--c-ink); }
.shero__who span { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--c-ink-muted); }
.shero__finale-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; }
.shero__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--c-ink); text-decoration: none; }
.shero__line--light { color: var(--c-ink); text-shadow: 0 1px 18px rgba(255, 255, 255, 0.9); }
.shero__loader { display: none; }

/* ---- film running ---- */
.film-on .shero__driver { height: 630vh; position: relative; }
.film-on .shero__stage { position: sticky; top: var(--hdr); }
.film-on .shero.film-live .shero__poster { opacity: 0; transition: opacity .3s ease; }
.film-on .shero.film-live .shero__canvas { display: block; }
.film-on .shero__beats { display: block; }
.film-on .shero__finale { display: flex; opacity: 0; visibility: hidden; }
.film-on .shero__loader { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); z-index: 5; transition: opacity .4s ease; }
.film-on .shero__loader i { display: block; height: 100%; width: calc(var(--film-load, 0) * 100%); background: var(--c-accent); }
.film-on .shero__loader.done { opacity: 0; }

@media (max-width: 980px) {
	.shero { --hdr: 72px; }
	.shero__stage { height: auto; overflow: visible; background: transparent; }
	.shero__film { position: relative; aspect-ratio: 16 / 9; }
	.shero__scrim, .shero__beats { display: none !important; }
	.shero__copy-wrap { position: relative; display: block; padding-inline: var(--gutter); background: var(--c-surface); }
	.shero__copy { max-width: none; padding-block: 40px 32px; opacity: 1 !important; visibility: visible !important; transform: none !important; }
	.shero .hero__title, .shero .hero__sub { color: var(--c-ink); text-shadow: none; }
	.shero .hero__trust { color: var(--c-ink-muted); }
	.shero .hero__trust .icon { color: var(--c-accent); }
	.btn--ghost { color: var(--c-accent-hover); border-color: var(--c-accent-hover); }
	/* phones: copy first, then the film pins under the header with its lines below the picture */
	.film-on .shero__driver { height: auto; display: flex; flex-direction: column; }
	.film-on .shero__driver::after { content: ""; display: block; height: 405vh; order: 3; }
	.film-on .shero__stage { position: static; display: contents; }
	.film-on .shero__copy-wrap { order: 1; }
	.film-on .shero__film { order: 2; }
	.film-on .shero__film { position: sticky; top: var(--hdr); aspect-ratio: auto; height: calc(100svh - var(--hdr) - 60px); }
	.film-on .shero__beats { display: block !important; }
	.film-on .shero__line { left: var(--gutter); right: var(--gutter); bottom: 6%; font-size: 26px; color: #fff; }
	.shero__finale { padding-inline: var(--gutter); flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 0; }
	.shero__finale-copy { align-self: auto; order: 2; padding-bottom: 24px; min-width: 0; flex: 0 0 auto; }
	.shero__finale { background: linear-gradient(180deg, rgba(244,245,247,0) 52%, rgba(244,245,247,0.92) 66%); }
	.shero__finale-title { font-size: 32px; margin-bottom: 12px; }
	.shero__who { margin-bottom: 16px; }
	.shero__who b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
	.film-on .shero__driver { height: auto; }
	.film-on .shero__driver::after { display: none; }
}

/* Hero trust line */
.hero__trust { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 15px; font-weight: 600; color: var(--c-ink-muted); }

/* Problem (Sonic Boom) */
.pain { padding-block: 24px 88px; }
.pain__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.pain h2 { margin: 0; }
.pain__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pain__list li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--c-surface); border-radius: var(--r-card); font-size: 17px; line-height: 1.5; }
.pain__list .icon { margin-top: 2px; }
.pain__close { font-family: var(--f-display); font-size: 24px; line-height: 1.35; color: var(--c-ink); margin: 0; padding-left: 18px; border-left: 3px solid var(--c-accent); }

/* Credentials strip */
.creds { background: #fff; padding-block: 64px; }
.creds__list {
	list-style: none; margin: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card);
}
.creds__list li { display: flex; align-items: center; gap: 22px; padding: 22px 32px; font-size: 19px; line-height: 1.35; color: var(--c-ink); }
.creds__list li + li { border-left: 1px solid var(--c-line); }
.creds__list .icon { width: 60px; height: 60px; stroke-width: 1.2; }

/* Treatments grid */
.treat { background: #fafbfc; padding-top: 72px; }
.treat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.treat-card { display: flex; align-items: center; gap: 22px; padding: 26px 28px; text-decoration: none; height: 100%; }
.treat-card__text { display: flex; flex-direction: column; gap: 4px; }
.treat-card__title { font-family: var(--f-display); font-size: 23px; color: var(--c-ink); line-height: 1.2; }
.treat-card .icon--lg { width: 52px; height: 52px; stroke-width: 1.35; }

/* Physicians */
.docs { background: #fafbfc; }
.docs__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.docs-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--c-surface-2); border-radius: var(--r-media); overflow: hidden; }
.doc-card { display: flex; flex-direction: column; text-decoration: none; }
.doc-card__photo { display: flex; justify-content: center; align-items: flex-end; height: 340px; padding-top: 24px; overflow: hidden; }
.doc-card__photo img { height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; transition: transform .35s ease; }
.doc-card:hover .doc-card__photo img { transform: scale(1.03); }
.doc-card__meta { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; padding: 20px 12px 24px; text-align: center; }
.doc-card__name { font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--c-ink); }
.doc-card__cred { font-size: 15px; font-weight: 600; color: var(--c-accent); }
.docs__copy h2 { margin-bottom: 20px; }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.points li { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 6px 16px; font-size: 18px; line-height: 1.4; }
.points .icon { width: 50px; height: 50px; stroke-width: 1.3; }
.points li + li { border-left: 1px solid var(--c-line); }

/* Process */
.process h2 { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { display: flex; align-items: center; gap: 18px; padding: 8px 28px; }
.step + .step { border-left: 1px solid #d9dde4; }
.step__num { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.step p { margin: 0; font-size: 18px; line-height: 1.5; }
.step .icon--xl { width: 72px; height: 72px; stroke-width: 1.1; }
.step strong { font-weight: 700; }

/* Reviews */
.reviews h2 { margin-bottom: 44px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; padding: 32px 32px 26px; display: flex; flex-direction: column; }
.quote blockquote { margin: 14px 0 22px; flex: 1; }
.quote__mark { font-family: var(--f-display); font-size: 88px; line-height: .8; height: 44px; color: var(--c-accent); }
.quote blockquote p { font-family: var(--f-display); font-style: italic; font-size: 29px; line-height: 1.35; color: var(--c-ink); margin: 0; }
.quote figcaption { font-size: 14px; color: var(--c-ink-muted); padding-top: 14px; border-top: 1px solid var(--c-line); }

/* Referral band */
.referral-wrap { padding-block: 24px 88px; }
.referral { display: flex; align-items: center; gap: 48px; padding: 76px 80px; border-radius: var(--r-card); background: var(--c-surface-2); }
.referral__copy { flex: 1; }
.referral h2 { font-size: clamp(30px, 3.6vw, 52px); margin: 0 0 10px; }
.referral p { font-size: 22px; color: var(--c-ink); }
.referral .icon--xl { width: 112px; height: 112px; stroke-width: 1; }
.referral .btn { min-height: 68px; padding: 0 44px; font-size: 20px; white-space: nowrap; }
.referral p { margin: 0; color: var(--c-ink-muted); }

/* Areas + map */
.areas { border-top: 1px solid var(--c-line); }
.areas__inner { display: grid; grid-template-columns: minmax(360px, 40%) 1fr; min-height: 460px; }
.areas__copy { padding: 56px var(--gutter) 56px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.areas__list { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 10px 32px; }
.areas__list a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); text-decoration: none; font-size: 17px; }
.areas__list .icon { fill: var(--c-accent); color: #fff; stroke-width: 1.5; width: 24px; height: 24px; }
.areas h2 { white-space: nowrap; font-size: clamp(30px, 3vw, 42px); }
.areas__list a:hover { color: var(--c-accent); }
.areas__addr { display: flex; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--c-ink); }
.areas__map { position: relative; overflow: hidden; background: #f3f4f5; }
.areas__map img { width: 100%; height: 100%; object-fit: cover; }
.areas__map::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; z-index: 1; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.pin { position: absolute; z-index: 2; transform: translate(-14px, -100%); display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--c-ink); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.pin .icon { color: #fff; fill: var(--c-accent); width: 32px; height: 32px; stroke-width: 1.5; }

/* FAQ */
.faq { padding-block: 40px 80px; }
.faq .container--narrow { max-width: calc(1160px + 2 * var(--gutter)); }
.faq__item summary .icon { width: 28px; height: 28px; }
.faq__list { border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff; }
.faq__item + .faq__item { border-top: 1px solid var(--c-line); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 40px; cursor: pointer; font-family: var(--f-display); font-size: 27px; color: var(--c-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { padding: 0 40px 24px; margin: 0; color: var(--c-ink-muted); }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */
.cta-band { position: relative; background: var(--c-navy); color: #fff; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; max-width: none; margin-inline: auto; padding: 64px 9%; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 20px 40px; }
.cta-band__title { font-family: var(--f-display); font-size: clamp(28px, 2.7vw, 40px); white-space: nowrap; line-height: 1.15; margin: 0; color: #fff; }
.cta-band__phone { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 600; text-decoration: none; }
.cta-band__phone:hover { color: #fff; text-decoration: underline; }
.cta-band__note { position: relative; z-index: 1; margin: -40px 0 0; padding: 0 var(--gutter) 40px; text-align: center; color: #c7cede; font-size: 16px; }
.cta-band__ecg { position: absolute; top: 50%; width: 8%; height: 70px; transform: translateY(-50%); color: var(--c-accent); }
.cta-band__ecg--l { left: 0; }
.cta-band__ecg--r { right: 0; transform: translateY(-50%) scaleX(-1); }

.site-footer { background: #fafbfc; padding: 56px 0 24px; font-size: 16px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 0; }
.site-footer__grid > * { padding: 0 32px; }
.site-footer__grid > * + * { border-left: 1px solid var(--c-line); }
.site-footer__grid > :first-child { padding-left: var(--gutter); }
.site-footer__brand img { width: 220px; margin-bottom: 18px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer a { color: var(--c-ink); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer__head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__legal { margin-top: 40px; text-align: center; font-size: 14px; color: var(--c-ink-muted); }
.site-footer__legal p { margin: 0; }
.mobile-call { display: none; }

/* ==========================================================================
   Block pages (service template and all inner pages)
   ========================================================================== */
.entry > * { margin-block: 0; }
.entry > .wp-block-group > :where(:not(.alignfull)) { max-width: var(--container); margin-left: auto; margin-right: auto; }
.entry > .wp-block-group { padding: var(--section-y) var(--gutter); }
.entry .is-tint { background: var(--c-surface); }
.entry .is-sky { background: var(--c-surface-2); }

/* Page hero */
.page-hero { background: linear-gradient(180deg, #f6f7f9, var(--c-surface)); padding-block: 72px 64px !important; }
.page-hero .wp-block-columns { align-items: center; gap: 56px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lede { font-size: 20px; color: var(--c-ink); }
.page-hero .wp-block-image img { border-radius: var(--r-media); width: 100%; height: auto; }
.breadcrumbs { font-size: 14px; color: var(--c-ink-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--c-ink-muted); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 12px; }

/* Content */
.prose { font-size: 18px; }
.prose h2 { margin-top: 1.2em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: .4em; }
.entry .wp-block-columns { gap: 48px; }
.entry .card.wp-block-group { padding: 28px; }
.entry .card h3 { margin-bottom: 8px; }
.entry .card p:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }

.step-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.step-list li { counter-increment: step; position: relative; padding: 22px 24px 22px 76px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); }
.step-list li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--c-ink); color: #fff; display: grid; place-items: center; font-weight: 700; }

.callout { border-left: 3px solid var(--c-accent); background: var(--c-surface-2); padding: 22px 26px; border-radius: 0 var(--r-card) var(--r-card) 0; }
.callout p:last-child { margin: 0; }

.entry .wp-block-details { border: 1px solid var(--c-line); background: #fff; border-radius: 12px; padding: 0; margin-bottom: 12px; }
.entry .wp-block-details summary { padding: 18px 24px; cursor: pointer; font-family: var(--f-display); font-size: 21px; list-style-position: inside; }
.entry .wp-block-details > :not(summary) { padding: 0 24px 18px; margin: 0; color: var(--c-ink-muted); }

.entry .wp-block-quote { margin: 0; border: 0; padding: 0; }
.entry .wp-block-quote p { font-family: var(--f-display); font-style: italic; font-size: 24px; line-height: 1.35; }
.entry .wp-block-quote cite { font-style: normal; font-size: 14px; color: var(--c-ink-muted); }

.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-grid li a { display: block; padding: 16px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; color: var(--c-ink); text-decoration: none; font-weight: 600; transition: border-color .2s ease, transform .2s ease; }
.link-grid li a:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-2px); }

.contact-card p { display: flex; gap: 12px; align-items: flex-start; }
.contact-card a { color: var(--c-ink); }

.post-head { padding-top: 64px; }
.post-meta { color: var(--c-ink-muted); font-size: 15px; }
.post-body { padding-bottom: 64px; }
.post-list { list-style: none; padding: 0; display: grid; gap: 24px; }



/* Service template sections */
.page-hero .wp-block-buttons { gap: 14px; margin-top: 30px; }
.page-hero .page-hero__ecg { width: 100%; max-width: 560px; height: 64px; margin-top: 18px; margin-left: calc(-1 * var(--gutter)); }
.page-hero .wp-block-image { margin: 0; }
.page-hero .wp-block-image img { aspect-ratio: 1055 / 760; object-fit: cover; box-shadow: var(--shadow); }
.section-title { text-align: center; margin-bottom: 40px !important; }
.sym-grid { gap: 20px !important; }
.sym-grid .card { text-align: center; padding: 30px 20px !important; height: 100%; }
.sym-grid .card p { font-size: 18px; color: var(--c-ink); }
.block-icon { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sym-grid .block-icon { justify-content: center; }
.callout-rule { max-width: 980px; margin: 44px auto 0 !important; padding-left: 22px; border-left: 3px solid var(--c-accent); font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--c-ink); }
.doc-split { gap: 24px !important; align-items: stretch !important; }
.doc-split .docs-panel { height: 100%; }
.doc-split .doc-card__photo { height: 380px; }
.panel-tint { background: var(--c-surface); border-radius: var(--r-media); padding: 56px 56px !important; height: 100%; }
.panel-tint h2 { margin-bottom: 18px; }
.steps-grid { gap: 20px !important; }
.steps-grid .card { padding: 28px 26px !important; height: 100%; text-align: center; }
.steps-grid .block-icon { justify-content: space-between; align-items: flex-start; }
.steps-grid .card h3 { font-size: 23px; }
.steps-grid .card p { font-size: 16px; color: var(--c-ink-muted); }
.fit-grid { gap: 24px !important; }
.fit-grid .card { padding: 36px 40px !important; height: 100%; }
.fit-grid h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 18px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid var(--c-line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: var(--c-ink); text-decoration: none; font-size: 18px; }
.link-list a::after { content: "\2192"; color: var(--c-accent); }
.link-list a:hover { color: var(--c-accent); }
.faq-blocks { max-width: 1160px; margin-inline: auto; }
.faq-blocks .wp-block-details { border-radius: 0; margin: 0; border-bottom-width: 0; }
.faq-blocks .wp-block-details:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.faq-blocks .wp-block-details:last-child { border-radius: 0 0 var(--r-card) var(--r-card); border-bottom-width: 1px; }
.faq-blocks .wp-block-details summary { font-size: 27px; padding: 22px 40px; }
.faq-blocks .wp-block-details > :not(summary) { padding: 0 40px 22px; }
.entry .section-tight { padding-block: 40px 72px !important; }
.check-list li { font-size: 18px; }
@media (max-width: 980px) {
	.panel-tint { padding: 36px 28px !important; }
	.doc-split .doc-card__photo { height: 260px; }
	.faq-blocks .wp-block-details summary { font-size: 21px; padding: 18px 22px; }
	.faq-blocks .wp-block-details > :not(summary) { padding: 0 22px 18px; }
	.page-hero .page-hero__ecg { display: none; }
}


.page-hero .wp-block-columns > .wp-block-column:first-child { flex-basis: 44%; }
.page-hero .wp-block-columns > .wp-block-column:last-child { flex-basis: 56%; }
.page-hero h1 { font-size: clamp(40px, 4.6vw, 68px); }
.page-hero .lede { font-size: 21px; }
.sym-grid .card { padding: 36px 24px !important; }
.sym-grid .icon { width: 88px; height: 88px; stroke-width: 1.1; }
.sym-grid .card p { font-size: 22px; line-height: 1.35; max-width: 14em; margin-inline: auto; }
.callout-rule { max-width: var(--container); margin: 48px auto 0 !important; font-size: clamp(24px, 2.6vw, 36px); }
.steps-grid .block-icon { justify-content: center; align-items: center; gap: 28px; margin-bottom: 18px; }
.steps-grid .icon { width: 76px; height: 76px; stroke-width: 1.1; }
.steps-grid .step__num { width: 48px; height: 48px; font-size: 21px; }
.steps-grid .card h3 { font-size: 26px; }
.steps-grid .card p { font-size: 18px; line-height: 1.55; }
@media (max-width: 980px) { .sym-grid .icon, .steps-grid .icon { width: 60px; height: 60px; } }


.panel-tint h2 { font-size: clamp(30px, 2.9vw, 42px); }
.panel-tint p { font-size: 19px; }
.entry .check-list li { padding-left: 46px; margin-bottom: 18px; font-size: 19px; }
.entry .check-list li::before { width: 30px; height: 30px; top: -2px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2033' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2px solid var(--c-accent); box-sizing: border-box; }
.fit-grid .card { padding: 48px 52px !important; }
.fit-grid h3 { font-size: clamp(28px, 2.9vw, 42px); margin-bottom: 26px; }
.link-list a { font-size: 20px; padding: 16px 0; }
.link-list a::after { font-size: 24px; }
.faq-blocks .wp-block-details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-blocks .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-blocks .wp-block-details summary::after { content: "+"; font-family: var(--f-body); font-size: 32px; font-weight: 300; line-height: 1; color: var(--c-ink); transition: transform .2s ease; }
.faq-blocks .wp-block-details[open] summary::after { transform: rotate(45deg); }
.sonic-section-06-faq .section-title { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 24px !important; }


@media (max-width: 781px) {
	.entry .sym-grid { flex-wrap: wrap !important; gap: 12px !important; }
	.entry .sym-grid > .wp-block-column { flex-basis: calc(50% - 6px) !important; }
	.sym-grid .card { padding: 22px 12px !important; }
	.sym-grid .icon { width: 44px; height: 44px; }
	.sym-grid .card p { font-size: 16px; }
}


.physician-hero .wp-block-image img { aspect-ratio: auto; max-height: 520px; width: auto; margin-inline: auto; object-fit: cover; }
.physicians-grid .docs-panel { max-width: 900px; margin-inline: auto; }
.map-wrap { padding-top: 0 !important; }
.map-embed { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--r-card); }
.link-grid li a { height: 100%; }

.entry > .wp-block-group > .prose { max-width: 860px; }
.entry .physician-hero + .wp-block-group .prose { max-width: none; }

/* Request form */
.req-form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 32px; }
.req-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.req-form__title { display: block; font-family: var(--f-display); font-size: 26px; color: var(--c-ink); margin-bottom: 18px; padding: 0; }
.req-form__progress { display: none; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--c-ink-muted); margin-bottom: 18px; }
.req-form.is-js .req-form__progress { display: flex; }
.req-form__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--c-line); overflow: hidden; }
.req-form__bar span { display: block; height: 100%; width: 50%; background: var(--c-accent); transition: width .3s ease; }
.req-form__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.req-form__choices.is-invalid .choice { border-color: var(--c-accent); }
.choice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 10px; cursor: pointer; font-size: 16px; }
.choice:has(input:checked) { border-color: var(--c-accent); background: #fdf1f2; }
.choice input { accent-color: var(--c-accent); width: 18px; height: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #c9ced8; border-radius: 8px; font: inherit; font-size: 17px; color: var(--c-ink); background: #fff; }
.field input:focus, .field select:focus { outline: 3px solid var(--c-sky); outline-offset: 1px; border-color: var(--c-ink); }
.optional { font-weight: 400; color: var(--c-ink-muted); }
.req-form__note { font-size: 14px; color: var(--c-ink-muted); }
.req-form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.req-form:not(.is-js) .req-form__next, .req-form:not(.is-js) .req-form__back { display: none; }
.req-form__hp { position: absolute; left: -9999px; }
.req-form--done { border-left: 4px solid var(--c-accent); }
@media (max-width: 640px) { .req-form { padding: 22px; } .req-form__choices { grid-template-columns: 1fr; } }

/* ==========================================================================
   Motion (only when JS adds .js-motion and the user allows motion)
   ========================================================================== */
.js-motion .reveal, .js-motion .stagger > *, .js-motion .reveal-hero { opacity: 0; }
.js-motion .ecg-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-motion .is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
	.nav-list { gap: 20px; }
	.nav-phone span { display: none; }
}
@media (max-width: 980px) {
	:root { --section-y: 64px; --gutter: 20px; }
	.site-header__inner { min-height: 72px; gap: 12px; }
	.brand img { width: 168px; }
	.nav-toggle { display: inline-flex; }
	.site-header__actions .nav-phone, .site-header__actions .btn { display: none; }
	.site-header__actions { margin-left: auto; }
	.primary-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; border-top: 1px solid var(--c-line); box-shadow: var(--shadow-lift); padding: 16px 20px 24px; display: none; margin: 0; }
	.nav-open .primary-nav { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--c-line); }
	.nav-phone--mobile { display: inline-flex; margin-top: 18px; }

	.hero__inner { grid-template-columns: 1fr; min-height: 0; }
	.hero__copy { padding-block: 48px 8px; }
	.hero__photo img { max-height: 360px; }
	.hero__ecg { display: none; }
	.creds__list { grid-template-columns: 1fr 1fr; gap: 14px 0; }
	.creds__list li:nth-child(3) { border-left: 0; }
	.treat-grid { grid-template-columns: 1fr 1fr; }
	.docs__inner { grid-template-columns: 1fr; gap: 40px; }
	.pain__inner { grid-template-columns: 1fr; gap: 28px; }
	.cta-band__note { margin-top: -28px; }
	.steps { grid-template-columns: 1fr; gap: 18px; }
	.step + .step { border-left: 0; }
	.quotes { grid-template-columns: 1fr; }
	.areas__inner { grid-template-columns: 1fr; }
	.areas__copy { padding: 48px var(--gutter) 24px; }
	.areas__map { height: 300px; }
	.areas__map::before { display: none; }
	.pin { display: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
	.site-footer__grid > :nth-child(3) { border-left: 0; padding-left: var(--gutter); }
	.cta-band__ecg { display: none; }
	.cta-band__inner { padding: 48px var(--gutter); flex-wrap: wrap; }
	.cta-band__title { white-space: normal; text-align: center; }
	.referral { padding: 36px 32px; gap: 24px; flex-wrap: wrap; }
	.referral .icon--xl { width: 64px; height: 64px; }
	.link-grid { grid-template-columns: 1fr 1fr; }
	.page-hero .wp-block-columns { gap: 32px; }
}
@media (max-width: 640px) {
	.areas h2 { white-space: normal; }
	.areas__list { grid-auto-flow: row; grid-template-rows: none; }
	body { font-size: 17px; padding-bottom: 64px; }
	.hero__sub { font-size: 18px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.creds__list { grid-template-columns: 1fr; padding: 8px; }
	.creds__list li + li { border-left: 0; border-top: 1px solid var(--c-line); }
	.creds__list li { padding: 12px; }
	.treat-grid { grid-template-columns: 1fr; }
	.pain__list { grid-template-columns: 1fr; }
	.treat-card { padding: 20px; }
	.doc-card__photo { height: 230px; }
	.doc-card__name { font-size: 18px; }
	.doc-card__cred { font-size: 13px; }
	.points { grid-template-columns: 1fr; gap: 16px; }
	.points li { flex-direction: row; text-align: left; padding: 0; }
	.points li + li { border-left: 0; }
	.step { padding: 0; }
	.referral { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
	.areas__list { grid-template-columns: 1fr 1fr; }
	.faq__item summary { padding: 16px 20px; font-size: 19px; }
	.faq__item p { padding: 0 20px 18px; }
	.cta-band__inner { flex-direction: column; text-align: center; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__grid > * { padding: 0 var(--gutter) !important; border-left: 0 !important; }
	.link-grid { grid-template-columns: 1fr; }
	.mobile-call {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 60px;
		background: var(--c-accent); color: #fff; font-weight: 700; text-decoration: none;
		box-shadow: 0 -4px 16px rgba(16, 27, 58, .12);
	}
	.mobile-call:hover { color: #fff; }
}
