/* BlueWave Hero — scoped under .bw-hero */

.bw-hero {
	position: relative;
	color: #fff;
	padding: 95px 0 170px; /* bottom = wave height (150px) + 80px clearance */
	overflow: hidden;
	isolation: isolate;
	background-color: #023c5a; /* fallback */
}

/* Background image layer */
.bw-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: -2;
}

/* Tint overlay */
.bw-hero__tint {
	position: absolute;
	inset: 0;
	z-index: -1;
}

/* Content */
.bw-hero__container {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 15px;
}

.bw-hero__content {
	max-width: 100%; /* no built-in cap — use Style > Layout > Content max width if needed */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Content alignment — class stamped on wrapper by Elementor prefix_class */
.bw-hero-align-center .bw-hero__content {
	align-items: center;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.bw-hero-align-center .bw-hero__ctas { justify-content: center; }

.bw-hero-align-right .bw-hero__content {
	align-items: flex-end;
	text-align: right;
	margin-left: auto;
	margin-right: 0;
}
.bw-hero-align-right .bw-hero__ctas { justify-content: flex-end; }

/* Eyebrow */
.bw-hero__eyebrow {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 400;
	font-style: normal;
	color: #ffffff;
	margin-bottom: 24px;
}

/* H1 */
.bw-hero__heading {
	letter-spacing: -0.025em;
	line-height: 1.02;
	color: #fff;
	margin: 0 0 22px;
	font-weight: 800;
}

/* Span accent inside heading.
 * font-family intentionally omitted — inherits site h1 font.
 * Override via Style > Heading > Span font family in the widget controls. */
.bw-hero__heading .bw-hero__span {
	font-style: italic;
	font-weight: 400;
	color: #f1c286;
	letter-spacing: -0.01em;
}

/* Lede text */
.bw-hero__lede {
	font-size: 19px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
	max-width: 640px;
	margin: 0 0 28px;
}

/* CTA row */
.bw-hero__ctas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* Buttons */
.bw-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.01em;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.bw-hero__btn:hover {
	transform: translateY(-1px);
}
.bw-hero__btn:hover .bw-btn-arrow { transform: translateX(3px); }

.bw-hero__btn--primary {
	background: #f1c286;
	color: #023c5a;
	border-color: #f1c286;
}

.bw-hero__btn--primary:hover {
	background: #eab26a;
	border-color: #eab26a;
}

.bw-hero__btn--secondary {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.bw-hero__btn--secondary:hover {
	background: #f2ebdc;
	color: #023c5a;
	border-color: #f2ebdc;
}

/* ---- Two-column layout ---- */
.bw-hero__cols {
	display: flex;
	gap: var(--bw-hero-col-gap, 48px);
	align-items: center;
	width: 100%;
}

.bw-hero--has-cols .bw-hero__content {
	flex: 0 1 var(--bw-hero-col-content, 55%);
	min-width: 0;
	max-width: none;
}

.bw-hero__second-col {
	flex: 1 1 var(--bw-hero-col-second, 40%);
	min-width: 0;
	position: relative;
	z-index: 3;
}

@media (max-width: 1023px) {
	.bw-hero__cols {
		flex-direction: column;
		gap: 32px;
	}
	.bw-hero--col-left .bw-hero__cols {
		flex-direction: column-reverse; /* restore reading order: content first */
	}
	.bw-hero--has-cols .bw-hero__content,
	.bw-hero__second-col {
		flex: none;
		width: 100%;
		max-width: 100% !important; /* override Elementor's scoped content_max_width selector */
	}
	/* Hide second column controls */
	.bw-hero--hide-second-tablet .bw-hero__second-col {
		display: none !important;
	}
}

/* ---- Shape Dividers ---- */
.bw-hero__shape-divider--top,
.bw-hero__shape-divider--bottom {
	color: #ffffff; /* CSS fallback; overridden by Elementor's color selector */
}

.bw-hero__shape-divider {
	position: absolute;
	left: 0;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	z-index: 4; /* above tint layers */
}

.bw-hero__shape-divider--top {
	top: -1px;
}

.bw-hero__shape-divider--bottom {
	bottom: -1px;
}

.bw-hero__shape-divider svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Top dividers are flipped vertically so the shape points into the section */
.bw-hero__shape-divider--top svg {
	transform: scaleY(-1);
}

.bw-hero__shape-divider--flip-h svg {
	transform: scaleX(-1);
}

.bw-hero__shape-divider--top.bw-hero__shape-divider--flip-h svg {
	transform: scaleX(-1) scaleY(-1);
}

/* Responsive */
@media (max-width: 1023px) {
	.bw-hero {
		padding: 72px 0 170px;
	}
	.bw-hero__content {
		max-width: 100% !important; /* always full-width on tablet — override Elementor selector */
		width: 100%;
	}
}

@media (max-width: 767px) {
	.bw-hero {
		padding: 48px 0 170px;
	}
	.bw-hero__container {
		padding: 0 15px; /* keep the default 15px */
	}
	.bw-hero__content {
		max-width: 100% !important;
		width: 100%;
	}
	.bw-hero__ctas {
		flex-direction: column;
		align-items: flex-start;
	}
	.bw-hero__btn {
		width: 100%;
		justify-content: center;
	}
	/* Hide second column on mobile */
	.bw-hero--hide-second-mobile .bw-hero__second-col {
		display: none !important;
	}
}
