/**
 * BayFirst Callout Section — Kentico section-callout-orange pattern.
 */

.bf-callout-section,
.wp-block-bayfirst-callout-section {
	--bf-cs-orange: var(--wp--preset--color--ti-accent-secondary, #f68521);
	--bf-cs-green: var(--wp--preset--color--ti-accent, #02461b);
	--bf-cs-band-min-height: 12.5rem;

	box-sizing: border-box;
	overflow: visible;
}

.wp-block-bayfirst-callout-section.alignfull,
.bf-callout-section.alignfull {
	width: 100%;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.bf-callout-section__bottom {
	position: relative;
	min-height: var(--bf-cs-band-min-height);
}

.bf-callout-section__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	right: -50vw;
	bottom: 0;
	left: -50vw;
	z-index: 0;
	background-color: var(--bf-cs-orange);
}

.bf-callout-section__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 75rem);
	min-height: var(--bf-cs-band-min-height);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
}

@media screen and (min-width: 992px) {
	.bf-callout-section__layout {
		grid-template-columns: 1fr 1fr;
	}
}

.bf-callout-section__copy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: clamp(1.5rem, 3vw, 2.5rem) 1rem;
	text-align: center;
}

.bf-callout-section__subtitle,
.bf-callout-section p.bf-callout-section__subtitle,
.wp-block-bayfirst-callout-section p.bf-callout-section__subtitle,
.bf-callout-section .bf-callout-section__copy .bf-callout-section__subtitle {
	margin: 0 auto;
	color: #ffffff;
	font-family: "Metropolis", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.45;
	text-align: center;
}

.bf-callout-section__actions {
	display: flex;
	align-items: stretch;
	min-height: var(--bf-cs-band-min-height);
	position: relative;
	z-index: 2;
}

@media screen and (min-width: 992px) {
	.bf-callout-section__actions {
		justify-content: flex-end;
	}
}

.bf-callout-section__buttons {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-end;
	gap: 1.5rem 2.5rem;
	width: 100%;
	min-height: var(--bf-cs-band-min-height);
	padding: 0 0.5rem;
}

.bf-callout-section--count-2 .bf-callout-section__buttons {
	display: grid;
	grid-template-columns: repeat(2, 14.5rem);
	justify-content: start;
	align-items: end;
	gap: 2.5rem;
}

.bf-callout-section--count-3 .bf-callout-section__buttons {
	display: grid;
	grid-template-columns: repeat(3, 12.5rem);
	justify-content: end;
	align-items: end;
	gap: 2rem;
}

.bf-callout-section--count-1 .bf-callout-section__buttons {
	justify-content: center;
}

/* Individual callout button — Kentico .callout-button */
.bf-callout-section-button {
	--bf-cs-btn-text: #ffffff;
	--bf-cs-btn-outline: #ffffff;
	--bf-cs-btn-bg: var(--bf-cs-orange);
	--bf-cs-card-size: 14.5rem;

	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: var(--bf-cs-card-size);
	padding: 0.25rem;
}

.bf-callout-section--count-3 .bf-callout-section-button {
	--bf-cs-card-size: 12.5rem;
	max-width: 12.5rem;
}

.bf-callout-section--count-1 .bf-callout-section-button {
	margin-inline: auto;
}

.bf-callout-section-button__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

@media screen and (min-width: 992px) {
	.bf-callout-section-button__row {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
	}
}

.bf-callout-section-button__card,
.bf-callout-section-button__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	font-family: "Metropolis", sans-serif;
	text-align: center;
	text-decoration: none;
	text-wrap: balance;
}

.bf-callout-section-button__card {
	--bf-cs-card-accent: var(--bf-cs-green);
	width: 100%;
	height: var(--bf-cs-card-size);
	min-height: var(--bf-cs-card-size);
	max-height: var(--bf-cs-card-size);
	margin-bottom: auto;
	padding: 1rem 0.75rem 0.85rem;
	border: 0.25rem solid var(--bf-cs-card-accent);
	border-radius: 0.35rem;
	background-color: #ffffff;
	box-shadow: 11px 17px 0 var(--bf-cs-card-accent);
	color: var(--bf-cs-card-accent);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	transition: transform 0.2s ease;
}

.bf-callout-section-button__card:hover,
.bf-callout-section-button__card:focus-visible {
	transform: translateY(-1rem);
}

.bf-callout-section-button__card:focus-visible {
	outline: 2px solid var(--bf-cs-orange);
	outline-offset: 4px;
}

.bf-callout-section-button__figure {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 60%;
	aspect-ratio: 1;
	margin: 0;
}

.bf-callout-section-button__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bf-callout-section-button__label {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	margin-top: 0.5rem;
}

.bf-callout-section-button a.bf-callout-section-button__action,
.bf-callout-section-button span.bf-callout-section-button__action {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	padding: 0.25rem 2rem;
	min-width: 70%;
	border: 0.125rem solid var(--bf-cs-btn-outline);
	border-radius: 0.75rem;
	background-color: var(--bf-cs-btn-bg);
	color: var(--bf-cs-btn-text) !important;
	font-size: 1.25rem;
	font-weight: 500;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.bf-callout-section-button a.bf-callout-section-button__action:hover,
.bf-callout-section-button a.bf-callout-section-button__action:focus-visible {
	border-color: var(--bf-cs-btn-bg);
	background-color: #ffffff;
	color: var(--bf-cs-btn-bg) !important;
}

@media screen and (max-width: 991px) {
	.bf-callout-section__layout {
		grid-template-columns: 1fr;
	}

	.bf-callout-section__actions {
		justify-content: center;
		min-height: 0;
	}

	.bf-callout-section__buttons {
		justify-content: center;
		min-height: 0;
		padding-bottom: 1.5rem;
	}

	.bf-callout-section__subtitle,
	.bf-callout-section p.bf-callout-section__subtitle,
	.wp-block-bayfirst-callout-section p.bf-callout-section__subtitle {
		font-size: 20px;
	}

	.bf-callout-section--count-2 .bf-callout-section__buttons,
	.bf-callout-section--count-3 .bf-callout-section__buttons {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: center;
	}

	.bf-callout-section-button,
	.bf-callout-section--count-2 .bf-callout-section-button,
	.bf-callout-section--count-3 .bf-callout-section-button {
		--bf-cs-card-size: 14rem;
		max-width: 14rem;
		margin-inline: auto;
	}

	.bf-callout-section-button__row {
		position: static;
	}
}
