/* Levels of Care — all values from Figma (px → rem) */

.levels-of-care {
	background: #f5f5f5;
	padding-top:    var( --loc-pt, 6rem );
	padding-bottom: var( --loc-pb, 6rem );
	margin-top:     var( --loc-mt, 0rem );
	margin-bottom:  var( --loc-mb, 0rem );
}

.levels-of-care__inner {
	max-width: 90rem;
	margin: 0 auto;
	padding: 0 5rem;
	display: flex;
	flex-direction: column;
	gap: 4rem;
	align-items: center;
}

/* ── Heading area ── */
.levels-of-care__heading-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
	text-align: center;
}

.levels-of-care__eyebrow {
	font-family: 'Jost', system-ui, sans-serif; /* matches .fold-hero__amenities-label's eyebrow treatment */
	font-size: 1rem;        /* 16px */
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
	color: rgba(0, 13, 38, 0.7);
	margin: 0;
}

.levels-of-care__heading {
	font-family: 'Quincy', Georgia, serif;
	font-size: 3.5rem;        /* 64px */
	font-weight: 400;
	line-height: 4.025rem;
	color: #000d26;
	margin: 0;
}

/* ── Cards row ── */
.levels-of-care__cards {
	display: flex;
	gap: 4.875rem; /* 78px */
	justify-content: center;
	align-items: stretch;
	width: 100%;
}

.levels-of-care__card {
	/* 376px is the ideal width, but flex-shrink MUST stay 1: three 376px cards
	   plus two 78px gaps need 1284px, while the inner column only offers
	   viewport-160px. With shrink disabled the row overflowed the viewport
	   between 1201px (where the media query below kicks in) and ~1444px --
	   pushing ~89px past each edge and forcing the page into horizontal
	   overflow, which html{overflow-x:hidden} then masked. */
	flex: 0 1 23.5rem; /* 376px max, may shrink */
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.25rem; /* 36px */
	text-align: center;
}

.levels-of-care__card-icon {
	height: 3.75rem;    /* 60px — Figma */
	display: flex;
	align-items: center;
	justify-content: center;
}

.levels-of-care__card-icon img {
	/* width + height set via inline style in render.php (rem values from Figma) */
	display: block;
}

.levels-of-care__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem; /* 8px */
	width: 100%;
}

.levels-of-care__card-title {
	font-family: 'Quincy', Georgia, serif;
	font-size: 2.25rem;  /* 36px */
	font-weight: 400;
	line-height: 1.25;
	color: #000d26;
	margin: 0;
}

.levels-of-care__card-desc {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 1.125rem; /* 18px */
	font-weight: 400;
	line-height: 1.55;
	color: #0a1628;
	margin: 0;
}

.levels-of-care__card-cta {
	margin-top: auto;
	padding-top: 0.5rem;
	align-self: center;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
	.levels-of-care__inner {
		padding: 0 3rem;
	}
	.levels-of-care__cards {
		gap: 2.5rem;
	}
	.levels-of-care__card {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (max-width: 900px) {
	.levels-of-care__inner {
		padding: 0 2rem;
		gap: 3rem;
	}
	.levels-of-care__cards {
		flex-direction: column;
		align-items: center;
		gap: 3rem;
	}
	.levels-of-care__card {
		flex: none;
		width: 100%;
		max-width: 28rem;
	}
	.levels-of-care__heading {
		font-size: 3rem; line-height: 3.45rem;
	}
}

@media (max-width: 600px) {
	.levels-of-care {
		padding-top:    var( --loc-pt-m, var( --loc-pt, 3.5rem ) );
		padding-bottom: var( --loc-pb-m, var( --loc-pb, 3.5rem ) );
		margin-top:     var( --loc-mt-m, var( --loc-mt, 0rem ) );
		margin-bottom:  var( --loc-mb-m, var( --loc-mb, 0rem ) );
	}
	.levels-of-care__inner {
		padding: 0 1.25rem;
	}
	.levels-of-care__heading {
		font-size: 2.5rem; line-height: 2.875rem;
	}
	.levels-of-care__card-title {
		font-size: 1.75rem;
	}
}
