:root {
	--ink: #1c241c;
	--muted: #4d5a50;
	--green: #1e4d3a;
	--green-dark: #16382b;
	--cream: #f3f0e8;
	--paper: #fffcf7;
	--line: #e4dfd4;
	--terracotta: #7a3e24;
	--header-h: 4.75rem;
	--max: 72rem;
	--shadow: 0 16px 40px rgba(28, 36, 28, 0.06);
	--serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
}

body.nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4 {
	font-family: var(--serif);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 0.6rem;
}

h1 {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
	font-size: 1.45rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: var(--green);
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--green-dark);
}

:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
}

::selection {
	background: #d7e6dc;
}

.sr-only {
	position: absolute;
	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: 1rem;
	top: -4rem;
	z-index: 80;
	background: var(--green);
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 0.6rem;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

.eyebrow {
	margin: 0 0 0.55rem;
	color: var(--terracotta);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.25rem;
	border: 1px solid var(--green);
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--green-dark);
	border-color: var(--green-dark);
	color: #fff;
}

.button--ghost {
	background: transparent;
	color: var(--green);
}

.button--ghost:hover {
	background: var(--green);
	color: #fff;
}

.button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(243, 240, 232, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
	border-bottom-color: var(--line);
}

.site-header__inner {
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-right: auto;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.brand__mark {
	color: var(--green);
	flex: 0 0 auto;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.brand__name {
	font-family: var(--serif);
	font-size: 1.35rem;
	letter-spacing: -0.03em;
}

.brand__place {
	color: var(--muted);
	font-size: 0.82rem;
}

.custom-logo-link {
	display: flex;
	margin-right: auto;
}

.custom-logo {
	max-height: 52px;
	width: auto;
}

.primary-nav {
	display: none;
}

.menu,
.legal-menu,
.search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.menu a,
.legal-menu a {
	color: inherit;
	text-decoration: none;
}

.menu a {
	display: block;
	padding: 0.7rem 0;
	font-size: 1rem;
}

.current-menu-item > a,
.current_page_item > a {
	color: var(--green);
	font-weight: 600;
}

.nav-toggle {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
	background: var(--paper);
	padding: 0;
	cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	display: block;
	width: 1.05rem;
	height: 1.5px;
	margin: 0 auto;
	background: var(--ink);
	position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__icon::before {
	top: -6px;
}

.nav-toggle__icon::after {
	top: 6px;
}

.site-header.is-open .primary-nav {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	padding: 0.4rem 1.25rem 1rem;
	box-shadow: var(--shadow);
}

.button--header {
	flex: 0 0 auto;
	min-height: 2.7rem;
	padding-inline: 0.95rem;
}

section[id] {
	scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.hero {
	display: grid;
	width: min(100% - 2rem, var(--max));
	margin: 0 auto 1rem;
	background: var(--paper);
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.hero__copy {
	padding: clamp(1.5rem, 4vw, 3.5rem);
}

.hero__doctor {
	font-size: 1.15rem;
	margin-bottom: 0.75rem;
}

.hero__lead {
	max-width: 36rem;
	color: var(--muted);
	font-size: 1.12rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 1.4rem 0 1.6rem;
}

.hero__facts {
	display: grid;
	gap: 0.9rem 1.5rem;
	margin: 0;
}

.hero__facts div {
	margin: 0;
}

.hero__facts dt {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.hero__facts dd {
	margin: 0.15rem 0 0;
}

.hero__media {
	position: relative;
	min-height: 18rem;
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section {
	padding: clamp(3rem, 7vw, 5.5rem) 0;
	background: var(--paper);
}

.section--cream,
.intro {
	background: var(--cream);
}

.section__inner {
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
}

.section__head {
	max-width: 40rem;
	margin-bottom: 2rem;
}

.section__head p:last-child {
	color: var(--muted);
}

.section__inner--split {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

.intro__grid {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.intro__figure {
	margin: 0;
}

.intro__img {
	width: 100%;
	border-radius: 1.25rem;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

.service-group + .service-group {
	margin-top: 2.2rem;
}

.service-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.8rem;
}

.service-grid li {
	background: var(--cream);
	border-radius: 1rem;
	padding: 1.1rem 1.15rem 1.15rem;
}

.section--cream .service-grid li,
.page-shell .service-grid li {
	background: var(--paper);
	box-shadow: var(--shadow);
}

.service-grid h4 {
	font-family: var(--sans);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 0.35rem;
}

.service-grid p {
	margin: 0;
	color: var(--muted);
	font-size: 0.98rem;
}

.hours-card {
	background: var(--paper);
	border-radius: 1.25rem;
	padding: 0.4rem 1.1rem 1rem;
	box-shadow: var(--shadow);
	overflow-x: auto;
}

.hours {
	width: 100%;
	border-collapse: collapse;
	min-width: 22rem;
}

.hours th,
.hours td {
	text-align: left;
	padding: 0.85rem 0.4rem;
	border-bottom: 1px solid var(--line);
	font-weight: 500;
}

.hours thead th {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 700;
}

.hours .is-closed {
	color: var(--muted);
}

.hours-note {
	margin: 1rem 0 0.4rem;
	font-weight: 600;
}

.number-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.number-list a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-height: 100%;
	padding: 1rem 1.05rem;
	border-radius: 1rem;
	background: var(--cream);
	color: inherit;
	text-decoration: none;
}

.number-list span,
.number-list em {
	font-style: normal;
	color: var(--muted);
	font-size: 0.92rem;
}

.number-list strong {
	font-family: var(--serif);
	font-size: 1.7rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--green);
}

.emergency-copy {
	max-width: 46rem;
}

.gallery {
	display: grid;
	gap: 0.75rem;
}

.gallery figure {
	margin: 0;
}

.gallery img {
	width: 100%;
	height: 18rem;
	object-fit: cover;
	border-radius: 1.1rem;
}

.contact-grid {
	display: grid;
	gap: 1rem;
}

.contact-card,
.contact-form {
	background: var(--cream);
	border-radius: 1.25rem;
	padding: 1.3rem 1.2rem 1.4rem;
}

.contact-card h3 {
	margin-bottom: 0.8rem;
}

.contact-form p {
	margin: 0 0 0.9rem;
}

.form-row {
	display: grid;
	gap: 0.9rem;
}

label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.92rem;
	font-weight: 600;
}

input,
textarea {
	width: 100%;
	border: 1px solid #d9d3c7;
	border-radius: 0.8rem;
	background: #fff;
	color: inherit;
	font: inherit;
	padding: 0.75rem 0.9rem;
	min-height: 3rem;
}

textarea {
	min-height: 9rem;
	resize: vertical;
}

input.is-invalid,
textarea.is-invalid,
.check.is-invalid {
	outline: 1px solid #8d2f2f;
}

.check {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	padding: 0.2rem;
	border-radius: 0.6rem;
}

.check input {
	width: 1.15rem;
	height: 1.15rem;
	min-height: 0;
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.check label {
	font-weight: 500;
	margin: 0;
}

.form-note {
	padding: 0.8rem 0.9rem;
	border-radius: 0.8rem;
}

.form-note--ok {
	background: #e5f2ea;
}

.form-note--bad {
	background: #f8e8e4;
}

.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.page-hero {
	background: var(--green-dark);
	color: #f4f7f4;
}

.page-hero a {
	color: #f4f7f4;
}

.page-hero__inner {
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
	padding: 2.2rem 0 2.4rem;
}

.page-hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	margin: 0;
}

.crumbs {
	display: flex;
	gap: 0.45rem;
	align-items: center;
	margin-bottom: 0.7rem;
	font-size: 0.92rem;
}

.page-shell {
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
	padding: 2.5rem 0 4.5rem;
}

.page-shell--narrow {
	max-width: 46rem;
}

.entry-content--intro {
	max-width: 42rem;
	margin-bottom: 1.5rem;
}

.entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-top: 1.8rem;
}

.entry-content ul {
	padding-left: 1.15rem;
}

.entry-content li + li {
	margin-top: 0.35rem;
}

.site-footer {
	background: var(--green-dark);
	color: #e7efe9;
	padding: 3rem 0 1.4rem;
}

.site-footer a {
	color: #fff;
}

.site-footer__inner {
	width: min(100% - 2rem, var(--max));
	margin: 0 auto;
	display: grid;
	gap: 1.6rem;
}

.site-footer .brand__place,
.site-footer .footer-doctor {
	color: #d5e3da;
}

.footer-doctor,
.site-footer p {
	margin: 0 0 0.45rem;
}

.footer-label {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c9dbd1;
}

.legal-menu {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.site-footer__fine {
	width: min(100% - 2rem, var(--max));
	margin: 2rem auto 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #c9dbd1;
	font-size: 0.92rem;
}

@media (min-width: 720px) {
	.hero__facts,
	.form-row,
	.gallery,
	.service-grid,
	.number-list,
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.number-list {
		grid-template-columns: repeat(3, 1fr);
	}

	.gallery {
		grid-template-columns: 1.15fr 0.85fr 0.85fr;
	}

	.gallery img {
		height: 24rem;
	}

	.service-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1040px) {
	.nav-toggle {
		display: none;
	}

	.primary-nav,
	.site-header.is-open .primary-nav {
		display: block;
		position: static;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.menu {
		flex-direction: row;
		align-items: center;
		gap: 0.2rem;
	}

	.menu a {
		padding: 0.4rem 0.7rem;
		font-size: 0.98rem;
	}

	.hero {
		grid-template-columns: 1.05fr 0.95fr;
		margin-top: 1rem;
	}

	.hero__media {
		min-height: 100%;
	}

	.hero__facts {
		grid-template-columns: 1fr 1fr;
	}

	.hero__facts div:last-child {
		grid-column: 1 / -1;
	}

	.intro__grid,
	.section__inner--split,
	.contact-grid {
		grid-template-columns: 0.9fr 1.1fr;
	}

	.section__inner--split {
		grid-template-columns: 0.7fr 1.3fr;
	}

	.service-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-footer__inner {
		grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
	}
}

@media (max-width: 420px) {
	.brand__place {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
