/* ============================================================
   X&Y Clinic — design system
   Ivory & champagne-gold, charcoal panels, serif italic accents.
   ============================================================ */

:root {
	/* colour tokens */
	--bg: #F5F2EC;
	--bg-tint: #ECE7DD;
	--surface: #FFFFFF;
	--ink: #191610;
	--ink-2: #55503F;
	--charcoal: #16130E;
	--charcoal-2: #201C15;
	--ivory-on-dark: #F5F2EC;
	--muted-on-dark: #C6BFB0;
	--gold: #8C7349;
	--gold-deep: #6E5936;
	--gold-soft: #CDB78E;
	--line: rgba(25, 22, 16, 0.14);
	--line-dark: rgba(245, 242, 236, 0.16);

	/* type */
	--font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-serif: "Playfair Display", Georgia, serif;

	/* rhythm */
	--radius: 22px;
	--radius-sm: 14px;
	--wrap: 1200px;
	--section-pad: clamp(4rem, 9vw, 7.5rem);

	/* motion */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--dur: 0.7s;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em, .cta-band-title em {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 500;
	letter-spacing: 0;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dt, dd { margin: 0; }

.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 200;
	background: var(--charcoal); color: var(--ivory-on-dark);
	padding: 0.7rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- typography helpers ---------- */
.eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 1rem;
}
.eyebrow.light { color: var(--gold-soft); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
.section-sub { color: var(--ink-2); max-width: 40em; margin-inline: auto; }
.section-sub.light { color: var(--muted-on-dark); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
h2.light { color: var(--ivory-on-dark); }
h3 { font-size: 1.25rem; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.85rem 1.6rem;
	min-height: 48px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font: 600 0.95rem/1 var(--font-sans);
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.15rem; min-height: 44px; font-size: 0.875rem; }
.btn-dark { background: var(--charcoal); color: var(--ivory-on-dark); }
.btn-dark:hover { background: var(--charcoal-2); box-shadow: 0 12px 28px -12px rgba(22, 19, 14, 0.5); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); box-shadow: 0 12px 28px -12px rgba(110, 89, 54, 0.55); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: var(--line-dark); color: var(--ivory-on-dark); background: transparent; }
.btn-ghost-light:hover { border-color: var(--ivory-on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn .ic { width: 18px; height: 18px; }

.text-link {
	display: inline-flex; align-items: center; gap: 0.3rem;
	font-weight: 600; font-size: 0.95rem;
	color: var(--gold-deep); text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, color 0.2s;
	min-height: 44px;
}
.text-link:hover { color: var(--ink); border-color: currentColor; }

/* ---------- header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
	background: rgba(245, 242, 236, 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line);
}
.header-inner {
	max-width: var(--wrap); margin-inline: auto;
	padding: 0.65rem clamp(1.25rem, 4vw, 2.5rem);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; position: relative; z-index: 110; }
.brand-logo { width: 48px; height: auto; }
.brand-name { font-weight: 600; font-size: 1.08rem; letter-spacing: 0.04em; }
.brand-name em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.site-nav ul { display: flex; gap: clamp(0.9rem, 2vw, 1.6rem); align-items: center; }
.site-nav a:not(.btn) {
	text-decoration: none; font-weight: 500; font-size: 0.95rem;
	color: var(--ink);
	padding: 0.5rem 0.15rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }

.nav-toggle {
	display: none;
	position: relative; z-index: 110;
	width: 48px; height: 48px;
	border: 1.5px solid var(--line); border-radius: 50%;
	background: var(--surface);
	cursor: pointer;
	flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- cinematic hero ---------- */
.hero-cine {
	position: relative;
	min-height: 100svh;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	text-align: center;
	background: #0F0D09;
	color: var(--ivory-on-dark);
	overflow: clip;
	padding: clamp(6rem, 12vh, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4.5rem, 8vh, 6rem);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 22%;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.hero-slide.is-active { animation: kenburns 9s ease-out both; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-video {
	position: absolute; inset: 0; z-index: 1;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 22%;
	opacity: 0;
	transition: opacity 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
	.hero-video { display: none; }
}
.hero-scrim {
	z-index: 1;
	position: absolute; inset: 0;
	background:
		linear-gradient(to bottom, rgba(15, 13, 9, 0.62) 0%, rgba(15, 13, 9, 0.35) 40%, rgba(15, 13, 9, 0.66) 100%),
		radial-gradient(ellipse at 50% 42%, rgba(15, 13, 9, 0) 0%, rgba(15, 13, 9, 0.42) 100%);
}

.hero-cine-content { position: relative; z-index: 2; max-width: 54rem; }
.hero-kicker {
	font-size: 0.8125rem; font-weight: 600;
	letter-spacing: 0.28em; text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 1.6rem;
}
.hero-cine h1 {
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: clamp(2.7rem, 7vw, 5.4rem);
	line-height: 1.08;
	letter-spacing: 0.005em;
	color: #FDFCF9;
	margin-bottom: 1.4rem;
	text-wrap: balance;
}
.hero-cine h1 em { font-style: italic; font-weight: 500; }
.hero-cine-sub {
	color: rgba(245, 242, 236, 0.82);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	max-width: 36em; margin-inline: auto;
}
.hero-cine-cta { justify-content: center; margin-top: 2.2rem; }
.hero-foot {
	position: absolute; bottom: clamp(1.6rem, 4vh, 2.6rem); left: 0; right: 0;
	z-index: 2; margin: 0;
	font-size: 0.75rem; font-weight: 600;
	letter-spacing: 0.24em; text-transform: uppercase;
	color: rgba(245, 242, 236, 0.6);
}

/* liquid-glass button */
.btn-glass {
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border-color: rgba(255, 255, 255, 0.25);
	color: #FDFCF9;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

/* header over the dark hero: light-on-dark until scrolled */
.home .site-header:not(.scrolled):not(.nav-open) { color: var(--ivory-on-dark); }
.home .site-header:not(.scrolled):not(.nav-open) .site-nav a:not(.btn),
.home .site-header:not(.scrolled):not(.nav-open) .brand-name { color: var(--ivory-on-dark); }
.home .site-header:not(.scrolled):not(.nav-open) .brand-logo { filter: invert(1) brightness(1.6); }
.home .site-header:not(.scrolled):not(.nav-open) .nav-cta {
	background: rgba(255, 255, 255, 0.12);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.home .site-header:not(.scrolled):not(.nav-open) .nav-toggle {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
}
.home .site-header:not(.scrolled):not(.nav-open) .nav-toggle span { background: var(--ivory-on-dark); }

/* ---------- marquee ---------- */
.marquee {
	background: var(--charcoal); color: var(--gold-soft);
	overflow: hidden; padding: 0.95rem 0;
}
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 2.6rem; padding-right: 2.6rem; }
.marquee li {
	white-space: nowrap;
	font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	display: flex; align-items: center; gap: 2.6rem;
}
.marquee li::after { content: "◆"; font-size: 0.5rem; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
	.marquee-track { animation: marquee 36s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section-pad); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.tint-band { background: var(--bg-tint); }
.dark-band { background: var(--charcoal); color: var(--ivory-on-dark); }

/* ---------- cards ---------- */
.card-grid {
	display: grid; gap: 1.2rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 2.5vw, 2.1rem);
	transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.s-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(25, 22, 16, 0.35); }
.s-card h3 { margin-top: 0.2rem; }
.s-card p { color: var(--ink-2); font-size: 0.975rem; }
.partner-slot { text-align: center; border-style: dashed; background: transparent; }

/* ---------- duo (for her / for him) ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.duo-card {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--radius);
	text-decoration: none; color: var(--ivory-on-dark);
	aspect-ratio: 4 / 5;
}
.duo-card img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.8s var(--ease-out);
}
.duo-card:hover img { transform: scale(1.05); }
.duo-overlay {
	position: absolute; inset: auto 0 0;
	padding: clamp(1.5rem, 3vw, 2.4rem);
	background: linear-gradient(to top, rgba(16, 13, 9, 0.88) 0%, rgba(16, 13, 9, 0.45) 55%, transparent 100%);
}
.duo-overlay h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; }
.duo-overlay p { color: var(--muted-on-dark); max-width: 30em; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.chip {
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
	padding: 0.42rem 0.85rem; border-radius: 999px;
	border: 1px solid var(--line-dark);
	background: rgba(245, 242, 236, 0.12);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: var(--ivory-on-dark);
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; }
.step-card {
	background: var(--charcoal-2);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
	padding: clamp(1.6rem, 2.5vw, 2.2rem);
	display: flex; flex-direction: column; gap: 1.6rem;
	min-height: 260px;
	transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(205, 183, 142, 0.45); }
.step-num {
	font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--gold-soft);
}
.step-card h3 { color: var(--ivory-on-dark); font-size: 1.5rem; margin-top: auto; }
.step-card p { color: var(--muted-on-dark); margin: 0; font-size: 0.975rem; }

/* ---------- feature rows ---------- */
.feature-row {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature-row.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.feature-row.flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }
.feature-row .feature-media img[src*="team"] { aspect-ratio: auto; }
.feature-copy .btn { margin-top: 0.6rem; }
.check-list { margin: 1.2rem 0 1.6rem; display: grid; gap: 0.6rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-2); }
.check-list li::before { content: "—"; color: var(--gold); font-weight: 600; }
.address { color: var(--ink-2); }

/* ---------- quotes ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.quote-card {
	margin: 0; padding: clamp(1.6rem, 2.5vw, 2.2rem);
	background: var(--charcoal-2);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius);
}
.quote-card p {
	font-family: var(--font-serif); font-style: italic;
	font-size: 1.15rem; line-height: 1.55; color: var(--ivory-on-dark);
}
.quote-card footer { color: var(--gold-soft); font-size: 0.875rem; letter-spacing: 0.08em; }

/* ---------- CTA band & footer ---------- */
.cta-band {
	background: linear-gradient(160deg, var(--charcoal) 55%, #2A2317 130%);
	color: var(--ivory-on-dark);
	padding-block: var(--section-pad);
	text-align: center;
}
.cta-band-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--ivory-on-dark); }
.cta-band-sub { color: var(--muted-on-dark); max-width: 36em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

.site-footer { background: #100D08; color: var(--muted-on-dark); font-size: 0.95rem; }
.footer-grid {
	display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-brand img { margin-bottom: 1.1rem; width: 72px; height: auto; }
.footer-col h3 {
	font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--gold-soft); margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.45rem; }
.site-footer a { color: var(--ivory-on-dark); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-footer a:hover { border-color: var(--gold-soft); }
.footer-note { font-size: 0.8rem; opacity: 0.65; }
.footer-bottom {
	border-top: 1px solid var(--line-dark);
	padding-block: 1.4rem;
	font-size: 0.85rem;
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
	position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--gold); color: #fff;
	display: grid; place-items: center;
	box-shadow: 0 14px 30px -10px rgba(110, 89, 54, 0.6);
	transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: var(--gold-deep); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
	display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 5vw, 4rem);
	max-width: 1440px; margin-inline: auto;
	padding: clamp(7rem, 15vh, 9.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
	align-items: center;
}
.page-hero-media { border-radius: var(--radius); overflow: hidden; order: 2; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.page-hero.compact { grid-template-columns: 1fr; text-align: center; padding-bottom: 0; }
.page-hero.compact .page-hero-copy { max-width: 52em; margin-inline: auto; }
.page-hero.compact .lead { margin-inline: auto; }

/* ---------- treatment lists ---------- */
.treatment-list {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.treatment-item {
	display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 1.2rem 1.4rem;
	transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.treatment-item:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -22px rgba(25, 22, 16, 0.4); }
.treatment-item h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.treatment-item p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.treatment-item .btn { flex-shrink: 0; }

/* ---------- team / contact ---------- */
.team-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.team-photo img { width: 100%; filter: contrast(1.05); }
.team-cards { margin-top: 0.5rem; }

/* doctors duo (home + about) — identical card sizes */
.doctors-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: stretch; }
.doctors-duo figure {
	display: flex; flex-direction: column;
	border-radius: var(--radius); overflow: hidden; background: var(--bg-tint);
}
.doctors-duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.doctors-duo figcaption {
	display: flex; align-items: center; flex: 1;
	padding: 0.8rem 1.1rem;
	font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
	color: var(--ink-2); background: var(--surface);
	border-top: 1px solid var(--line);
}

/* doctor profile cards (Our Doctors page) */
.doctor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.doctor-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(25, 22, 16, 0.4); }
.doctor-card figure { background: var(--bg-tint); }
.doctor-card img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: top; }
.doctor-body { padding: clamp(1.4rem, 2.5vw, 2rem); }
.doctor-body h2, .doctor-body h3 { font-size: 1.55rem; }
.doctor-body p:not(.eyebrow) { color: var(--ink-2); }

/* brand marquee (aesthetics page) — serif, on tint */
.brand-marquee { background: var(--bg-tint); color: var(--gold-deep); border-block: 1px solid var(--line); }
.brand-marquee li { font-family: var(--font-serif); font-style: italic; text-transform: none; letter-spacing: 0.04em; font-size: 1.05rem; font-weight: 500; }
.brand-marquee li::after { color: var(--gold); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3.5rem); }
.contact-block { padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.contact-block:first-child { padding-top: 0; }
.contact-block h3 { font-size: 1.05rem; }
.contact-block p { color: var(--ink-2); }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-body { padding: 1.5rem; }
.post-body h2 { font-size: 1.25rem; }
.post-body h2 a { text-decoration: none; }
.prose { max-width: 46em; }
.prose img { border-radius: var(--radius-sm); }
.pagination { margin-top: 2.5rem; text-align: center; }

/* ---------- journal carousel ---------- */
.journal-carousel { position: relative; }
.car-track {
	display: flex; gap: 1.1rem;
	overflow-x: auto;
	/* html has scroll-behavior:smooth — that would turn every programmatic
	   scrollLeft write into an animation and break the drift loop.
	   No scroll-snap: proximity snapping yanks the continuous drift back
	   to the nearest card and pins it at zero. */
	scroll-behavior: auto;
	padding: 0.25rem 0.25rem 1rem;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.car-track::-webkit-scrollbar { display: none; }
.journal-card {
	flex: 0 0 min(340px, 78vw);
	display: flex; flex-direction: column; gap: 0.4rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: clamp(1.4rem, 2vw, 1.8rem);
	text-decoration: none; color: var(--ink);
	transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(25, 22, 16, 0.35); }
.journal-card h3 { font-size: 1.15rem; line-height: 1.3; }
.journal-card p:not(.eyebrow) { color: var(--ink-2); font-size: 0.925rem; flex-grow: 1; }
.journal-card .eyebrow { margin-bottom: 0.2rem; font-size: 0.72rem; }
.journal-card .text-link { min-height: 0; }
.car-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 2;
	width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--line);
	background: var(--surface); color: var(--ink);
	display: grid; place-items: center;
	cursor: pointer;
	box-shadow: 0 10px 24px -14px rgba(25, 22, 16, 0.4);
	transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.car-btn:hover { transform: translateY(-50%) scale(1.06); border-color: var(--ink); }
.car-btn svg { width: 20px; height: 20px; }
.car-prev { left: -12px; }
.car-next { right: -12px; }
@media (max-width: 820px) {
	.car-btn { display: none; } /* swipe on touch */
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
		transition-delay: var(--d, 0s);
		will-change: opacity, transform;
	}
	.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.card-grid, .card-grid.three, .quote-grid, .steps, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed; inset: 0; z-index: -1;
		flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
		background: var(--bg);
		opacity: 0; visibility: hidden;
		transition: opacity 0.3s var(--ease-out), visibility 0.3s;
	}
	.site-header.nav-open .site-nav { opacity: 1; visibility: visible; z-index: 99; }
	/* backdrop-filter would make the header the containing block for the
	   fixed drawer — disable it while the drawer is open */
	.site-header.nav-open {
		background: var(--bg);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	.site-nav ul { flex-direction: column; gap: 1.3rem; text-align: center; }
	.site-nav a:not(.btn) { font-size: 1.3rem; }

	.duo-grid, .feature-row, .feature-row.flip, .contact-grid, .treatment-list, .doctor-grid { grid-template-columns: 1fr; }
	.feature-row.flip .feature-media { order: 0; }
	.page-hero { grid-template-columns: 1fr; padding-top: 6.5rem; }
	.page-hero-media { order: 0; max-height: 60vh; }
	.page-hero-media img { aspect-ratio: 4 / 3.4; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.card-grid, .card-grid.three, .quote-grid, .steps, .post-grid { grid-template-columns: 1fr; }
	.treatment-item { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- print ---------- */
@media print {
	.site-header, .wa-float, .cta-band, .marquee { display: none; }
}
