/* ==========================================================================
   No Worries Hero — Elementor widget styles
   Values measured from the live hero at noworries.ca (Oct 2026):
   - Font: Montserrat (heading 700, text 600, buttons 800)
   - Heading 41px / line-height 1 (33px on mobile)
   - Text 16px / 26px, 20px gap above
   - Buttons #DC1D2D, white, uppercase, 22px, 20px 35px padding,
     50px radius, 26px apart, grow to 1.1 on hover (15px / 15px 25px on mobile)
   - Overlay gradient rgba(0,0,0,.16) 38% → #000 77% at 68% opacity
   ========================================================================== */

.nw-hero {
	--nw-red: #dc1d2d;
	--nw-ratio: 1920 / 772;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: var(--nw-ratio);
	height: auto;
	padding-left: 30px;
	padding-right: 30px;
	background-color: #11275e;
	background-image: var(--nw-bg, none);
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	overflow: hidden;
}

.nw-hero *,
.nw-hero *::before,
.nw-hero *::after {
	box-sizing: border-box;
}

/* Mobile-only image (hidden above 767px) */
.nw-hero .nw-hero__media {
	display: none;
}

/* Dark gradient overlay */
.nw-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	display: block;
	background-color: transparent;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 38%, #000 77%);
	opacity: 0.68;
	z-index: 1;
	pointer-events: none;
}

.nw-hero .nw-hero__inner {
	position: relative;
	z-index: 10;
	max-width: 815px;
	height: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: clamp(45px, 7.8125vw, 90px);
	color: #fff;
	text-align: center;
}

/* Heading */
.nw-hero .nw-hero__title {
	margin: 0;
	padding: 0;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(25px, 2.1354vw, 41px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
}

/* Supporting text */
.nw-hero .nw-hero__text {
	margin: 20px 0 0;
	padding: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	color: #fff;
}

/* Buttons */
.nw-hero .nw-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px;
	margin: 43px 0 0;
}

.nw-hero .nw-hero__btn {
	display: inline-block;
	padding: 20px 35px;
	border: 0;
	border-radius: 50px;
	background-color: var(--nw-red);
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: normal;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	box-shadow: none;
	transition: transform 0.3s;
}

.nw-hero .nw-hero__btn:hover,
.nw-hero .nw-hero__btn:focus,
.nw-hero .nw-hero__btn:active,
.nw-hero .nw-hero__btn:visited {
	color: #fff;
	text-decoration: none;
}

.nw-hero .nw-hero__btn:hover,
.nw-hero .nw-hero__btn:focus,
.nw-hero .nw-hero__btn:active {
	transform: scale(1.1);
}

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

@media (prefers-reduced-motion: reduce) {
	.nw-hero .nw-hero__btn {
		transition: none;
	}
}

/* ---------- ≤ 1199px: second image ---------- */
@media (max-width: 1199px) {
	.nw-hero {
		--nw-ratio: 1200 / 585;
		background-image: var(--nw-bg-1199, var(--nw-bg, none));
	}

	.nw-hero .nw-hero__inner {
		max-width: none;
		padding-bottom: 45px;
	}
}

/* ---------- ≤ 991px: third image ---------- */
@media (max-width: 991px) {
	.nw-hero {
		--nw-ratio: 992 / 515;
		background-image: var(--nw-bg-991, var(--nw-bg-1199, var(--nw-bg, none)));
	}
}

/* ---------- ≤ 767px: mobile ----------
   The photo is shown as a real image at its full ratio (nothing cropped,
   nothing covering the people), with the heading, text and buttons
   stacked underneath on navy (#11275e). */
@media (max-width: 767px) {
	.nw-hero {
		aspect-ratio: auto;
		padding: 0;
		background-image: none;
		background-color: #11275e;
	}

	.nw-hero::after {
		display: none;
	}

	.nw-hero .nw-hero__media {
		display: block;
		position: relative;
		line-height: 0;
	}

	.nw-hero .nw-hero__img {
		display: block;
		width: 100%;
		height: auto;
		max-width: none;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	/* Soft fade from the bottom of the photo into the navy panel */
	.nw-hero .nw-hero__media::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 30%;
		background: linear-gradient(180deg, rgba(17, 39, 94, 0) 0%, #11275e 100%);
		pointer-events: none;
	}

	.nw-hero .nw-hero__inner {
		height: auto;
		padding: 20px 15px 45px;
	}

	.nw-hero .nw-hero__title {
		font-size: 33px;
	}

	.nw-hero .nw-hero__btn {
		padding: 15px 25px;
		font-size: 15px;
	}
}
