/* =========================================================================
   Zen Aura — Hero block (acf/za-hero): calm two-column hero, one glowing arch
   ZA-MARKER: hero-styles
   ========================================================================= */

.za-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: calc(var(--wp--custom--header-height) + var(--wp--preset--spacing--70));
	padding-bottom: var(--wp--preset--spacing--90);
}

/* The hero slides up under the transparent header */
.entry-content > .za-hero.wp-block-acf-za-hero {
	margin-top: calc(var(--wp--custom--header-height) * -1);
}

/* one soft lavender wash behind the photo */
.za-hero::before {
	content: "";
	position: absolute;
	z-index: -2;
	top: -4%;
	right: -12%;
	width: min(62rem, 75vw);
	aspect-ratio: 900 / 760;
	background: var(--wp--custom--texture--wash-lavender) center / contain no-repeat;
	opacity: 0.5;
}

.za-hero__grid {
	display: grid;
	gap: var(--wp--preset--spacing--70);
	align-items: center;
}

.za-hero .za-hero__title {
	font-size: var(--wp--preset--font-size--xxxl);
	font-weight: var(--wp--custom--weight--display);
	line-height: var(--wp--custom--leading--display);
	letter-spacing: var(--wp--custom--tracking--display);
	color: var(--wp--preset--color--brand);
}

.za-hero__line {
	display: block;
}

.za-hero__line--two {
	font-style: italic;
	color: var(--wp--preset--color--plum-muted);
}

.za-hero__visual {
	width: min(72%, 19rem);
	justify-self: center;
}

.za-hero__arch {
	aspect-ratio: 5 / 7;
	box-shadow: var(--wp--preset--shadow--lift), 0 0 3.5rem rgb(201 163 90 / 0.25);
}

.za-hero__pebble {
	display: none;
}

.za-hero__intro {
	display: grid;
	gap: var(--wp--preset--spacing--60);
	color: var(--wp--preset--color--soft);
}

.za-hero__intro .za-lead {
	color: var(--wp--preset--color--contrast);
}

/* the offer card is optional; on the calm home page the offer has its own banner */
.za-hero__offer {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	justify-self: start;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
	border-radius: var(--wp--custom--radius--pill);
	border: 1px solid var(--wp--custom--line--soft);
	background: var(--wp--preset--color--raised);
	text-decoration: none;
	color: var(--wp--preset--color--brand);
}

.za-hero__offer-stack,
.za-hero__offer-link {
	display: none;
}

.za-hero__offer-text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--sm);
}

.za-hero__offer-flag {
	padding: 0.1rem 0.65rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--gold-pale);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--wp--custom--weight--medium);
}

@media (min-width: 48rem) {
	.za-hero__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--90);
	}

	.za-hero__title,
	.za-hero__intro,
	.za-hero__offer {
		grid-column: 1;
	}

	.za-hero__visual {
		grid-column: 2;
		grid-row: 1 / span 3;
		width: min(100%, 22rem);
	}
}

@media (min-width: 64rem) {
	.za-hero {
		padding-top: calc(var(--wp--custom--header-height) + var(--wp--preset--spacing--80));
		padding-bottom: var(--wp--preset--spacing--100);
	}

	.za-hero .za-hero__title {
		font-size: var(--wp--preset--font-size--hero);
	}
}

/* A slow, gentle entrance (front end only) */
@media (prefers-reduced-motion: no-preference) {
	.za-js body:not(.block-editor-iframe__body) :is(.za-hero__line, .za-hero__intro, .za-hero__visual, .za-hero__offer) {
		opacity: 0;
		animation: za-rise var(--wp--custom--duration--slow) var(--wp--custom--ease--gentle) forwards;
	}

	.za-js body:not(.block-editor-iframe__body) .za-hero__visual { animation-delay: 0.2s; }
	.za-js body:not(.block-editor-iframe__body) .za-hero__line--one { animation-delay: 0.4s; }
	.za-js body:not(.block-editor-iframe__body) .za-hero__line--two { animation-delay: 0.7s; }
	.za-js body:not(.block-editor-iframe__body) .za-hero__intro { animation-delay: 1s; }
	.za-js body:not(.block-editor-iframe__body) .za-hero__offer { animation-delay: 1.2s; }
}
