/* St. Paul's Emusonga Medical Centre — one-page styles */

:root {
	--navy: var(--wp--preset--color--navy, #0f3470);
	--blue: var(--wp--preset--color--blue, #1b5cbf);
	--red: var(--wp--preset--color--red, #c8102e);
	--cream: var(--wp--preset--color--cream, #fbf7ee);
	--sky: var(--wp--preset--color--sky, #eaf2fc);
	--ink: var(--wp--preset--color--ink, #1a2233);
	--muted: #556079;
	--line: #dfe6f0;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(15, 52, 112, 0.08);
	--header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { overflow-x: hidden; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { min-height: var(--header-h); gap: 1rem; }
.brand { gap: 0.75rem; min-width: 0; }
.brand .wp-block-site-logo img { width: 56px; height: auto; border-radius: 50%; }
.brand .wp-block-site-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--navy);
	max-width: 15rem;
}
.brand .wp-block-site-title a { color: inherit; text-decoration: none; }

.site-header__actions { gap: 1.25rem; }
.site-nav { font-weight: 600; font-size: 0.98rem; gap: 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); }
.header-call .wp-block-button__link { padding: 0.6rem 1.15rem; font-size: 0.95rem; white-space: nowrap; }

@media (max-width: 900px) {
	.header-call { display: none; }
	.brand .wp-block-site-title { font-size: 0.95rem; max-width: 11rem; }
	.brand .wp-block-site-logo img { width: 46px; }
}

/* ---------- Generic sections ---------- */
.site-main .wp-block-post-content > * { margin-block-start: 0; }

.sec { padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec--sky { background: var(--sky); }
.sec--cream { background: var(--cream); }

.eyebrow {
	display: inline-block;
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
}
/* Narrow elements inside constrained sections: align to the content box's left edge instead of centring. */
.is-layout-constrained > .eyebrow,
.hero.is-layout-constrained > h1,
.hero.is-layout-constrained > .hero__text,
.values.is-layout-constrained > .values-quote {
	display: block;
	margin-left: max(0px, (100% - var(--wp--style--global--content-size)) / 2) !important;
	margin-right: auto !important;
}
.sec h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	padding-block: clamp(4.5rem, 12vw, 8.5rem) clamp(6rem, 12vw, 9rem);
	background:
		linear-gradient(100deg, rgba(10, 36, 82, 0.94) 0%, rgba(15, 52, 112, 0.86) 45%, rgba(15, 52, 112, 0.55) 100%),
		url("../images/hero-entrance.jpeg") center 35% / cover no-repeat;
}
.hero .eyebrow { color: #ffd2d8; }
.hero h1 {
	color: #fff;
	font-size: clamp(2.3rem, 6vw, 4rem);
	max-width: 15ch;
	margin: 0 0 1.25rem;
}
.hero .hero__text { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 38rem; color: rgba(255, 255, 255, 0.9); }
.hero .wp-block-buttons { margin-top: 2rem; gap: 0.85rem; }
.hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.85);
}
.hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--navy); }
.hero .hero__meta { margin-top: 1.75rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); }

/* Highlight strip overlapping the hero */
.highlights { margin-top: clamp(-4.5rem, -8vw, -3rem) !important; position: relative; z-index: 2; }
.highlights .wp-block-columns { gap: 1rem; }
.highlights .wp-block-column {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.4rem 1.5rem;
	border-top: 4px solid var(--red);
}
.highlights h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.highlights p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- About ---------- */
.about .wp-block-columns { gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about .wp-block-image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.vm-card {
	background: var(--sky);
	border-radius: var(--radius);
	padding: 1.5rem 1.6rem;
	border-left: 5px solid var(--blue);
}
.vm-card + .vm-card { margin-top: 1rem; border-left-color: var(--red); }
.vm-card h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.vm-card p { margin: 0; }

/* ---------- Services ---------- */
.services-grid { gap: 1.25rem !important; }
.service-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.6rem 1.6rem 1.2rem;
	box-shadow: var(--shadow);
}
.service-card h3 { font-size: 1.15rem; margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.service-card h3::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M10 4h4v6h6v4h-6v6h-4v-6H4v-4h6z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.service-card ul { list-style: none; padding: 0; margin: 0; }
.service-card li { padding: 0.45rem 0 0.45rem 1.6rem; border-top: 1px solid var(--line); position: relative; }
.service-card li:first-child { border-top: 0; }
.service-card li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.95rem;
	width: 0.6rem;
	height: 0.35rem;
	border-left: 2px solid var(--blue);
	border-bottom: 2px solid var(--blue);
	transform: rotate(-45deg);
}

/* ---------- Values ---------- */
.values .values-quote {
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--navy);
	max-width: 40rem;
	margin: 0 0 2rem;
}
.values-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.9rem;
}
.values-list li {
	background: #fff;
	border-radius: 14px;
	padding: 1rem 1.1rem;
	font-weight: 700;
	color: var(--navy);
	border: 1px solid var(--line);
	text-align: center;
}

/* ---------- Gallery ---------- */
.gallery-grid.wp-block-gallery { gap: 0.9rem !important; }
.gallery-grid.wp-block-gallery .wp-block-image img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Contact ---------- */
.contact .wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); }
.contact-card {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.25rem 1.4rem;
	margin-bottom: 1rem;
}
.contact-card h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; }
.contact-card p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.contact-card a { color: var(--navy); text-decoration: none; }
.contact-card--emergency { background: var(--red); }
.contact-card--emergency h3, .contact-card--emergency p, .contact-card--emergency a { color: #fff; }
.map-embed iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding-block: 3rem 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer__name { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.25rem; margin-top: 2rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 781px) {
	.highlights .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
	.hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.hero .wp-block-button__link { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
	.highlights .wp-block-columns { grid-template-columns: 1fr; }
}
