/* ==========================================================================
   Inner-hero component.
   Reusable page-top hero band on the purple backdrop. Two-column layout that
   collapses to a single stacked column on mobile. Uses design tokens from
   assets/css/site.css (--purple, --lime, --container, etc.).
   ========================================================================== */

.inner-hero {
	background: var(--purple);
	color: #fff;
	padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.inner-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}

/* When media is present, give the copy room and let it span wider. */
.inner-hero__media + .inner-hero__copy,
.inner-hero__copy + .inner-hero__media {
	/* no-op; layout is driven by the grid below */
}

.inner-hero__copy { max-width: 40rem; }

.inner-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.85rem;
	color: var(--lavender);
	margin: 0 0 1rem;
}

.inner-hero__title {
	font-size: clamp(2.2rem, 5vw, 4rem);
	line-height: 1.08;
	margin: 0 0 1.25rem;
	color: #fff;
}

.inner-hero__lede {
	font-size: 1.1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
	max-width: 38ch;
}

.inner-hero__lede p:first-child { margin-top: 0; }
.inner-hero__lede p:last-child  { margin-bottom: 0; }

.inner-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.75rem;
}

.inner-hero__slot { margin-top: 2rem; }

.inner-hero__media {
	display: flex;
	align-items: center;
	justify-content: center;
}

.inner-hero__media img {
	max-width: 100%;
	height: auto;
}

/* ---- Two-column layout at wider widths ---- */
@media (min-width: 860px) {
	.inner-hero__inner {
		grid-template-columns: 1.2fr 1fr;
		gap: 3.5rem;
	}

	/* With no image, keep the copy left-aligned but cap its width. */
	.inner-hero:not(:has(.inner-hero__media)) .inner-hero__inner {
		grid-template-columns: 1fr;
		max-width: 48rem;
	}
}

/* ---- Mobile refinements ---- */
@media (max-width: 859px) {
	.inner-hero__media { order: -1; }
	.inner-hero__media img { max-width: 280px; }
}
