/**
 * Banner: the prototype's AnnouncementBanner on the style guide's
 * accessible action band (`--sba-red-dark` to `--sba-red-darker`), `py-12
 * md:py-16`; the cover (160px, 208px from 768px) and the text a flex row
 * `gap-12` from 768px, stacked and centered below with `gap-8`; the title `text-2xl md:text-4xl`, the
 * text `text-white/90 md:text-lg max-w-2xl`, the buttons `gap-3`.
 */

.sba-c.sba-c-banner {
	padding: 48px 0;
	background-image: linear-gradient(to right, var(--sba-red-dark), var(--sba-red-darker));
	color: #fff;
}

.sba-c-banner .sba-c-banner-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.sba-c-banner .sba-c-banner-text {
	flex: 1 1 0;
	min-width: 0;
}

.sba-c-banner .sba-c-banner-title {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 32px;
}

.sba-c-banner .sba-c-banner-lead {
	max-width: 42rem;
	margin: 12px auto 0;
	color: rgb(255 255 255 / 0.9);
	font-size: 16px;
	line-height: 24px;
}

.sba-c-banner .sba-c-banner-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

/* The light button of the action band: `--sba-muted` with charcoal text,
   the prototype's secondary button (style guide, Buttons, "On the action
   band"). The second button is glass. */
.sba-c-banner .sba-c-button.sba-c-button-primary,
.sba-c-banner .sba-c-button.sba-c-button-primary:focus {
	border-color: var(--sba-muted);
	background-color: var(--sba-muted);
	color: var(--sba-charcoal);
}

.sba-c-banner .sba-c-button.sba-c-button-primary:hover {
	border-color: #fff;
	background-color: #fff;
	color: var(--sba-charcoal);
}

/* The cover as a brochure: two pages offset behind it, the whole tilting
   away on hover. */
.sba-c-banner .sba-c-banner-cover {
	flex: 0 0 auto;
	width: 160px;
	perspective: 1200px;
}

.sba-c-banner .sba-c-banner-book {
	position: relative;
	display: block;
	transition: transform 0.5s ease;
}

.sba-c-banner .sba-c-banner-cover:hover .sba-c-banner-book {
	transform: rotateY(-8deg);
}

.sba-c-banner .sba-c-banner-book::before,
.sba-c-banner .sba-c-banner-book::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 0 2px 2px 0;
	background-color: rgb(255 255 255 / 0.25);
}

.sba-c-banner .sba-c-banner-book::before {
	transform: translate(4px, 4px);
}

.sba-c-banner .sba-c-banner-book::after {
	transform: translate(2px, 2px);
}

.sba-c-banner .sba-c-banner-book img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0 2px 2px 0;
	box-shadow: 0 25px 50px -12px hsl(var(--sba-charcoal-hsl) / 0.4);
	outline: 1px solid hsl(var(--sba-charcoal-hsl) / 0.1);
}

@media (min-width: 768px) {
	.sba-c.sba-c-banner {
		padding: 64px 0;
	}

	.sba-c-banner .sba-c-banner-cover {
		width: 208px;
	}

	.sba-c-banner .sba-c-banner-body {
		flex-direction: row;
		gap: 48px;
		text-align: left;
	}

	.sba-c-banner .sba-c-banner-title {
		font-size: 36px;
		line-height: 40px;
	}

	.sba-c-banner .sba-c-banner-lead {
		margin-left: 0;
		font-size: 18px;
		line-height: 28px;
	}

	.sba-c-banner .sba-c-banner-actions {
		justify-content: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sba-c-banner .sba-c-banner-book {
		transition: none;
	}
}
