/**
 * Hero — primary homepage banner.
 */

.hero {
	padding-block: var(--space-4);
}

.hero__inner {
	position: relative;
	height: 500px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	isolation: isolate;
}

.hero__picture {
	display: contents;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	max-width: 540px;
	height: 100%;
	padding-block: var(--space-12);
	padding-inline: var(--space-10);
	justify-content: flex-end;
	align-items: flex-start;
}

.hero__title {
	font-family: var(--font-heading);
	font-size: 3rem;            /* 48px */
	font-weight: var(--font-bold);
	line-height: var(--leading-snug);
	letter-spacing: -0.02em;     /* -0.96px @ 48 */
	color: var(--color-black);
	margin: 0;
}

.hero__subtitle {
	max-width: 448px;
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-black);
	margin-bottom: var(--space-4);
}

.hero__subtitle p {
	margin: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
	.hero__image {
		border-radius: 12px;
	}
	.hero__inner {
		height: auto;
		min-height: 400px;
		align-content: flex-end;
    	flex-wrap: wrap;
		display: flex;

	}

	.hero__content {
        padding-block: 14px;
        padding-inline: 14px;
        max-width: 100%;
    }

	.hero__title {
        font-size: 2.25rem;
    }
	.hero__subtitle {
		margin-bottom: var(--space-2);
	}

}
