/*
 * [ambuluwawa_walk_banner] — home page promo card.
 * Values from Figma frame "Overlay" (83:2): 991.8 × 357, radius 20,
 * photo (cover) → progressive background blur (Figma 15.8 ≈ CSS 7.9px, full at the
 * left edge, gone by 74% across) → horizontal gradient #004495 → transparent.
 * Type matches ambuluwawa.com's home sections: Plus Jakarta Sans + Open Sans, green #19E619.
 * Selectors use two classes so the Elementor kit's element styles (a, h2, img) can't override them.
 */

.aww-bn {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 357px;
	margin: 0;
	border-radius: 20px;
	background: #004495;
	color: #fff;
	font-family: "Open Sans", Arial, sans-serif;
}
.aww-bn *,
.aww-bn *::before,
.aww-bn *::after { box-sizing: border-box; }

.aww-bn .aww-bn__img {
	position: absolute;
	inset: 0;
	z-index: -3;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	object-position: center;
}
.aww-bn .aww-bn__blur {
	position: absolute;
	inset: 0;
	z-index: -2;
}
/* Figma's progressive blur ramps the radius from 0 (74% across) up to full at the left
   edge. CSS can't vary a blur radius, so two masked layers approximate the ramp. */
.aww-bn .aww-bn__blur--soft {
	-webkit-backdrop-filter: blur(3.5px);
	backdrop-filter: blur(3.5px);
	-webkit-mask-image: linear-gradient(to left, transparent 24%, #000 40%);
	mask-image: linear-gradient(to left, transparent 24%, #000 40%);
}
.aww-bn .aww-bn__blur--strong {
	-webkit-backdrop-filter: blur(7.9px);
	backdrop-filter: blur(7.9px);
	-webkit-mask-image: linear-gradient(to left, transparent 45%, #000 90%);
	mask-image: linear-gradient(to left, transparent 45%, #000 90%);
}
.aww-bn .aww-bn__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Figma's #e7edeb00 → #004495 blends colour and alpha separately (a pale haze mid-way);
	   CSS would fade straight to clear, so the stops below are Figma's blend, precomputed. */
	background: linear-gradient(
		to left,
		rgba(231, 237, 235, 0) 0%,
		rgba(208, 220, 226, .1) 10%,
		rgba(185, 203, 218, .2) 20%,
		rgba(162, 186, 209, .3) 30%,
		rgba(139, 169, 201, .4) 40%,
		rgba(116, 152, 192, .5) 50%,
		rgba(92, 136, 183, .6) 60%,
		rgba(69, 119, 175, .7) 70%,
		rgba(46, 102, 166, .8) 80%,
		rgba(23, 85, 158, .9) 90%,
		#004495 100%
	);
}

.aww-bn .aww-bn__content {
	position: relative;
	width: 100%;
	max-width: 635px;
	padding: 42px 55px 28px;
}

.aww-bn .aww-bn__label {
	margin: 0;
	font-family: "Plus Jakarta Sans", "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 19.52px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #19e619;
	/* Brand green from the design; a tight drop shadow keeps it legible where it crosses the pale sky. */
	text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.aww-bn .aww-bn__title {
	max-width: 363px;
	margin: 0 0 5px;
	padding: 0;
	font-family: "Plus Jakarta Sans", "Open Sans", Arial, sans-serif;
	font-size: 45px;
	font-weight: 700;
	line-height: 1.26;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}
.aww-bn .aww-bn__tagline {
	margin: 0 0 9px;
	font-family: "Plus Jakarta Sans", "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 19.52px;
	text-transform: uppercase;
	color: #f5f8f7;
}
.aww-bn .aww-bn__text {
	max-width: 525px;
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 24px;
	color: #f5f8f7;
}

.aww-bn .aww-bn__btn,
.aww-bn .aww-bn__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 186px;
	height: 52px;
	margin-top: 21px;
	padding: 0 36px;
	border: 0;
	border-radius: 10px;
	background: #19e619;
	color: #112111;
	font-family: "Plus Jakarta Sans", "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	transition: background-color .2s, transform .2s;
}
.aww-bn .aww-bn__btn:hover,
.aww-bn .aww-bn__btn:focus-visible {
	background: #14cf14;
	color: #112111;
	transform: translateY(-1px);
}
.aww-bn .aww-bn__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Phones: the photo shows sharp across the top (tower in view), then fades into blue behind the text. */
@media (max-width: 767px) {
	.aww-bn {
		min-height: 0;
		border-radius: 16px;
	}
	.aww-bn .aww-bn__img {
		height: 230px;
		object-position: 78% 30%;
	}
	.aww-bn .aww-bn__blur--soft,
	.aww-bn .aww-bn__blur--strong {
		-webkit-mask-image: linear-gradient(to bottom, transparent 130px, #000 220px);
		mask-image: linear-gradient(to bottom, transparent 130px, #000 220px);
	}
	.aww-bn .aww-bn__shade {
		background: linear-gradient(to bottom, rgba(0, 68, 149, 0) 90px, rgba(0, 68, 149, .85) 190px, #004495 230px);
	}
	.aww-bn .aww-bn__content { padding: 190px 24px 28px; }
	.aww-bn .aww-bn__title { font-size: clamp(30px, 9vw, 45px); }
	.aww-bn .aww-bn__label,
	.aww-bn .aww-bn__tagline { font-size: 14px; }
	.aww-bn .aww-bn__text { font-size: 14px; }
	.aww-bn .aww-bn__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.aww-bn .aww-bn__btn { transition: none; }
	.aww-bn .aww-bn__btn:hover { transform: none; }
}
