/**
 * New Realm Transportation LLC — Viewport-Optimized Hero Section Styles
 *
 * Calculates height dynamically based on viewport minus header and top-bar offsets.
 * Keeps all CTA content above the fold on all desktop viewports.
 *
 * @package NewRealm
 * @since   1.0.0
 */

.hero-section {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* Dynamic viewport height calculation minus header and top bar */
	min-height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
	height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
	display: flex;
	align-items: center;
	color: var(--color-white);
	overflow: hidden;
}

/* Left-to-right dark gradient overlay */
.hero-section__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.65) 45%, rgba(10, 10, 10, 0) 100%);
	z-index: 1;
}

/* Container & Grid Setup */
.hero-section__grid {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(320px, 620px) 1fr;
	gap: 2rem;
	align-items: center;
	height: 100%;
	min-height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
}

.hero-section__col {
	display: flex;
	flex-direction: column;
}

/* Left aligned content wrapper - No glass box background */
.hero-content {
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	max-width: 600px;
	width: 100%;
	text-align: left;
}

/* Subtitle / Tagline */
.hero-content__subtitle {
	display: inline-block;
	color: var(--color-gold);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.95rem;
	letter-spacing: 2px;
	margin-bottom: 1.75rem;
}

/* Large H1 Heading */
.hero-content__title {
	font-size: 4.25rem;
	font-weight: 900;
	line-height: 1.1;
	color: var(--color-white);
	margin-top: 0;
	margin-bottom: 2.25rem;
	letter-spacing: -1.5px;
}

/* Paragraph */
.hero-content__text {
	font-size: 1.15rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 3.25rem;
	max-width: 540px;
}

/* Buttons Actions Wrapper */
.hero-content__actions {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

/* Button Customizations for Premium Hero */
.hero-content__btn {
	padding: 1rem 2.25rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--border-radius);
	transition: var(--transition-smooth);
}

.hero-content__btn--primary {
	background-color: var(--color-maroon);
	border-color: var(--color-maroon);
	color: var(--color-white);
}

.hero-content__btn--primary:hover {
	background-color: var(--color-maroon-dark);
	border-color: var(--color-maroon-dark);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(128, 0, 32, 0.35);
}

.hero-content__btn--secondary {
	background-color: transparent;
	border: 2px solid var(--color-white);
	color: var(--color-white);
}

.hero-content__btn--secondary:hover {
	background-color: var(--color-white);
	color: var(--color-dark);
	transform: translateY(-2px);
}

/* ==========================================================================
   Subtle Fade Entrance Animation
   ========================================================================== */
.fade-up-element {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
	            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-element.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================================================
   Viewport Height Optimization for Small Desktop Screen / Laptops
   ========================================================================== */
@media screen and (max-height: 900px) and (min-width: 992px) {
	.hero-content__title {
		font-size: 3.5rem;
		margin-bottom: 1.75rem;
	}
	.hero-content__text {
		font-size: 1.1rem;
		margin-bottom: 2.5rem;
	}
}

@media screen and (max-height: 750px) and (min-width: 992px) {
	.hero-content__title {
		font-size: 3rem;
		margin-bottom: 1.25rem;
	}
	.hero-content__text {
		font-size: 1.05rem;
		margin-bottom: 2rem;
	}
	.hero-content__subtitle {
		margin-bottom: 1.25rem;
	}
	.hero-content__btn {
		padding: 0.85rem 2rem;
	}
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media screen and (max-width: 1200px) {
	.hero-content__title {
		font-size: 3.75rem;
	}
}

@media screen and (max-width: 991px) {
	.hero-section {
		min-height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
		height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
	}

	.hero-section__grid {
		grid-template-columns: 1fr;
		min-height: calc(100vh - (var(--header-height) + var(--top-bar-height)));
	}

	.hero-content {
		max-width: 560px;
	}

	.hero-content__title {
		font-size: 3.25rem;
	}
}

@media screen and (max-width: 768px) {
	/* Mobile auto height layout with proper padding to avoid overflow cutoffs */
	.hero-section {
		height: auto;
		min-height: auto;
		display: block;
		padding: 5rem 0;
	}

	.hero-section__grid {
		min-height: auto;
		height: auto;
		display: block;
	}

	.hero-content__title {
		font-size: 2.75rem;
		margin-bottom: 1.25rem;
	}

	.hero-content__text {
		font-size: 1.05rem;
		margin-bottom: 2rem;
	}

	.hero-content__actions {
		gap: 1rem;
	}

	.hero-content__btn {
		width: 100%;
		text-align: center;
		justify-content: center;
	}
}

@media screen and (max-width: 480px) {
	.hero-content__title {
		font-size: 2.25rem;
		line-height: 1.15;
	}
	.hero-section {
		padding: 4rem 0;
	}
}
