/* Z-Hero */

.zw-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 640px;
	overflow: hidden;
	background-color: var(--zw-bg-dark);
	padding: 60px 64px;
}

/*
 * Its own layer, separate from .zw-hero itself, specifically so the Zoom
 * control can scale() just the image — scaling .zw-hero directly would
 * also scale the headline/buttons/badge sitting inside it as content.
 * .zw-hero's overflow:hidden clips whatever the zoom pushes past the edge.
 */
.zw-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1);
}

.zw-hero__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Assembled from CSS variables so angle/colors can each be set per
   breakpoint by the widget's responsive controls (see the PHP for why
   this isn't Elementor's Group_Control_Background). */
.zw-hero__overlay--gradient {
	background-image: linear-gradient(
		var(--zw-hero-gradient-angle, 90deg),
		var(--zw-hero-gradient-color-1, rgba(15, 13, 11, 0.85)),
		var(--zw-hero-gradient-color-2, rgba(15, 13, 11, 0))
	);
}

.zw-hero__content {
	position: relative;
	z-index: 2;
	max-width: 640px;
}

.zw-hero--align-center {
	justify-content: center;
	text-align: center;
}
.zw-hero--align-center .zw-hero__content {
	margin: 0 auto;
}
.zw-hero--align-center .zw-hero__buttons {
	justify-content: center;
}

.zw-hero__eyebrow {
	font-family: var(--zw-font-body);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.zw-hero__headline {
	font-family: var(--zw-font-display);
	font-weight: 900;
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.01em;
	font-size: clamp(2.75rem, 6vw, 5.25rem);
	margin: 0 0 22px;
}

.zw-hero__line {
	display: inline-block;
}

/*
 * Per-device headline line breaks: all three variants render in the DOM
 * (each still carries .zw-hero__headline, so typography/margin/padding
 * controls apply to whichever is visible) and only one shows at a time,
 * toggled at the same breakpoints Elementor itself uses.
 */
.zw-hero__headline--tablet,
.zw-hero__headline--mobile {
	display: none;
}

@media (max-width: 1024px) {
	.zw-hero__headline--desktop {
		display: none;
	}
	.zw-hero__headline--tablet {
		display: block;
	}
}

@media (max-width: 767px) {
	.zw-hero__headline--tablet {
		display: none;
	}
	.zw-hero__headline--mobile {
		display: block;
	}
}

.zw-hero__subheadline {
	font-family: var(--zw-font-body);
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	color: var(--zw-cream);
	opacity: 0.85;
	max-width: 46ch;
	margin: 0 0 32px;
}

.zw-hero--align-center .zw-hero__subheadline {
	margin-left: auto;
	margin-right: auto;
}

.zw-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.zw-hero__badge {
	position: absolute;
	z-index: 3;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.zw-hero__badge-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: var(--zw-font-display);
	text-transform: uppercase;
	padding: 0 12px;
	width: 100%;
}

.zw-hero__badge-text--left {
	align-items: flex-start;
	text-align: left;
}

.zw-hero__badge-text--center {
	align-items: center;
	text-align: center;
}

.zw-hero__badge-text--right {
	align-items: flex-end;
	text-align: right;
}

.zw-hero__badge-top,
.zw-hero__badge-bottom {
	line-height: 1.3;
}

.zw-hero__badge-main {
	line-height: 1;
	margin: 2px 0;
}

/* Force Line Breaks = off: let the three parts run together and wrap
   like normal text instead of always stacking on separate lines. */
.zw-hero__badge-text--flow {
	display: block;
}

.zw-hero__badge-text--flow .zw-hero__badge-top,
.zw-hero__badge-text--flow .zw-hero__badge-main,
.zw-hero__badge-text--flow .zw-hero__badge-bottom {
	display: inline;
	margin: 0 3px;
	line-height: 1.3;
}

.zw-hero__badge--bottom-right {
	right: 40px;
	bottom: 40px;
}
.zw-hero__badge--bottom-left {
	left: 40px;
	bottom: 40px;
}
.zw-hero__badge--top-right {
	right: 40px;
	top: 40px;
}
.zw-hero__badge--top-left {
	left: 40px;
	top: 40px;
}

@media (max-width: 767px) {
	.zw-hero {
		padding: 40px 24px;
	}
	.zw-hero__headline {
		font-size: clamp(2.25rem, 10vw, 3rem);
	}
	.zw-hero__subheadline {
		font-size: 16px;
	}
	.zw-hero__badge--bottom-right,
	.zw-hero__badge--bottom-left {
		bottom: 20px;
	}
	.zw-hero__badge--bottom-right,
	.zw-hero__badge--top-right {
		right: 20px;
	}
	.zw-hero__badge--bottom-left,
	.zw-hero__badge--top-left {
		left: 20px;
	}
}
