/* ===========================================================================
   HEART SCREENING PAGE (heart-screening-singapore), Nov 2026
   ---------------------------------------------------------------------------
   Builds on css/clinic.css (hero, sections, cards, FAQ) and the shared .hb-*
   pieces in css/home-screening.css (lead text, callouts, tables, price cards).
   Scoped .hh-* classes for the parts only this page uses.
   =========================================================================== */

/* ---------- Introduction ---------- */
.hh-video {
	max-width: 900px;
	margin: 0 auto 48px;
	overflow: hidden;
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow);
}

/* custom.css shrinks .video-container to 2/3 width from 1024px; inside this
   frame it should fill the width at 16:9 */
.hh-video .video-container {
	width: 100%;
	margin: 0;
	padding-bottom: 56.25%;
}

/* Desktop: the opening paragraphs and the video side by side */
/* The author row above has a 24px bottom margin, which overlaps this one, so
   only a top margin larger than 24px adds space */
.hh-intro {
	margin-top: 32px;
	margin-bottom: 48px;
}

@media (min-width: 992px) {
	/* 7 / 5 of 12 columns: text wider, video one column narrower than half */
	.hh-intro {
		margin-top: 40px;
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 40px;
		align-items: center;
	}

	.hh-intro .hb-lead {
		max-width: none;
		margin: 0;
		text-align: left;
	}

	.hh-intro .hh-video {
		max-width: none;
		margin: 0;
	}
}

@media (max-width: 991.98px) {
	.hh-intro {
		margin-bottom: 36px;
	}

	.hh-intro .hh-video {
		margin-bottom: 0;
	}
}

.hh-split {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

.hb-page .hh-head-left {
	margin: 0 0 16px;
	text-align: left;
}

.hh-text {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

.hh-numbered {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hh;
}

.hh-numbered li {
	position: relative;
	padding: 14px 16px 14px 58px;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line);
	font-size: 1rem;
	line-height: 1.55;
	counter-increment: hh;
}

.hh-numbered li::before {
	content: counter(hh);
	position: absolute;
	top: 14px;
	left: 16px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #006e3a;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: .85rem;
	font-weight: 800;
}

.hh-split-img {
	width: 100%;
	height: auto;
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow);
}

/* Desktop: the photo stays in view while the list beside it scrolls */
@media (min-width: 992px) {
	.hh-split {
		align-items: start;
	}

	.hh-split-img {
		position: sticky;
		top: calc(var(--hh-sticky-top, 0px) + 24px);
	}
}

/* ---------- Who should screen ---------- */
.hh-risk-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hh-risk-grid li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line), 0 10px 30px -24px rgba(0, 40, 20, .4);
	font-size: .98rem;
	line-height: 1.55;
}

.hh-risk-grid i {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--cl-mint);
	color: #006e3a;
	font-size: 17px;
}

.hb-lead.hh-after {
	margin: 28px auto 24px;
}

.hh-warning {
	display: flex;
	gap: 16px;
	padding: 20px 22px;
	border-radius: 16px;
	background: #fdf0ef;
	box-shadow: inset 4px 0 0 #d0342c;
}

.hh-warning > i {
	flex: none;
	margin-top: 3px;
	color: #d0342c;
	font-size: 1.3rem;
}

.hh-warning p {
	margin: 0 0 10px;
	color: #4a2a28;
	font-size: 1rem;
	line-height: 1.6;
}

.hh-warning p:last-child {
	margin-bottom: 0;
}

/* ---------- Packages ---------- */
.hh-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.hh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px 18px 20px;
	border-radius: var(--cl-radius);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line), 0 10px 30px -24px rgba(0, 40, 20, .4);
}

/* Extra top padding so the title clears the badge, which hangs 12px above the card */
.hh-card--featured {
	padding-top: 32px;
	background: linear-gradient(160deg, #006e3a, #0d8a4a);
	box-shadow: 0 20px 40px -22px rgba(0, 80, 40, .7);
}

.hh-card-badge {
	position: absolute;
	top: -12px;
	left: 18px;
	padding: 3px 11px;
	border-radius: 999px;
	background: #d4a855;
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.cl-page .hh-card h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}

.hh-card-price {
	margin: 0 0 12px;
	color: #006e3a;
	font-family: 'Montserrat', sans-serif;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
}

.hh-card-loc {
	margin: auto 0 0;
	color: var(--cl-muted);
	font-size: .85rem;
}

.hh-card-loc i {
	color: #4eb25c;
}

.cl-page a.hh-card-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
	padding: 9px 10px;
	border-radius: 999px;
	background: #25a244;
	color: #fff !important;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s;
}

.cl-page a.hh-card-wa:hover,
.cl-page a.hh-card-wa:focus {
	background: #1e8a39;
	color: #fff;
}

/* On the green featured card: a white button */
.cl-page .hh-card--featured a.hh-card-wa {
	background: #fff;
	color: #006e3a !important;
}

.cl-page .hh-card--featured a.hh-card-wa:hover,
.cl-page .hh-card--featured a.hh-card-wa:focus {
	background: #e6f4ec;
	color: #006e3a;
}

.cl-page .hh-card--featured h3,
.hh-card--featured .hh-card-price,
.hh-card--featured .hh-card-loc,
.hh-card--featured .hh-card-loc i {
	color: #fff;
}

.hh-card--featured .hh-card-loc {
	opacity: .92;
}

/* Comparison table */
.hh-compare {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	table-layout: fixed;
	text-align: center;
}

/* Test column wider; the five package columns share the rest equally */
.hh-compare thead th:first-child {
	width: 30%;
}

.hh-compare thead th {
	padding: 14px 10px;
	background: #006e3a;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: .98rem;
	font-weight: 700;
	vertical-align: middle;
}

.hh-compare tbody th,
.hh-compare td {
	vertical-align: middle;
}

.hh-compare thead th span {
	display: block;
	margin-top: 2px;
	color: #c9f0d6;
	font-size: .92rem;
}

.hh-compare thead th:first-child,
.hh-compare tbody th {
	padding-left: 20px;
	text-align: left;
}

.hh-compare thead th.hh-col-full {
	background: #00592f;
}

.hh-compare tbody th {
	padding-top: 14px;
	padding-bottom: 14px;
	color: var(--cl-ink);
	font-size: .97rem;
	font-weight: 700;
}

.hh-compare-meta {
	display: block;
	margin-top: 2px;
	line-height: 1.45;
	color: var(--cl-muted);
	font-size: .82rem;
	font-weight: 400;
}

.hh-compare td {
	padding: 14px 10px;
}

.hh-compare td.hh-col-full {
	background: rgba(0, 110, 58, .05);
}

.hh-compare tbody tr + tr {
	border-top: 1px solid var(--cl-line);
}

.hh-yes {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--cl-mint);
	color: #006e3a;
	font-weight: 800;
}

.hh-no {
	color: #b6bfb9;
}

/* Preparation note under the table's footnote */
.hb-callout.hh-prep {
	margin-top: 18px;
}

.hh-bullets {
	margin: 0;
	padding-left: 18px;
	font-size: .97rem;
	line-height: 1.7;
}

/* ---------- Types of heart screening ---------- */
.hh-tests {
	width: 100%;
	border-collapse: collapse;
}

.hh-tests thead th {
	padding: 14px 16px;
	background: #006e3a;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: .98rem;
	font-weight: 700;
	text-align: left;
}

.hh-tests tbody th {
	width: 24%;
	padding: 16px;
	color: var(--cl-ink);
	font-size: .97rem;
	font-weight: 700;
	text-align: left;
	vertical-align: top;
}

.hh-tests td {
	padding: 16px;
	font-size: .96rem;
	line-height: 1.6;
	vertical-align: top;
}

.hh-tests tbody tr + tr {
	border-top: 1px solid var(--cl-line);
}

.hh-tests tbody tr:nth-child(even) {
	background: var(--cl-soft);
}

/* "How often" note: a white card with an icon, under the tests table */
.hh-often {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	max-width: 900px;
	margin: 32px auto 0;
	padding: 22px 24px;
	border-radius: var(--cl-radius);
	background: #fff;
	box-shadow: inset 4px 0 0 #006e3a, inset 0 0 0 1px var(--cl-line), var(--cl-shadow);
}

.hh-often-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--cl-mint);
	color: #006e3a;
	font-size: 20px;
}

.cl-page .hh-often h3 {
	margin: 2px 0 8px;
	color: #006e3a;
	font-size: 1.2rem;
	font-weight: 800;
}

.hh-often p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
}

/* ---------- Individual test prices ---------- */
.hh-consult {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 520px;
	margin: 0 auto 20px;
	padding: 14px 20px;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line);
}

.hh-consult span {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--cl-ink);
	font-weight: 600;
}

.hh-consult i {
	color: #006e3a;
}

.hh-consult strong {
	color: #006e3a;
	font-family: 'Montserrat', sans-serif;
}

.hh-price-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

/* Clinic note on its own line under a price, e.g. "(Orchard & Jurong)" */
.hh-dd-note {
	display: block;
	margin-top: 2px;
	color: var(--cl-muted);
	font-family: 'Poppins', sans-serif;
	font-size: .82rem;
	font-weight: 500;
}

/* ---------- Booking ---------- */
.hh-book {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 20px;
	align-items: stretch;
}

.hh-book .hs-wa-cta {
	height: 100%;
	margin: 0;
}

.cl-page a.hh-book-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 22px;
	border-radius: 18px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--cl-line), var(--cl-shadow);
	color: var(--cl-ink);
	text-align: center;
	text-decoration: none;
}

.hh-book-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--cl-mint);
	color: #006e3a;
	font-size: 22px;
}

.hh-book-text {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.1rem;
	font-weight: 800;
}

/* Map block after the Booking band: 12px here + its own 40px top margin = the
   52px the page's other sections start with (below) */
.hh-legacy {
	padding-top: 12px;
	/* + the map block's 40px bottom margin = the 64px other sections end with */
	padding-bottom: 24px;
}

/* Sections on this page start a little closer to their labels than the
   clinic.css default (64px desktop, 48px phones) */
.hs-heart .hb-section {
	padding-top: 52px;
}

@media (max-width: 575.98px) {
	.hs-heart .hb-section {
		padding-top: 40px;
	}

	.hh-legacy {
		padding-top: 0;
		padding-bottom: 8px;
	}
}

/* ---------- Responsive ---------- */
/* All five cards in one row: same top padding as the featured card, so the titles line up */
@media (min-width: 1200px) {
	.hh-card {
		padding-top: 32px;
	}
}

@media (max-width: 1199.98px) {
	/* Cards wrap onto rows here: more space between rows so the
	   "Most Comprehensive" badge (12px above its card) clears the card above */
	.hh-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 30px;
	}

	.hh-card--featured {
		grid-column: span 2;
	}
}

@media (max-width: 991.98px) {
	.hh-split,
	.hh-price-grid,
	.hh-book {
		grid-template-columns: 1fr;
	}

	.hh-risk-grid,
	.hh-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.hh-risk-grid {
		grid-template-columns: 1fr;
	}

	/* Package cards two per row, the Full package across the width */
	.hh-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 12px;
	}

	.hh-card {
		padding: 20px 16px 16px;
	}

	.hh-card--featured {
		padding-top: 32px;
	}

	/* Two cards per row: "Book on WhatsApp" shortens to "Book" (the icon shows it is WhatsApp) */
	.hh-card:not(.hh-card--featured) .hh-wa-long {
		display: none;
	}

	.hh-video {
		margin-bottom: 32px;
	}

	.hh-card-price {
		font-size: 1.5rem;
	}

	/* Tests table: one card per test, column names from data-label */
	.hh-tests thead {
		display: none;
	}

	.hh-tests,
	.hh-tests tbody,
	.hh-tests tr,
	.hh-tests th,
	.hh-tests td {
		display: block;
		width: auto;
	}

	.hh-tests tbody tr {
		padding: 6px 0;
	}

	.hh-tests tbody tr:nth-child(even) {
		background: var(--cl-soft);
	}

	.hh-tests tbody th {
		width: auto;
		padding: 12px 16px 4px;
		color: #006e3a;
		font-size: 1rem;
	}

	.hh-tests td {
		padding: 6px 16px;
	}

	.hh-tests td::before {
		content: attr(data-label);
		display: block;
		color: var(--cl-muted);
		font-size: .78rem;
		font-weight: 700;
		letter-spacing: .04em;
		text-transform: uppercase;
	}

	.hh-often {
		flex-direction: column;
		gap: 12px;
		padding: 18px 18px 18px 22px;
	}

	.hh-often-icon {
		width: 40px;
		height: 40px;
		font-size: 17px;
	}
}

/* Package comparison table: tighter columns on small laptops */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.hh-compare thead th:first-child {
		width: 24%;
	}

	.hh-compare thead th {
		padding-left: 6px;
		padding-right: 6px;
		font-size: .88rem;
	}
}

/* Package comparison below 992px: the table scrolls sideways, with the Test
   column frozen on the left, a swipe hint above and a fade on the right edge
   (removed once scrolled to the end; see the script after the table) */
.hh-swipe {
	display: none;
}

@media (max-width: 991.98px) {
	.hh-swipe {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 6px;
		margin: 0 0 8px;
		color: var(--cl-muted);
		font-size: .85rem;
		font-weight: 600;
	}

	.hh-swipe i {
		color: #006e3a;
	}

	.hh-swipe.is-hidden {
		display: none;
	}

	.hh-compare-scroll {
		position: relative;
	}

	.hh-compare-scroll::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 36px;
		border-radius: 0 var(--cl-radius) var(--cl-radius) 0;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95));
		pointer-events: none;
		transition: opacity .2s;
	}

	.hh-compare-scroll.is-end::after {
		opacity: 0;
	}

	/* home-screening.css turns .hb-table-wrap into plain cards on phones; this
	   table keeps its scrolling frame */
	.hb-page .hh-compare-wrap {
		overflow-x: auto;
		overflow-y: hidden;
		background: #fff;
		box-shadow: inset 0 0 0 1px var(--cl-line), var(--cl-shadow);
		-webkit-overflow-scrolling: touch;
	}

	.hh-compare {
		width: auto;
		min-width: 100%;
		table-layout: auto;
	}

	.hh-compare thead th:first-child,
	.hh-compare tbody th {
		position: sticky;
		left: 0;
		z-index: 2;
		width: 124px;
		min-width: 124px;
		padding-left: 14px;
		padding-right: 10px;
	}

	.hh-compare tbody th {
		background: #fff;
		box-shadow: 1px 0 0 var(--cl-line), 6px 0 10px -8px rgba(0, 40, 20, .25);
		font-size: .9rem;
	}

	.hh-compare thead th:first-child {
		z-index: 3;
		background: #006e3a;
	}

	.hh-compare thead th {
		min-width: 96px;
		padding: 12px 8px;
		font-size: .88rem;
	}

	.hh-compare-meta {
		font-size: .75rem;
		line-height: 1.4;
	}

	.hh-compare td {
		padding: 12px 8px;
	}
}
