/**
 * Outcomes single template styles.
 */

/* ── Hero cover ── */

.outcome-hero {
	background-color: var(--wp--preset--color--dark-green);
	min-height: clamp(32rem, 50vw, 54rem) !important;
	max-width: 100% !important;
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--space-lg);
	padding-right: var(--wp--preset--spacing--section-padding-small);
	padding-bottom: var(--wp--preset--spacing--space-2xl);
	padding-left: var(--wp--preset--spacing--section-padding-small);
}

.outcome-hero .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	min-height: inherit;
}

.outcome-hero__back {
	margin: 0 0 var(--wp--preset--spacing--space-xl);
	font-size: 1rem;
	line-height: 1.4;
}

.outcome-hero__back a {
	color: var(--wp--preset--color--beige);
	text-decoration: none;
}

.outcome-hero__back a:hover {
	text-decoration: underline;
}

.outcome-hero .wp-block-post-title {
	position: relative;
	max-width: 60rem;
	color: var(--wp--preset--color--beige);
	font-family: var(--wp--preset--font-family--heading-sans-serif);
	font-size: clamp(2.5rem, 5vw, 5.125rem);
	font-weight: 400;
	line-height: 1;
	text-align: left;
	padding-block-start: var(--wp--preset--spacing--space-lg);
}

.outcome-hero .wp-block-post-title::before {
	content: '';
	display: block;
	width: 60px;
	height: 7px;
	background-color: var(--wp--preset--color--rose);
	position: absolute;
	top: 0;
	left: 0;
}

/* ── Section heading variants ── */
.outcome-section .wp-block-heading {
	font-weight: 300;
}

.section-heading--on-dark .wp-block-heading {
	color: var(--wp--preset--color--beige);
}

.section-heading--on-dark .wp-block-post-title {
	color: var(--wp--preset--color--beige);
}

.section-heading--on-dark .wp-block-heading::before,
.section-heading--on-dark .wp-block-post-title::before {
	background-color: var(--wp--preset--color--rose);
}

/* ── Content sections ── */

.outcome-section--problem,
.outcome-section--solution {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark-green);
}

.outcome-section--problem .wp-block-heading,
.outcome-section--solution .wp-block-heading {
	color: var(--wp--preset--color--dark-green);
}

.outcome-section--problem p,
.outcome-section--solution p {
	line-height: 1.4;
}

.outcome-section__feature-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ── Results section ── */

.outcome-section--results p {
	line-height: 1.4;
}

.outcome-stats {
	text-align: center;
}

.outcome-stat__value {
	font-family: var(--wp--preset--font-family--heading-sans-serif);
	font-size: clamp(3.5rem, 6vw, 6rem) !important;
	font-weight: 600;
	line-height: 1 !important;
	margin: 0;
}

.outcome-stat__label {
	font-size: var(--wp--preset--font-size--body-text);
	line-height: 1.4;
	margin-block-start: var(--wp--preset--spacing--space-sm);
}

.outcome-section__cta {
	gap: var(--wp--preset--spacing--space-md);
	justify-content: center;
}

.outcome-section__cta .wp-block-button__link {
	min-height: 4.1875rem;
	padding-inline: var(--wp--preset--spacing--space-lg);
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: max-content;
}

.outcome-section__cta .wp-block-button__link::after {
	content: '';
	display: inline-block;
	width: 27px;
	height: 8px;
	background-color: currentColor;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='8' viewBox='0 0 27 8'%3E%3Cpath d='M26.354 4.036a.5.5 0 0 0 0-.708L23.172.146a.5.5 0 1 0-.707.708l2.828 2.828-2.828 2.828a.5.5 0 1 0 .707.708zM0 3.682v.5h26v-1H0z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-size: contain;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.outcome-section__cta .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

@media (max-width: 781px) {
	.outcome-stats.wp-block-columns {
		flex-direction: column;
		gap: var(--wp--preset--spacing--space-xl);
	}
}

@media (max-width: 781px) {
	.outcome-section--solution .wp-block-columns {
		flex-direction: column;
	}
}
