/* =========================================================
   Showcase — marketing cards (2/3 cols, stacked mobile)
   ========================================================= */

.showcase {
	margin-bottom: var(--section-space);
}

.showcase__heading {
	margin: 0 0 var(--section-space);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: #4c4d4f;
	text-align: center;
}

.showcase__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: stretch;
}

.showcase__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.showcase--card-hover .showcase__card {
	border: 1px solid transparent;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
	.showcase--card-hover .showcase__card:hover {
		box-shadow:
			0 8px 5px rgba(0, 0, 0, 0.1),
			0 20px 12.5px rgba(0, 0, 0, 0.1);
	}
}

.showcase--card-hover .showcase__card:focus-within {
	box-shadow:
		0 8px 5px rgba(0, 0, 0, 0.1),
		0 20px 12.5px rgba(0, 0, 0, 0.1);
}

.showcase__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 752 / 578;
	overflow: hidden;
}

.showcase__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.showcase__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.showcase__title {
	margin: 0;
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 400;
	line-height: 1.35;
	text-transform: uppercase;
	color: #4c4d4f;
}

.showcase__description {
	margin: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
	font-size: 1rem;
	line-height: 1.5;
	color: #4c4d4f;
}

.showcase__description,
.showcase__description * {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal !important;
}

.showcase__description pre,
.showcase__description code {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: inherit;
	white-space: pre-wrap !important;
}

.showcase__description > :first-child {
	margin-top: 0;
}

.showcase__description p:empty {
	display: none;
}

.showcase__description p {
	margin-block: 0 0.5em;
}

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

.showcase__description strong,
.showcase__description b {
	font-weight: 700;
}

.showcase__button {
	position: relative;
	display: inline-flex;
	align-self: center;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	width: 100%;
	max-width: 16rem;
	margin-top: auto;
	padding: 1.05rem 1rem;
	border: 1px solid #1a2340;
	border-radius: 0.5rem;
	background: #fff;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}

.showcase__button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #1a2340;
	transition: transform 0.25s ease;
	transform: translateX(0);
}

.showcase__button-label {
	position: relative;
	z-index: 1;
	transition: color 0.25s ease;
}

@media (hover: hover) {
	.showcase__button:hover::before {
		transform: translateX(-100%);
	}

	.showcase__button:hover {
		color: #1a2340;
	}

	.showcase__button:hover .showcase__button-label {
		color: #1a2340;
	}
}

.showcase__button:focus-visible::before {
	transform: translateX(-100%);
}

.showcase__button:focus-visible {
	color: #1a2340;
	outline: 2px solid var(--color-text);
	outline-offset: 2px;
}

.showcase__button:focus-visible .showcase__button-label {
	color: #1a2340;
}

@media (min-width: 768px) {
	.showcase--cols-1 .showcase__grid {
		max-width: calc((100% - 1.25rem) / 2);
		margin-inline: auto;
	}

	.showcase--cols-1 .showcase__image-wrap {
		aspect-ratio: 617 / 474;
	}

	.showcase--cols-2 .showcase__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.showcase--cols-3 .showcase__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.showcase--cols-2 .showcase__image-wrap {
		aspect-ratio: 617 / 474;
	}

	.showcase--cols-3 .showcase__image-wrap {
		aspect-ratio: 394 / 303;
	}
}
