/* =========================================================
   MERIDIAN HOME SHELL — PRODUCTION REFACTOR
   Home-specific components only.
   Shared motion lives in foundation.css.
   Footer lives in header-footer.css.
   ========================================================= */

/* =========================================================
   1. HERO — FINAL CONSOLIDATED VERSION
   ========================================================= */

.meridian-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 32px;
	padding-block: 56px 72px;
}

/* Soft supporting shape behind the image */
.meridian-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	top: 38%;
	right: 0;
	bottom: 48px;
	left: 18%;
	border-radius: 24px;
	background:
		linear-gradient(
			145deg,
			var(--meridian-soft),
			rgb(247 250 252 / 55%)
		);
}


/* Hero content */

.meridian-hero__content {
	position: relative;
	z-index: 2;
	min-width: 0;
	margin: 0;
}

.meridian-hero__content .meridian-hero__eyebrow {
	position: static;
	display: block;
	margin: 0 0 18px;
	color: var(--meridian-primary);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	order: initial;
	align-self: auto;
	justify-self: auto;
}

.meridian-hero__content h1 {
	max-width: 13ch;
	margin: 0 0 20px;
	color: var(--meridian-deep);
	font-size: clamp(2.4rem, 5vw, 4.25rem);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.035em;
	text-wrap: balance;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.meridian-hero__content > p:not(.meridian-hero__eyebrow) {
	max-width: 38ch;
	margin: 0;
	color: var(--meridian-secondary);
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.7;
}


/* Hero actions */

.meridian-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-block-start: 28px;
}

.meridian-hero__actions > * {
	margin: 0;
}

/* Gutenberg Buttons wrapper */
.meridian-hero__actions .wp-block-buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin: 0;
}

.meridian-hero__actions .wp-block-button {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.meridian-hero__actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 48px;
	padding: 13px 24px;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

/* Primary CTA */
.meridian-hero__actions .hero-cta-primary .wp-block-button__link {
	background: var(--meridian-primary) !important;
	border: 1px solid var(--meridian-primary) !important;
	color: var(--meridian-white) !important;
	box-shadow: 0 10px 24px rgb(0 94 168 / 18%);
}

/* Secondary CTA */
.meridian-hero__actions .hero-cta-secondary .wp-block-button__link {
	background: var(--meridian-white) !important;
	border: 1px solid var(--meridian-primary) !important;
	color: var(--meridian-primary) !important;
	box-shadow: none;
}

/*
 * The current Gutenberg Button wrappers still carry the
 * meridian-button classes from the earlier paragraph-button version.
 * Neutralize only the wrapper decoration; style the actual link above.
 */
.meridian-hero__actions .meridian-button {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
}


/* Hero media */

.meridian-hero__media {
	position: relative;
	z-index: 1;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 80%);
	border-radius: 20px;
	background: var(--meridian-soft);
	box-shadow:
		0 26px 60px rgb(11 46 79 / 16%),
		0 8px 20px rgb(11 46 79 / 8%);
}

.meridian-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 16%;
}


/* Floating trust tile */

.meridian-hero__trust {
	position: relative;
	z-index: 3;
	width: min(88%, 320px);
	margin: -54px 0 0 20px;
	padding: 20px 22px;
	border: 1px solid rgb(217 226 236 / 85%);
	border-radius: 16px;
	background: rgb(255 255 255 / 96%);
	box-shadow:
		0 20px 44px rgb(11 46 79 / 13%),
		0 5px 14px rgb(11 46 79 / 7%);
}

.meridian-hero__trust h3 {
	margin: 0 0 6px;
	color: var(--meridian-deep);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.meridian-hero__trust p {
	margin: 0;
	color: var(--meridian-secondary);
	font-size: 0.875rem;
	line-height: 1.55;
}


/* =========================================================
   HERO — RESPONSIVE
   Breakpoint contract:
   Mobile  : <= 767px
   Tablet  : 768px–1023px
   Desktop : >= 1024px
   Large   : >= 1280px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1023px) {
	.meridian-hero {
		padding-block: 42px 38px;
	}

	.meridian-hero__content h1 {
		margin-bottom: 8px;
	}

	.meridian-hero__content > p:not(.meridian-hero__eyebrow) {
		margin-bottom: 10px;
	}

	.meridian-hero__actions {
		gap: 10px;
		margin-top: 4px;
		margin-bottom: 18px;
	}

	.meridian-hero__actions .wp-block-buttons {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	.meridian-hero__actions .wp-block-button,
	.meridian-hero__actions .wp-block-button__link {
		width: auto !important;
	}

	.meridian-hero__media img {
		width: 100%;
		max-height: 430px;
		object-fit: cover;
		object-position: center;
	}

	.meridian-hero__trust {
		position: relative;
		z-index: 3;
		width: min(70%, 330px);
		margin-top: -34px;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	.meridian-hero {
		padding-block: 30px;
	}

	.meridian-hero__content .meridian-hero__eyebrow {
		margin-bottom: 4px;
	}

	.meridian-hero__content h1 {
		margin-top: 0;
		margin-bottom: 8px;
		font-size: clamp(2rem, 10vw, 2.65rem);
		line-height: 1.02;
	}

	.meridian-hero__content > p:not(.meridian-hero__eyebrow) {
		margin-top: 0;
		margin-bottom: 10px;
		line-height: 1.55;
	}

	.meridian-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 4px;
		margin-bottom: 16px;
	}

	.meridian-hero__actions .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.meridian-hero__actions .wp-block-button,
	.meridian-hero__actions .wp-block-button__link {
		width: 100%;
	}

	.meridian-hero__actions .wp-block-button__link {
		min-height: 44px;
		padding: 11px 18px;
	}

	.meridian-hero__media {
		margin-top: 0;
	}

	.meridian-hero__media img {
		display: block;
		width: 100%;
		height: clamp(260px, 78vw, 340px);
		min-height: 0;
		aspect-ratio: auto;
		object-fit: cover;
		object-position: center;
		border-radius: 14px;
	}

	.meridian-hero__trust {
		position: relative;
		width: calc(100% - 24px);
		max-width: 288px;
		margin: -28px auto 0;
		padding: 14px 16px;
	}

	.meridian-hero__trust h3 {
		margin-bottom: 4px;
	}

	.meridian-hero__trust p {
		margin: 0;
		font-size: 0.82rem;
		line-height: 1.45;
	}
}

/* =========================================================
   4. DESKTOP
   ========================================================= */

@media (min-width: 1024px) {

	.meridian-hero {
		grid-template-columns:
			minmax(0, 42fr)
			minmax(0, 58fr);
		grid-template-rows: minmax(560px, auto);
		gap: 36px;
		padding-block: 64px 88px;
	}

	/* Blue shape sits only behind media */
	.meridian-hero::before {
		top: 28px;
		right: -28px;
		bottom: 58px;
		left: 48%;
		border-radius: 28px;
	}

	.meridian-hero__content {
		grid-column: 1;
		grid-row: 1;
		align-self: center;
		padding-inline-end: 18px;
	}

	.meridian-hero__media {
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		width: calc(100% + 32px);
		max-width: none;
		margin: 28px -32px 0 0;
		border-radius: 22px;
	}

	.meridian-hero__media img {
		min-height: 500px;
		aspect-ratio: 1.12 / 1;
	}

	.meridian-hero__trust {
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		justify-self: start;
		width: 280px;
		margin: 0 0 18px -28px;
		padding: 22px 24px;
	}

}

/* =========================================================
   5. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1280px) {

	.meridian-hero {
		grid-template-columns:
			minmax(0, 40fr)
			minmax(0, 60fr);
		gap: 52px;
	}

	.meridian-hero__media {
		width: calc(100% + 54px);
		margin-right: -54px;
	}

	.meridian-hero__media img {
		min-height: 540px;
	}

	.meridian-hero__trust {
		width: 300px;
		margin-left: -34px;
		margin-bottom: 22px;
	}
}



/* =========================================================
   7. INTERACTION + ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	/* Hero CTAs */
	.meridian-hero__actions .wp-block-button__link {
		transition:
			transform 200ms ease,
			box-shadow 200ms ease,
			background-color 200ms ease,
			border-color 200ms ease;
	}

	.meridian-hero__actions .wp-block-button__link:hover {
		transform: translateY(-2px);
	}

	.meridian-hero__actions .hero-cta-primary .wp-block-button__link:hover {
		background: var(--meridian-deep) !important;
		border-color: var(--meridian-deep) !important;
		box-shadow: 0 14px 30px rgb(11 46 79 / 20%);
	}

	.meridian-hero__actions .hero-cta-secondary .wp-block-button__link:hover {
		background: var(--meridian-soft) !important;
	}
	
}

.meridian-hero__actions .wp-block-button__link:focus-visible {
	outline: 3px solid rgb(0 94 168 / 35%);
	outline-offset: 3px;
}


/* =========================================================
   MERIDIAN EMERGENCY BAND v3.1
   ========================================================= */

.meridian-emergency {
	position: relative;
	z-index: 4;
	width: min(calc(100% - 48px), 980px);
	margin: 24px auto -34px;
	padding: 16px 24px;

	border: 1px solid var(--meridian-border);
	border-left: 4px solid #d92d20;
	border-radius: 16px;

	background: var(--meridian-white);

	box-shadow:
		0 18px 40px rgb(11 46 79 / 10%),
		0 6px 16px rgb(11 46 79 / 5%);
}

.meridian-emergency .meridian-emergency__grid {
	display: grid !important;

	grid-template-columns:
		72px
		minmax(0, 1fr)
		220px;

	align-items: center;
	gap: 24px;

	width: 100%;
	margin: 0;
}

.meridian-emergency__grid > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}


/* LEFT — shield */

.meridian-emergency__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.meridian-emergency__media img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: contain;
}


/* CENTER — message */

.meridian-emergency__content {
	min-width: 0;
}

.meridian-emergency__content h2,
.meridian-emergency__content h3 {
	margin: 0 0 6px;

	color: var(--meridian-deep);

	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
}

.meridian-emergency__content p {
	max-width: 56ch;
	margin: 0;

	color: var(--meridian-secondary);

	font-size: 0.9rem;
	line-height: 1.55;

	overflow-wrap: normal;
	word-break: normal;
}


/* RIGHT — emergency call */

.meridian-emergency__actions {
	display: grid;

	grid-template-columns:
		44px
		minmax(0, 1fr);

	grid-template-rows:
		auto
		auto;

	align-items: center;
	column-gap: 12px;
	row-gap: 4px;

	min-width: 0;
}

.meridian-emergency__actions img {
	grid-column: 1;
	grid-row: 1 / 3;

	display: block;

	width: 42px;
	height: 42px;

	object-fit: contain;
}

.meridian-emergency__actions h3 {
	grid-column: 2;
	grid-row: 1;

	margin: 0;

	color: var(--meridian-deep);

	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;

	white-space: nowrap;
}

.meridian-emergency__actions p {
	grid-column: 2;
	grid-row: 2;

	margin: 0;

	color: var(--meridian-secondary);

	font-size: 0.9rem;
	line-height: 1.5;

	overflow-wrap: normal;
	word-break: normal;
}


/* DESKTOP — bridge between Hero and Quick Actions */

@media (min-width: 1024px) {

	.meridian-emergency {
		margin-top: -18px;
		margin-bottom: 48px;
		padding-block: 14px;
	}

	.meridian-emergency .meridian-emergency__grid {
		grid-template-columns:
			72px
			minmax(0, 1fr)
			220px;

		gap: 22px;
	}
}


/* TABLET */

@media (min-width: 768px) and (max-width: 1023px) {

	.meridian-emergency {
		width: min(calc(100% - 32px), 920px);
		margin-bottom: 40px;
	}

	.meridian-emergency .meridian-emergency__grid {
		grid-template-columns:
			64px
			minmax(0, 1fr)
			200px;

		gap: 18px;
	}

	.meridian-emergency__media img {
		width: 54px;
		height: 54px;
	}
}


/* MOBILE */

@media (max-width: 767px) {

	.meridian-emergency {
		width: calc(100% - 24px);
		margin-top: 24px;
		margin-bottom: 0;
		padding: 18px;
	}

	.meridian-emergency .meridian-emergency__grid {
		grid-template-columns:
			52px
			minmax(0, 1fr);

		gap: 14px;
		align-items: start;
	}

	.meridian-emergency__media img {
		width: 48px;
		height: 48px;
	}

	.meridian-emergency__actions {
		grid-column: 1 / -1;

		margin-top: 10px;
		padding-top: 14px;

		border-top: 1px solid var(--meridian-border);
	}
}


/* =========================================================
   SERVICES MOTION
   ========================================================= */

.motion-ready .services-heading {
	transition-delay: 0ms;
}

.motion-ready .services-intro {
	transition-delay: 90ms;
}

.motion-ready .service-card-1 {
	transition-delay: 180ms;
}

.motion-ready .service-card-2 {
	transition-delay: 290ms;
}

.motion-ready .service-card-3 {
	transition-delay: 400ms;
}

/* Slightly stronger Services entrance */
.motion-ready .service-card {
	transform: translateY(24px);
}

/* Gentle image settle during card reveal */
.motion-ready .service-card img {
	transform: scale(0.97);
	transition: transform 650ms ease;
}

.motion-ready .service-card.is-visible img {
	transform: scale(1);
}

/* Faster rhythm on mobile */
@media (max-width: 767px) {
	.motion-ready .services-intro {
		transition-delay: 60ms;
	}

	.motion-ready .service-card-1 {
		transition-delay: 100ms;
	}

	.motion-ready .service-card-2 {
		transition-delay: 160ms;
	}

	.motion-ready .service-card-3 {
		transition-delay: 220ms;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motion-ready .service-card img {
		transform: none;
		transition: none;
	}
}

/* =========================================================
   SERVICES CARD VISUALS + HOVER
   ========================================================= */

.service-card {
	position: relative;
	overflow: hidden;

	padding: 0 0 24px;

	border: 1px solid var(--meridian-border);
	border-radius: 16px;

	background: var(--meridian-white);

	box-shadow:
		0 8px 20px rgb(11 46 79 / 6%),
		0 2px 6px rgb(11 46 79 / 4%);
}

.service-card img {
	display: block;
	width: 100%;
	border-radius: 16px 16px 0 0;
}

.service-card h3,
.service-card p {
	padding-inline: 22px;
}

.service-card h3 {
	margin-top: 20px;
}

.service-card p {
	margin-bottom: 0;
}

/* =========================================================
   SERVICES — HOVER INTERACTION
   ========================================================= */

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	.service-card {
		transition:
			transform 300ms ease,
			box-shadow 300ms ease,
			border-color 300ms ease;
	}

	.service-card img {
		transition:
			transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	/* Hover after scroll reveal has completed */
	.motion-ready .service-card.reveal-up.is-visible:hover {
		transform: translateY(-8px) scale(1);

		border-color: rgb(0 94 168 / 24%);

		box-shadow:
			0 20px 44px rgb(11 46 79 / 13%),
			0 8px 20px rgb(11 46 79 / 7%);
	}

	.motion-ready .service-card.reveal-up.is-visible:hover img {
		transform:
			scale(1.04)
			translateY(-3px);
	}
}


/* =========================================================
   WHY CHOOSE — TRUST CARD INTERACTION
   ========================================================= */

.trust-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	border: 1px solid var(--meridian-border);
	border-radius: 16px;
	background: var(--meridian-white);

	box-shadow:
		0 8px 20px rgb(11 46 79 / 6%),
		0 2px 6px rgb(11 46 79 / 4%);

	transition:
		transform 260ms ease,
		box-shadow 260ms ease,
		border-color 260ms ease,
		background-color 300ms ease;
}

/* Diagonal glow sweep */
.trust-card::before {
	content: "";
	position: absolute;

	width: 45%;
	height: 180%;

	left: -55%;
	bottom: -70%;

	background: linear-gradient(
		45deg,
		transparent 0%,
		rgb(0 94 168 / 3%) 30%,
		rgb(0 94 168 / 10%) 42%,
		rgb(0 94 168 / 15%) 50%,
		rgb(0 94 168 / 10%) 58%,
		rgb(0 94 168 / 3%) 70%,
		transparent 100%
	);

	transform: rotate(18deg);

	transition:
		left 750ms cubic-bezier(0.22, 1, 0.36, 1),
		bottom 750ms cubic-bezier(0.22, 1, 0.36, 1);

	pointer-events: none;
	z-index: 1;
}

/* Keep card content above the sweep */
.trust-card > * {
	position: relative;
	z-index: 2;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	.trust-card:hover {
		transform: translateY(-4px);

		border-color: rgb(0 94 168 / 28%);

		background: rgb(0 94 168 / 6%);

		box-shadow:
			0 18px 40px rgb(11 46 79 / 12%),
			0 6px 18px rgb(0 94 168 / 10%);

		transition-delay: 0ms, 0ms, 0ms, 420ms;
	}

	.trust-card:hover::before {
		left: 115%;
		bottom: 40%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trust-card,
	.trust-card::before {
		transition: none;
		transform: none;
	}
}

/* =========================================================
   DOCTORS / SPECIALISTS
   ========================================================= */

.doctor-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	padding: 0 0 24px;

	border: 1px solid var(--meridian-border);
	border-radius: 16px;

	background: var(--meridian-white);

	box-shadow:
		0 8px 20px rgb(11 46 79 / 6%),
		0 2px 6px rgb(11 46 79 / 4%);
}

.doctor-card img {
	display: block;
	width: 100%;
	border-radius: 16px 16px 0 0;
}

.doctor-card h3,
.doctor-card h4,
.doctor-card p {
	padding-inline: 22px;
}

.doctor-card h3 {
	margin: 20px 0 4px;

	color: var(--meridian-deep);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
}

.doctor-card h4 {
	margin: 0 0 14px;

	color: var(--meridian-primary);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
}

.doctor-card p {
	margin: 0;

	color: var(--meridian-secondary);
	font-size: 0.95rem;
	line-height: 1.65;
}

/* =========================================================
   DOCTOR CARD — INFORMATION REVEAL
   ========================================================= */

.doctor-card__reveal {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;

	min-height: 52%;
	padding: 24px;

	background:
		linear-gradient(
			180deg,
			rgb(16 69 110 / 94%),
			rgb(11 46 79 / 99%)
		);

	color: var(--meridian-white);

	transform: translateY(101%);
	opacity: 0;

	transition:
		transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 280ms ease;
}
.doctor-card__reveal p {
	margin: 0 0 8px;
	padding: 0;

	color: rgb(255 255 255 / 88%);
	font-size: 0.9rem;
	line-height: 1.5;
}

.doctor-card__reveal p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	.doctor-card:hover .doctor-card__reveal,
	.doctor-card:focus-within .doctor-card__reveal {
		transform: translateY(0);
		opacity: 1;
	}
}

/* =========================================================
   DOCTOR CARD — FLOWING BORDER / SHADOW
   ========================================================= */

/* Animated border glow */
.doctor-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;

	border-radius: inherit;

	background:
		linear-gradient(
			120deg,
			transparent 10%,
			rgb(0 94 168 / 10%) 30%,
			rgb(0 94 168 / 30%) 50%,
			rgb(0 94 168 / 10%) 70%,
			transparent 90%
		);

	background-size: 220% 220%;
	background-position: 100% 100%;

	opacity: 0;

	filter: blur(5px);

	transition:
		opacity 260ms ease;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	.doctor-card:hover::before {
		opacity: 1;

		animation:
			doctor-card-border-flow 1.2s ease forwards;
	}

	.motion-ready .doctor-card.reveal-up.is-visible:hover {
		transform: translateY(-6px);

		border-color: rgb(0 94 168 / 26%);

		box-shadow:
			0 22px 48px rgb(11 46 79 / 14%),
			0 8px 22px rgb(0 94 168 / 9%);
	}
}

@keyframes doctor-card-border-flow {

	0% {
		background-position: 100% 100%;
	}

	100% {
		background-position: 0% 0%;
	}
}

/* Doctor reveal — text contrast fix */
.doctor-card .doctor-card__reveal h3 {
	color: var(--meridian-white) !important;
}

.doctor-card .doctor-card__reveal h4 {
	color: rgb(255 255 255 / 82%) !important;
}


/* =========================================================
   CONTACT — LEFT INFORMATION CARD
   ========================================================= */

.contact-details {
	padding: 32px;

	border: 1px solid var(--meridian-border);
	border-radius: 18px;

	background: var(--meridian-white);

	box-shadow:
		0 12px 30px rgb(11 46 79 / 8%),
		0 4px 12px rgb(11 46 79 / 4%);
}

.contact-details > h3 {
	margin: 0 0 26px;

	color: var(--meridian-deep);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.contact-item {
	display: grid !important;
	grid-template-columns: 48px minmax(0, 1fr);
	align-items: center;
	gap: 16px;

	margin: 0 0 22px;
}

.contact-item:last-child {
	margin-bottom: 0;
}

.contact-item > .wp-block-column {
	flex-basis: auto !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
}

.contact-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-item__icon img {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.contact-item__content p {
	margin: 0;

	color: var(--meridian-secondary);
	font-size: 0.95rem;
	line-height: 1.55;
}

/* =========================================================
   CONTACT — FORM CARD
   ========================================================= */

.contact-form-card {
	padding: 32px;

	border: 1px solid var(--meridian-border);
	border-radius: 18px;

	background: var(--meridian-white);

	box-shadow:
		0 12px 30px rgb(11 46 79 / 8%),
		0 4px 12px rgb(11 46 79 / 4%);
}

.contact-form-card h3 {
	margin: 0 0 10px;

	color: var(--meridian-deep);
	font-size: 1.5rem;
	font-weight: 700;
}

.contact-form-card > p {
	margin: 0 0 24px;

	color: var(--meridian-secondary);
	line-height: 1.6;
}

.contact-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.contact-field {
	margin-bottom: 16px;
}

.contact-field label {
	display: block;

	margin-bottom: 6px;

	color: var(--meridian-deep);
	font-size: 0.875rem;
	font-weight: 600;
}

.contact-field input,
.contact-field textarea {
	width: 100%;
	box-sizing: border-box;

	padding: 12px 14px;

	border: 1px solid var(--meridian-border);
	border-radius: 10px;

	background: var(--meridian-white);
	color: var(--meridian-deep);

	font: inherit;

	transition:
		border-color 200ms ease,
		box-shadow 200ms ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
	outline: none;

	border-color: var(--meridian-primary);

	box-shadow:
		0 0 0 3px rgb(0 94 168 / 12%);
}

.contact-field textarea {
	min-height: 150px;
	resize: vertical;
}

.contact-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 48px;
	padding: 13px 24px;

	border: 1px solid var(--meridian-primary);
	border-radius: 12px;

	background: var(--meridian-primary);
	color: var(--meridian-white);

	font-weight: 600;
	cursor: pointer;

	box-shadow:
		0 10px 24px rgb(0 94 168 / 18%);

	transition:
		transform 250ms ease,
		box-shadow 250ms ease,
		background-color 250ms ease;
}

.contact-submit:hover {
	background: var(--meridian-deep);
	transform: translateY(-2px);

	box-shadow:
		0 14px 30px rgb(11 46 79 / 20%);
}

@media (max-width: 767px) {
	.contact-form-row {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   CONTACT CARDS — HOVER
   ========================================================= */

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {

	.contact-details,
	.contact-form-card {
		transition:
			transform 280ms ease,
			box-shadow 280ms ease,
			border-color 280ms ease;
	}

	.contact-details:hover,
	.contact-form-card:hover {
		transform: translateY(-4px);

		border-color: rgb(0 94 168 / 20%);

		box-shadow:
			0 18px 40px rgb(11 46 79 / 12%),
			0 6px 18px rgb(11 46 79 / 6%);
	}
}


/* =========================================================
   HOME — REMOVE ASTRA CONTENT BOTTOM GAP
   ========================================================= */

.home #primary {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.home .site-content {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.home .site-content > .ast-container {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}


/* =========================================================
   CONTACT — STATIC MAP
   ========================================================= */

.contact-map-static {
	margin: 0;
	overflow: visible !important;
}

.contact-map-static img {
	display: block;
	width: 100%;
	height: auto;

	border: 1px solid rgb(11 46 79 / 8%);
	border-radius: 16px;

	box-shadow:
		0 18px 40px rgb(11 46 79 / 16%),
		0 6px 16px rgb(11 46 79 / 10%) !important;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
	font-size: 0.82rem;
	color: rgb(11 46 79 / 42%);
}


/* =========================================================
   WHY CHOOSE — RESPONSIVE ICON SCALE
   ========================================================= */

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {

	.trust-card img {
		display: block;

		width: min(58%, 220px);
		height: auto;

		margin-inline: auto;
		margin-bottom: 18px;
	}
}

/* Mobile */
@media (max-width: 767px) {

	.trust-card img {
		display: block;

		width: min(52%, 150px);
		height: auto;

		margin-inline: auto;
		margin-bottom: 16px;
	}
}


/* =========================================================
   DOCTORS — MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.doctor-card {
		padding-bottom: 0;
	}

	.doctor-card img {
		width: 100%;
		height: 280px;

		object-fit: cover;
		object-position: center top;
	}

	.doctor-card h3 {
		margin-top: 16px;
		font-size: 1.1rem;
	}

	.doctor-card h4 {
		margin-bottom: 10px;
		font-size: 0.9rem;
	}

	.doctor-card > p {
		font-size: 0.88rem;
		line-height: 1.55;
	}

	/* Reveal becomes normal card content */
	.doctor-card__reveal {
		position: static !important;

		min-height: 0 !important;

		padding: 16px 20px 18px;

		background: var(--meridian-soft);

		transform: none !important;
		opacity: 1 !important;

		border-top: 1px solid var(--meridian-border);
	}

	.doctor-card__reveal h3 {
		display: none;
	}

	.doctor-card__reveal h4 {
		display: none;
	}

	.doctor-card__reveal p {
		margin-bottom: 6px;

		font-size: 0.82rem;
		line-height: 1.45;

		color: var(--meridian-secondary) !important;
	}

	.doctor-card__reveal .wp-block-button__link,
	.doctor-card__reveal a {
		font-size: 0.82rem;
	}
}

/* =========================================================
   DOCTORS — TABLET
   ========================================================= */



@media (min-width: 768px) and (max-width: 1023px) {

	.doctor-card img {
		display: block;

		width: 100%;
		height: 525px;

		object-fit: cover;
		object-position: center top;
	}

	.doctor-card__reveal {
		min-height: 0;

		padding: 20px 22px;

		top: auto;
		bottom: 0;
	}

	.doctor-card__reveal h3 {
		margin-bottom: 4px;

		font-size: 1.05rem;
		line-height: 1.3;
	}

	.doctor-card__reveal h4 {
		margin-bottom: 10px;

		font-size: 0.88rem;
	}

	.doctor-card__reveal p {
		margin-bottom: 6px;

		font-size: 0.8rem;
		line-height: 1.45;
	}
}


/* =========================================================
   CONTACT — MOBILE FULL-WIDTH FIX
   ========================================================= */

@media (max-width: 767px) {

	/* Let the whole Contact section use the mobile viewport */
	.meridian-contact {
		width: 100%;
		max-width: none !important;

		padding-inline: 10px !important;
		margin-inline: 0 !important;
	}

	/* Kill Gutenberg's desktop column sizing */
	.contact-grid {
		display: block !important;

		width: 100%;
		max-width: none !important;

		margin: 0 !important;
	}

	.contact-grid > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;

		margin-inline: 0 !important;
	}

	/* Contact cards */
	.contact-details,
	.contact-form-card {
		width: 100% !important;
		max-width: none !important;

		box-sizing: border-box;

		margin: 0 !important;
		padding: 22px 18px;
	}

	/* Space between Contact Info and Form */
	.contact-form-card {
		margin-top: 50px !important;
	}

}
