/* ============================================================
   Axis Health — main stylesheet
   Palette: near-black / warm off-white / cognac leather accent,
   matching the clinic's black-and-white rebrand. The recurring
   "/" slash accent echoes the diagonal in the Axis logo.
   ============================================================ */

:root {
	--ink: #101010;
	--ink-soft: #1d1d1d;
	--paper: #f7f5f0;
	--white: #ffffff;
	--cognac: #b5773f;
	--cognac-deep: #9a6231;
	--wood: #3a2e24;
	--gray: #6b675f;
	--line: rgba(16, 16, 16, 0.14);
	--line-light: rgba(255, 255, 255, 0.22);
	--font-head: "Jost", "Century Gothic", sans-serif;
	--font-body: "Inter", -apple-system, sans-serif;
	--radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h2 em { font-style: normal; border-bottom: 3px solid var(--cognac); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ink);
	color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- eyebrow labels with slash accent ---------- */
.eyebrow {
	font-family: var(--font-head);
	font-size: 0.83rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gray);
	margin-bottom: 14px;
}
.eyebrow span { color: var(--cognac); font-weight: 600; margin-right: 6px; }
.eyebrow.light { color: rgba(255, 255, 255, 0.75); }

/* ---------- buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.18s ease;
	line-height: 1.3;
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-solid { background: var(--cognac); color: #fff; border-color: var(--cognac); }
.btn-solid:hover { background: var(--cognac-deep); border-color: var(--cognac-deep); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line-light); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.text-link {
	font-family: var(--font-head);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.9rem;
	color: var(--cognac-deep);
	text-decoration: none;
	white-space: nowrap;
}
.text-link:hover { text-decoration: underline; }

/* ---------- topbar ---------- */
.topbar {
	background: var(--cognac);
	color: #fff;
	text-align: center;
	font-size: 0.85rem;
	padding: 7px 16px;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar-slash { font-weight: 700; margin-right: 4px; }

/* ---------- header ---------- */
.site-header {
	background: var(--ink);
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 34px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.brand img { width: 108px; height: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-family: var(--font-head);
	font-size: 0.93rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--cognac); }
.header-cta { display: flex; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 0.85rem; }
.header-cta .btn-solid { background: var(--cognac); border-color: var(--cognac); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	width: 40px; height: 34px;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; width: 26px; background: #fff; margin: 0 auto; transition: 0.2s; }

/* ---------- hero ---------- */
.hero {
	position: relative;
	background: var(--ink);
	color: #fff;
	overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(6, 6, 6, 0.88) 30%, rgba(6, 6, 6, 0.35) 75%, rgba(6, 6, 6, 0.55));
}
.hero-inner {
	position: relative;
	z-index: 2;
	padding-top: clamp(80px, 12vw, 150px);
	padding-bottom: clamp(70px, 10vw, 120px);
	max-width: 1180px;
}
.hero h1 { max-width: 13em; }
.hero-sub {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 34em;
	margin-top: 20px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin-top: 54px;
	border-top: 1px solid var(--line-light);
	max-width: 720px;
}
.hero-trust li {
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.75);
	padding: 16px 28px 0 0;
	margin-right: 28px;
}
.hero-trust strong {
	display: block;
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 500;
	color: #fff;
	letter-spacing: 0.02em;
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: #efece5; }
.section-dark { background: var(--ink); color: #fff; }
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}
.section-head h2 { max-width: 18em; }

/* ---------- services grid ---------- */
.svc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.svc-card {
	background: var(--paper);
	padding: 34px 30px 38px;
	text-decoration: none;
	position: relative;
	transition: background 0.18s ease;
}
.svc-card:hover { background: var(--white); }
.svc-card:hover h3 { color: var(--cognac-deep); }
.svc-num {
	font-family: var(--font-head);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	color: var(--cognac);
	display: block;
	margin-bottom: 18px;
}
.svc-num::after { content: " /"; }
.svc-card h3 { margin-bottom: 10px; transition: color 0.18s; }
.svc-card p { font-size: 0.95rem; color: var(--gray); }
/* Four services → balanced 2×2 instead of a 3-up row with a gap. */
.svc-grid-4 { grid-template-columns: repeat(2, 1fr); }
.svc-extra { margin-top: 26px; color: var(--gray); font-size: 0.95rem; }
.svc-extra a { color: var(--cognac-deep); font-weight: 600; }

/* ---------- bands ---------- */
.band { color: #fff; padding: clamp(56px, 8vw, 90px) 0; }
.band-dark {
	background:
		linear-gradient(rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.92)),
		repeating-linear-gradient(90deg, #171310 0 14px, #100d0a 14px 16px);
}
.band-wood {
	background:
		linear-gradient(rgba(38, 28, 20, 0.9), rgba(38, 28, 20, 0.9)),
		repeating-linear-gradient(90deg, #4a3826 0 14px, #3a2c1e 14px 16px);
}
.band-inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 48px;
	align-items: center;
}
.band h2 { margin-bottom: 16px; }
.band p { color: rgba(255, 255, 255, 0.85); max-width: 36em; }
.band-cta { text-align: right; }
.band-note {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65) !important;
	margin-top: 14px;
}
.band-note a { color: #fff; }
/* Second stacked note (e.g. "We bill your auto insurance directly") sits on its
   own line under the symptom list rather than running on after it. */
.band-note + .band-note { margin-top: 7px; }
.band-note-bill { color: rgba(255, 255, 255, 0.85) !important; font-weight: 600; }

/* ---------- clinic section ---------- */
.clinic-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(32px, 5vw, 70px);
	align-items: center;
}
.clinic-photos { position: relative; padding-bottom: 70px; }
.clinic-photo-main { width: 100%; border-radius: var(--radius); }
.clinic-photo-inset {
	position: absolute;
	right: -6%;
	bottom: 0;
	width: 55%;
	border: 6px solid var(--paper);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(16, 16, 16, 0.22);
}
.clinic-copy h2 { margin-bottom: 18px; }
.clinic-copy .btn { margin-top: 26px; }

.check-list { list-style: none; margin-top: 20px; }
.check-list li {
	padding-left: 30px;
	position: relative;
	margin-bottom: 12px;
}
.check-list li::before {
	content: "/";
	position: absolute;
	left: 4px;
	color: var(--cognac);
	font-family: var(--font-head);
	font-weight: 600;
}
.check-list.light li { color: rgba(255, 255, 255, 0.88); }
.check-list.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 32px;
}

/* ---------- providers ---------- */
.doc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 34px;
	max-width: 940px;
}
.doc-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.doc-card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top; }
.doc-info { padding: 26px 28px 30px; }
.doc-info h3 { margin-bottom: 10px; }
.doc-info p { font-size: 0.95rem; color: var(--gray); }
.doc-note { margin-top: 30px; color: var(--gray); font-size: 0.95rem; }

/* ---------- reviews ---------- */
.review-meta { font-size: 1.1rem; margin-bottom: 36px; }
.review-stars { color: var(--cognac); letter-spacing: 3px; }
.review-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.review-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: var(--radius);
	padding: 26px 26px 22px;
	font-size: 0.95rem;
}
.review-card p { color: rgba(255, 255, 255, 0.88); }
.review-card .review-stars { margin-bottom: 12px; }
.review-card footer { margin-top: 14px; color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }
.review-cta { margin-top: 36px; }

/* ---------- contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(36px, 5vw, 70px);
	align-items: start;
}
.contact-copy h2 { margin-bottom: 16px; }
.contact-info { margin-top: 26px; display: grid; gap: 16px; }
.contact-info a { color: var(--cognac-deep); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.lead-form {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px;
	display: grid;
	gap: 14px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
	width: 100%;
	font: inherit;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
	outline: 2px solid var(--cognac);
	outline-offset: -1px;
}
.ax-hp { position: absolute; left: -9999px; }
/* Insurance write-in box, revealed by JS only when "Other" is selected. */
.lead-form input[hidden] { display: none; }
.form-ok { color: #1d7a3d; font-weight: 600; }
.form-err { color: #b3261e; }

.map-embed { margin-top: clamp(48px, 7vw, 80px); }
.map-embed iframe {
	width: 100%;
	height: 400px;
	border: 0;
	display: block;
	filter: grayscale(0.85) contrast(1.05);
}

/* ---------- page heroes (interior pages) ---------- */
.page-hero {
	color: #fff;
	padding: clamp(70px, 9vw, 120px) 0;
}
.page-hero-dark { background: var(--ink); }
.page-hero-wood {
	background:
		linear-gradient(rgba(38, 28, 20, 0.92), rgba(38, 28, 20, 0.92)),
		repeating-linear-gradient(90deg, #4a3826 0 14px, #3a2c1e 14px 16px);
}
.page-hero-short { padding: clamp(52px, 6vw, 80px) 0; }
.page-hero h1 { max-width: 15em; }
.page-hero .hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); max-width: 38em; margin-top: 18px; }
.page-hero .hero-cta { margin-top: 30px; }

/* ---------- PI / pediatric fact grids ---------- */
.pi-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
}
.pi-fact h3 { margin-bottom: 10px; }
.pi-fact p { font-size: 0.97rem; color: var(--gray); }
.pi-fact a { color: var(--cognac-deep); font-weight: 600; }

/* ---------- services detail ---------- */
.svc-detail-list { display: grid; gap: 48px; max-width: 860px; }
.svc-detail { border-top: 1px solid var(--line); padding-top: 34px; }
.svc-detail-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 12px; }
.svc-detail p { color: var(--gray); max-width: 46em; }

/* ---------- blog ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.post-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.post-card a { text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 720 / 520; object-fit: cover; }
.post-card-body { padding: 22px 24px 26px; }
.post-date { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.post-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card p { font-size: 0.92rem; color: var(--gray); }
.pagination { margin-top: 40px; text-align: center; }

.prose { max-width: 760px; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- footer ---------- */
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.8);
	padding: 64px 0 28px;
	font-size: 0.95rem;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
	gap: 40px;
	padding-bottom: 44px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand img { width: 120px; margin-bottom: 18px; }
.footer-brand p { max-width: 30em; }
.footer-esp { margin-top: 10px; color: rgba(255, 255, 255, 0.6); }
.site-footer h3 {
	font-size: 0.85rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cognac);
	margin-bottom: 14px;
}
.site-footer p { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 24px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}
.footer-social { display: flex; gap: 14px; }
.footer-social svg { width: 20px; height: 20px; fill: rgba(255, 255, 255, 0.7); }
.footer-social a:hover svg { fill: #fff; }
.footer-credit a { color: rgba(255, 255, 255, 0.7); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
	.svc-grid { grid-template-columns: 1fr 1fr; }
	.review-grid { grid-template-columns: 1fr 1fr; }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-cta .btn-ghost { display: none; }
}

@media (max-width: 820px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: var(--ink);
		flex-direction: column;
		gap: 0;
		padding: 10px 24px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	.site-nav.open { display: flex; }
	.site-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
	.nav-toggle { display: flex; }
	.header-cta { margin-left: auto; }
	.band-inner { grid-template-columns: 1fr; gap: 28px; }
	.band-cta { text-align: left; }
	.clinic-grid { grid-template-columns: 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.doc-grid { grid-template-columns: 1fr; }
	.pi-facts { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 620px) {
	.svc-grid { grid-template-columns: 1fr; }
	.review-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.check-list.two-col { grid-template-columns: 1fr; }
	.hero-trust li { padding-right: 18px; margin-right: 12px; }
	.clinic-photo-inset { right: 0; }
}
