/*
 * JL Boggio modern homepage completion sections (04-08).
 * Loaded only by the JL Boggio Home Modern page template.
 */

.jlb-home-modern {
	width: 100%;
	overflow-x: clip;
}

.jlb-home-section__inner {
	width: min(100% - 3rem, 1280px);
	margin-inline: auto;
}

.jlb-home-section__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #6e6b66;
}

.jlb-home-section__eyebrow::before {
	content: "";
	width: 34px;
	height: 2px;
	background: #b24a3f;
}

.jlb-home-section__eyebrow--light {
	color: rgba(255, 255, 255, 0.62);
}

.jlb-home-section__lead {
	max-width: 62ch;
	margin: 1.35rem 0 0;
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 1.72;
	color: #5c5e60;
}

.jlb-home-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 2rem;
	padding-bottom: 0.2rem;
	border-bottom: 1px solid rgba(8, 19, 31, 0.35);
	font-size: 0.92rem;
	font-weight: 800;
	color: #08131f;
	text-decoration: none !important;
}

.jlb-home-text-link:hover,
.jlb-home-text-link:focus-visible {
	gap: 0.8rem;
	border-color: #b24a3f;
	color: #08131f;
}

.jlb-home-text-link:focus-visible,
.jlb-home-final-cta__primary:focus-visible,
.jlb-home-final-cta__secondary:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 4px;
}

.jlb-home-text-link--light {
	border-color: rgba(255, 255, 255, 0.34);
	color: #ffffff;
}

.jlb-home-text-link--light:hover,
.jlb-home-text-link--light:focus-visible {
	border-color: #b24a3f;
	color: #ffffff;
}

.jlb-home-medical {
	padding-block: clamp(5.5rem, 9vw, 8.5rem);
	background: #f4f2ed;
	color: #101922;
}

.jlb-home-medical__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	gap: clamp(3rem, 7vw, 7rem);
	align-items: center;
}

.jlb-home-medical__media {
	position: relative;
	min-height: 680px;
	overflow: hidden;
	background: #d5d6d4;
}

.jlb-home-medical__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(6, 15, 24, 0.78) 100%);
	pointer-events: none;
}

.jlb-home-medical__media img {
	width: 100%;
	height: 100%;
	min-height: 680px;
	object-fit: cover;
}

.jlb-home-medical__media-label {
	position: absolute;
	z-index: 2;
	left: clamp(1.5rem, 3vw, 2.5rem);
	right: clamp(1.5rem, 3vw, 2.5rem);
	bottom: clamp(1.5rem, 3vw, 2.5rem);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.34);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ffffff;
}

.jlb-home-medical__content h2 {
	max-width: 12ch;
	margin: 1.4rem 0 0;
	font-size: clamp(2.7rem, 5vw, 5.2rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #0d1822;
	text-wrap: balance;
}

.jlb-home-medical__capabilities {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: 2.6rem;
	border-top: 1px solid #d0cdc5;
	border-bottom: 1px solid #d0cdc5;
}

.jlb-home-medical__capabilities article {
	padding: 1.35rem 1.15rem 1.5rem 0;
}

.jlb-home-medical__capabilities article + article {
	padding-left: 1.15rem;
	border-left: 1px solid #d0cdc5;
}

.jlb-home-medical__capabilities span {
	display: block;
	margin-bottom: 0.7rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #b24a3f;
}

.jlb-home-medical__capabilities h3,
.jlb-home-medical__capabilities p {
	margin: 0;
}

.jlb-home-medical__capabilities h3 {
	font-size: 1.08rem;
	line-height: 1.2;
	color: #101922;
}

.jlb-home-medical__capabilities p {
	margin-top: 0.65rem;
	font-size: 0.86rem;
	line-height: 1.55;
	color: #686a6c;
}

.jlb-home-why {
	padding-block: clamp(5.5rem, 9vw, 8.5rem);
	background: #ffffff;
	color: #111a23;
}

.jlb-home-why__header {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: start;
}

.jlb-home-why__since {
	margin: 1.15rem 0 0;
	font-size: clamp(2rem, 4vw, 4.6rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #c9c7c1;
}

.jlb-home-why__header h2 {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.6rem, 5vw, 5rem);
	font-weight: 700;
	line-height: 0.99;
	letter-spacing: -0.045em;
	color: #0c1721;
	text-wrap: balance;
}

.jlb-home-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(3rem, 6vw, 5rem);
	border-top: 1px solid #d9d7d1;
	border-bottom: 1px solid #d9d7d1;
}

.jlb-home-why__grid article {
	padding: 1.7rem 1.5rem 2rem 0;
}

.jlb-home-why__grid article + article {
	padding-left: 1.5rem;
	border-left: 1px solid #d9d7d1;
}

.jlb-home-why__number {
	display: block;
	margin-bottom: 1.1rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #b24a3f;
}

.jlb-home-why__grid h3,
.jlb-home-why__grid p {
	margin: 0;
}

.jlb-home-why__grid h3 {
	font-size: clamp(1.2rem, 1.7vw, 1.55rem);
	line-height: 1.16;
	color: #101922;
}

.jlb-home-why__grid p {
	margin-top: 0.85rem;
	font-size: 0.92rem;
	line-height: 1.62;
	color: #66686a;
}

.jlb-home-projects {
	padding-block: clamp(5.5rem, 9vw, 8.5rem);
	background: #08131f;
	color: #ffffff;
}

.jlb-home-projects__header {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: end;
}

.jlb-home-projects .jlb-home-section__eyebrow {
	color: rgba(255, 255, 255, 0.58);
}

.jlb-home-projects__index {
	margin: 1.25rem 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.88);
}

.jlb-home-projects__header h2 {
	max-width: 13ch;
	margin: 0;
	font-size: clamp(2.7rem, 5vw, 5rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	color: #ffffff;
	text-wrap: balance;
}

.jlb-home-projects .jlb-home-section__lead {
	color: rgba(255, 255, 255, 0.66);
}

.jlb-home-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: clamp(3rem, 6vw, 5rem);
}

.jlb-home-project-card {
	min-width: 0;
	background: #111f2b;
}

.jlb-home-project-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #152531;
}

.jlb-home-project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.jlb-home-project-card:hover img {
	transform: scale(1.025);
}

.jlb-home-project-card__content {
	padding: 1.5rem;
}

.jlb-home-project-card__content > span {
	display: block;
	margin-bottom: 0.8rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #c86a5f;
}

.jlb-home-project-card h3,
.jlb-home-project-card p {
	margin: 0;
}

.jlb-home-project-card h3 {
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1.08;
	color: #ffffff;
}

.jlb-home-project-card p {
	margin-top: 0.8rem;
	font-size: 0.92rem;
	line-height: 1.58;
	color: rgba(255, 255, 255, 0.67);
}

.jlb-home-clients {
	padding-block: clamp(5.5rem, 9vw, 8.5rem);
	background: #f4f2ed;
	color: #101922;
}

.jlb-home-clients__header {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: end;
}

.jlb-home-clients__index {
	margin: 1.2rem 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: #2d343a;
}

.jlb-home-clients__header h2 {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.6rem, 5vw, 5rem);
	font-weight: 700;
	line-height: 0.99;
	letter-spacing: -0.045em;
	color: #0d1822;
	text-wrap: balance;
}

.jlb-home-clients__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(3rem, 6vw, 5rem);
	border-top: 1px solid #d0cdc5;
	border-bottom: 1px solid #d0cdc5;
}

.jlb-home-client-group {
	padding: 1.6rem 1.5rem 2rem 0;
}

.jlb-home-client-group + .jlb-home-client-group {
	padding-left: 1.5rem;
	border-left: 1px solid #d0cdc5;
}

.jlb-home-client-group__number {
	display: block;
	margin-bottom: 0.9rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #b24a3f;
}

.jlb-home-client-group h3 {
	margin: 0;
	font-size: clamp(1.25rem, 1.7vw, 1.6rem);
	line-height: 1.15;
	color: #101922;
}

.jlb-home-client-group ul {
	margin: 1.15rem 0 0;
	padding: 0;
	list-style: none;
}

.jlb-home-client-group li {
	padding-block: 0.48rem;
	border-top: 1px solid rgba(16, 25, 34, 0.1);
	font-size: 0.92rem;
	line-height: 1.45;
	color: #5c5f61;
}

.jlb-home-clients__note {
	max-width: 75ch;
	margin: 1.25rem 0 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: #777874;
}

.jlb-home-final-cta {
	position: relative;
	padding-block: clamp(5rem, 8vw, 7.5rem);
	background: #0d1a26;
	color: #ffffff;
	overflow: hidden;
}

.jlb-home-final-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 72px 72px;
}

.jlb-home-final-cta__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: end;
}

.jlb-home-final-cta h2 {
	max-width: 12ch;
	margin: 1.3rem 0 0;
	font-size: clamp(2.8rem, 5.5vw, 5.6rem);
	font-weight: 700;
	line-height: 0.96;
	letter-spacing: -0.05em;
	color: #ffffff;
	text-wrap: balance;
}

.jlb-home-final-cta__content > p {
	max-width: 52ch;
	margin: 0;
	font-size: clamp(1rem, 1.35vw, 1.16rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.68);
}

.jlb-home-final-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.jlb-home-final-cta__primary,
.jlb-home-final-cta__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.15rem;
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none !important;
}

.jlb-home-final-cta__primary {
	background: #ffffff;
	color: #08131f;
}

.jlb-home-final-cta__primary:hover {
	background: #ecebe7;
	color: #08131f;
}

.jlb-home-final-cta__secondary {
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

.jlb-home-final-cta__secondary:hover {
	border-color: rgba(255, 255, 255, 0.7);
	color: #ffffff;
}

.jlb-home-final-cta__meta {
	display: grid;
	gap: 0.35rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 980px) {
	.jlb-home-medical__grid,
	.jlb-home-why__header,
	.jlb-home-projects__header,
	.jlb-home-clients__header,
	.jlb-home-final-cta__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.jlb-home-medical__media,
	.jlb-home-medical__media img {
		min-height: 560px;
	}

	.jlb-home-medical__capabilities {
		grid-template-columns: 1fr;
	}

	.jlb-home-medical__capabilities article,
	.jlb-home-medical__capabilities article + article {
		padding: 1.15rem 0;
		border-left: 0;
	}

	.jlb-home-medical__capabilities article + article {
		border-top: 1px solid #d0cdc5;
	}

	.jlb-home-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jlb-home-why__grid article:nth-child(3) {
		border-left: 0;
		border-top: 1px solid #d9d7d1;
	}

	.jlb-home-why__grid article:nth-child(4) {
		border-top: 1px solid #d9d7d1;
	}

	.jlb-home-projects__grid,
	.jlb-home-clients__grid {
		grid-template-columns: 1fr;
	}

	.jlb-home-client-group,
	.jlb-home-client-group + .jlb-home-client-group {
		padding: 1.4rem 0 1.7rem;
		border-left: 0;
	}

	.jlb-home-client-group + .jlb-home-client-group {
		border-top: 1px solid #d0cdc5;
	}
}

@media (max-width: 680px) {
	.jlb-home-section__inner {
		width: 100%;
		max-width: 100%;
		padding-inline: 1rem;
		box-sizing: border-box;
	}

	.jlb-home-medical,
	.jlb-home-why,
	.jlb-home-projects,
	.jlb-home-clients {
		padding-block: 4.5rem 5rem;
	}

	.jlb-home-medical__media,
	.jlb-home-medical__media img {
		min-height: 420px;
	}

	.jlb-home-medical__content h2,
	.jlb-home-why__header h2,
	.jlb-home-projects__header h2,
	.jlb-home-clients__header h2,
	.jlb-home-final-cta h2 {
		max-width: 12ch;
		font-size: clamp(2.35rem, 11vw, 3.4rem);
	}

	.jlb-home-why__grid {
		grid-template-columns: 1fr;
	}

	.jlb-home-why__grid article,
	.jlb-home-why__grid article + article,
	.jlb-home-why__grid article:nth-child(3),
	.jlb-home-why__grid article:nth-child(4) {
		padding: 1.25rem 0 1.5rem;
		border-left: 0;
	}

	.jlb-home-why__grid article + article,
	.jlb-home-why__grid article:nth-child(3),
	.jlb-home-why__grid article:nth-child(4) {
		border-top: 1px solid #d9d7d1;
	}

	.jlb-home-projects__grid {
		gap: 0.8rem;
	}

	.jlb-home-final-cta {
		padding-block: 4.5rem 5rem;
	}

	.jlb-home-final-cta__actions {
		flex-direction: column;
	}

	.jlb-home-final-cta__primary,
	.jlb-home-final-cta__secondary {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jlb-home-project-card__media img {
		transition: none;
	}

	.jlb-home-project-card:hover img {
		transform: none;
	}
}
