/**
 * Hero Section Styles - Mobile First
 * 
 * Uses Palette A CSS variables for consistent theming
 * Mobile-first approach: stack layout, then desktop two-column
 *
 * @package Garage_At_Home
 */

/* Palette A CSS Variables */
:root {
	--gh-bg: #0F1113;
	--gh-surface: #141618;
	--gh-accent: #C62828;
	--gh-accent-2: #FF6F61;
	--gh-text: #F5F6F7;
	--gh-muted: #BFC4C6;
}

/* Hero Section */
.gh-hero {
	background-color: var(--gh-bg);
	padding: 2rem 1rem;
	position: relative;
	overflow: visible;
	max-width: 100%;
	margin: 0 auto;
	width: 100%;
	background: linear-gradient(135deg, var(--gh-bg) 0%, var(--gh-surface) 100%);
	box-sizing: border-box;
}

/* Mobile: Reduce hero padding and improve spacing */
@media (max-width: 767px) {
	.gh-hero {
		padding: 1rem 0.875rem;
	}
	
	.gh-hero-container {
		gap: 1.5rem;
	}
	
	.gh-hero-left {
		margin-bottom: 1.5rem;
	}
}

.gh-hero-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	box-sizing: border-box;
	overflow: visible;
	padding: 0;
}

/* Hero Left - Base Container Only */
/* Heading styles are in hero-heading.css to keep sections separated */
.gh-hero-left {
	width: 100%;
	margin-bottom: 2rem;
	position: relative;
	z-index: 2;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Input Group - Reduced size for mobile */
.gh-hero-input-group {
	display: flex !important;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	animation: fadeInUp 1.1s ease-out 0.3s both;
	margin-bottom: 0;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 10;
}

/* Phone Input - Smaller for mobile */
.gh-hero-input-group input {
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	border: 2px solid var(--gh-surface);
	background-color: var(--gh-surface);
	color: var(--gh-text);
	border-radius: 10px;
	width: 100%;
	box-sizing: border-box;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	font-weight: 500;
	letter-spacing: 0.3px;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	min-height: 44px;
}

.gh-hero-input-group input::placeholder {
	color: var(--gh-muted);
	opacity: 0.8;
	font-weight: 400;
}

.gh-hero-input-group input:focus {
	outline: none;
	border-color: var(--gh-accent-2);
	background-color: var(--gh-bg);
	box-shadow: 0 4px 16px rgba(255, 111, 97, 0.3);
	transform: translateY(-2px);
}

.gh-hero-input-group input:hover {
	border-color: rgba(255, 111, 97, 0.5);
}

/* Book Now Button - Smaller for mobile */
.gh-hero-input-group button {
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	color: var(--gh-text);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	min-height: 44px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	position: relative;
	overflow: hidden;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.gh-hero-input-group button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.gh-hero-input-group button:hover {
	background: linear-gradient(135deg, var(--gh-accent-2) 0%, var(--gh-accent) 100%);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(255, 111, 97, 0.5);
}

.gh-hero-input-group button:hover::before {
	left: 100%;
}

.gh-hero-input-group button:focus {
	outline: 2px solid var(--gh-accent-2);
	outline-offset: 3px;
}

.gh-hero-input-group button:active {
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(198, 40, 40, 0.4);
}

/* Ensure input and button are always visible */
.gh-hero-input-group input.gh-hero-input,
.gh-hero-input-group button.gh-hero-button,
.gh-hero-input-group input,
.gh-hero-input-group button {
	min-height: 44px;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
	position: relative !important;
	z-index: 10 !important;
}

/* Force visibility class */
.gh-hero-input-visible,
.gh-hero-input-visible input,
.gh-hero-input-visible button {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.gh-hero-input-visible input,
.gh-hero-input-visible button {
	display: block !important;
}

/* Define fadeInUp animation if missing */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Trust Section - Rating & Reviews - Grid Layout */
.gh-hero-trust {
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gh-surface);
	display: grid !important;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.875rem;
	align-items: stretch;
	animation: fadeInUp 1.2s ease-out 0.5s both;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 1;
	width: 100%;
	clear: both;
}

.gh-hero-rating {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	gap: 0.75rem 1rem;
	align-items: center;
	width: 100%;
	padding: 1.5rem 1.25rem;
	background: linear-gradient(135deg, var(--gh-surface) 0%, rgba(255, 111, 97, 0.05) 100%);
	border-radius: 12px;
	border: 2px solid rgba(255, 111, 97, 0.15);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(255, 111, 97, 0.1);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.gh-hero-rating::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gh-hero-rating:hover {
	background: linear-gradient(135deg, rgba(255, 111, 97, 0.08) 0%, rgba(255, 111, 97, 0.05) 100%);
	border-color: rgba(255, 111, 97, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(255, 111, 97, 0.25), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gh-hero-rating:hover::before {
	opacity: 1;
}

.gh-rating-stars {
	font-size: 1.125rem;
	color: var(--gh-accent-2);
	letter-spacing: 2px;
	line-height: 1;
	text-shadow: 0 2px 6px rgba(255, 111, 97, 0.4);
	filter: drop-shadow(0 0 6px rgba(255, 111, 97, 0.5));
	display: inline-block;
	width: auto;
	font-weight: 600;
	grid-column: 1;
	grid-row: 1;
}

.gh-rating-score {
	font-size: 1rem;
	font-weight: 800;
	color: var(--gh-accent-2);
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	justify-self: start;
	padding: 0.375rem 0.625rem;
	border-radius: 6px;
	background: rgba(255, 111, 97, 0.15);
	border: 1px solid rgba(255, 111, 97, 0.25);
	box-shadow: 0 2px 8px rgba(255, 111, 97, 0.2);
	text-shadow: 0 1px 3px rgba(255, 111, 97, 0.3);
	grid-column: 2;
	grid-row: 1;
}

.gh-rating-reviews {
	font-size: 0.8125rem;
	color: var(--gh-muted);
	letter-spacing: 0.2px;
	opacity: 0.85;
	display: block;
	width: 100%;
	font-weight: 400;
	line-height: 1.4;
	grid-column: 1 / -1;
	grid-row: 2;
}

.gh-hero-customers {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	gap: 0.75rem 1rem;
	align-items: start;
	padding: 1.5rem 1.25rem;
	width: 100%;
	background: linear-gradient(135deg, var(--gh-surface) 0%, rgba(255, 111, 97, 0.05) 100%);
	border-radius: 12px;
	border: 2px solid rgba(255, 111, 97, 0.15);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(255, 111, 97, 0.1);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.gh-hero-customers::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gh-hero-customers:hover {
	background: linear-gradient(135deg, rgba(255, 111, 97, 0.08) 0%, rgba(255, 111, 97, 0.05) 100%);
	border-color: rgba(255, 111, 97, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(255, 111, 97, 0.25), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gh-hero-customers:hover::before {
	opacity: 1;
}

.gh-customers-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--gh-accent) 0%, var(--gh-accent-2) 100%);
	color: var(--gh-text);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(255, 111, 97, 0.5);
	flex-shrink: 0;
	transition: transform 0.3s ease;
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: center;
}

.gh-hero-customers:hover .gh-customers-icon {
	transform: scale(1.15) rotate(10deg);
	box-shadow: 0 6px 16px rgba(255, 111, 97, 0.6);
}

.gh-customers-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: center;
}

.gh-customers-number {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--gh-accent-2);
	letter-spacing: 0.5px;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(255, 111, 97, 0.4);
	display: block;
}

.gh-customers-label {
	font-size: 0.8125rem;
	color: var(--gh-muted);
	font-weight: 500;
	letter-spacing: 0.3px;
	line-height: 1.4;
	display: block;
	opacity: 0.9;
}

/* Responsive Input & Button Adjustments */
@media (max-width: 480px) {
	.gh-hero-input-group {
		gap: 0.75rem;
	}
	
	.gh-hero-input-group input {
		padding: 0.875rem 1rem;
		font-size: 16px; /* Prevents zoom on iOS */
		border-radius: 10px;
		min-height: 48px; /* Better touch target */
		-webkit-appearance: none;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-input-group button {
		padding: 0.875rem 1.5rem;
		font-size: 0.9375rem;
		min-height: 48px; /* Better touch target */
		border-radius: 10px;
		letter-spacing: 0.3px;
		width: 100%;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-trust {
		margin-top: 1.5rem;
		padding-top: 1.25rem;
		gap: 0.75rem;
		grid-template-columns: 1fr; /* Stack on very small screens */
		align-items: stretch;
	}
	
	/* Keep two columns on slightly larger mobile */
	@media (min-width: 360px) and (max-width: 480px) {
		.gh-hero-trust {
			grid-template-columns: repeat(2, 1fr);
			gap: 0.75rem;
		}
	}
	
	.gh-hero-rating {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		gap: 0.5rem 0.625rem;
		padding: 1rem 0.875rem;
		width: 100%;
		min-height: 100%;
		box-sizing: border-box;
	}
	
	.gh-rating-stars {
		font-size: 0.9375rem;
		letter-spacing: 1.5px;
		grid-column: 1;
		grid-row: 1;
	}
	
	.gh-rating-score {
		font-size: 0.875rem;
		margin-left: 0;
		margin-top: 0;
		display: inline-flex;
		padding: 0.25rem 0.5rem;
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
	}
	
	.gh-rating-reviews {
		font-size: 0.6875rem;
		margin-top: 0;
		grid-column: 1 / -1;
		grid-row: 2;
		line-height: 1.3;
	}
	
	.gh-hero-customers {
		display: grid;
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		gap: 0.5rem 0.625rem;
		padding: 1rem 0.875rem;
		width: 100%;
		min-height: 100%;
		box-sizing: border-box;
	}
	
	.gh-customers-icon {
		width: 24px;
		height: 24px;
		font-size: 0.875rem;
		grid-column: 1;
		grid-row: 1 / -1;
		align-self: center;
	}
	
	.gh-customers-content {
		grid-column: 2;
		grid-row: 1 / -1;
		gap: 0.2rem;
		align-self: center;
	}
	
	.gh-customers-number {
		font-size: 0.9375rem;
		letter-spacing: 0.3px;
		line-height: 1.2;
	}
	
	.gh-customers-label {
		font-size: 0.6875rem;
		letter-spacing: 0.2px;
		line-height: 1.3;
	}
}

/* Hero Right - Image Container */
.gh-hero-right {
	width: 100%;
	position: relative;
	min-height: 280px;
	border-radius: 12px;
	overflow: visible;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	animation: fadeInUp 1.2s ease-out 0.4s both;
	z-index: 1;
}

.gh-hero-media {
	width: 100%;
	height: 100%;
	min-height: 280px;
	background-color: var(--gh-surface);
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.5s ease;
	z-index: 1;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.gh-hero-right:hover .gh-hero-media {
	transform: scale(1.02);
}

@media (min-width: 768px) {
	.gh-hero-right:hover .gh-hero-media {
		transform: scale(1.03);
	}
}

/* Hero Left - Ensure content stays above merge overlay */
.gh-hero-left {
	position: relative;
	z-index: 3;
}

/* Merge Overlay - Mobile: Top-to-bottom */
.gh-hero-merge {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(180deg, rgba(15, 17, 19, 1) 0%, rgba(15, 17, 19, 0.90) 15%, rgba(15, 17, 19, 0.75) 30%, rgba(15, 17, 19, 0.5) 50%, rgba(15, 17, 19, 0.25) 70%, rgba(15, 17, 19, 0) 100%);
	border-radius: 12px;
	height: 100%;
	width: 100%;
}

/* Desktop Layout */
@media (min-width: 768px) {
	.gh-hero-container {
		display: flex;
		flex-direction: row !important;
		align-items: stretch;
		gap: 2rem;
	}
	
	.gh-hero {
		padding: 3rem 1rem;
		display: flex;
		align-items: stretch;
		gap: 0;
		background: linear-gradient(135deg, var(--gh-bg) 0%, var(--gh-surface) 50%, var(--gh-bg) 100%);
		overflow: hidden;
		position: relative;
		min-height: 600px;
	}
	.gh-hero-left {
		flex: 1;
		margin-bottom: 0;
		max-width: 50%;
		width: 50%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		position: relative;
		z-index: 3;
		padding-right: 2rem;
	}
	
	.gh-hero-right {
		flex: 1;
		max-width: 50%;
		width: 50%;
		position: relative;
		display: flex;
		align-items: stretch;
		overflow: hidden;
		min-height: 600px;
	}
	
	.gh-hero-media {
		width: 100%;
		height: 100%;
		min-height: 600px;
		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		border-radius: 12px;
	}
	
	/* Desktop Merge Overlay - Left-to-right gradient */
	.gh-hero-merge {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: linear-gradient(90deg, rgba(15, 17, 19, 1) 0%, rgba(15, 17, 19, 0.95) 15%, rgba(15, 17, 19, 0.80) 30%, rgba(15, 17, 19, 0.60) 50%, rgba(15, 17, 19, 0.35) 70%, rgba(15, 17, 19, 0.15) 85%, rgba(15, 17, 19, 0) 100%);
		border-radius: 12px;
		pointer-events: none;
		z-index: 2;
	}
	
	.gh-hero-input-group {
		flex-direction: row;
		gap: 0.75rem;
		align-items: stretch;
	}
	
	.gh-hero-input-group input {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		padding: 1rem 1.25rem;
		font-size: 1rem;
		border-radius: 12px;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-input-group button {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
		padding: 1rem 1.5rem;
		font-size: 0.9375rem;
		min-height: 52px;
		max-width: 180px;
		border-radius: 12px;
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	/* Desktop Trust Section - Grid Layout */
	.gh-hero-trust {
		margin-top: 2.5rem;
		padding-top: 2rem;
		grid-template-columns: repeat(2, 1fr);
		align-items: stretch;
		gap: 1.75rem;
		border-top: 2px solid var(--gh-surface);
		display: grid !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	
	.gh-hero-rating {
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
		gap: 1rem 1.25rem;
		width: 100%;
		padding: 1.75rem 1.5rem;
	}
	
	.gh-rating-stars {
		font-size: 1.375rem;
		letter-spacing: 3px;
		grid-column: 1;
		grid-row: 1;
	}
	
	.gh-rating-score {
		font-size: 1.125rem;
		margin-left: 0;
		margin-top: 0;
		padding: 0.375rem 0.75rem;
		border-radius: 6px;
		display: inline-flex;
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
	}
	
	.gh-rating-reviews {
		font-size: 0.875rem;
		display: block;
		margin-top: 0;
		margin-left: 0;
		font-weight: 400;
		grid-column: 1 / -1;
		grid-row: 2;
	}
	
	.gh-hero-customers {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		gap: 1rem 1.25rem;
		padding: 1.75rem 1.5rem;
		width: 100%;
		border-radius: 12px;
	}
	
	.gh-customers-icon {
		width: 40px;
		height: 40px;
		font-size: 1.25rem;
		grid-column: 1;
		grid-row: 1 / -1;
		align-self: center;
	}
	
	.gh-customers-content {
		grid-column: 2;
		grid-row: 1 / -1;
		gap: 0.375rem;
	}
	
	.gh-customers-number {
		font-size: 1.5rem;
		letter-spacing: 0.75px;
	}
	
	.gh-customers-label {
		font-size: 0.875rem;
		letter-spacing: 0.4px;
	}
	
	.gh-customers-icon {
		width: 32px;
		height: 32px;
		font-size: 1.125rem;
	}
	
	.gh-hero-right {
		flex: 1;
		max-width: 50%;
		min-height: 500px;
	}
	
	.gh-hero-media {
		min-height: 500px;
	}
}

/* Extra Large Desktop - Handled in hero-heading.css */
