/* SolarPark scroll hero
   Brand tokens: navy #0C1B33, gold #F5B81C, Barlow Condensed (display), DM Sans (body).
   Units in px per project convention. */

.sp-hero {
	position: relative;
	width: 100%;
	height: var(--sp-hero-h, 100vh);
	margin: 0;
	background: #0C1B33;
	overflow: hidden;
}

.sp-hero__stage {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Static fallback layer: brand navy + optional image. Sits under the canvas.
   Shown on its own when .sp-hero--static is set (reduced motion / no frames). */
.sp-hero__fallback {
	position: absolute;
	inset: 0;
	background-color: #0C1B33;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.sp-hero__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* When we fall back, hide the (empty) canvas and lean on the fallback layer. */
.sp-hero--static .sp-hero__canvas {
	display: none;
}

/* Text overlay */
.sp-hero__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 64px 48px;
	max-width: 720px;
}

.sp-hero__headline {
	margin: 0 0 16px;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 72px;
	line-height: 0.98;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #FFFFFF;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.sp-hero__subhead {
	margin: 0 0 28px;
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.45;
	color: #E7ECF4;
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.sp-hero__cta {
	display: inline-block;
	font-family: "DM Sans", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.3px;
	color: #0C1B33;
	background: #F5B81C;
	padding: 18px 32px;
	border-radius: 4px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sp-hero__cta:hover,
.sp-hero__cta:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(245, 184, 28, 0.35);
	color: #0C1B33;
}

.sp-hero__cta:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 3px;
}

/* Tablet */
@media (max-width: 1024px) {
	.sp-hero__headline { font-size: 56px; }
	.sp-hero__overlay { padding: 48px 36px; }
}

/* Mobile */
@media (max-width: 600px) {
	.sp-hero__headline { font-size: 40px; }
	.sp-hero__subhead { font-size: 17px; }
	.sp-hero__overlay { padding: 32px 24px; max-width: 100%; }
	.sp-hero__cta { padding: 16px 26px; }
}

/* Respect reduced-motion at the CSS layer too (belt and braces with the JS). */
@media (prefers-reduced-motion: reduce) {
	.sp-hero__canvas { display: none; }
}
