/* =============================================================
   Elite Pearl Charter — homepage hero

   Same monochrome palette as the rest of the site. The only
   accent is the white-to-silver gradient.
   ============================================================= */

.epc-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--epc-black);
	isolation: isolate;

	/*
	 * svh tracks the real viewport on mobile, where browser chrome slides away
	 * and 100vh overshoots. The vh line is the fallback for older browsers.
	 * Capped so the hero never becomes absurdly tall on a big monitor.
	 */
	min-height: clamp(30rem, 82vh, 54rem);
	min-height: clamp(30rem, 82svh, 54rem);
}

/* --- Background image ---------------------------------------- */

.epc-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.epc-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/*
 * Legibility scrim. Darkest at the bottom so the hero melts into the black page
 * below it, plus a soft vignette that keeps the centred text readable without
 * flattening the middle of the photo. Both layers are symmetrical, since the
 * content sits centred at every width.
 */
.epc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 50%) 40%, rgb(0 0 0 / 92%) 100%),
		radial-gradient(ellipse at center, rgb(0 0 0 / 12%) 30%, rgb(0 0 0 / 55%) 100%);
	pointer-events: none;
}

/* --- Content -------------------------------------------------- */

.epc-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--epc-container);
	margin-inline: auto;
	padding: 4rem var(--epc-gutter);
	text-align: center;
}

@media (min-width: 768px) {
	.epc-hero__inner {
		padding-block: 5rem;
	}
}

.epc-hero__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--epc-silver);
}

.epc-hero__title {
	margin: 0;
	font-family: var(--epc-font-serif);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;

	/* Scales smoothly from small phone to large desktop. */
	font-size: clamp(1.625rem, 5.8vw, 4rem);
}

@media (min-width: 1200px) {
	.epc-hero__title {
		font-size: clamp(2.5rem, 3.8vw, 4.25rem);
	}
}

/* Sized for a full paragraph, run wider than the usual 65ch reading measure. */
.epc-hero__lede {
	max-width: 80ch;
	margin: 1.25rem auto 0;
	font-family: var(--epc-font-sans);
	font-size: clamp(0.875rem, 2vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.8;
	color: var(--epc-nav-idle);
}

/* --- Actions --------------------------------------------------- */

.epc-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

@media (min-width: 1200px) {
	.epc-hero__actions {
		gap: 1rem;
		margin-top: 2.5rem;
	}
}

/* .epc-btn--lg lives with the button component in navbar.css. */

/* Full width and stacked on narrow phones — a much bigger tap target. */
@media (max-width: 479.98px) {
	.epc-hero__actions .epc-btn--lg {
		width: 100%;
	}
}

/* --- Scroll cue ------------------------------------------------ */

.epc-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	z-index: 1;
	display: none;
	width: 1px;
	height: 3rem;
	overflow: hidden;
	transform: translateX(-50%);
	background: rgb(255 255 255 / 18%);
}

@media (min-width: 768px) {
	.epc-hero__scroll {
		display: block;
	}
}

/* A short highlight travels down the line. */
.epc-hero__scroll-line {
	position: absolute;
	inset: 0 0 auto;
	display: block;
	height: 40%;
	background: var(--epc-gradient-title);
	animation: epc-scroll-cue 2.4s var(--epc-ease) infinite;
}

@keyframes epc-scroll-cue {
	0%   { transform: translateY(-100%); }
	60%  { transform: translateY(250%); }
	100% { transform: translateY(250%); }
}

/* --- Reduced motion -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.epc-hero__scroll-line {
		animation: none;
		transform: none;
	}
}
