/* =====================================================================
   MCW Hero Widget — fully isolated under .mcw-hero-wrapper
   ===================================================================== */

.mcw-hero-wrapper .mcw-hero {
	position: relative;
	display: block;
	width: 100%;
	min-height: 78vh;
	overflow: hidden;
	border-radius: var(--mcw-radius-lg);
	isolation: isolate;
}

.mcw-hero-wrapper .mcw-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1;
	transform: scale(1.04);
	transition: transform 1.2s var(--mcw-ease);
	will-change: transform;
}

.mcw-hero-wrapper .mcw-hero:hover .mcw-hero__bg {
	transform: scale(1.08);
}

.mcw-hero-wrapper .mcw-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 90deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.15) 100% );
	z-index: 2;
}

.mcw-hero-wrapper .mcw-hero__inner {
	position: relative;
	z-index: 3;
	display: flex;
	width: 100%;
	min-height: inherit;
	padding: 80px;
}

.mcw-hero-wrapper .mcw-hero__content {
	max-width: 620px;
	display: flex;
	flex-direction: column;
}

/* Eyebrow */
.mcw-hero-wrapper .mcw-hero__eyebrow {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFFFFF !important;
	background: rgba(211, 47, 47, 0.92);
	border-radius: var(--mcw-radius-pill);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Title */
.mcw-hero-wrapper .mcw-hero__title {
	font-size: clamp( 2rem, 4.5vw, 3.75rem );
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #FFFFFF !important;
	margin: 16px 0 20px 0;
}

/* Description */
.mcw-hero-wrapper .mcw-hero__description {
	font-size: clamp( 1rem, 1.4vw, 1.125rem );
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92) !important;
	margin: 0 0 32px 0;
	max-width: 56ch;
}

/* Actions */
.mcw-hero-wrapper .mcw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 8px;
}

.mcw-hero-wrapper .mcw-hero__btn {
	min-height: 52px;
}

/* Pulsing icon for emergency button */
.mcw-hero-wrapper .mcw-hero__pulse {
	position: relative;
	color: var(--mcw-primary);
}

.mcw-hero-wrapper .mcw-hero__pulse::before {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	background: rgba(211, 47, 47, 0.25);
	animation: mcw-pulse 1.8s ease-out infinite;
	z-index: -1;
}

@keyframes mcw-pulse {
	0%   { transform: scale(0.8); opacity: 0.7; }
	70%  { transform: scale(1.6); opacity: 0; }
	100% { transform: scale(1.6); opacity: 0; }
}

.mcw-hero-wrapper .mcw-hero__btn--emergency:hover .mcw-hero__pulse {
	color: var(--mcw-primary-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.mcw-hero-wrapper .mcw-hero__inner {
		padding: 60px 40px;
	}
	.mcw-hero-wrapper .mcw-hero__overlay {
		background: linear-gradient( 180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.7) 100% );
	}
}

@media (max-width: 640px) {
	.mcw-hero-wrapper .mcw-hero {
		border-radius: 0;
		min-height: 70vh;
	}
	.mcw-hero-wrapper .mcw-hero__inner {
		padding: 48px 24px;
	}
	.mcw-hero-wrapper .mcw-hero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}
	.mcw-hero-wrapper .mcw-hero__btn {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcw-hero-wrapper .mcw-hero__bg,
	.mcw-hero-wrapper .mcw-hero:hover .mcw-hero__bg {
		transform: none !important;
		transition: none !important;
	}
	.mcw-hero-wrapper .mcw-hero__pulse::before {
		animation: none !important;
	}
}
