/* Zen Aura — Closing call to action block (acf/za-about-cta). ZA-MARKER: about-cta-styles */

.za-about-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--glow);
	padding-top: calc(var(--wp--preset--spacing--100) * 0.6 + var(--wp--custom--wave-height));
	padding-bottom: calc(var(--wp--preset--spacing--100) * 0.9);
}

/* When this is the last section, the footer's wave takes its gold-glow colour */
.wp-site-blocks:has(.entry-content > .za-about-cta:last-child) .za-footer::before {
	background: var(--wp--preset--color--glow);
}

.za-about-cta::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -10%;
	bottom: 0;
	width: min(48rem, 80vw);
	aspect-ratio: 900 / 760;
	background: var(--wp--custom--texture--wash-gold) center / contain no-repeat;
	opacity: 0.8;
}

.za-about-cta__grid {
	display: grid;
	gap: var(--wp--preset--spacing--80);
	align-items: center;
}

.za-about-cta__text {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	justify-items: start;
}

.za-about-cta .za-about-cta__text h2 {
	color: var(--wp--preset--color--brand);
	max-width: 14ch;
}

:lang(si) .za-about-cta .za-about-cta__text h2 {
	max-width: 18em;
}

.za-about-cta__text .za-btn-row {
	margin-top: var(--wp--preset--spacing--30);
}

.za-about-cta__fan {
	display: flex;
	justify-content: center;
	padding-block: var(--wp--preset--spacing--60);
}

.za-about-cta .za-about-cta__fan img {
	width: clamp(4.5rem, 10vw, 7rem);
	height: auto;
	aspect-ratio: 3 / 5;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--arch);
	border: 0.3rem solid var(--wp--preset--color--raised);
	box-shadow: var(--wp--preset--shadow--soft);
}

.za-about-cta__fan img + img {
	margin-left: -1.25rem;
}

.za-about-cta__fan img:nth-child(1) { rotate: -12deg; translate: 0 1rem; }
.za-about-cta__fan img:nth-child(2) { rotate: -4deg; position: relative; z-index: 1; }
.za-about-cta__fan img:nth-child(3) { rotate: 4deg; position: relative; z-index: 1; }
.za-about-cta__fan img:nth-child(4) { rotate: 12deg; translate: 0 1rem; }

@media (min-width: 56rem) {
	.za-about-cta__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
}
