/* ===========================================================================
   HOME PAGE BODY (index.php), Dec 2026
   ---------------------------------------------------------------------------
   Builds on css/clinic.css (sections, cards, FAQ, CTA) and
   css/home-screening.css (.hb-* headings, steps, callouts, PDF link).
   The hero stays in css/hs.css ("HOME PAGE HERO"). Home-only parts: .hm-*.
   =========================================================================== */

.hm-center {
	text-align: center;
}

.hm-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* ---------- Why screen: quote ---------- */
.hm-quote {
	max-width: 960px;
	margin: 0 auto;
}

/* ---------- Packages by tier ---------- */
.hm-tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.hm-tier {
	display: flex;
	flex-direction: column;
	padding: 22px;
	border-radius: var(--cl-radius);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line), var(--cl-shadow);
}

.cl-page .hm-tier-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: #006e3a;
	font-size: 1.12rem;
	font-weight: 800;
}

.hm-tier-title i {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: linear-gradient(135deg, #006e3a, #2f9a55);
	color: #fff;
	font-size: 15px;
}

.hm-pkgs {
	display: grid;
	flex: 1;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hm-pkg {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--cl-soft);
	box-shadow: inset 0 0 0 1px var(--cl-line);
}

.hm-pkg-top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 10px;
}

.hm-pkg-name {
	color: var(--cl-ink);
	font-family: 'Montserrat', sans-serif;
	font-size: 1.08rem;
	font-weight: 800;
}

.hm-pkg-price {
	color: #006e3a;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.02rem;
	font-weight: 800;
}

.hm-pkg-tag {
	display: inline-block;
	margin: 6px 0 8px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--cl-mint);
	color: #006e3a;
	font-size: .8rem;
	font-weight: 600;
}

.hm-pkg p {
	margin: 0;
	font-size: .93rem;
	line-height: 1.55;
}

.hm-tiers + .hb-small {
	margin-top: 20px;
}

.hm-ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

/* ---------- Prices at a glance ---------- */
.hm-table-wrap {
	max-width: 820px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: var(--cl-radius);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line), var(--cl-shadow);
}

.hm-table {
	width: 100%;
	border-collapse: collapse;
}

.hm-table thead th {
	padding: 14px 22px;
	background: #006e3a;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	font-weight: 700;
}

.hm-table tbody th,
.hm-table td {
	padding: 15px 22px;
	color: var(--cl-ink);
	font-size: 1.02rem;
	vertical-align: middle;
}

.hm-table tbody th {
	width: 42%;
	font-weight: 700;
}

.hm-table tbody tr + tr {
	border-top: 1px solid var(--cl-line);
}

.hm-table tbody tr:nth-child(even) {
	background: var(--cl-soft);
}

.hm-disclaimer {
	max-width: 820px;
	margin: 14px auto 22px;
}

.hm-callout {
	max-width: 820px;
	margin-right: auto;
	margin-left: auto;
}

/* ---------- Full body check-up ---------- */
.hm-more {
	max-width: 860px;
	margin: 28px auto 0;
}

/* ---------- Ways to screen ---------- */
.cl-page a.hm-option {
	display: flex;
	flex-direction: column;
	color: var(--cl-text);
	font-weight: 400;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s;
}

.cl-page a.hm-option:hover,
.cl-page a.hm-option:focus {
	box-shadow: inset 0 0 0 1.5px #006e3a, 0 16px 32px -22px rgba(0, 60, 30, .5);
	transform: translateY(-2px);
}

.hm-option p {
	flex: 1;
}

.hm-option-link {
	margin-top: 6px;
	color: #006e3a;
	font-weight: 700;
}

.hm-option-link i {
	margin-left: 6px;
	transition: transform .2s;
}

.hm-option:hover .hm-option-link i {
	transform: translateX(3px);
}

.hm-know {
	margin-top: 22px;
}

/* ---------- Booking ---------- */
.hm-steps {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Step titles are h3 here (under the section h2), styled like .hb-step h4 */
.cl-page .hb-step .hm-step-title {
	position: relative;
	z-index: 1;
	margin: 0 0 8px;
	font-size: 1.08rem;
	font-weight: 700;
}

/* Swipe hint for the package groups: phones only */
.hm-swipe-hint {
	display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
	.hm-grid-4,
	.hm-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.hm-tiers {
		grid-template-columns: 1fr;
		max-width: 640px;
		margin: 0 auto;
	}
}

@media (max-width: 767.98px) {
	.hm-grid-4,
	.hm-steps {
		grid-template-columns: 1fr;
	}

	.hm-tier {
		padding: 18px 16px;
	}

	/* Package groups: one swipeable row instead of nine stacked cards */
	.hm-tiers {
		display: flex;
		gap: 12px;
		max-width: none;
		margin: 0 -15px;
		padding: 0 15px 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 15px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.hm-tiers::-webkit-scrollbar {
		display: none;
	}

	.hm-tier {
		flex: 0 0 86%;
		scroll-snap-align: start;
	}

	.hm-swipe-hint {
		display: block;
		margin: -16px 0 12px;
		color: var(--cl-muted);
		font-size: .85rem;
		text-align: center;
	}

	.cl-page .hb-step .hm-step-title {
		margin: 0 0 4px;
		padding-right: 36px;
	}

	.hm-table tbody th,
	.hm-table td,
	.hm-table thead th {
		padding: 12px 14px;
		font-size: .96rem;
	}

	.hm-center,
	.hm-more {
		text-align: left;
	}

	.hm-ctas .cl-btn {
		width: 100%;
		justify-content: center;
	}
}
