/*
Theme Name: RSR Prime Hospitals
Theme URI: https://rsrprimehospitals.com
Author: RSR Prime Hospitals
Description: Multispeciality hospital theme with specialities, doctor profiles, health check-up packages, appointment requests (saved in the dashboard and emailed), click-to-call, WhatsApp and a mobile action bar. Edit contact details in Appearance › Customize › Hospital settings.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsr-prime
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #1d2452;
	--ink-soft: #343d7a;
	--text: #262b44;
	--muted: #5a607d;
	--line: #dde2ee;
	--mist: #f2f4fa;
	--paper: #ffffff;
	--marigold: #f3a532;
	--marigold-dark: #e08f14;
	--marigold-ink: #3b2400;
	--red: #c9343c;
	--red-soft: #fce9ea;
	--green: #1f8a5b;

	--font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 7vw, 6rem);
	--r-s: 8px;
	--r-m: 14px;
	--r-l: 24px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	display: block;
}

a {
	color: var(--ink-soft);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ink);
}

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

p {
	margin: 0 0 1em;
}

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

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	vertical-align: middle;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text,
.hp-field {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: var(--r-s);
}

.skip-link:focus {
	top: 1rem;
	color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.75em 1.35em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--lg {
	padding: 0.95em 1.6em;
	font-size: 1.0625rem;
}

.btn--block {
	width: 100%;
}

.btn--accent {
	background: var(--marigold);
	color: var(--marigold-ink);
}

.btn--accent:hover {
	background: var(--marigold-dark);
	color: var(--marigold-ink);
}

.btn--ink {
	background: var(--ink);
	color: #fff;
}

.btn--ink:hover {
	background: var(--ink-soft);
	color: #fff;
}

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

.btn--ghost:hover {
	background: var(--ink);
	color: #fff;
}

/* ---------- Top bar ---------- */
.topbar {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.875rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 44px;
}

.topbar a {
	color: inherit;
	text-decoration: none;
}

.topbar a:hover {
	color: #fff;
}

.topbar__emergency {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff !important;
	background: var(--red);
	padding: 0.3rem 0.85rem 0.3rem 0.7rem;
	border-radius: 999px;
}

.topbar__emergency strong {
	font-weight: 700;
	letter-spacing: 0.01em;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.topbar__item .icon {
	width: 1.05em;
	height: 1.05em;
	opacity: 0.8;
}

.social {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: inherit;
}

.social a:hover {
	background: rgba(255, 255, 255, 0.12);
}

.social--top {
	margin-left: auto;
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: 32px;
}

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

.brand {
	flex: none;
}

.brand .custom-logo {
	max-height: 56px;
	width: auto;
}

.brand__text {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ink);
	color: var(--marigold);
}

.brand__mark .icon {
	width: 26px;
	height: 26px;
	stroke-width: 2.6;
}

.brand__words {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand__name {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.02em;
}

.brand__tag {
	font-size: 0.8rem;
	color: var(--muted);
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-left: auto;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
}

.primary-nav .menu a {
	display: block;
	padding: 0.55rem 0.7rem;
	font-weight: 600;
	font-size: 0.97rem;
	color: var(--text);
	text-decoration: none;
	border-radius: var(--r-s);
}

.primary-nav .menu a:hover {
	color: var(--ink);
	background: var(--mist);
}

.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current_page_item > a {
	color: var(--ink);
	box-shadow: inset 0 -3px 0 var(--marigold);
	border-radius: 0;
}

.primary-nav .menu-item-has-children > a {
	padding-right: 1.6rem;
}

.primary-nav .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 0.6rem;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}

.primary-nav .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 60;
	display: none;
	min-width: 260px;
	margin: 0;
	padding: 0.6rem;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	box-shadow: 0 18px 40px -18px rgba(29, 36, 82, 0.35);
}

.primary-nav .sub-menu:has(> li:nth-child(8)) {
	display: none;
	grid-template-columns: repeat(2, minmax(220px, 1fr));
	column-gap: 0.4rem;
	min-width: 520px;
}

.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu {
	display: block;
}

.primary-nav .menu > li:hover > .sub-menu:has(> li:nth-child(8)),
.primary-nav .menu > li:focus-within > .sub-menu:has(> li:nth-child(8)) {
	display: grid;
}

.primary-nav .sub-menu a {
	font-weight: 500;
	padding: 0.5rem 0.7rem;
}

.primary-nav__cta {
	flex: none;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.nav-toggle .icon {
	width: 24px;
	height: 24px;
}

.nav-toggle__close {
	display: none;
}

.submenu-toggle {
	display: none;
}

/* ---------- Hero ---------- */
.hero {
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
	background:
		linear-gradient(var(--mist), var(--mist)) right top / 38% 100% no-repeat,
		var(--paper);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.hero__title {
	font-size: clamp(2.5rem, 5.4vw, 4.4rem);
	font-weight: 750;
	line-height: 1.02;
	letter-spacing: -0.035em;
	margin-bottom: 0.45em;
	max-width: 13ch;
	font-variation-settings: "opsz" 96;
}

.hero__text {
	font-size: clamp(1.08rem, 1.5vw, 1.25rem);
	color: var(--muted);
	max-width: 36em;
	margin-bottom: 1.8rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text);
}

.hero__facts li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.hero__facts .icon {
	color: var(--green);
	stroke-width: 2.4;
}

.hero__visual {
	position: relative;
	padding-bottom: 3rem;
}

.hero__img {
	width: 100%;
	aspect-ratio: 6 / 7;
	object-fit: cover;
	border-radius: var(--r-l);
	background: var(--mist);
}

.helpdesk {
	position: absolute;
	left: -2.5rem;
	bottom: 0;
	width: min(340px, 92%);
	padding: 1.4rem 1.5rem 1.2rem;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.85);
	border-radius: var(--r-m);
	box-shadow: 0 24px 50px -24px rgba(29, 36, 82, 0.65);
}

.helpdesk__status {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.6rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
}

.helpdesk__dot {
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #36d68c;
	flex: none;
}

.helpdesk__dot::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid #36d68c;
	opacity: 0;
	animation: rsr-pulse 2.4s ease-out infinite;
}

@keyframes rsr-pulse {
	0% {
		transform: scale(0.6);
		opacity: 0.9;
	}
	100% {
		transform: scale(1.7);
		opacity: 0;
	}
}

.helpdesk__phone {
	display: flex;
	white-space: nowrap;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.1vw, 1.75rem);
	font-weight: 750;
	letter-spacing: -0.01em;
	color: var(--marigold);
	text-decoration: none;
	margin-bottom: 0.35rem;
}

.helpdesk__phone:hover {
	color: #ffc566;
}

.helpdesk__note {
	font-size: 0.92rem;
	margin-bottom: 1rem;
}

.helpdesk__links {
	display: flex;
	gap: 1.25rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.helpdesk__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #fff;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
}

.helpdesk__links a:hover {
	text-decoration: underline;
}

/* ---------- Quick help strip ---------- */
.quick {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.quick__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.quick__item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1.4rem 1.25rem;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.4;
	text-decoration: none;
	border-left: 1px solid var(--line);
}

.quick__item:first-child {
	border-left: 0;
	padding-left: 0;
}

.quick__item strong {
	display: block;
	color: var(--ink);
	font-size: 1.02rem;
	margin-bottom: 0.15rem;
}

.quick__item:hover strong {
	text-decoration: underline;
	text-decoration-color: var(--marigold);
	text-decoration-thickness: 2px;
}

.quick__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--mist);
	color: var(--ink);
	flex: none;
}

.quick__icon--sos {
	background: var(--red-soft);
	color: var(--red);
}

/* ---------- Sections ---------- */
.section {
	padding: var(--section) 0;
}

.section--mist {
	background: var(--mist);
}

.section--ink {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
}

.section--ink .section-head__title {
	color: #fff;
}

.section--ink .section-head__text {
	color: rgba(255, 255, 255, 0.75);
}

.section--ink .link-more {
	color: #fff;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-head__title {
	font-size: clamp(1.9rem, 3.2vw, 2.7rem);
	margin-bottom: 0.3em;
}

.section-head__text {
	color: var(--muted);
	max-width: 38em;
	margin: 0;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	flex: none;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid var(--marigold);
	padding-bottom: 0.15rem;
}

.link-more .icon {
	width: 1.1em;
	height: 1.1em;
}

/* ---------- Specialities ---------- */
.spec-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.spec-tile {
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.spec-tile__link {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
	padding: 1.5rem 1.4rem 1.6rem;
	text-decoration: none;
	color: var(--text);
	transition: background-color 0.15s;
}

.spec-tile__link:hover {
	background: var(--mist);
}

.spec-tile__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--mist);
	color: var(--ink);
	transition: background-color 0.15s, color 0.15s;
}

.spec-tile__icon .icon {
	width: 28px;
	height: 28px;
}

.spec-tile__link:hover .spec-tile__icon {
	background: var(--ink);
	color: var(--marigold);
}

.spec-tile__name {
	font-family: var(--font-display);
	font-weight: 650;
	font-size: 1.12rem;
	line-height: 1.25;
	color: var(--ink);
}

.spec-tile__text {
	font-size: 0.93rem;
	color: var(--muted);
	line-height: 1.5;
}

.spec-grid--detailed {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- About ---------- */
.about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.about__media {
	margin: 0;
}

.about__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-l);
}

.about__title {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.about__body > p {
	color: var(--muted);
	max-width: 36em;
}

.checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 1.5rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
	font-weight: 600;
	font-size: 0.97rem;
}

.checklist li {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
}

.checklist .icon {
	color: var(--green);
	stroke-width: 2.4;
	margin-top: 0.15em;
}

/* ---------- Doctors ---------- */
.doc-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem 1.5rem;
}

.doc-grid--spaced {
	margin-top: 1.75rem;
}

.doc-card {
	display: flex;
	flex-direction: column;
}

.doc-card[hidden] {
	display: none;
}

.doc-card__photo {
	display: block;
	border-radius: var(--r-m);
	overflow: hidden;
	background: var(--mist);
	margin-bottom: 1rem;
}

.doc-card__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.doc-card__name {
	font-size: 1.2rem;
	margin-bottom: 0.2rem;
}

.doc-card__name a {
	color: var(--ink);
	text-decoration: none;
}

.doc-card__name a:hover {
	text-decoration: underline;
}

.doc-card__role {
	font-weight: 600;
	color: var(--text);
	margin-bottom: 0.15rem;
	font-size: 0.97rem;
}

.doc-card__qual {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 0.8rem;
}

.doc-card__book {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	font-weight: 700;
	font-size: 0.93rem;
	color: var(--ink);
	text-decoration: none;
}

.doc-card__book .icon {
	color: var(--marigold-dark);
}

.doc-card__book:hover {
	text-decoration: underline;
}

.filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.filter__btn {
	padding: 0.5rem 1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font: 600 0.92rem/1.2 var(--font-body);
	color: var(--text);
	cursor: pointer;
}

.filter__btn:hover {
	border-color: var(--ink);
}

.filter__btn.is-active {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

/* ---------- Packages ---------- */
.pkg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.pkg-card {
	display: flex;
	flex-direction: column;
	padding: 1.6rem 1.5rem 1.5rem;
	background: var(--paper);
	color: var(--text);
	border-radius: var(--r-m);
	border: 1px solid var(--line);
}

.pkg-card__head {
	min-height: 4.4rem;
}

.pkg-card__name {
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.pkg-card__name a {
	color: var(--ink);
	text-decoration: none;
}

.pkg-card__for {
	color: var(--muted);
	font-size: 0.92rem;
	margin: 0;
}

.pkg-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 1.25rem 0 0.5rem;
}

.pkg-card__price strong {
	font-family: var(--font-display);
	font-size: 2.1rem;
	font-weight: 750;
	color: var(--ink);
	letter-spacing: -0.02em;
}

.pkg-card__price del {
	color: var(--muted);
	font-size: 1rem;
}

.pkg-card__ask {
	font-size: 1.3rem !important;
}

.pkg-card__tests {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
	font-size: 0.93rem;
	margin-bottom: 1.4rem;
}

.pkg-card__tests .icon {
	color: var(--marigold-dark);
}

.pkg-card__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.8rem;
	margin-top: auto;
}

.pkg-card__more {
	font-weight: 600;
	font-size: 0.93rem;
	color: var(--ink-soft);
}

.pkg-grid--page {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.fineprint {
	margin-top: 1.5rem;
	color: var(--muted);
	font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.faq__call {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.faq__list .wp-block-details,
.prose details {
	border-bottom: 1px solid var(--line);
	padding: 0;
	margin: 0;
}

.faq__list .wp-block-details:first-child {
	border-top: 1px solid var(--line);
}

.prose details summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.15rem 2.5rem 1.15rem 0;
	font-family: var(--font-display);
	font-weight: 650;
	font-size: 1.12rem;
	color: var(--ink);
}

.prose details summary::-webkit-details-marker {
	display: none;
}

.prose details summary::after {
	content: "";
	position: absolute;
	right: 0.4rem;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
	transition: transform 0.2s;
}

.prose details[open] summary::after {
	transform: rotate(45deg);
}

.prose details > p,
.prose details > *:not(summary) {
	margin: 0 0 1.2rem;
	color: var(--muted);
	max-width: 42em;
}

/* ---------- Booking ---------- */
.booking {
	padding: var(--section) 0;
	background: var(--mist);
	scroll-margin-top: 90px;
}

.booking__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.booking__form {
	background: var(--paper);
	border-radius: var(--r-l);
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	border: 1px solid var(--line);
}

.booking__title {
	font-size: clamp(1.7rem, 2.8vw, 2.2rem);
	margin-bottom: 0.3em;
}

.booking__lead {
	color: var(--muted);
	margin-bottom: 1.6rem;
}

.booking__subtitle {
	font-size: 1.35rem;
}

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

.field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.field--wide {
	grid-column: 1 / -1;
}

.field label {
	font-weight: 600;
	font-size: 0.93rem;
	color: var(--ink);
}

.field__opt {
	font-weight: 500;
	color: var(--muted);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
	font: 400 1rem/1.4 var(--font-body);
	color: var(--text);
}

.field textarea {
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(243, 165, 50, 0.45);
}

.appt-form__foot {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 1.25rem;
	margin-top: 0.25rem;
}

.appt-form__note {
	margin: 0;
	font-size: 0.88rem;
	color: var(--muted);
}

.appt-form__note a {
	color: var(--red);
	font-weight: 700;
}

.notice {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	padding: 0.9rem 1rem;
	border-radius: 10px;
	margin-bottom: 1.4rem;
}

.notice p {
	margin: 0;
}

.notice--ok {
	background: #e6f5ee;
	color: #11563a;
}

.notice--ok .icon {
	stroke-width: 2.4;
	margin-top: 0.15em;
}

.notice--error {
	background: var(--red-soft);
	color: #8a1e24;
}

.contact-list {
	display: grid;
	gap: 1.1rem;
	margin: 1rem 0 1.5rem;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	line-height: 1.5;
}

.contact-list .icon {
	color: var(--ink);
	margin-top: 0.15em;
}

.contact-list a {
	font-weight: 700;
	color: var(--ink);
}

.map {
	border-radius: var(--r-m);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--paper);
}

.map iframe {
	display: block;
	width: 100%;
	height: 280px;
	border: 0;
}

/* ---------- Inner pages ---------- */
.page-head {
	background: var(--mist);
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	border-bottom: 1px solid var(--line);
}

.page-head__inner {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.page-head__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--ink);
	color: var(--marigold);
	flex: none;
}

.page-head__icon .icon {
	width: 34px;
	height: 34px;
}

.page-head__title {
	font-size: clamp(2rem, 4.4vw, 3.3rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.25em;
}

.page-head__intro {
	color: var(--muted);
	font-size: 1.12rem;
	max-width: 40em;
	margin: 0;
}

.content-area {
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.with-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.side-card {
	position: sticky;
	top: 100px;
	padding: 1.6rem;
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	background: var(--paper);
}

.side-card__title {
	font-size: 1.3rem;
}

.side-card p {
	color: var(--muted);
}

.side-card__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 1rem 0 0.75rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.side-card__sos {
	text-align: center;
	font-size: 0.92rem;
	margin: 0;
}

.side-card__sos a {
	color: var(--red);
	font-weight: 700;
}

.prose {
	max-width: 46rem;
}

.prose > * + h2,
.prose > * + h3 {
	margin-top: 1.8em;
}

.prose h2 {
	font-size: 1.75rem;
}

.prose h3 {
	font-size: 1.35rem;
}

.prose ul,
.prose ol {
	padding-left: 1.25rem;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose li::marker {
	color: var(--marigold-dark);
}

.prose img {
	border-radius: var(--r-m);
}

.prose blockquote {
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1.25em;
	border-left: 4px solid var(--marigold);
	font-size: 1.15rem;
	color: var(--ink);
}

.post-hero {
	margin: 0 0 2rem;
}

.post-hero img {
	width: 100%;
	border-radius: var(--r-l);
}

.cta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	max-width: 46rem;
	margin: 3rem 0;
	padding: 1.5rem 1.75rem;
	border-radius: var(--r-m);
	background: var(--mist);
}

.cta-strip p {
	margin: 0;
	font-weight: 600;
	color: var(--ink);
}

/* Doctor profile */
.doc-profile {
	background: var(--mist);
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.doc-profile__grid {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.doc-profile__photo {
	margin: 0;
	border-radius: var(--r-l);
	overflow: hidden;
	background: var(--paper);
}

.doc-profile__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.doc-profile__spec {
	display: inline-block;
	margin-bottom: 0.8rem;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--paper);
	border: 1px solid var(--line);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ink);
	text-decoration: none;
}

.doc-profile__name {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	letter-spacing: -0.03em;
	margin-bottom: 0.15em;
}

.doc-profile__role {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--text);
}

.doc-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 2rem;
	margin: 1.75rem 0 2rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.doc-facts dt {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.2rem;
}

.doc-facts dd {
	margin: 0;
	font-weight: 600;
	color: var(--ink);
}

.doc-profile__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Contact page */
.contact-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
	padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
	list-style: none;
}

.contact-card {
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-m);
}

.contact-card .icon {
	width: 30px;
	height: 30px;
	color: var(--ink);
	margin-bottom: 0.8rem;
}

.contact-card h2 {
	font-size: 1.1rem;
	margin-bottom: 0.4rem;
}

.contact-card a {
	display: block;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--ink);
	word-break: break-word;
}

.contact-card p {
	margin: 0.3rem 0 0;
	font-size: 0.9rem;
	color: var(--muted);
}

.contact-card--sos {
	background: var(--red-soft);
	border-color: transparent;
}

.contact-card--sos .icon,
.contact-card--sos a {
	color: var(--red);
}

/* Blog */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 1.5rem;
}

.post-card__img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--r-m);
	margin-bottom: 1rem;
}

.post-card__date {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.3rem;
}

.post-card__title {
	font-size: 1.3rem;
}

.post-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-card__title a:hover {
	text-decoration: underline;
}

.post-card p {
	color: var(--muted);
	font-size: 0.97rem;
}

.nav-links {
	display: flex;
	gap: 0.5rem;
	margin-top: 2.5rem;
}

.nav-links .page-numbers {
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--r-s);
	text-decoration: none;
	font-weight: 600;
}

.nav-links .current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.empty {
	color: var(--muted);
}

.empty__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 30rem;
}

.search-form .search-field {
	flex: 1;
	min-height: 46px;
	padding: 0.6rem 0.8rem;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	font: inherit;
}

.search-form .search-submit {
	padding: 0 1.1rem;
	border: 0;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
	font: 600 1rem var(--font-body);
	cursor: pointer;
}

/* WordPress core alignment classes */
.alignwide {
	max-width: 70rem;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
figcaption {
	font-size: 0.88rem;
	color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
	background: #151a3d;
	color: rgba(255, 255, 255, 0.72);
	padding: clamp(3rem, 6vw, 4.5rem) 0 0;
	font-size: 0.95rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 2.5rem;
}

.site-footer__name {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 800;
	color: #fff !important;
	margin-bottom: 0.75rem;
	letter-spacing: -0.02em;
}

.site-footer__emergency {
	display: inline-flex;
	flex-direction: column;
	margin-top: 0.5rem;
	padding: 0.8rem 1.1rem;
	border-radius: var(--r-m);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__emergency span {
	font-size: 0.85rem;
}

.site-footer__emergency strong {
	font-family: var(--font-display);
	font-size: 1.35rem;
	color: var(--marigold);
}

.site-footer__title {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 1rem;
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.55rem;
}

.contact-list--footer {
	margin-top: 0;
	gap: 0.9rem;
}

.contact-list--footer .icon {
	color: var(--marigold);
}

.contact-list--footer a {
	color: #fff;
}

.site-footer .social {
	margin-left: -0.5rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: 3rem;
	padding-top: 1.4rem;
	padding-bottom: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.87rem;
}

.site-footer__bottom p {
	margin: 0;
}

/* ---------- Mobile action bar ---------- */
.action-bar {
	display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.primary-nav .menu a {
		padding: 0.55rem 0.5rem;
		font-size: 0.93rem;
	}
}

@media (max-width: 1080px) {
	.nav-toggle {
		display: grid;
		place-items: center;
	}

	.primary-nav {
		position: fixed;
		inset: var(--nav-top, 120px) 0 0 0;
		z-index: 49;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gutter) 6rem;
		background: var(--paper);
		overflow-y: auto;
		border-top: 1px solid var(--line);
	}

	.nav-open .primary-nav {
		display: flex;
	}

	.nav-open .nav-toggle__open {
		display: none;
	}

	.nav-open .nav-toggle__close {
		display: block;
	}

	.nav-open {
		overflow: hidden;
	}

	.primary-nav .menu {
		flex-direction: column;
		align-items: stretch;
	}

	.primary-nav .menu > li {
		border-bottom: 1px solid var(--line);
	}

	.primary-nav .menu a {
		padding: 0.95rem 0.25rem;
		font-size: 1.08rem;
	}

	.primary-nav .menu > .current-menu-item > a,
	.primary-nav .menu > .current-menu-ancestor > a,
	.primary-nav .menu > .current_page_item > a {
		box-shadow: none;
		color: var(--ink);
		text-decoration: underline;
		text-decoration-color: var(--marigold);
		text-decoration-thickness: 3px;
	}

	.primary-nav .menu-item-has-children > a::after {
		display: none;
	}

	.primary-nav .menu-item-has-children > a {
		padding-right: 3.5rem;
	}

	.submenu-toggle {
		display: grid;
		place-items: center;
		position: absolute;
		right: 0;
		top: 0.35rem;
		width: 44px;
		height: 44px;
		border: 1px solid var(--line);
		border-radius: 10px;
		background: var(--paper);
		color: var(--ink);
		cursor: pointer;
	}

	.submenu-toggle[aria-expanded="true"] .icon {
		transform: rotate(180deg);
	}

	.primary-nav .sub-menu,
	.primary-nav .sub-menu:has(> li:nth-child(8)) {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 0.75rem 0.75rem;
		border: 0;
		box-shadow: none;
		grid-template-columns: 1fr 1fr;
	}

	.primary-nav .menu > li:hover > .sub-menu,
	.primary-nav .menu > li:focus-within > .sub-menu,
	.primary-nav .menu > li:hover > .sub-menu:has(> li:nth-child(8)),
	.primary-nav .menu > li:focus-within > .sub-menu:has(> li:nth-child(8)) {
		display: none;
	}

	.primary-nav .menu > li.submenu-open > .sub-menu {
		display: grid !important;
	}

	.primary-nav .sub-menu a {
		padding: 0.55rem 0.25rem;
		font-size: 0.97rem;
	}

	.primary-nav__cta {
		width: 100%;
	}

	.hero {
		background: var(--paper);
	}

	.hero__grid,
	.about,
	.faq,
	.booking__grid,
	.with-aside {
		grid-template-columns: 1fr;
	}

	.hero__visual {
		max-width: 560px;
		padding-bottom: 0;
	}

	.hero__img {
		aspect-ratio: 4 / 3;
	}

	.helpdesk {
		position: relative;
		left: auto;
		bottom: auto;
		width: auto;
		margin: -3rem 1rem 0;
	}

	.quick__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.quick__item:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}

	.quick__item:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.spec-grid,
	.doc-grid,
	.pkg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.spec-grid--detailed,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.side-card {
		position: static;
	}

	.contact-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.topbar__hours,
	.topbar__addr,
	.social--top {
		display: none;
	}

	.topbar__inner {
		justify-content: center;
		min-height: 40px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.spec-grid,
	.doc-grid,
	.pkg-grid,
	.spec-grid--detailed,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.doc-grid {
		gap: 1.75rem 1rem;
	}

	.doc-profile__grid {
		grid-template-columns: 1fr;
	}

	.doc-profile__photo {
		max-width: 300px;
	}

	.appt-form {
		grid-template-columns: 1fr;
	}

	.action-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		background: var(--paper);
		border-top: 1px solid var(--line);
		box-shadow: 0 -8px 24px -12px rgba(29, 36, 82, 0.3);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.action-bar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.2rem;
		padding: 0.55rem 0.25rem 0.5rem;
		font-size: 0.75rem;
		font-weight: 700;
		color: var(--ink);
		text-decoration: none;
	}

	.action-bar__item .icon {
		width: 22px;
		height: 22px;
	}

	.action-bar__item--sos {
		background: var(--red);
		color: #fff;
	}

	.action-bar__item--sos:hover {
		color: #fff;
	}

	body {
		padding-bottom: 64px;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 1rem;
	}

	.brand__name {
		font-size: 1.1rem;
	}

	.brand__tag {
		display: none;
	}

	.brand__mark {
		width: 38px;
		height: 38px;
	}

	.site-header__inner {
		min-height: 66px;
	}

	.quick__grid {
		grid-template-columns: 1fr;
	}

	.quick__item,
	.quick__item:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}

	.quick__item + .quick__item {
		border-top: 1px solid var(--line);
	}

	.spec-tile__link {
		padding: 1.1rem 0.9rem 1.2rem;
	}

	.spec-tile__name {
		font-size: 1rem;
	}

	.pkg-grid,
	.spec-grid--detailed,
	.post-grid,
	.contact-cards,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.checklist,
	.doc-facts {
		grid-template-columns: 1fr;
	}

	.hero__actions .btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
