/* ==========================================================================
   Legacy Spine & Sport  ·  SCM Marketing Solutions
   --------------------------------------------------------------------------
   Genesis's editorial structure in Legacy's blue-and-orange. Real photos
   doing the work, no bordered cards, headlines in sentence case with one
   italic accent word, and a floating card on the hero that carries the
   address, phone, hours and closure notice.
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
	--blue: #2aa8df;
	--blue-deep: #1a86b6;
	--orange: #f7ad3b;
	--orange-deep: #e0951f;
	--navy: #14212b;
	--navy-2: #1c2e3a;
	--ink: #1f2933;
	--body: #4d5760;
	--muted: #7d8790;
	--line: #e4e9ed;
	--tint: #f3f7fa;
	--paper: #ffffff;

	--sans: "proxima-nova", "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--display: "Barlow", var(--sans);

	--r: 6px;
	--shadow: 0 10px 30px rgba(20, 33, 43, 0.12), 0 2px 6px rgba(20, 33, 43, 0.06);
	--shadow-lg: 0 24px 60px rgba(20, 33, 43, 0.18), 0 6px 14px rgba(20, 33, 43, 0.08);

	--container: 1200px;
	--gutter: 1.25rem;
	--section: 5rem;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 900px) {
	:root {
		--gutter: 2rem;
		--section: 7rem;
	}
}

/* 2. Base ================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--body);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
	margin: 0 0 0.6em;
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--ink);
}

/* The italic accent word. Blue on light, orange on dark. */
h1 em, h2 em, .h2 em, .banner__title em {
	font-style: italic;
	font-weight: 700;
	color: var(--blue);
}

.h2 {
	font-size: clamp(2rem, 4.2vw, 3rem);
	margin-bottom: 0.5em;
}

.h2--light { color: #fff; }
.h2--light em { color: var(--orange); }

.h3 {
	font-size: 1.375rem;
	margin-bottom: 0.4em;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	font-family: var(--display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--blue-deep);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	background: var(--orange);
	flex: none;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.eyebrow--center { justify-content: center; margin-bottom: 1.5rem; }

.signature {
	font-family: var(--display);
	font-style: italic;
	font-weight: 600;
	font-size: 1.125rem;
	color: var(--ink);
}

.textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 2px solid var(--orange);
	padding-bottom: 2px;
}

.textlink:hover { color: var(--blue-deep); }

/* 3. Layout ================================================================ */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: 780px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #c9d3da; }

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	margin-bottom: 3rem;
}

.section__head .h2 { margin-bottom: 0; }
.section__head .textlink { margin-bottom: 0.6rem; }

/* 4. Buttons =============================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--r);
	font-family: var(--display);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn .icon { transition: transform 0.18s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary { background: var(--orange); border-color: var(--orange); color: #2b1d05; }
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #2b1d05; }

.btn--secondary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--secondary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline:hover { background: #fff; border-color: #fff; color: var(--navy); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--sm { padding: 0.7rem 1.1rem; font-size: 0.8125rem; }
.btn--phone { font-size: 1rem; letter-spacing: 0.02em; text-transform: none; }
.btn--phone .icon { transform: none !important; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.icon { flex: none; }
.stars { display: inline-flex; gap: 1px; color: var(--orange); }

/* 5. Top bar and header ==================================================== */

.topbar {
	background: var(--navy);
	color: #b9c6cf;
	font-size: 0.8125rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 38px;
}

.topbar__right { display: flex; align-items: center; gap: 1.25rem; }

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.topbar__item .icon { color: var(--blue); }
.topbar__item:hover { color: #fff; }
.topbar__item--phone { color: #fff; font-weight: 700; }
.topbar__item .is-closed { color: var(--orange); font-weight: 700; }
.topbar__social { color: #b9c6cf; display: inline-flex; }
.topbar__social:hover { color: #fff; }

@media (max-width: 719px) {
	.topbar__inner > .topbar__item:first-child { display: none; }
	.topbar__inner { justify-content: center; }
}

.announce {
	background: var(--orange);
	color: #2b1d05;
	font-family: var(--display);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
}

.announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding-block: 0.6rem;
	position: relative;
}

.announce__close {
	position: absolute;
	right: var(--gutter);
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	opacity: 0.7;
}

.announce__close:hover { opacity: 1; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 0 1px 0 var(--line);
	transition: box-shadow 0.2s var(--ease);
}

.site-header.is-stuck { box-shadow: var(--shadow); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 84px;
}

.site-header__brand { flex: none; margin-right: auto; }
.site-header__brand img { width: auto; height: 48px; }
@media (min-width: 1200px) { .site-header__brand img { height: 56px; } }

.site-nav { display: none; }
@media (min-width: 1024px) { .site-nav { display: block; } }

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list > li { position: relative; }

.site-nav__list a {
	display: block;
	padding: 0.5rem 0;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__list > li > a::after {
	content: "";
	display: block;
	height: 3px;
	margin-top: 3px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s var(--ease);
}

.site-nav__list > li:hover > a::after,
.site-nav__list > li.current-menu-item > a::after,
.site-nav__list > li.current_page_item > a::after,
.site-nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); }

.site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -0.75rem;
	min-width: 230px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
	z-index: 5;
}

.site-nav__list > li:hover .sub-menu,
.site-nav__list > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-nav__list .sub-menu a { padding: 0.5rem 0.75rem; border-radius: 4px; font-weight: 600; font-size: 0.9375rem; }
.site-nav__list .sub-menu a:hover { background: var(--tint); color: var(--blue-deep); }

.site-header__actions { display: none; }
@media (min-width: 1024px) { .site-header__actions { display: block; } }
@media (min-width: 1024px) and (max-width: 1199px) {
	.site-header__inner { gap: 1.25rem; }
	.site-nav__list { gap: 1.1rem; }
	.site-nav__list a { font-size: 0.9375rem; }
	.site-header__brand img { height: 42px; }
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: #fff;
	cursor: pointer;
}

@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-toggle__bars { display: grid; gap: 5px; width: 22px; }
.nav-toggle__bars span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: sticky; top: 84px; z-index: 49; background: #fff; box-shadow: var(--shadow); }
.mobile-nav[hidden] { display: none; }
.mobile-nav__list { margin: 0; padding: 0.5rem 0; list-style: none; }
.mobile-nav__list a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
.mobile-nav__list .sub-menu { margin: 0; padding-left: 1rem; list-style: none; }
.mobile-nav__list .sub-menu a { font-size: 1rem; font-weight: 600; color: var(--body); }
.mobile-nav__meta { display: grid; gap: 0.75rem; padding: 1rem 0 1.5rem; }
.mobile-nav__meta a:not(.btn) { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.mobile-nav__meta .icon { color: var(--blue); }

/* 6. Hero ================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	background: var(--navy);
	color: #fff;
	overflow: hidden;
}

.hero__backdrop { position: absolute; inset: 0; z-index: -2; }
/* Anchored top right so Dr. Colby's head stays in frame at every viewport. */
.hero__bg { width: 100%; height: 100%; object-fit: cover; object-position: right top; }

/* Navy sweeps in from the left so the copy sits on solid color and the photo
   stays clean on the right, the way Momentum does it. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(95deg, rgba(20, 33, 43, 0.96) 0%, rgba(20, 33, 43, 0.9) 40%, rgba(20, 33, 43, 0.5) 65%, rgba(20, 33, 43, 0.1) 100%);
}

.hero__inner {
	display: grid;
	gap: 2.5rem;
	align-items: center;
	padding-block: 4.5rem;
}

@media (min-width: 900px) {
	.hero__inner {
		padding-block: 7rem;
		min-height: 620px;
	}
}

.hero__content { max-width: 620px; }

.hero__heading {
	margin-bottom: 0.4em;
	color: #fff;
	font-size: clamp(2.75rem, 7vw, 4.75rem);
	font-weight: 800;
	line-height: 0.98;
}

.hero__heading em { color: var(--orange); }

.hero__text {
	max-width: 46ch;
	font-size: 1.1875rem;
	color: rgba(255, 255, 255, 0.86);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* 7. Ticker ================================================================ */

.ticker {
	background: var(--blue);
	color: #fff;
}

.ticker__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0;
	padding-block: 0.85rem;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ticker__inner span { padding-inline: 1.25rem; position: relative; }
.ticker__inner span + span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--orange);
	transform: translate(-50%, -50%);
}

/* 8. Feature: photo beside copy ============================================ */

.feature {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 900px) {
	.feature { grid-template-columns: 1fr 1fr; gap: 5rem; }
	.feature--flip .feature__media,
	.feature--flip .collage { order: 2; }
}

.feature__body p { max-width: 58ch; }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }

.framed {
	width: 100%;
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Service photos are portraits, so they get a taller frame and a cap on width. */
.framed--tall { aspect-ratio: 4 / 5; max-width: 480px; }
.feature--flip .framed--tall { margin-left: auto; }

/* A graphic (not a photo) is shown whole at every width. */
.graphic {
	width: 100%;
	height: auto;
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
}

/* Overlapping collage. One main photo, one inset with a white frame. */
.collage {
	position: relative;
	padding: 0 2rem 2.5rem 0;
}

.collage__main {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: top center;
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
}

.collage__inset {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 52%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 8px solid #fff;
	border-radius: var(--r);
	box-shadow: var(--shadow-lg);
}

/* 9. Why: photo-backed panel =============================================== */

.why {
	position: relative;
	isolation: isolate;
	background: var(--navy);
	color: #c9d3da;
	overflow: hidden;
}

.why__backdrop { position: absolute; inset: 0; z-index: -1; }
.why__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: left 55%; opacity: 0.55; }
.why__backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 33, 43, 0.25) 0%, rgba(20, 33, 43, 0.6) 50%, rgba(20, 33, 43, 0.9) 100%);
}

.why__inner { padding-block: var(--section); display: flex; justify-content: flex-end; }

.why__panel {
	max-width: 640px;
	padding: 2.5rem;
	background: rgba(20, 33, 43, 0.82);
	backdrop-filter: blur(6px);
	border-left: 5px solid var(--orange);
	border-radius: 0 var(--r) var(--r) 0;
}

@media (min-width: 900px) { .why__panel { padding: 3.25rem; } }

.why__panel p { color: rgba(255, 255, 255, 0.86); }

.why__list {
	margin: 1.75rem 0;
	padding: 0;
	list-style: none;
	counter-reset: why;
	display: grid;
	gap: 1.1rem;
}

.why__list li {
	position: relative;
	padding-left: 3.25rem;
	counter-increment: why;
}

.why__list li::before {
	content: counter(why, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0.05em;
	font-family: var(--display);
	font-size: 1.5rem;
	font-weight: 800;
	font-style: italic;
	color: var(--orange);
	line-height: 1;
}

.why__list strong {
	display: block;
	margin-bottom: 0.15rem;
	font-family: var(--display);
	font-size: 1.1875rem;
	font-weight: 700;
	color: #fff;
}

.why__list span { color: rgba(255, 255, 255, 0.8); font-size: 0.9875rem; }

/* 10. Mosaic: photo tiles with labels ====================================== */

.mosaic {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 720px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 720px) { .mosaic--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mosaic--full { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mosaic__item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--navy-2);
	text-decoration: none;
}

.mosaic__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.mosaic__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 33, 43, 0) 45%, rgba(20, 33, 43, 0.85) 100%);
}

.mosaic__item:hover img { transform: scale(1.05); }

.mosaic__label {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 1;
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
}

.mosaic__label::after {
	content: "";
	display: block;
	width: 28px;
	height: 3px;
	margin-top: 0.5rem;
	background: var(--orange);
	transition: width 0.25s var(--ease);
}

.mosaic__item:hover .mosaic__label::after { width: 56px; }

/* 11. Strip: services row ================================================== */

.strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(200px, 1fr);
	gap: 1rem;
	overflow-x: auto;
	padding-bottom: 0.5rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

/* Wide screens show all ten in two rows instead of a scroller. */
@media (min-width: 1024px) {
	.strip {
		grid-auto-flow: row;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 1.5rem 1.25rem;
		overflow: visible;
	}
}

.strip__item {
	scroll-snap-align: start;
	text-decoration: none;
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.2;
}

.strip__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r);
	margin-bottom: 0.75rem;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.strip__item:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }
.strip__item:hover { color: var(--blue-deep); }

/* 12. Reviews ============================================================== */

.section--reviews { background: var(--tint); }

.bigquote {
	max-width: 860px;
	margin: 0 auto 3rem;
	text-align: center;
}

.bigquote__mark { display: block; margin: 0 auto 1rem; color: var(--blue); opacity: 0.35; }

.bigquote blockquote {
	margin: 0 0 1.5rem;
	font-family: var(--display);
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	font-weight: 600;
	font-style: italic;
	line-height: 1.35;
	color: var(--ink);
}

.bigquote figcaption { display: grid; justify-items: center; gap: 0.35rem; }
.bigquote__name { font-family: var(--display); font-weight: 700; color: var(--ink); }
.bigquote__meta { font-size: 0.875rem; color: var(--muted); }

.reviews {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 720px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.review {
	margin: 0;
	padding: 1.5rem;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--shadow);
	display: grid;
	gap: 0.75rem;
	align-content: start;
}

.review blockquote { margin: 0; font-size: 0.9875rem; }
.review figcaption { display: flex; align-items: center; gap: 0.6rem; padding-top: 0.5rem; }
.review figcaption img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.review figcaption span { display: grid; line-height: 1.3; }
.review figcaption strong { font-family: var(--display); color: var(--ink); }
.review figcaption em { font-size: 0.8125rem; color: var(--muted); font-style: normal; }

.reviews__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; margin: 2rem 0 0; }
.reviews__attribution { font-size: 0.8125rem; color: var(--muted); }

/* 13. People =============================================================== */

.people {
	display: grid;
	gap: 1.5rem;
	max-width: 760px;
}

@media (min-width: 640px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }

.person { display: block; text-decoration: none; color: var(--ink); }

/* The ratio lives on the wrapper, not the image, so an optimisation or
   lazy-load plugin rewriting the img tag cannot change the box. */
.person__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--r);
	box-shadow: var(--shadow);
	margin-bottom: 1rem;
	background: var(--tint);
	transition: transform 0.3s var(--ease);
}

.person__media img,
.person__media picture,
.person__media picture img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: top center;
}

.person:hover .person__media { transform: translateY(-4px); }
.person__name { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.person__role { display: block; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); font-family: var(--display); font-weight: 700; margin-top: 0.15rem; }

/* 14. Visit ================================================================ */

.visit__inner {
	display: grid;
	gap: 3rem;
	align-items: start;
}

@media (min-width: 900px) { .visit__inner { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; } }

.visit__line { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; color: #fff; }
.visit__line .icon { color: var(--blue); margin-top: 4px; }
.visit__line a { color: var(--orange); }
.visit__phone { font-family: var(--display); font-size: 1.75rem; font-weight: 800; color: #fff !important; text-decoration: none; line-height: 1.1; }
.visit__muted { color: #8fa0aa; }

.visit__map { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--navy-2); }
.visit__map iframe { width: 100%; height: 100%; border: 0; }

.hours { margin-top: 1.5rem; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9375rem; text-align: left; vertical-align: top; }
.hours th { width: 44%; padding-right: 0.75rem; font-weight: 700; color: #fff; }
.hours__block { display: block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-closed td { color: var(--orange); }
.hours__note { margin-top: 0.75rem; font-size: 0.8125rem; color: #8fa0aa; }

/* Closure notice beside an hours table. */
.hours__notice {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding: 0.6rem 0.75rem;
	border-left: 3px solid var(--orange);
	border-radius: 0 4px 4px 0;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.hours__notice .icon { flex: none; margin-top: 2px; }
.hours__notice--dark { background: rgba(247, 173, 59, 0.12); color: var(--orange); }
.hours__notice--light { background: #fff4e0; color: #9a4a00; }
.hours__notice--light .icon { color: var(--orange-deep); }

.hero__notice {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
	padding: 0.65rem 0.9rem;
	background: rgba(247, 173, 59, 0.14);
	border-left: 3px solid var(--orange);
	border-radius: 0 4px 4px 0;
	font-family: var(--display);
	font-style: italic;
	font-weight: 700;
	color: var(--orange);
}

.hero__notice .icon { flex: none; margin-top: 3px; }

.hours--light th, .hours--light td { border-bottom-color: var(--line); }
.hours--light th { color: var(--ink); }

/* 15. CTA ================================================================== */

.cta { background: var(--blue); color: #fff; }

.cta__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
	padding-block: 4rem;
}

@media (min-width: 900px) { .cta__inner { grid-template-columns: 1fr auto; } }

.cta .h2 { margin-bottom: 0.3em; }
.cta .h2 em { color: var(--navy); }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 1.125rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta .btn--outline { border-color: rgba(255, 255, 255, 0.75); }
.cta .btn--outline:hover { color: var(--blue-deep); }
.cta__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.cta__phone:hover { color: var(--navy); }

/* 16. Interior banner ====================================================== */

.banner {
	position: relative;
	isolation: isolate;
	background: var(--navy);
	color: #fff;
	overflow: hidden;
}

.banner__backdrop { position: absolute; inset: 0; z-index: -1; }
.banner__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: right top; opacity: 0.35; }
.banner__backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 33, 43, 0.9), rgba(20, 33, 43, 0.35)); }

.banner__inner { padding-block: 4rem; max-width: 820px; }
@media (min-width: 900px) { .banner__inner { padding-block: 5.5rem; } }

.banner__title { margin-bottom: 0.3em; color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
.banner__title em { color: var(--orange); }
.banner__sub { max-width: 56ch; font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); }
.banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.banner__phone { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; }
.banner__phone .icon { color: var(--blue); }

.breadcrumbs { margin-bottom: 1rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.7); }
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }

/* 17. Interior content ===================================================== */

.split { display: grid; gap: 3rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 360px; gap: 5rem; align-items: start; } }

.split__aside { display: grid; gap: 1.5rem; }

/* Equal halves, for the New Patients page where the form is the point. */
@media (min-width: 900px) {
	.split--even { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.split--even .split__aside { position: static; }
}

.split--even .formcard { padding: 2.5rem; }
.split--even .formcard .gform_wrapper input[type="text"],
.split--even .formcard .gform_wrapper input[type="email"],
.split--even .formcard .gform_wrapper input[type="tel"],
.split--even .formcard .gform_wrapper textarea,
.split--even .formcard .gform_wrapper select { padding: 1rem 1.1rem; font-size: 1.0625rem; }
.split--even .formcard .gform_wrapper .gfield { margin-bottom: 1.25rem; }
.split--even .formcard .gform_wrapper textarea { min-height: 160px; }
@media (min-width: 900px) { .split__aside { position: sticky; top: 110px; } }

.prose { font-size: 1.0625rem; }
.prose h2 { font-size: 1.875rem; margin-top: 2rem; }
.prose h3 { font-size: 1.375rem; margin-top: 1.5rem; }
.prose img { border-radius: var(--r); }
.prose--narrow { max-width: 780px; margin-top: 3rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--blue); background: var(--tint); border-radius: 0 var(--r) var(--r) 0; }

.sidecard {
	padding: 1.75rem;
	background: var(--tint);
	border-radius: var(--r);
	border-top: 5px solid var(--orange);
}

.sidecard--plain { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue); }
.sidecard .eyebrow { margin-bottom: 0.5rem; }
.sidecard__phone a { font-family: var(--display); font-size: 1.75rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.sidecard .btn { margin-top: 1rem; }
.sidecard .hours { margin-top: 1rem; }

.linklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.linklist a { display: block; padding: 0.35rem 0; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.linklist a:hover { color: var(--blue-deep); }

.formcard { padding: 1.75rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); border-top: 5px solid var(--blue); }
.formcard__lead { font-size: 0.9375rem; color: var(--muted); margin-bottom: 1.25rem; }
.formcard__or { margin-top: 1rem; font-size: 0.9375rem; text-align: center; color: var(--muted); }
.formcard__or a { font-family: var(--display); font-weight: 800; color: var(--ink); text-decoration: none; }

/* Gravity Forms inside the card, kept tidy without fighting the plugin. */
.formcard .gform_wrapper input[type="text"],
.formcard .gform_wrapper input[type="email"],
.formcard .gform_wrapper input[type="tel"],
.formcard .gform_wrapper textarea,
.formcard .gform_wrapper select { width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 0.9875rem; }
.formcard .gform_wrapper .gform_button { width: 100%; padding: 1rem; border: 0; border-radius: var(--r); background: var(--orange); color: #2b1d05; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.formcard .gform_wrapper .gform_button:hover { background: var(--orange-deep); }

.offer {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.5rem;
	align-items: center;
	margin: 2rem 0;
	padding: 1.5rem;
	background: var(--navy);
	color: #fff;
	border-radius: var(--r);
}

.offer__price { font-family: var(--display); font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--orange); }
.offer__title { margin: 0; font-family: var(--display); font-size: 1.375rem; font-weight: 700; }
.offer__includes { margin: 0.2rem 0 0; color: rgba(255, 255, 255, 0.85); }
.offer__fine { margin: 0.4rem 0 0; font-size: 0.8125rem; color: #8fa0aa; }
.offer__logo { max-width: 260px; margin-top: 1.5rem; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 2.5rem; max-width: 900px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.step__num { font-family: var(--display); font-size: 2.75rem; font-weight: 800; font-style: italic; line-height: 1; color: var(--blue); opacity: 0.85; min-width: 3.25rem; }
.step p { max-width: 68ch; }

.bio { display: grid; gap: 3rem; }
@media (min-width: 900px) { .bio { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; } .bio--flip .bio__media { order: 2; } }
.bio__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.bio__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
.bio__gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
@media (min-width: 900px) { .bio__media { position: sticky; top: 110px; } }
.bio__body p { max-width: 64ch; }

.post-list { display: grid; gap: 2.5rem; }
.post-list__item { display: grid; gap: 1rem; }
@media (min-width: 640px) { .post-list__item { grid-template-columns: 240px 1fr; gap: 1.5rem; } }
.post-list__media img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }
.post-list__title { font-size: 1.5rem; margin-bottom: 0.25rem; }
.post-list__title a { color: inherit; text-decoration: none; }
.post-list__meta { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.link-list { padding: 0; list-style: none; display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.panel__phone { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.search-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.search-form__field { flex: 1; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--r); font: inherit; }
.pagination { margin-top: 3rem; }
.pagination .page-numbers { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 4px; text-decoration: none; }
.pagination .page-numbers.current { background: var(--blue); color: #fff; }

/* 18. Footer =============================================================== */

.motto { background: var(--tint); border-top: 1px solid var(--line); text-align: center; }
.motto p { margin: 0; padding-block: 1.5rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.motto span { color: var(--orange); margin-inline: 0.5em; }

.site-footer { background: var(--navy); color: #b9c6cf; font-size: 0.9375rem; }
.site-footer a { color: #dbe4e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer__grid { display: grid; gap: 2.5rem; padding-block: 4rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; } }

/* Full logo with the icon, in colour, and big enough to anchor the footer. */
.site-footer__logo { width: auto; max-width: 100%; max-height: 120px; margin-bottom: 1.5rem; }
@media (min-width: 720px) { .site-footer__logo { max-height: 150px; } }
.site-footer address { line-height: 1.9; }
.site-footer__phone { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.site-footer__social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); }
.site-footer__social a:hover { background: var(--blue); border-color: var(--blue); }

.site-footer__heading { margin: 0 0 1rem; font-family: var(--display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.site-footer__menu { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.site-footer__muted { color: #8fa0aa; }
.site-footer .hours { margin-top: 0; }

.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; }
.site-footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal-menu { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

/* 19. Mobile CTA bar ======================================================= */

.mobile-cta {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #fff;
	box-shadow: 0 -2px 12px rgba(20, 33, 43, 0.12);
	padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 60px; } }

.mobile-cta a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.6rem 0.25rem; font-family: var(--display); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.mobile-cta .icon { color: var(--blue); }
.mobile-cta__primary { background: var(--orange); color: #2b1d05 !important; }
.mobile-cta__primary .icon { color: #2b1d05; }

/* 20. Utilities ============================================================ */

.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: -9999px; z-index: 999; }
.skip-link:focus { left: var(--gutter); top: var(--gutter); width: auto; height: auto; padding: 0.75rem 1.25rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); clip: auto; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

@media print {
	.topbar, .announce, .mobile-cta, .nav-toggle, .site-nav, .cta, .jumpbar { display: none !important; }
	body { padding-bottom: 0; }
}
