/**
 * The band above the footer (variant config "cta_band": rize). See template-parts/cta-band.php.
 * As the rize theme's testimonial section: dark navy, the pitch on the left, a fading carousel of
 * testimonial cards on the right with arrows and dots under it.
 */

.cta-band {
	padding: 96px 0 80px;
	background: var(--rzpb-c-navy-925);
	color: var(--rzpb-c-white);
}
.cta-band__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: center;
}

/* Pitch */
.cta-band__title {
	margin: 0;
	color: var(--rzpb-c-white);
	font-size: 42px;
	font-weight: 400;
	line-height: 1.2;
}
.cta-band__title em {
	background-image: linear-gradient(var(--rzpb-c-coral-200), var(--rzpb-c-coral-500));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-style: normal;
	-webkit-text-fill-color: transparent;
}
.cta-band__price {
	margin: 10px 0 16px;
	color: var(--rzpb-c-coral-400);
	font-size: 28px;
	line-height: 1.3;
}
.cta-band__price-before {
	color: var(--rzpb-c-white);
}
.cta-band__price-after {
	color: var(--rzpb-c-navy-500);
	font-size: 0.5em;
}
.cta-band__text {
	margin: 0;
	color: var(--rzpb-c-ice-200);
	font-size: 18px;
	line-height: 1.5;
}
.cta-band__actions {
	margin-top: 48px;
}
.cta-band .button {
	padding: 12px 16px;
	border-color: var(--rzpb-c-blue-620);
	border-radius: 4px;
	background: var(--rzpb-c-blue-620);
	color: var(--rzpb-c-white);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}
.cta-band .button:hover {
	border-color: var(--rzpb-c-white);
	background: var(--rzpb-c-white);
	color: var(--rzpb-c-blue-620);
}

/* Mobile only: "Made with love for founders" above the carousel. */
.cta-band__note {
	display: none;
}
.cta-band__note-title {
	margin: 0 0 4px;
	color: var(--rzpb-c-white);
	font-size: 20px;
	line-height: 1.8;
}
.cta-band__note-title em {
	font-style: normal;
	font-weight: 600;
}
.cta-band__note-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rzpb-c-white);
	font-size: 16px;
	line-height: 1.8;
	text-decoration: none;
}
.cta-band__note-link .rzpb-icon {
	width: 10px;
	height: 10px;
}

/* Carousel: the slides share one grid cell, so the tallest sets the height and nothing jumps. */
.carousel__slides {
	display: grid;
	align-items: center;
	min-height: 480px;
}
.carousel__slide {
	grid-area: 1 / 1;
	margin: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.5s linear, visibility 0.5s;
}
.carousel__slide.is-active {
	visibility: visible;
	opacity: 1;
}
.carousel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 10px;
}
.carousel__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rzpb-c-navy-850);
	color: var(--rzpb-c-blue-620);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.carousel__arrow .rzpb-icon {
	width: 12px;
	height: 14px;
}
.carousel__arrow:hover {
	background: var(--rzpb-c-blue-620);
	color: var(--rzpb-c-navy-875);
}
.carousel__dots {
	display: flex;
	gap: 8px;
}
.carousel__dot {
	width: 14px;
	height: 14px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rzpb-c-navy-875);
	cursor: pointer;
}
.carousel__dot[aria-current="true"] {
	background: var(--rzpb-c-blue-620);
}
.carousel__arrow:focus-visible,
.carousel__dot:focus-visible {
	outline: 2px solid var(--rzpb-c-ice-200);
	outline-offset: 2px;
}

/* Testimonial card */
.testimonial {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 32px 16px 40px;
	border-radius: 6px;
	background: var(--rzpb-c-navy-900);
	box-shadow: 0 5px 10px var(--rzpb-c-black-a10);
}
.testimonial__quote {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--rzpb-c-ice-200);
	font-size: 16px;
	font-style: normal;
	line-height: 1.5;
}
.testimonial__quote p {
	margin: 0;
}
.testimonial__quote a {
	color: var(--rzpb-c-sky-500);
}
.testimonial__mark {
	position: absolute;
	top: -12px;
	left: -28px;
	width: 28px;
	height: 28px;
	color: var(--rzpb-c-navy-700);
}
.testimonial__by {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-top: 12px;
}
.testimonial__photo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}
.testimonial__who {
	display: flex;
	flex-direction: column;
}
.testimonial__name {
	color: var(--rzpb-c-white);
	font-size: 16px;
	line-height: 1.5;
}
.testimonial__role,
.testimonial__link {
	color: var(--rzpb-c-steel-400);
	font-size: 12px;
	line-height: 1.5;
}
.testimonial__link {
	color: var(--rzpb-c-sky-500);
	text-decoration: none;
	overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
	.cta-band {
		padding: 64px 0 80px;
	}
	.cta-band__inner {
		grid-template-columns: 1fr;
	}
	.cta-band__title {
		font-size: 36px;
	}
	.cta-band__price {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	.cta-band__actions {
		margin-top: 16px;
	}
	.cta-band .button {
		justify-content: center;
		width: 100%;
	}
	.cta-band__note {
		display: flex;
		flex-direction: column;
		align-items: center;
		max-width: 85%;
		margin: 18px auto 0;
		text-align: center;
	}
	.carousel__slides {
		min-height: 0;
		padding: 32px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.carousel__slide {
		transition: none;
	}
}
