/**
 * Homepage Styles - 3DM Express
 *
 * Color Palette:
 *   Primary:  #1B2A4A (deep navy)
 *   Accent:   #FF6B00 (orange)
 *   Light BG: #F8F9FA
 *   White:    #FFFFFF
 *   Text:     #2D3748
 */

/* ----------------------------------------------------------------
   Variables
   ---------------------------------------------------------------- */
:root {
	--hp-primary: #1B2A4A;
	--hp-primary-dark: #111D35;
	--hp-accent: #FF6B00;
	--hp-accent-hover: #E55F00;
	--hp-light-bg: #F8F9FA;
	--hp-white: #FFFFFF;
	--hp-text: #2D3748;
	--hp-text-light: #718096;
	--hp-border: #E2E8F0;
	--hp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
	--hp-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
	--hp-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
	--hp-radius: 8px;
	--hp-radius-lg: 12px;
	--hp-transition: 0.3s ease;
}

/* ----------------------------------------------------------------
   Container
   ---------------------------------------------------------------- */
.homepage .container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ----------------------------------------------------------------
   Reveal Animation
   ---------------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ----------------------------------------------------------------
   Hero Section
   ---------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 120px 0 80px;
	background: var(--hp-primary-dark) url('../../../assets/images/hero-bg.jpg') no-repeat center center / cover;
	overflow: hidden;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(17, 29, 53, 0.92) 0%,
		rgba(27, 42, 74, 0.85) 50%,
		rgba(17, 29, 53, 0.90) 100%
	);
	z-index: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 820px;
}

.hero__title {
	font-size: clamp(2rem, 5vw, 3.75rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--hp-white);
	margin: 0 0 24px;
	letter-spacing: -0.02em;
}

.hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 40px;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 36px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--hp-radius);
	transition: all var(--hp-transition);
	cursor: pointer;
}

.hero__btn--primary {
	background: var(--hp-accent);
	color: var(--hp-white);
	box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
	background: var(--hp-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(255, 107, 0, 0.45);
}

.hero__btn--secondary {
	background: transparent;
	color: var(--hp-white);
	border: 2px solid rgba(255, 255, 255, 0.35);
}

.hero__btn--secondary:hover,
.hero__btn--secondary:focus-visible {
	border-color: var(--hp-white);
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   Stats Bar
   ---------------------------------------------------------------- */
.stats {
	background: var(--hp-accent);
	padding: 0;
	margin-top: -1px;
}

.stats__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.stats__item {
	text-align: center;
	padding: 40px 16px;
	position: relative;
}

.stats__item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 25%;
	height: 50%;
	width: 1px;
	background: rgba(255, 255, 255, 0.25);
}

.stats__number {
	display: inline;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	color: var(--hp-white);
	line-height: 1;
}

.stats__suffix {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
	color: var(--hp-white);
}

.stats__label {
	display: block;
	margin-top: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   About Preview
   ---------------------------------------------------------------- */
.about-preview {
	padding: 100px 0;
	background: var(--hp-white);
}

.about-preview__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.about-preview__eyebrow {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--hp-accent);
	margin-bottom: 12px;
}

.about-preview__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--hp-primary);
	margin: 0 0 20px;
	line-height: 1.25;
}

.about-preview__text {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--hp-text-light);
	margin: 0 0 16px;
}

.about-preview__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--hp-accent);
	text-decoration: none;
	transition: gap var(--hp-transition), color var(--hp-transition);
}

.about-preview__link:hover,
.about-preview__link:focus-visible {
	gap: 14px;
	color: var(--hp-accent-hover);
}

.about-preview__visual {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

.about-preview__image-block {
	border-radius: var(--hp-radius-lg);
	width: 100%;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-preview__img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border-radius: var(--hp-radius-lg);
}

.about-preview__badge {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--hp-white);
	border: 1px solid var(--hp-border);
	border-radius: var(--hp-radius);
	padding: 16px 24px;
	box-shadow: var(--hp-shadow-sm);
}

.about-preview__badge-text {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hp-primary);
}

/* ----------------------------------------------------------------
   Services Overview
   ---------------------------------------------------------------- */
.services {
	padding: 100px 0;
	background: var(--hp-light-bg);
}

.services__eyebrow {
	display: block;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--hp-accent);
	margin-bottom: 12px;
}

.services__title {
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--hp-primary);
	margin: 0 0 12px;
	line-height: 1.25;
}

.services__subtitle {
	text-align: center;
	font-size: 1.0625rem;
	color: var(--hp-text-light);
	margin: 0 0 56px;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.services__card {
	background: var(--hp-white);
	border: 1px solid var(--hp-border);
	border-radius: var(--hp-radius-lg);
	padding: 36px 28px;
	transition: transform var(--hp-transition), box-shadow var(--hp-transition), border-color var(--hp-transition);
	position: relative;
	overflow: hidden;
}

.services__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--hp-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--hp-transition);
}

.services__card:hover {
	transform: translateY(-6px);
	box-shadow: var(--hp-shadow-lg);
	border-color: transparent;
}

.services__card:hover::before {
	transform: scaleX(1);
}

.services__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: var(--hp-radius);
	background: rgba(255, 107, 0, 0.08);
	color: var(--hp-accent);
	margin-bottom: 20px;
	transition: background var(--hp-transition), color var(--hp-transition);
}

.services__card:hover .services__card-icon {
	background: var(--hp-accent);
	color: var(--hp-white);
}

.services__card-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--hp-primary);
	margin: 0 0 10px;
	line-height: 1.35;
}

.services__card-text {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--hp-text-light);
	margin: 0;
}

/* ----------------------------------------------------------------
   Why Choose Us
   ---------------------------------------------------------------- */
.why-us {
	padding: 100px 0;
	background: var(--hp-white);
}

.why-us__eyebrow {
	display: block;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--hp-accent);
	margin-bottom: 12px;
}

.why-us__title {
	text-align: center;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	color: var(--hp-primary);
	margin: 0 0 56px;
	line-height: 1.25;
}

.why-us__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.why-us__pillar {
	text-align: center;
	padding: 40px 24px;
	border-radius: var(--hp-radius-lg);
	border: 1px solid var(--hp-border);
	transition: transform var(--hp-transition), box-shadow var(--hp-transition), border-color var(--hp-transition);
}

.why-us__pillar:hover {
	transform: translateY(-6px);
	box-shadow: var(--hp-shadow-lg);
	border-color: rgba(255, 107, 0, 0.2);
}

.why-us__pillar-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(27, 42, 74, 0.06), rgba(27, 42, 74, 0.02));
	color: var(--hp-primary);
	transition: background var(--hp-transition), color var(--hp-transition);
}

.why-us__pillar:hover .why-us__pillar-icon {
	background: var(--hp-primary);
	color: var(--hp-white);
}

.why-us__pillar-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--hp-primary);
	margin: 0 0 10px;
}

.why-us__pillar-text {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--hp-text-light);
	margin: 0;
}

/* ----------------------------------------------------------------
   CTA Section
   ---------------------------------------------------------------- */
.cta {
	position: relative;
	padding: 100px 0;
	background: var(--hp-primary-dark) url('../../../assets/images/driver-cab.jpg') no-repeat center center / cover;
	overflow: hidden;
}

.cta__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(27, 42, 74, 0.95) 0%,
		rgba(17, 29, 53, 0.98) 100%
	);
	z-index: 1;
}

.cta__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 680px;
}

.cta__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--hp-white);
	margin: 0 0 16px;
}

.cta__text {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 40px;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--hp-radius);
	transition: all var(--hp-transition);
	cursor: pointer;
}

.cta__btn--primary {
	background: var(--hp-accent);
	color: var(--hp-white);
	box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.cta__btn--primary:hover,
.cta__btn--primary:focus-visible {
	background: var(--hp-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(255, 107, 0, 0.45);
}

.cta__btn--secondary {
	background: transparent;
	color: var(--hp-white);
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta__btn--secondary:hover,
.cta__btn--secondary:focus-visible {
	border-color: var(--hp-white);
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   Responsive: Tablet (max 1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.why-us__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-preview__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.about-preview__visual {
		order: -1;
	}
}

/* ----------------------------------------------------------------
   Responsive: Mobile (max 768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
	.homepage .container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hero {
		min-height: 85vh;
		min-height: 85dvh;
		padding: 100px 0 60px;
	}

	.hero__title {
		margin-bottom: 20px;
	}

	.hero__subtitle {
		margin-bottom: 32px;
	}

	.hero__btn {
		padding: 14px 28px;
		font-size: 0.9375rem;
		width: 100%;
		justify-content: center;
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.stats__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.stats__item {
		padding: 28px 12px;
	}

	.stats__item:nth-child(2)::after {
		display: none;
	}

	.stats__item:nth-child(1)::after,
	.stats__item:nth-child(3)::after {
		top: 20%;
		height: 60%;
	}

	.about-preview {
		padding: 64px 0;
	}

	.about-preview__image-block {
		aspect-ratio: 16 / 9;
	}

	.services {
		padding: 64px 0;
	}

	.services__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.services__subtitle {
		margin-bottom: 36px;
	}

	.services__card {
		padding: 28px 24px;
	}

	.why-us {
		padding: 64px 0;
	}

	.why-us__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.why-us__title {
		margin-bottom: 36px;
	}

	.why-us__pillar {
		padding: 32px 20px;
	}

	.cta {
		padding: 64px 0;
	}

	.cta__text {
		margin-bottom: 32px;
	}

	.cta__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cta__btn {
		width: 100%;
		justify-content: center;
		padding: 14px 28px;
	}
}

/* ----------------------------------------------------------------
   Responsive: Small Mobile (max 480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
	.stats__inner {
		grid-template-columns: 1fr 1fr;
	}

	.stats__number {
		font-size: 1.75rem;
	}

	.stats__suffix {
		font-size: 1.125rem;
	}

	.stats__label {
		font-size: 0.75rem;
	}

	.services__card-icon {
		width: 56px;
		height: 56px;
	}

	.why-us__pillar-icon {
		width: 72px;
		height: 72px;
	}
}

/* ----------------------------------------------------------------
   Focus Visible (Accessibility)
   ---------------------------------------------------------------- */
.hero__btn:focus-visible,
.about-preview__link:focus-visible,
.cta__btn:focus-visible {
	outline: 2px solid var(--hp-accent);
	outline-offset: 3px;
}

/* ----------------------------------------------------------------
   Reduced Motion
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hero__btn,
	.cta__btn,
	.services__card,
	.why-us__pillar,
	.services__card::before,
	.services__card-icon,
	.why-us__pillar-icon,
	.about-preview__link {
		transition: none;
	}
}
