@import '../../../styles/essentials';

.hero {
	min-height: 50vh;
	background-size: cover;
	background-position: center center;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	video {
		position: absolute;
		min-width: 100%;
		min-height: 100%;
		width: auto;
		height: auto;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.hero-overlay {
		position: absolute;
		inset: 0;
		z-index: 0;
		pointer-events: none;
	}
	.hero-content {
		color: inherit;
		margin: 0 auto;
		position: relative;
		z-index: 1;

		h1 {
			color: inherit;
			text-transform: uppercase;
			font-weight: 500;
		}

		p {
			font-size: 1.25rem;
			font-weight: 500;
		}

		img { margin: 0; }
	}
	&.image, &.video {
		padding: 0;
		min-height: 0;
		img {
			width: 100%;
		}
		video {
			position: relative;
			width: 100%;
			top: auto;
			left: auto;
			transform: none;
		}
	}
	.hero-container {
		align-items: center;
		display: grid;
		grid-template-columns: 50% 1fr;
		grid-gap: 5.625rem;

		h1 {
			font-size: 2rem;
			hyphens: auto;
			hyphenate-limit-chars: 9 5 5;
		}
	}
}

@media (max-width: 1023px) {
	.hero {
		.hero-container {
			grid-template-columns: 1fr;
			grid-gap: 1.5rem;
		}
	}
}

@media (max-width: 639px) {
	.hero .hero-container h1 {
		font-size: 1.5rem;
	}
}


// ── v2 development indicator ─────────────────────────────────────────────────
// Remove this block once the v2 design is finalised.

.hero-v2 {
    outline: 3px dashed #22c55e;
    background-color: rgba(34, 197, 94, 0.06) !important;
}
