/* Zen Aura — What goes into every piece block (acf/za-values). ZA-MARKER: values-styles */

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

.za-values::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	width: min(64rem, 100vw);
	aspect-ratio: 1000 / 700;
	translate: -50% -50%;
	background: var(--wp--custom--texture--wash-amethyst) center / contain no-repeat;
	mix-blend-mode: screen;
	opacity: 0.45;
}

.za-values .za-values__title {
	color: var(--wp--preset--color--raised);
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--80);
}

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

.za-values__centre {
	position: relative;
	width: min(70%, 16rem);
	aspect-ratio: 1;
	margin-block: var(--wp--preset--spacing--70);
}

.za-values .za-values__centre img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--round);
	box-shadow: 0 0 4rem rgb(201 163 90 / 0.25);
}

.za-values__ring {
	position: absolute;
	inset: -1.25rem;
	border-radius: var(--wp--custom--radius--round);
	border: 1px solid rgb(201 163 90 / 0.55);
}

.za-values__ring--outer {
	inset: -2.75rem;
	border: 1px dashed rgb(201 163 90 / 0.35);
}

@media (prefers-reduced-motion: no-preference) {
	.za-values__ring--outer {
		animation: za-orbit var(--wp--custom--duration--orbit) linear infinite;
	}
}

.za-value {
	position: relative;
	display: grid;
	gap: var(--wp--preset--spacing--20);
	justify-items: center;
	text-align: center;
	max-width: 19rem;
}

.za-value__icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--pebble);
	border: 1px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--gold-light);
}

.za-value__icon .za-icon {
	width: 1.6rem;
	height: 1.6rem;
}

.za-values .za-value__title {
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--raised);
}

.za-values .za-value p {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--plum-pale);
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
	.za-values__orbit {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.za-values__centre {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.za-values__orbit {
		grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem) minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: clamp(4rem, 8vw, 8rem);
		row-gap: var(--wp--preset--spacing--90);
		align-items: center;
	}

	.za-values__centre {
		grid-column: 2;
		grid-row: 1 / 3;
		width: 100%;
		margin: 0;
	}

	.za-value--nw,
	.za-value--sw {
		grid-column: 1;
		justify-self: end;
		justify-items: end;
		text-align: right;
	}

	.za-value--ne,
	.za-value--se {
		grid-column: 3;
		justify-self: start;
		justify-items: start;
		text-align: left;
	}

	.za-value--nw,
	.za-value--ne {
		grid-row: 1;
	}

	.za-value--sw,
	.za-value--se {
		grid-row: 2;
	}

	/* fine gold threads leading towards the centre stone */
	.za-value::after {
		content: "";
		position: absolute;
		top: 1.6rem;
		width: clamp(2rem, 4vw, 4.5rem);
		border-top: 1px dashed rgb(201 163 90 / 0.5);
	}

	.za-value--nw::after,
	.za-value--sw::after {
		left: calc(100% + 1rem);
	}

	.za-value--ne::after,
	.za-value--se::after {
		right: calc(100% + 1rem);
	}
}
