/**
 * Hero Heading Widget Styles
 */

/* Wrapper */
.hero-heading-wrapper {
	position: relative;
	width: 100%;
	z-index: 1;
}

/* Gradient Background - More subtle and concentrated with pulse */
.hero-heading-wrapper.has-gradient-bg::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 250px;
	height: 150px;
	background: radial-gradient(
		ellipse at center,
		var(--gradient-color, #FFCEED) 0%,
		transparent 50%
	);
	opacity: var(--gradient-opacity, 0.3);
	filter: blur(40px);
	pointer-events: none;
	z-index: -1;
	animation: gradient-pulse 4s ease-in-out infinite;
}

/* Subtle Pulse Animation */
@keyframes gradient-pulse {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: var(--gradient-opacity, 0.3);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.15);
		opacity: calc(var(--gradient-opacity, 0.3) * 1.3);
	}
}

/* Main Heading */
.hero-heading {
	margin: 0;
	padding: 0;
	font-family: 'Outfit', sans-serif;
	font-size: 48px;
	line-height: 52px;
	color: #ffffff;
	text-align: center;
	position: relative;
	z-index: 2;
}

/* Text Parts */
.hero-heading .text-before,
.hero-heading .text-after {
	font-weight: 300;
}

.hero-heading .text-highlight {
	font-weight: 600;
	position: relative;
	display: inline-block;
	padding: 0 0.1em;
}

/* Glow Effect */
.hero-heading .text-highlight.has-glow {
	text-shadow: 
		0 0 20px rgba(255, 206, 237, 0.8),
		0 0 40px rgba(255, 206, 237, 0.6),
		0 0 60px rgba(255, 206, 237, 0.4);
	animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
	0% {
		text-shadow: 
			0 0 20px rgba(255, 206, 237, 0.8),
			0 0 40px rgba(255, 206, 237, 0.6),
			0 0 60px rgba(255, 206, 237, 0.4);
	}
	100% {
		text-shadow: 
			0 0 25px rgba(255, 206, 237, 0.9),
			0 0 50px rgba(255, 206, 237, 0.7),
			0 0 75px rgba(255, 206, 237, 0.5);
	}
}

/* Subheading */
.hero-subheading {
	margin: 20px auto 0;
	padding: 0;
	font-family: 'Outfit', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #ffffff;
	text-align: center;
	max-width: 744px;
	position: relative;
	z-index: 2;
	opacity: 0.9;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
	.hero-heading-wrapper.has-gradient-bg::before {
		width: 200px;
		height: 120px;
		filter: blur(35px);
	}
	
	.hero-heading {
		font-size: 40px;
		line-height: 44px;
	}
	
	.hero-subheading {
		font-size: 15px;
		max-width: 90%;
	}
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	.hero-heading-wrapper.has-gradient-bg::before {
		width: 180px;
		height: 100px;
		filter: blur(30px);
	}
	
	.hero-heading {
		font-size: 32px;
		line-height: 36px;
	}
	
	.hero-subheading {
		font-size: 14px;
		max-width: 95%;
		margin-top: 15px;
	}
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
	.hero-heading-wrapper.has-gradient-bg::before {
		width: 150px;
		height: 80px;
		filter: blur(25px);
	}
	
	.hero-heading {
		font-size: 24px;
		line-height: 28px;
	}
	
	.hero-heading .text-before,
	.hero-heading .text-after {
		font-weight: 400;
	}
	
	.hero-heading .text-highlight {
		font-weight: 700;
	}
	
	.hero-subheading {
		font-size: 13px;
		line-height: 1.5;
	}
}

/* Alignment Classes */
.elementor-widget-hero_heading.elementor-align-left .hero-heading-wrapper {
	text-align: left;
}

.elementor-widget-hero_heading.elementor-align-left .hero-subheading {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.elementor-widget-hero_heading.elementor-align-center .hero-heading-wrapper {
	text-align: center;
}

.elementor-widget-hero_heading.elementor-align-right .hero-heading-wrapper {
	text-align: right;
}

.elementor-widget-hero_heading.elementor-align-right .hero-subheading {
	text-align: right;
	margin-left: auto;
	margin-right: 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.hero-heading-wrapper.has-gradient-bg::before {
		opacity: calc(var(--gradient-opacity, 0.5) * 0.8);
	}
}

/* Accessibility - Reduce Motion */
@media (prefers-reduced-motion: reduce) {
	.hero-heading .text-highlight.has-glow {
		animation: none;
		text-shadow: 
			0 0 20px rgba(255, 206, 237, 0.8),
			0 0 40px rgba(255, 206, 237, 0.6),
			0 0 60px rgba(255, 206, 237, 0.4);
	}
}