/*
 * Content styles: pages, posts and block patterns. Loaded on the site and in the block editor.
 *
 * Typography is scoped with ":root :where(.entry-content, .is-root-container)": in the editor WordPress
 * replaces ":root" with ".editor-styles-wrapper" (.is-root-container is the editor canvas),
 * on the site it matches .entry-content. Block style variations (.is-style-*) are global.
 */

:root {
	--c-accent: #1a7fae;
	--c-accent-dark: #13668d;
	--c-accent-soft: #e8f4fa;
	--c-accent-pale: #f4f9fc;
	--c-text: #1c2833;
	--c-muted: #5d6b78;
	--c-border: #e3e9ee;
	--c-bg: #ffffff;
	--c-bg-alt: #f5f8fa;
	--radius: 18px;
	--shadow: 0 12px 32px rgba(20, 60, 90, .08);
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-family: var(--font);
	color: var(--c-text);
}

/* ---------- Typography ---------- */

:root :where(.entry-content, .is-root-container) {
	font-size: 17px;
	line-height: 1.7;
	color: var(--c-text);
}

:root :where(.entry-content, .is-root-container) :is(h1, h2, h3, h4, h5, h6) {
	margin: 1.6em 0 .6em;
	font-family: var(--font);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: var(--c-text);
}

:root :where(.entry-content, .is-root-container) h2 {
	font-size: clamp(26px, 3vw, 34px);
}

:root :where(.entry-content, .is-root-container) h3 {
	font-size: 22px;
}

:root :where(.entry-content, .is-root-container) h4 {
	font-size: 18px;
}

/* Editor canvas only: side padding so wide blocks do not touch the edges. */
:root :where(.is-root-container) {
	padding-right: 24px;
	padding-left: 24px;
}

:root :where(.entry-content, .is-root-container) > :first-child {
	margin-top: 0;
}

:root :where(.entry-content, .is-root-container) :is(p, ul, ol) {
	margin: 0 0 1.1em;
}

:root :where(.entry-content, .is-root-container) :is(ul, ol):not([class*="is-style"]) {
	padding-left: 1.3em;
}

:root :where(.entry-content, .is-root-container) li + li {
	margin-top: .35em;
}

:root :where(.entry-content, .is-root-container) li::marker {
	color: var(--c-accent);
}

:root :where(.entry-content, .is-root-container) a:not(.wp-block-button__link) {
	color: var(--c-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

:root :where(.entry-content, .is-root-container) a:not(.wp-block-button__link):hover {
	color: var(--c-accent-dark);
}

:root :where(.entry-content, .is-root-container) strong {
	font-weight: 700;
}

:root :where(.entry-content, .is-root-container) hr,
.wp-block-separator {
	margin: 2.5em auto;
	border: 0;
	border-top: 1px solid var(--c-border);
	opacity: 1;
}

:root :where(.entry-content, .is-root-container) img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

:root :where(.entry-content, .is-root-container) figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--c-muted);
	text-align: center;
}

:root :where(.entry-content, .is-root-container) blockquote:not([class*="is-style"]) {
	margin: 1.6em 0;
	padding: 6px 0 6px 22px;
	font-size: 19px;
	border-left: 3px solid var(--c-accent);
}

:root :where(.entry-content, .is-root-container) .wp-block-embed iframe,
:root :where(.entry-content, .is-root-container) .wp-block-video video {
	border-radius: 16px;
}

:root :where(.entry-content, .is-root-container) .wp-block-columns {
	gap: 24px;
	margin-bottom: 1.2em;
}

/* ---------- Buttons ---------- */

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-family: var(--font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--c-accent);
	border: 2px solid var(--c-accent);
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(26, 127, 174, .22);
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}

.wp-block-button .wp-block-button__link:hover {
	color: #fff;
	background: var(--c-accent-dark);
	border-color: var(--c-accent-dark);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--c-accent);
	background: transparent;
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: #fff;
	background: var(--c-accent);
}

.wp-block-buttons {
	gap: 12px;
}

/* ---------- Block style variations ---------- */

/* Paragraph: eyebrow / lead */
p.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px !important;
	font-size: 13px !important;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-accent);
}

p.is-style-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

p.is-style-lead {
	font-size: 19px;
	line-height: 1.65;
	color: var(--c-muted);
}

/* Heading: section */
.wp-block-heading.is-style-section {
	margin-top: 0 !important;
	font-size: clamp(30px, 3.6vw, 44px) !important;
	line-height: 1.12 !important;
	letter-spacing: -.02em;
}

/* Group: card / soft / note */
.wp-block-group.is-style-card {
	height: 100%;
	padding: 28px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	transition: box-shadow .25s, transform .25s, border-color .25s;
}

.wp-block-group.is-style-card:hover {
	border-color: #cfe3ee;
	box-shadow: var(--shadow);
}

.wp-block-group.is-style-card > :first-child {
	margin-top: 0;
}

.wp-block-group.is-style-card > :last-child {
	margin-bottom: 0;
}

.wp-block-group.is-style-card :is(h3, h4) {
	margin-top: 0;
}

.wp-block-group.is-style-soft {
	padding: clamp(28px, 5vw, 56px);
	background: linear-gradient(135deg, var(--c-accent-soft) 0%, #f5fafc 100%);
	border: 1px solid #d7e9f2;
	border-radius: 28px;
}

.wp-block-group.is-style-soft > :last-child,
.wp-block-group.is-style-note > :last-child {
	margin-bottom: 0;
}

.wp-block-group.is-style-note {
	padding: 18px 22px;
	background: var(--c-accent-pale);
	border-left: 4px solid var(--c-accent);
	border-radius: 0 14px 14px 0;
}

/* List: check / steps */
ul.is-style-check,
ol.is-style-check {
	padding: 0 !important;
	list-style: none;
}

.is-style-check li {
	position: relative;
	padding-left: 36px;
}

.is-style-check li::before {
	content: "";
	position: absolute;
	top: .2em;
	left: 0;
	width: 24px;
	height: 24px;
	background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
	border-radius: 50%;
}

ol.is-style-steps,
ul.is-style-steps {
	padding: 0 !important;
	list-style: none;
	counter-reset: step;
}

.is-style-steps li {
	position: relative;
	min-height: 44px;
	padding: 8px 0 8px 64px;
	counter-increment: step;
}

.is-style-steps li + li {
	margin-top: 12px !important;
}

.is-style-steps li::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	font-weight: 800;
	color: var(--c-accent);
	background: var(--c-accent-soft);
	border-radius: 14px;
}

.is-style-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50px;
	bottom: -10px;
	left: 21px;
	width: 2px;
	background: var(--c-accent-soft);
}

/* Table: price */
.wp-block-table.is-style-price {
	overflow: hidden;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.wp-block-table.is-style-price table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table.is-style-price :is(td, th) {
	padding: 14px 20px;
	border: 0;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
}

.wp-block-table.is-style-price thead {
	border: 0;
}

.wp-block-table.is-style-price th {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-muted);
	background: var(--c-bg-alt);
}

.wp-block-table.is-style-price tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.is-style-price td:last-child,
.wp-block-table.is-style-price th:last-child {
	width: 1%;
	font-weight: 800;
	color: var(--c-accent);
	text-align: right;
	white-space: nowrap;
}

.wp-block-table.is-style-price tbody tr:hover td {
	background: var(--c-accent-pale);
}

/* Image: soft rounded */
.wp-block-image.is-style-soft-rounded img {
	border-radius: 28px;
	box-shadow: var(--shadow);
}

/* Quote: review */
.wp-block-quote.is-style-review {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 56px 28px 28px;
	font-size: 16px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.wp-block-quote.is-style-review::before {
	content: "“";
	position: absolute;
	top: 14px;
	left: 26px;
	font: 800 64px/1 Georgia, serif;
	color: var(--c-accent);
	opacity: .35;
}

.wp-block-quote.is-style-review p {
	margin-bottom: 16px;
}

.wp-block-quote.is-style-review cite {
	display: block;
	font-style: normal;
	font-weight: 700;
	color: var(--c-text);
}

.wp-block-quote.is-style-review cite::after {
	content: "★★★★★";
	display: block;
	margin-top: 2px;
	font-size: 14px;
	letter-spacing: 2px;
	color: #f5a524;
}

/* Details: FAQ accordion */
.wp-block-details.is-style-faq {
	margin: 0 0 10px;
	padding: 0;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: 16px;
	transition: border-color .2s, box-shadow .2s;
}

.wp-block-details.is-style-faq[open] {
	border-color: #cfe3ee;
	box-shadow: var(--shadow);
}

.wp-block-details.is-style-faq summary {
	position: relative;
	padding: 18px 60px 18px 22px;
	font-size: 17px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.wp-block-details.is-style-faq summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 18px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1;
	color: var(--c-accent);
	background: var(--c-accent-soft);
	border-radius: 50%;
	transition: transform .2s;
}

.wp-block-details.is-style-faq[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details.is-style-faq > :not(summary) {
	margin: 0;
	padding: 0 22px 18px;
	color: var(--c-muted);
}

/* ---------- Pattern components ---------- */

/* Stats */
.mv-stats .wp-block-column {
	padding: 6px 0 6px 24px;
	border-left: 2px solid var(--c-accent-soft);
}

.mv-stats .mv-stat-num {
	margin: 0 !important;
	font-size: clamp(32px, 4vw, 44px) !important;
	font-weight: 800;
	line-height: 1.1;
	color: var(--c-accent);
}

.mv-stats .mv-stat-num + p {
	margin: 4px 0 0;
	font-size: 15px;
	color: var(--c-muted);
}

/* Doctor card */
.mv-doctor {
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	overflow: hidden;
}

.mv-doctor .wp-block-image {
	margin: 0;
}

.mv-doctor .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 4.4;
	object-fit: cover;
	background: var(--c-accent-soft);
	border-radius: 0;
}

.mv-doctor > :not(.wp-block-image) {
	margin-right: 24px !important;
	margin-left: 24px !important;
}

.mv-doctor h3 {
	margin: 20px 24px 4px !important;
	font-size: 20px !important;
}

.mv-doctor .mv-doctor__role {
	margin-bottom: 6px !important;
	font-weight: 700;
	color: var(--c-accent);
}

.mv-doctor .mv-doctor__meta {
	font-size: 15px;
	color: var(--c-muted);
}

.mv-doctor .wp-block-buttons {
	margin-top: auto !important;
	margin-bottom: 24px !important;
	padding-top: 8px;
}

.mv-doctor .wp-block-button__link {
	padding: 11px 22px;
	font-size: 15px;
}

/* Photo card: image on top, title, short text */
.mv-photo-card {
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	overflow: hidden;
}

.mv-photo-card .wp-block-image {
	margin: 0;
	overflow: hidden;
}

.mv-photo-card .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.mv-photo-card:hover .wp-block-image img {
	transform: scale(1.04);
}

.mv-photo-card h3 {
	margin: 18px 22px 6px !important;
	font-size: 18px !important;
}

.mv-photo-card > p {
	margin: 0 22px 22px !important;
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-muted);
}

/* Contact cards */
.mv-contact-card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mv-contact-card h3::before {
	content: "";
	flex: none;
	width: 40px;
	height: 40px;
	background: var(--c-accent-soft) var(--mv-icon) center / 20px no-repeat;
	border-radius: 12px;
}

.mv-contact-card--pin {
	--mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7fae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

.mv-contact-card--phone {
	--mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7fae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");
}

.mv-contact-card--clock {
	--mv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7fae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

/* CTA */
.mv-cta {
	text-align: center;
}

.mv-cta h2 {
	margin-top: 0 !important;
}

.mv-cta .wp-block-buttons {
	margin-top: 8px;
}

/* Numbered card label (feature cards) */
.mv-card-num {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px !important;
	font-size: 18px !important;
	font-weight: 800;
	color: var(--c-accent);
	background: var(--c-accent-soft);
	border-radius: 14px;
}

@media (max-width: 781px) {
	.wp-block-columns.mv-photo-grid {
		flex-wrap: wrap !important;
		gap: 16px;
	}

	.wp-block-columns.mv-photo-grid > .wp-block-column {
		flex-basis: calc(50% - 8px) !important;
		flex-grow: 0;
	}

	.mv-photo-card h3 {
		margin: 14px 14px 4px !important;
		font-size: 16px !important;
	}

	.mv-photo-card > p {
		margin: 0 14px 16px !important;
		font-size: 14px;
	}

	.wp-block-columns.mv-stats {
		flex-wrap: wrap !important;
		row-gap: 20px;
	}

	.wp-block-columns.mv-stats > .wp-block-column {
		flex-basis: calc(50% - 12px) !important;
		flex-grow: 0;
		padding-left: 16px;
	}

	.wp-block-table.is-style-price :is(td, th) {
		padding: 12px 14px;
	}
}
