/* Homepage services showcase. Scoped to avoid altering service pages or shared cards. */
section.bf-services-showcase {
	padding: clamp(3.5rem, 4.5vw, 4.75rem) 0;
	background: #edf4f8;
}

.bf-services-showcase__inner {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	grid-template-areas:
		"intro cards"
		"cta cards";
	column-gap: clamp(2.5rem, 4vw, 4.5rem);
	row-gap: 1.8rem;
	align-items: start;
}

.bf-services-showcase__intro {
	position: relative;
	z-index: 2;
	grid-area: intro;
	align-self: end;
	max-width: 38rem;
}

.bf-services-showcase__eyebrow {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.1rem;
	color: var(--teal);
	font-size: .84rem;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.bf-services-showcase__eyebrow::after {
	width: 5rem;
	height: 1px;
	background: rgba(8, 181, 197, .72);
	content: "";
}

.bf-services-showcase__intro h2 {
	margin: 0;
	color: var(--navy);
	font-size: 46px;
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1.15;
}

.bf-services-showcase__intro h2 > span,
.bf-services-showcase__intro h2 > strong,
.bf-services-showcase__heading-segment {
	display: block;
}

.bf-services-showcase__intro h2 strong {
	color: var(--teal);
	font-weight: inherit;
}

.bf-services-showcase__lead {
	max-width: 35rem;
	margin: 1.55rem 0 0;
	color: #536579;
	font-size: 18px;
	line-height: 1.55;
}

.bf-services-showcase__cta {
	grid-area: cta;
	justify-self: start;
	gap: .85rem;
	margin-top: 0;
}

.bf-services-showcase__cta span {
	font-size: 1.35em;
	line-height: 1;
}

.bf-services-showcase__grid {
	display: grid;
	grid-area: cards;
	grid-row: 1 / span 2;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.1rem, 1.7vw, 1.5rem);
}

.bf-services-card {
	display: grid;
	min-width: 0;
	min-height: 12.3rem;
	grid-template-columns: 6.9rem minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	padding: 1.55rem;
	background: rgba(255, 255, 255, .95);
	border: 1px solid rgba(220, 232, 239, .9);
	border-radius: 1.25rem;
	box-shadow: 0 12px 30px rgba(29, 55, 75, .055);
	transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.bf-services-card:hover,
.bf-services-card:focus-within {
	border-color: rgba(7, 155, 175, .28);
	box-shadow: 0 18px 38px rgba(29, 55, 75, .1);
	transform: translateY(-3px);
}

.bf-services-card__icon {
	display: grid;
	width: 6.9rem;
	height: 6.9rem;
	place-items: center;
	background: linear-gradient(145deg, #f3f8fb, #eaf3f8);
	border-radius: 1.75rem;
}

.bf-services-card__icon img {
	width: 76%;
	height: 76%;
	object-fit: contain;
}

.bf-services-card__content {
	display: flex;
	min-width: 0;
	align-self: stretch;
	flex-direction: column;
	justify-content: center;
}

.bf-services-card h3 {
	margin: 0;
	color: var(--navy);
	font-size: clamp(1.08rem, 1.35vw, 1.28rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.2;
}

.bf-services-card p {
	margin: .55rem 0 0;
	color: #66788e;
	font-size: .94rem;
	line-height: 1.42;
}

.bf-services-card a {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: .45rem;
	margin-top: auto;
	padding-top: .8rem;
	color: var(--teal);
	font-size: .94rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.bf-services-card a span {
	font-size: 1.18em;
	transition: transform 200ms ease;
}

.bf-services-card a:hover span,
.bf-services-card a:focus-visible span {
	transform: translateX(3px);
}

.bf-services-card a:focus-visible {
	border-radius: .25rem;
	outline: 3px solid rgba(8, 181, 197, .42);
	outline-offset: 4px;
}

@media (max-width: 1280px) {
	.bf-services-showcase__inner { gap: 2rem; }
	.bf-services-card { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem; }
	.bf-services-card__icon { width: 5.5rem; height: 5.5rem; border-radius: 1.35rem; }
}

@media (max-width: 1100px) {
	section.bf-services-showcase { padding-block: 3.375rem; }
	.bf-services-showcase__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"intro"
			"cards"
			"cta";
		gap: 0;
	}
	.bf-services-showcase__intro { align-self: auto; max-width: 41rem; }
	.bf-services-showcase__intro h2 { font-size: 38px; }
	.bf-services-showcase__heading-primary { white-space: nowrap; }
	.bf-services-showcase__heading-segment { display: inline; }
	.bf-services-showcase__grid { grid-row: auto; gap: 1.25rem; margin-top: 3.5rem; }
	.bf-services-showcase__cta { justify-self: center; margin-top: 1.8rem; }
	.bf-services-card { min-height: 12rem; grid-template-columns: 6rem minmax(0, 1fr); padding: 1.4rem; }
	.bf-services-card__icon { width: 6rem; height: 6rem; }
}

@media (max-width: 700px) {
	section.bf-services-showcase { padding-block: 2.75rem; }
	.bf-services-showcase__intro h2 { font-size: clamp(30px, 8vw, 32px); letter-spacing: -.055em; }
	.bf-services-showcase__lead { margin-top: 1.2rem; font-size: 1rem; line-height: 1.58; }
	.bf-services-showcase__cta { width: auto; margin-top: 1.45rem; }
	.bf-services-showcase__grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; margin-top: 3rem; }
	.bf-services-card { min-height: 10.75rem; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem; border-radius: 1.1rem; }
	.bf-services-card__icon { width: 5rem; height: 5rem; border-radius: 1.15rem; }
	.bf-services-card h3 { font-size: 1.08rem; }
	.bf-services-card p { font-size: .9rem; }
}

@media (max-width: 420px) {
	.bf-services-showcase__eyebrow { gap: .7rem; font-size: .72rem; }
	.bf-services-showcase__eyebrow::after { width: 2.7rem; }
	.bf-services-card { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .85rem; padding: 1rem; }
	.bf-services-card__icon { width: 4.5rem; height: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-services-card,
	.bf-services-card a span { transition: none; }
	.bf-services-card:hover,
	.bf-services-card:focus-within { transform: none; }
}
