/**
 * Relove Falling Hero
 * Defaults only. Everything here is overridden by Elementor's generated
 * selectors, which are more specific than these rules.
 */

.relove-fh {
	--fh-edge: 48px;
	position: relative;
	width: 100%;
	background: #000000;
	color: #ffffff;
	overflow: hidden;
	display: grid;
	grid-template-rows: 1fr;
}

.relove-fh--full {
	height: 100vh;
	height: 100svh;
}

.relove-fh__canvas--back {
	position: absolute;
	inset: 0;
	width: 100%;
	z-index: 1;
	pointer-events: none;
}

.relove-fh__canvas--front {
	position: absolute;
	inset: 0;
	width: 100%;
	z-index: 9;
	pointer-events: none;
}

.relove-fh__grain {
	position: absolute;
	inset: -40%;
	z-index: 6;
	opacity: 0.1;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='.6'/></svg>");
	animation: relove-fh-grain 8s steps(7) infinite;
}

@keyframes relove-fh-grain {
	0%   { transform: translate(0, 0); }
	25%  { transform: translate(-2%, 1%); }
	50%  { transform: translate(1%, -2%); }
	75%  { transform: translate(2%, 1%); }
	100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------------
   Stage
   ------------------------------------------------------------------ */

.relove-fh__stage {
	position: relative;
	z-index: 7;
	display: flex;
	align-items: center;
	min-height: 0;
	padding: 80px var(--fh-edge);
}

.relove-fh__col {
	width: 100%;
}

.relove-fh__eyebrow {
	display: block;
	margin: 0 0 24px;
	font-family: "Public Sans", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.66);
}

/* Heading left, supporting column bottom-aligned against it on the right. */
.relove-fh__block {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 90px;
	flex-wrap: wrap;
}

.relove-fh__headline {
	margin: 0;
	flex: 1 1 auto;
	min-width: min(100%, 620px);
	font-family: "Thunder", "Anton", sans-serif;
	font-weight: 700;
	font-size: clamp(40px, min(8.4vw, 13vh), 168px);
	line-height: 0.9;
	text-transform: uppercase;
	color: #ffffff;
}

.relove-fh__line {
	display: block;
	overflow: hidden;
}

.relove-fh__line > span {
	display: block;
}

.relove-fh__headline span.is-accent {
	color: #e11b22;
}

.relove-fh__headline .is-dim {
	color: rgba(255, 255, 255, 0.3);
}

.relove-fh__side {
	flex: 0 1 clamp(280px, 26vw, 430px);
	text-align: right;
	padding-bottom: 8px;
}

.relove-fh__desc {
	margin: 0 0 26px;
	font-family: "Public Sans", sans-serif;
	font-weight: 300;
	font-size: clamp(14px, 1.05vw, 17px);
	line-height: 1.62;
	color: rgba(255, 255, 255, 0.68);
}

.relove-fh__btn-wrap {
	display: block;
}

/* The theme's own button classes style themselves; this is only the
   fallback for the plain variant. */
.relove-fh__btn--plain {
	display: inline-block;
	padding: 16px 34px;
	border-radius: 40px;
	background: #ffffff;
	color: #111111;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease;
}

.relove-fh__btn--plain:hover {
	background: #e11b22;
	color: #ffffff;
}

@media (max-width: 900px) {
	.relove-fh__side {
		text-align: left;
		flex: 1 1 100%;
	}

	.relove-fh__block {
		gap: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.relove-fh__grain {
		animation: none;
	}
}

/* ------------------------------------------------------------------
   Column layouts
   Widths are set by Elementor's generated CSS; these rules only decide
   how the columns wrap and stack.
   ------------------------------------------------------------------ */

.relove-fh__block--cols-1 {
	display: block;
}

.relove-fh__block--cols-1 .relove-fh__headline,
.relove-fh__block--cols-1 .relove-fh__side {
	max-width: none;
	flex: none;
	text-align: inherit;
}

.relove-fh__block--cols-1 .relove-fh__side {
	margin-top: 32px;
}

.relove-fh__block--cols-3 {
	align-items: flex-end;
}

.relove-fh__block--cols-3 .relove-fh__btn-col {
	flex: 0 1 20%;
}

/* Invert Wipe: the bar that sweeps each line in. */
.relove-fh__wipe {
	position: absolute;
	inset: 0;
	display: block;
	background: #e11b22;
	z-index: 2;
	pointer-events: none;
}

.relove-fh__line {
	position: relative;
}

/* Character Cascade needs perspective on the line for the rotateX to read. */
.relove-fh__headline {
	perspective: 1000px;
}

.relove-fh__ch {
	display: inline-block;
	will-change: transform, opacity;
}

@media (max-width: 900px) {
	.relove-fh__block--cols-2,
	.relove-fh__block--cols-3 {
		display: flex;
		flex-wrap: wrap;
	}

	.relove-fh__block--cols-2 .relove-fh__headline,
	.relove-fh__block--cols-3 .relove-fh__headline,
	.relove-fh__block--cols-2 .relove-fh__side,
	.relove-fh__block--cols-3 .relove-fh__side {
		flex: 1 1 100% !important;
		max-width: 100% !important;
	}
}

/* ------------------------------------------------------------------
   Site container alignment
   The theme header is a centred box (1600px on Redox). Padding the stage
   by max(edge, (100% - container) / 2) puts the content on exactly the
   same left edge as the logo at any viewport width, and falls back to the
   minimum edge padding on screens narrower than the container.
   ------------------------------------------------------------------ */

.relove-fh--aligned .relove-fh__stage {
	padding-left: max(var(--fh-edge, 30px), calc((100% - var(--fh-container, 1600px)) / 2));
	padding-right: max(var(--fh-edge, 30px), calc((100% - var(--fh-container, 1600px)) / 2));
}

.relove-fh--aligned .relove-fh__col {
	max-width: var(--fh-container, 1600px);
	width: 100%;
}

/* Centre and right need an auto-sized column inside a flex stage,
   otherwise justify-content has nothing to distribute. */
.relove-fh__stage {
	display: flex;
}

.relove-fh__col {
	flex: 0 1 auto;
	min-width: 0;
}

/* Button width control needs the wrapper to be a sizeable flex item. */
.relove-fh__block--cols-3 .relove-fh__side {
	display: contents;
}

.relove-fh__block--cols-3 .relove-fh__desc {
	flex: 1 1 auto;
}

.relove-fh__block--cols-3 .relove-fh__btn-wrap {
	flex: 0 1 auto;
}
