/* BG Image & Content — cream band + bottom-right cutout (Figma 175:948) */

.bg-image-content {
	/* Figma artboard 1440 × 526 */
	--bg-image-content-panel: #fef3dc;
	--bg-image-content-text: var(--color-navy);
	--bg-image-content-max: var(--content-max);
	--bg-image-content-copy-max: 38rem; /* 608px */
	--bg-image-content-body-max: 32.875rem; /* 526px */
	--bg-image-content-media-w: 68.58%; /* 987.5 / 1440 */
	--bg-image-content-height: clamp(22rem, 36.53vw, 32.875rem); /* 526 @ 1440 */

	position: relative;
	overflow: hidden;
	background: var(--bg-image-content-panel);
	color: var(--bg-image-content-text);
}

.bg-image-content__panel {
	position: relative;
	width: 100%;
	min-height: var(--bg-image-content-height);
	overflow: hidden;
	background: var(--bg-image-content-panel);
}

.bg-image-content__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	width: min(100% - 2rem, var(--bg-image-content-max));
	min-height: inherit;
	margin-inline: auto;
	/* Figma: copy ~100px from top of band */
	padding-block: clamp(3.25rem, 6.94vw, 6.25rem) clamp(2.5rem, 5vw, 4rem);
	padding-inline: 0;
}

.bg-image-content__copy {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	max-width: var(--bg-image-content-copy-max);
}

.bg-image-content__headline {
	margin: 0 0 1.6875rem; /* Figma ~27px to body */
	max-width: 38rem;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3.33vw, 3rem); /* 48 @ 1440 */
	font-weight: var(--font-weight-semibold);
	line-height: 1; /* 48px */
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--bg-image-content-text);
}

.bg-image-content__body {
	margin: 0 0 1.1875rem; /* Figma ~19px to CTA */
	max-width: var(--bg-image-content-body-max);
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: var(--font-weight-regular);
	line-height: 1.5rem;
	color: var(--bg-image-content-text);
}

.bg-image-content__body p {
	margin: 0;
}

.bg-image-content__body p + p {
	margin-top: 0.75em;
}

.bg-image-content__cta {
	min-width: 9.8125rem; /* 157px */
	min-height: 2.5625rem; /* 41px */
}

/* Figma image 6: x 452.6 / 1440 ≈ 31.4% · flush right + bottom */
.bg-image-content__media {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	width: var(--bg-image-content-media-w);
	max-width: 61.72rem; /* 987.5px */
	height: 100%;
	margin: -1px;
	line-height: 0;
}

.bg-image-content__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: right bottom;
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes bg-image-content-from-left {
		from {
			opacity: 0;
			transform: translateX(-2.5rem);
		}

		to {
			opacity: 1;
			transform: translateX(0);
		}
	}

	@keyframes bg-image-content-media-in {
		from {
			opacity: 0;
			transform: translateX(2.75rem);
		}

		to {
			opacity: 1;
			transform: translateX(0);
		}
	}

	section.bg-image-content:not(.is-inview) .bg-image-content__copy {
		opacity: 0;
		transform: translateX(-2.5rem);
	}

	section.bg-image-content:not(.is-inview) .bg-image-content__media {
		opacity: 0;
		transform: translateX(2.75rem);
	}

	section.bg-image-content.is-inview .bg-image-content__copy {
		animation: bg-image-content-from-left 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	section.bg-image-content.is-inview .bg-image-content__media {
		animation: bg-image-content-media-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
	}
}

.page-section:has(.bg-image-content) {
	overflow: hidden;
}

@media (max-width: 1100px) {
	.bg-image-content {
		--bg-image-content-height: auto;
	}

	.bg-image-content__panel {
		min-height: 0;
	}

	.bg-image-content__inner {
		padding-block: clamp(2.5rem, 6vw, 4rem) clamp(9rem, 6vw, 20rem);
	}

	.bg-image-content__copy {
		gap: 0;
	}

	.bg-image-content__headline {
		margin-bottom: 1.25rem;
	}

	.bg-image-content__body {
		margin-bottom: 1.25rem;
	}

	.bg-image-content__media {
		top: auto;
		left: auto;
		right: -2%;
		bottom: 0;
		width: min(78vw, 42rem);
		max-width: none;
		height: auto;
	}

	.bg-image-content__image {
		height: auto;
	}
}

@media (max-width: 600px) {
	.bg-image-content__inner {
		padding-block-end: clamp(10rem, 58vw, 16rem);
	}

	.bg-image-content__headline {
		font-size: 1.5rem;
		line-height: 1.15;
	}

	.bg-image-content__body {
		line-height: 1.5rem;
	}

	.bg-image-content__media {
		right: -8%;
		bottom: 0;
		width: 108%;
	}
}
