/**
 * Hero Heading Section Styles - Mobile First
 * 
 * Separate file for hero heading/subheading styles
 * Responsive and isolated from other sections
 *
 * @package Garage_At_Home
 */

/* Fade In Animation */
@keyframes gh-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hero Left Container - Base Styles */
.gh-hero-left {
	width: 100%;
	margin-bottom: 2rem;
	position: relative;
	z-index: 2;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	animation: gh-fadeInUp 0.8s ease-out;
	overflow: visible;
	box-sizing: border-box;
}

/* Ensure heading elements are always visible and never hidden */
.gh-hero-left > h1,
.gh-hero-left > p,
.gh-hero-left .gh-hero-headline,
.gh-hero-left .gh-hero-subtext {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 3;
	max-width: 100%;
}

/* Support for alternative class names used in index.php */
.gh-hero-headline,
.gh-hero-subtext {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 3;
	max-width: 100%;
}

/* Enhanced Heading Styles */
.gh-hero-left h1,
.gh-hero-headline {
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--gh-text);
	margin: 0 0 1.25rem 0;
	letter-spacing: -0.8px;
	background: linear-gradient(135deg, var(--gh-text) 0%, var(--gh-accent-2) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 10px rgba(255, 111, 97, 0.3);
	position: relative;
	padding-bottom: 0.75rem;
	animation: gh-fadeInUp 0.9s ease-out 0.1s both;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100%;
	max-width: 100%;
	overflow: visible;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal;
}

/* Underline accent */
.gh-hero-left h1::after,
.gh-hero-headline::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	border-radius: 2px;
	animation: gh-slideInLeft 0.8s ease-out 0.3s both;
	display: block;
	visibility: visible;
}

@keyframes gh-slideInLeft {
	from {
		width: 0;
		opacity: 0;
	}
	to {
		width: 60px;
		opacity: 1;
	}
}

/* Enhanced Subheading Styles */
.gh-hero-left p,
.gh-hero-subtext {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--gh-muted);
	margin: 0 0 2rem 0;
	font-weight: 400;
	letter-spacing: 0.3px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
	position: relative;
	animation: gh-fadeInUp 1s ease-out 0.2s both;
	max-width: 90%;
	padding-left: 1.5rem;
	border-left: 3px solid transparent;
	border-image: linear-gradient(180deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%) 1;
	background: linear-gradient(90deg, rgba(255, 111, 97, 0.05) 0%, transparent 100%);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-right: 0.5rem;
	border-radius: 0 8px 8px 0;
	transition: all 0.3s ease;
	background-clip: padding-box;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.gh-hero-left p:hover,
.gh-hero-subtext:hover {
	background: linear-gradient(90deg, rgba(255, 111, 97, 0.1) 0%, transparent 100%);
	transform: translateX(4px);
	text-shadow: 0 2px 12px rgba(255, 111, 97, 0.2);
}

/* Subheading accent decoration */
.gh-hero-left p::before,
.gh-hero-subtext::before {
	content: '';
	position: absolute;
	left: -3px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	border-radius: 2px 0 0 2px;
	animation: gh-slideInDown 0.8s ease-out 0.4s both;
	display: block;
	visibility: visible;
}

@keyframes gh-slideInDown {
	from {
		height: 0;
		opacity: 0;
	}
	to {
		height: 100%;
		opacity: 1;
	}
}

/* Mobile Responsive - Heading */
@media (max-width: 767px) {
	.gh-hero-left h1,
	.gh-hero-headline {
		font-size: 1.5rem;
		margin-bottom: 0.875rem;
		letter-spacing: -0.5px;
		padding-bottom: 0.5rem;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-left h1::after,
	.gh-hero-headline::after {
		width: 45px;
		height: 2px;
	}
	
	.gh-hero-left p,
	.gh-hero-subtext {
		font-size: 0.875rem;
		line-height: 1.6;
		margin-bottom: 1.25rem;
		padding-left: 1rem;
		max-width: 95%;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

@media (max-width: 480px) {
	.gh-hero-left h1,
	.gh-hero-headline {
		font-size: 1.375rem;
		margin-bottom: 0.75rem;
		letter-spacing: -0.4px;
		padding-bottom: 0.5rem;
	}
	
	.gh-hero-left h1::after,
	.gh-hero-headline::after {
		width: 40px;
		height: 2px;
	}
	
	.gh-hero-left p,
	.gh-hero-subtext {
		font-size: 0.8125rem;
		line-height: 1.55;
		margin-bottom: 1rem;
		padding-left: 0.875rem;
		max-width: 98%;
	}
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 767px) {
	.gh-hero-left h1,
	.gh-hero-headline {
		font-size: 2.25rem;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-left p,
	.gh-hero-subtext {
		font-size: 1.0625rem;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}

/* Desktop Responsive - Heading */
@media (min-width: 768px) {
	.gh-hero-left {
		flex: 1;
		margin-bottom: 0;
		max-width: 50%;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-left h1,
	.gh-hero-headline {
		font-size: 3rem;
		margin-bottom: 1.75rem;
		letter-spacing: -1px;
		line-height: 1.15;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-left h1::after,
	.gh-hero-headline::after {
		width: 80px;
		height: 4px;
	}
	
	.gh-hero-left p,
	.gh-hero-subtext {
		font-size: 1.1875rem;
		margin-bottom: 2.5rem;
		line-height: 1.8;
		max-width: 85%;
		padding-left: 2rem;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
		font-weight: 500;
		letter-spacing: 0.4px;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-left p::before,
	.gh-hero-subtext::before {
		width: 4px;
		left: -4px;
	}
}

/* Extra Large Desktop */
@media (min-width: 1200px) {
	.gh-hero-left h1,
	.gh-hero-headline {
		font-size: 3.5rem;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-left p,
	.gh-hero-subtext {
		font-size: 1.25rem;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}
