/* =========================================================================
   NISSU Page Hero (Elementor widget)

   Same visual language as the archive head bands: full-bleed navy, optional
   photograph behind a wash, red-dashed eyebrow, tight display heading.
   ========================================================================= */

.rw-hero {
	--rwh-hero-overlay: 0.88;
	--rwh-head-focus: center 28%;

	position: relative;
	display: flex;
	align-items: center;
	min-height: 340px;
	overflow: hidden;
	padding: 54px 20px 58px;
	background:
		radial-gradient(110% 150% at 86% 6%, rgba(243, 148, 30, 0.44) 0%, rgba(243, 148, 30, 0) 56%),
		linear-gradient(125deg, #05222c 0%, #08323f 52%, #0e5a73 100%);
	color: #fff;
	font-family: var(--rwh-font);
}

@media (min-width: 768px) {
	.rw-hero {
		padding-inline: 32px;
	}
}

.rw-hero * {
	box-sizing: border-box;
}

/* ---------- photographic background ---------- */

.rw-hero--image {
	background: none;
}

.rw-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--rwh-hero-image);
	background-size: cover;
	background-position: var(--rwh-head-focus, center 28%);
}

/* The wash is heaviest where the text sits and thins to the right, so the
   photograph still reads. Overlay strength scales the whole thing. */
.rw-hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(110% 150% at 86% 6%, rgba(243, 148, 30, calc(0.34 * var(--rwh-hero-overlay))) 0%, rgba(243, 148, 30, 0) 58%),
		linear-gradient(
			100deg,
			rgba(5, 34, 44, var(--rwh-hero-overlay)) 0%,
			rgba(5, 34, 44, calc(0.9 * var(--rwh-hero-overlay))) 46%,
			rgba(5, 34, 44, calc(0.7 * var(--rwh-hero-overlay))) 100%
		);
}

/* Centre-aligned heroes read better with an even wash. */
.rw-hero--center.rw-hero--image::after {
	background:
		radial-gradient(120% 120% at 50% 0%, rgba(243, 148, 30, calc(0.3 * var(--rwh-hero-overlay))) 0%, rgba(243, 148, 30, 0) 62%),
		linear-gradient(
			180deg,
			rgba(5, 34, 44, calc(0.86 * var(--rwh-hero-overlay))) 0%,
			rgba(5, 34, 44, var(--rwh-hero-overlay)) 100%
		);
}

@media (max-width: 767px) {
	/* No room for a left-to-right fade on a phone. */
	.rw-hero--image::after {
		background:
			radial-gradient(120% 90% at 84% 4%, rgba(243, 148, 30, calc(0.3 * var(--rwh-hero-overlay))) 0%, rgba(243, 148, 30, 0) 62%),
			linear-gradient(
				180deg,
				rgba(5, 34, 44, calc(0.9 * var(--rwh-hero-overlay))) 0%,
				rgba(5, 34, 44, calc(0.86 * var(--rwh-hero-overlay))) 100%
			);
	}
}

/* ---------- content ---------- */

.rw-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--rwh-container, 1280px);
	margin-inline: auto;
}

.rw-hero--center .rw-hero__inner {
	text-align: center;
}

.rw-hero--center .rw-hero__text,
.rw-hero--center .rw-hero__title {
	margin-inline: auto;
}

.rw-hero--center .rw-hero__actions {
	justify-content: center;
}

.rw-hero__parent {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.rw-hero__parent svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.rw-hero__parent:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rw-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.rw-hero__eyebrow::before {
	content: "";
	width: 30px;
	height: 3px;
	background: var(--rwh-red, #b06105);
}

.rw-hero--center .rw-hero__eyebrow {
	justify-content: center;
}

.rw-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.rw-hero__text {
	max-width: 62ch;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.rw-hero__text p {
	margin: 0 0 10px;
}

.rw-hero__text p:last-child {
	margin-bottom: 0;
}

.rw-hero__text a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* Ghost button, for the hero's dark ground. */
.rw-hero .rw-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #fff;
}

.rw-hero .rw-btn--ghost:hover,
.rw-hero .rw-btn--ghost:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* ---------- angled bottom edge ---------- */

.rw-hero--wedge {
	padding-bottom: 84px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 46px));
}

@media (max-width: 767px) {
	.rw-hero--wedge {
		padding-bottom: 66px;
		clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px));
	}
}

.rw-hero :focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}
