/* ==========================================================================
   Usama Clinical Laboratory — usamalab.com
   Hand-built stylesheet. No frameworks, no dependencies.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	/* Brand — anchored on the logo navy, with the long-standing #3368C6 accent */
	--navy-900: #0d1f3c;
	--navy-800: #14294b;
	--navy-700: #1b3667;
	--brand-700: #24478a;
	--brand-600: #29539d;
	--brand-500: #3368c6;
	--brand-400: #6f9ae4;
	--brand-100: #d8e4f9;
	--brand-50: #eef3fc;

	--teal-600: #0d8f8f;
	--teal-500: #12a8a3;
	--teal-50: #e7f7f6;

	--ink-900: #101828;
	--ink-700: #344054;
	--ink-600: #475467;
	--ink-500: #667085;
	--ink-400: #98a2b3;

	--line: #e4e9f2;
	--line-soft: #eef1f7;
	--bg: #ffffff;
	--bg-soft: #f6f8fc;
	--bg-tint: #f0f4fb;

	--amber-500: #d97706;

	/* Type */
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

	/* Space + shape */
	--container: 1200px;
	--gutter: clamp(1.15rem, 4vw, 2.5rem);
	--section-y: clamp(3.75rem, 7.5vw, 6.75rem);
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-xl: 26px;

	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 12px 24px -6px rgba(16, 24, 40, .09);
	--shadow-lg: 0 12px 24px -8px rgba(13, 31, 60, .14), 0 32px 56px -16px rgba(13, 31, 60, .18);

	--header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink-700);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
	margin: 0 0 .5em;
	color: var(--navy-900);
	line-height: 1.18;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 650; color: var(--ink-900); }

button, input, select, textarea { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}

/* ---------- 3. Layout primitives ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

.svg-sprite { display: none; }
.stack-below { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--navy-900);
	color: #fff;
	padding: .85rem 1.35rem;
	border-radius: 0 0 var(--r-sm) 0;
	font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* Section headers */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--brand-600);
	margin-bottom: .85rem;
}
.eyebrow::before {
	content: "";
	width: 26px; height: 2px;
	background: var(--brand-500);
	border-radius: 2px;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); margin-bottom: .45rem; }
.section-head p { font-size: 1.09rem; color: var(--ink-600); margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--ink-600); }

/* ---------- 4. Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .85rem 1.6rem;
	border: 2px solid transparent;
	border-radius: var(--r-md);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease,
		transform .18s ease, box-shadow .18s ease;
	text-decoration: none !important;
}
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary {
	background: var(--brand-500);
	border-color: var(--brand-500);
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(51, 104, 198, .6);
}
.btn--primary:hover {
	background: var(--brand-700);
	border-color: var(--brand-700);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -8px rgba(51, 104, 198, .7);
}

.btn--ghost {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
	backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-900); transform: translateY(-2px); }

.btn--outline { background: #fff; border-color: var(--line); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); }

.btn--lg { padding: 1.02rem 2rem; font-size: 1.06rem; }

/* ---------- 5. Top bar ---------- */
.topbar {
	background: var(--navy-900);
	color: #c6d3e8;
	font-size: .875rem;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 44px;
	flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: flex; align-items: center; gap: .5rem; margin: 0; }
.topbar__list svg { width: 15px; height: 15px; color: var(--brand-400); flex: none; }
.topbar a { color: #dbe5f5; }
.topbar a:hover { color: #fff; }
.topbar__badge {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: rgba(18, 168, 163, .16);
	color: #5fdad5;
	border: 1px solid rgba(18, 168, 163, .32);
	padding: .2rem .7rem;
	border-radius: 999px;
	font-weight: 650;
	font-size: .8125rem;
}
.pulse-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #22d3ce;
	box-shadow: 0 0 0 0 rgba(34, 211, 206, .7);
	animation: pulse 2.4s infinite;
}
@keyframes pulse {
	70% { box-shadow: 0 0 0 8px rgba(34, 211, 206, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 211, 206, 0); }
}
@media (max-width: 991px) { .topbar { display: none; } }

/* ---------- 6. Header ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line-soft);
	transition: box-shadow .25s ease;
}
.header.is-stuck { box-shadow: 0 4px 20px -6px rgba(13, 31, 60, .14); }

.header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; text-decoration: none !important; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 750; font-size: 1.02rem; color: var(--navy-900); letter-spacing: -.02em; }
.brand__tag { font-size: .715rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-600); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
	display: block;
	padding: .55rem .72rem;
	border-radius: var(--r-sm);
	font-size: .955rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--ink-700);
	text-decoration: none !important;
	transition: color .16s ease, background-color .16s ease;
}
.nav__link:hover { color: var(--brand-600); background: var(--brand-50); }
.nav__link.is-active { color: var(--brand-600); background: var(--brand-50); }

.header__cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.header__phone {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	color: var(--navy-900);
	white-space: nowrap;
	text-decoration: none !important;
}
.header__phone svg { width: 18px; height: 18px; color: var(--brand-500); }
.header__phone:hover { color: var(--brand-600); }

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 46px; height: 46px;
	align-items: center;
	justify-content: center;
	background: var(--brand-50);
	border: 1px solid var(--brand-100);
	border-radius: var(--r-md);
	cursor: pointer;
	color: var(--navy-800);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Reclaim header width before the nav is forced to wrap */
@media (max-width: 1260px) {
	.brand__name { font-size: .93rem; max-width: 12ch; }
	.nav__link { padding: .55rem .6rem; font-size: .92rem; }
}
@media (max-width: 1120px) {
	.header__phone { display: none; }
}
@media (max-width: 1000px) {
	.header__cta .btn { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.header__cta { display: none; }
	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		padding: 1rem var(--gutter) 1.5rem;
		margin: 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
	.nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
	.nav__link { padding: .85rem .9rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
	.nav__cta { margin-top: 1.1rem; display: grid; gap: .6rem; }
}
@media (min-width: 901px) { .nav__cta { display: none; } }

/* ---------- 7. Hero ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(520px, 76vh, 760px);
	padding-block: clamp(3.5rem, 8vw, 6rem);
	background: var(--navy-900);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(13, 31, 60, .95) 0%, rgba(13, 31, 60, .86) 38%, rgba(13, 31, 60, .55) 68%, rgba(13, 31, 60, .34) 100%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__content { max-width: 43rem; color: #e8eefb; }

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	padding: .42rem 1rem;
	border-radius: 999px;
	font-size: .8125rem;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-bottom: 1.4rem;
	backdrop-filter: blur(6px);
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.15rem, 5.4vw, 3.9rem);
	line-height: 1.08;
	letter-spacing: -.032em;
	margin-bottom: .7rem;
}
.hero h1 .accent {
	color: #8ab4f8;
	display: block;
}
.hero__sub {
	font-size: clamp(1.05rem, 1.9vw, 1.2rem);
	color: #c3d2ea;
	max-width: 36rem;
	margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.4rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.hero__chips li {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .95rem;
	font-weight: 600;
	color: #cfdcf1;
	margin: 0;
}
.hero__chips svg { width: 18px; height: 18px; color: #4fd1cc; flex: none; }

/* ---------- 8. Stats strip ---------- */
.stats {
	position: relative;
	z-index: 2;
	margin-top: -3.75rem;
}
.stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.stat { padding: 1.9rem 1.5rem; text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__icon {
	width: 44px; height: 44px;
	margin: 0 auto .8rem;
	display: grid;
	place-items: center;
	background: var(--brand-50);
	color: var(--brand-600);
	border-radius: var(--r-md);
}
.stat__icon svg { width: 23px; height: 23px; }
.stat__num {
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 750;
	color: var(--navy-900);
	line-height: 1.1;
	letter-spacing: -.03em;
}
.stat__num .sup { color: var(--brand-500); }
.stat__label { font-size: .93rem; color: var(--ink-500); font-weight: 550; margin-top: .2rem; }

@media (max-width: 860px) {
	.stats { margin-top: -2.5rem; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
	.stat { padding: 1.4rem 1rem; }
}

/* ---------- 9. Generic split layout ---------- */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 2.25rem; }
	.split--reverse .split__media { order: 0; }
}

.media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.media-badge {
	position: absolute;
	left: clamp(1rem, 3vw, 1.75rem);
	bottom: clamp(1rem, 3vw, 1.75rem);
	display: flex;
	align-items: center;
	gap: .85rem;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	padding: .9rem 1.25rem;
	border-radius: var(--r-md);
	box-shadow: var(--shadow-md);
	max-width: calc(100% - 2rem);
}
.media-badge__num { font-size: 1.85rem; font-weight: 750; color: var(--brand-600); line-height: 1; letter-spacing: -.03em; }
.media-badge__text { font-size: .9rem; font-weight: 600; color: var(--ink-700); line-height: 1.3; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.75rem; }
.check-list li {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	margin: 0;
	color: var(--ink-700);
}
.check-list svg { width: 21px; height: 21px; color: var(--teal-500); flex: none; margin-top: 1px; }
@media (max-width: 620px) { .check-list--2col { grid-template-columns: 1fr; } }

/* ---------- 10. Service cards ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: clamp(1.1rem, 2.2vw, 1.75rem);
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 1.9rem 1.75rem;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card__icon {
	width: 52px; height: 52px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
	color: var(--brand-600);
	border-radius: var(--r-md);
	margin-bottom: 1.15rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.19rem; margin-bottom: .5rem; }
.card p { font-size: .975rem; color: var(--ink-600); margin-bottom: 1rem; }
.card__list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: .42rem; }
.card__list li {
	position: relative;
	padding-left: 1.15rem;
	font-size: .925rem;
	color: var(--ink-600);
	margin: 0;
}
.card__list li::before {
	content: "";
	position: absolute;
	left: 0; top: .62em;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--brand-400);
}

/* Feature cards (smaller, icon-led) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 1.15rem; }
.feature {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 1.5rem 1.4rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: var(--teal-50);
	color: var(--teal-600);
	border-radius: var(--r-sm);
	margin-bottom: .9rem;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.045rem; margin-bottom: .3rem; }
.feature p { font-size: .93rem; color: var(--ink-500); margin: 0; }

/* ---------- 11. Equipment ---------- */
/* Six instruments — 3x2 on desktop reads better than a ragged auto-fit row */
.equipment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 940px) { .equipment { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .equipment { grid-template-columns: 1fr; } }
.equip {
	background: #fff;
	border: 1px solid var(--line);
	border-left: 3px solid var(--brand-500);
	border-radius: var(--r-sm);
	padding: 1.25rem 1.4rem;
}
.equip h3 { font-size: 1.02rem; margin-bottom: .25rem; color: var(--navy-800); }
.equip p { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* ---------- 12. CTA band ---------- */
.cta-band {
	position: relative;
	background: var(--navy-800);
	overflow: hidden;
	isolation: isolate;
}
.cta-band__media { position: absolute; inset: 0; z-index: -1; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(20, 41, 75, .96) 0%, rgba(20, 41, 75, .9) 45%, rgba(20, 41, 75, .68) 100%);
}
.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
	flex-wrap: wrap;
	padding-block: clamp(2.75rem, 5.5vw, 4.25rem);
}
.cta-band__text { max-width: 40rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.35rem); margin-bottom: .5rem; }
.cta-band p { color: #bccbe4; font-size: 1.06rem; margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- 13. Doctors ---------- */
.doctors { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); max-width: 820px; margin-inline: auto; }
.doctor {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	text-align: center;
	transition: transform .22s ease, box-shadow .22s ease;
}
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doctor__photo { position: relative; background: var(--bg-tint); }
.doctor__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; }
.doctor__body { padding: 1.4rem 1.35rem 1.6rem; }
.doctor h3 { font-size: 1.19rem; margin-bottom: .2rem; }
.doctor__qual { font-size: .93rem; color: var(--brand-600); font-weight: 620; margin-bottom: .55rem; }
.doctor__role { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* ---------- 14. Testimonials ---------- */
/* Live Google rating, linked to the listing so the claim is checkable.
   NOTE: the score and count are a snapshot — refresh them periodically. */
.rating-badge {
	display: flex;
	align-items: center;
	gap: .85rem;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
	padding: .7rem 1.35rem .7rem .8rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	box-shadow: var(--shadow-sm);
	text-decoration: none !important;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rating-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.rating-badge__score {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	flex: none;
	background: var(--navy-900);
	color: #fff;
	border-radius: 50%;
	font-weight: 750;
	font-size: 1.02rem;
	letter-spacing: -.02em;
}
.rating-badge__stars { color: #f5a524; font-size: 1.02rem; letter-spacing: .06em; flex: none; }
.rating-badge__text { font-size: .95rem; color: var(--ink-600); }
.rating-badge__text strong { color: var(--navy-900); }
@media (max-width: 520px) {
	.rating-badge { border-radius: var(--r-lg); padding: .9rem 1.1rem; flex-wrap: wrap; justify-content: center; text-align: center; }
}

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.review {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: 2.1rem 1.75rem 1.6rem;
	display: flex;
	flex-direction: column;
}
.review__quote {
	position: absolute;
	top: 1.1rem; right: 1.35rem;
	font-size: 3.6rem;
	line-height: 1;
	color: var(--brand-100);
	font-family: Georgia, "Times New Roman", serif;
	pointer-events: none;
}
.review blockquote { margin: 0; }
.review p { font-size: 1rem; color: var(--ink-700); margin-bottom: 1.2rem; }
.review__author { margin-top: auto; font-weight: 680; color: var(--navy-900); font-size: .96rem; }

/* ---------- 15. Accreditation ---------- */
.accred {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.75rem, 5vw, 4rem);
	flex-wrap: wrap;
}
.accred__item { display: flex; align-items: center; gap: 1rem; max-width: 340px; }
.accred__item img { width: 74px; height: auto; flex: none; }
.accred__item .esfeqa-logo { width: 122px; }
.accred__item strong { display: block; color: var(--navy-900); font-size: 1rem; }
.accred__item span { font-size: .89rem; color: var(--ink-500); line-height: 1.45; display: block; }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.4rem;
	font-size: 1.045rem;
	font-weight: 640;
	color: var(--navy-900);
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-600); }
.faq summary::after {
	content: "";
	flex: none;
	width: 11px; height: 11px;
	border-right: 2.2px solid var(--brand-500);
	border-bottom: 2.2px solid var(--brand-500);
	transform: rotate(45deg) translate(-3px, -3px);
	transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__answer { padding: 0 1.4rem 1.35rem; color: var(--ink-600); font-size: 1rem; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- 17. Contact ---------- */
/* Phone-first: the lab answers the phone 24/7 but does not monitor email,
   so calling is the primary path and everything else is secondary. */
.call-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 3rem);
	flex-wrap: wrap;
	background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--brand-700) 100%);
	border-radius: var(--r-xl);
	padding: clamp(1.75rem, 4vw, 2.9rem) clamp(1.5rem, 4vw, 3rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
	box-shadow: var(--shadow-lg);
}
.call-panel__body { min-width: min(100%, 18rem); }
.call-panel__label {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #8ab4f8;
	margin-bottom: .6rem;
}
.call-panel__label svg { width: 16px; height: 16px; }
.call-panel__number {
	display: block;
	font-size: clamp(2.1rem, 5.2vw, 3.15rem);
	font-weight: 750;
	letter-spacing: -.03em;
	line-height: 1.05;
	color: #fff;
	text-decoration: none !important;
	margin-bottom: .7rem;
}
.call-panel__number:hover { color: #cfe0ff; }
.call-panel__note { color: #bccbe4; font-size: 1rem; max-width: 34rem; margin: 0; }
.call-panel__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 3.75rem); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { padding: 0; margin: 0 0 2rem; display: grid; gap: 1.15rem; }
.info-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon {
	width: 44px; height: 44px;
	flex: none;
	display: grid; place-items: center;
	background: var(--brand-50);
	color: var(--brand-600);
	border-radius: var(--r-md);
}
.info-list__icon svg { width: 21px; height: 21px; }
.info-list dt { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400); margin-bottom: .15rem; }
.info-list dd { margin: 0; font-size: 1.06rem; font-weight: 620; color: var(--navy-900); }
.info-list dd a { color: var(--navy-900); }
.info-list dd a:hover { color: var(--brand-600); }
.info-list small { display: block; font-size: .89rem; font-weight: 500; color: var(--ink-500); margin-top: .1rem; }

.map-frame {
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	background: var(--bg-tint);
	aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame--tall { aspect-ratio: 3 / 4; }
@media (max-width: 940px) { .map-frame--tall { aspect-ratio: 16 / 10; } }

.contact-subhead { font-size: 1.1rem; margin-bottom: .75rem; }

/* Hours table */
.hours { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; margin: 0 0 1.75rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.15rem; font-size: .96rem; border-bottom: 1px solid var(--line-soft); }
.hours__row:last-child { border-bottom: 0; }
.hours__row dt { color: var(--ink-600); margin: 0; }
.hours__row dd { margin: 0; font-weight: 650; color: var(--navy-900); }
.hours__row--accent { background: var(--teal-50); }
.hours__row--accent dd { color: var(--teal-600); }

/* ---------- 18. Footer ---------- */
.footer { background: var(--navy-900); color: #9fb2ce; font-size: .95rem; }
.footer__main { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: clamp(1.75rem, 3.5vw, 3rem); }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; }
.footer__brand .brand__name { color: #fff; font-size: 1.06rem; }
.footer__brand .brand__tag { color: var(--brand-400); }
.footer p { color: #9fb2ce; }

.footer h4 { color: #fff; font-size: .84rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 1.05rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer ul li { margin: 0; }
.footer a { color: #9fb2ce; }
.footer a:hover { color: #fff; }

.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact svg { width: 17px; height: 17px; color: var(--brand-400); flex: none; margin-top: .25em; }

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-block: 1.4rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: .89rem;
}

/* ---------- 19. Floating controls ---------- */
.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 90;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	background: var(--brand-500);
	color: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: var(--shadow-md);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-700); }
.to-top svg { width: 21px; height: 21px; }

/* Sticky mobile call bar */
.callbar { display: none; }
@media (max-width: 900px) {
	.callbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 95;
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 -4px 18px -6px rgba(13, 31, 60, .16);
		padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
		gap: .55rem;
	}
	.callbar .btn { padding: .78rem 1rem; font-size: .96rem; }
	body { padding-bottom: 74px; }
	.to-top { bottom: 84px; }
}

/* ---------- 20. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 21. Print ---------- */
@media print {
	.topbar, .header, .callbar, .to-top, .hero__actions, .map-frame { display: none !important; }
	body { color: #000; padding: 0; }
	.hero { min-height: auto; background: #fff; }
	.hero__media { display: none; }
	.hero h1, .hero__sub, .hero__chips li { color: #000; }
	.section { padding-block: 1.5rem; }
}
