/**
 * Homepage hero — accessible H1 contrast (WCAG 1.4.3).
 * Works with .nj-homepage-visible-h1 and normalized WGL headings.
 */

.home .nj-homepage-visible-h1,
.home h1.nj-homepage-visible-h1 {
	color: #ffffff;
	text-shadow:
		0 2px 4px rgba(1, 33, 105, 0.85),
		0 0 24px rgba(1, 33, 105, 0.55);
	-webkit-text-fill-color: #ffffff;
	background: none;
}

/* WGL hero title after JS normalization (plain text, no letter spans) */
.home .wgl-text-editor.nj-homepage-h1-normalized h1.nj-homepage-visible-h1,
.home .wgl-text-editor.nj-homepage-h1-normalized h1.text-editor_wrapper {
	color: #ffffff;
	text-shadow:
		0 2px 4px rgba(1, 33, 105, 0.85),
		0 0 24px rgba(1, 33, 105, 0.55);
	-webkit-text-fill-color: #ffffff;
}

/* Subtitle line (e.g. Naoeroan greeting) — not the page H1 */
.home .wgl-text-editor h2.text-editor_wrapper,
.home h2.text-editor_wrapper {
	color: #ffffff;
	text-shadow: 0 1px 8px rgba(1, 33, 105, 0.65);
	-webkit-text-fill-color: #ffffff;
}

/* Slight readability boost behind hero text column when WGL mask/gradient is active */
.home .elementor-widget-wgl-text-editor .elementor-widget-container {
	position: relative;
}

.home .elementor-widget-wgl-text-editor .elementor-widget-container::before {
	content: '';
	position: absolute;
	inset: -12px -20px;
	z-index: 0;
	border-radius: 8px;
	background: linear-gradient(
		135deg,
		rgba(1, 33, 105, 0.42) 0%,
		rgba(1, 33, 105, 0.18) 55%,
		transparent 100%
	);
	pointer-events: none;
}

.home .elementor-widget-wgl-text-editor .nj-homepage-visible-h1,
.home .elementor-widget-wgl-text-editor h1,
.home .elementor-widget-wgl-text-editor h2 {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.home .wgl-text-editor.nj-homepage-h1-normalized .text-editor_wrapper > span {
		transition: none !important;
		animation: none !important;
	}
}
