﻿/**
 * Above-the-fold homepage CSS (hero) — keep render-blocking; rest loads async.
 */
/**
 * Homepage layout â€” Hybrid surfaces + section styles.
 * Parent layout isolation lives in assets/css/custom-ui.css (body.xe36-custom-ui).
 */

.home-section {
	width: 100%;
	padding: clamp(calc(var(--xe36-space-unit) * 4), 6vw, calc(var(--xe36-space-unit) * 8)) 0;
}

.home-section__inner {
	width: 100%;
	max-width: var(--xe36-container-max);
	margin: 0 auto;
	padding-left: var(--xe36-margin-mobile);
	padding-right: var(--xe36-margin-mobile);
}

/* Full-bleed hero â€” height follows image; content centered on top. */
.home-section.home-hero {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: none;
	margin: 0;
	background-color: var(--xe36-bg-dark);
	color: var(--xe36-text-on-dark);
	padding: 0;
	box-sizing: border-box;
}

.home-hero__media {
	display: block;
	width: 100%;
	line-height: 0;
	position: relative;
	z-index: 0;
}

.home-hero__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	vertical-align: top;
}

.home-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.4) 0%,
		rgba(0, 0, 0, 0.55) 45%,
		rgba(0, 0, 0, 0.68) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.home-hero__inner {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: clamp(1.25rem, 3vw, 2.5rem) var(--xe36-margin-mobile);
	text-align: center;
}

.home-hero__content {
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.home-hero__brand,
.home-hero__facts {
	width: 100%;
	max-width: 64rem;
}

/* 1 â€” Brand: scale to match width of the 4 fact boxes */
.home-hero__brand {
	margin: 0 0 calc(var(--xe36-space-unit) * 1.15);
	font-family: var(--xe36-font-display, var(--xe36-font-body));
	font-size: clamp(2.4rem, calc(min(100vw, 64rem) / 9.4), 7.25rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	background: linear-gradient(105deg, #ffffff 0%, #5ac8fa 35%, #007aff 65%, #5856d6 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	.home-hero__brand {
		color: #5ac8fa;
		background: none;
		-webkit-text-fill-color: unset;
		text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
		filter: none;
	}
}

/* 2 â€” Route: keep on one line when possible */
.home-hero__title {
	margin: 0 0 calc(var(--xe36-space-unit) * 1.35);
	max-width: 100%;
	font-size: clamp(1.15rem, 2.35vw, 1.95rem);
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
	white-space: nowrap;
}

/* 3 â€” Highlight */
.home-hero__highlight {
	margin: 0 0 calc(var(--xe36-space-unit) * 2.25);
	display: inline-block;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: none;
	color: #ffd60a;
	border-bottom: 2px solid rgba(255, 214, 10, 0.45);
	padding-bottom: 0.2em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* 4 â€” Fact blocks */
.home-hero__facts {
	list-style: none;
	margin: 0 0 calc(var(--xe36-space-unit) * 2.75);
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: calc(var(--xe36-space-unit) * 1.25);
}

.home-hero__facts li {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 12rem;
	min-width: 11rem;
	max-width: 16rem;
	margin: 0;
	padding: calc(var(--xe36-space-unit) * 1.75) calc(var(--xe36-space-unit) * 1.75);
	font-size: clamp(0.95rem, 1.35vw, 1.1rem);
	line-height: 1.45;
	font-weight: 600;
	color: #fff;
	text-align: center;
	background: rgba(28, 28, 30, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--xe36-radius-md, 12px);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--xe36-shadow);
	box-sizing: border-box;
}

.home-hero__facts li::before {
	display: none;
}

.home-hero__fact-text {
	display: block;
	width: 100%;
	margin: 0;
	line-height: 1.45;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: calc(var(--xe36-space-unit) * 1.25);
}

/* Hero CTAs only â€” override .btn (taller / smaller type). */
.home-hero__actions .btn.home-hero__btn {
	flex: 0 1 auto;
	min-width: 9.5rem;
	min-height: 48px;
	height: auto;
	padding: 0.55rem 1.35rem;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	border-width: 1px;
	border-style: solid;
	border-radius: var(--xe36-radius-pill);
	color: #fff;
	text-transform: none;
	letter-spacing: -0.41px;
	box-shadow: none;
}

/* Chevron on action buttons */
.home-hero__actions .btn.home-hero__btn::after,
.home-offers__btn::after,
.home-routes__cta::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 0.15em;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' preserveAspectRatio='xMidYMid meet'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Crect width='16' height='16'%3E%3C/rect%3E%3Cpolyline stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' points='6 3 11 8 6 13'%3E%3C/polyline%3E%3C/g%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

.home-hero__actions .btn.home-hero__btn--book {
	background: var(--xe36-accent, #ff9500);
	border-color: var(--xe36-accent, #ff9500);
	color: #fff;
}

.home-hero__actions .btn.home-hero__btn--book:hover,
.home-hero__actions .btn.home-hero__btn--book:focus-visible {
	background: var(--xe36-accent-container, #ff9f0a);
	border-color: var(--xe36-accent-container, #ff9f0a);
	color: #fff;
	opacity: 0.92;
	box-shadow: none;
}

.home-hero__actions .btn.home-hero__btn--call {
	background: var(--xe36-system-green, #34c759);
	border-color: var(--xe36-system-green, #34c759);
	color: #fff;
}

.home-hero__actions .btn.home-hero__btn--call:hover,
.home-hero__actions .btn.home-hero__btn--call:focus-visible {
	background: var(--xe36-system-green-dark, #30b350);
	border-color: var(--xe36-system-green-dark, #30b350);
	color: #fff;
	opacity: 0.92;
	box-shadow: none;
}

.home-hero__actions .btn.home-hero__btn--zalo {
	background: var(--xe36-primary, #007aff);
	border-color: var(--xe36-primary, #007aff);
	color: #fff;
}

.home-hero__actions .btn.home-hero__btn--zalo:hover,
.home-hero__actions .btn.home-hero__btn--zalo:focus-visible {
	background: var(--xe36-primary-dark, #0051a8);
	border-color: var(--xe36-primary-dark, #0051a8);
	color: #fff;
	opacity: 0.92;
	box-shadow: none;
}

@media (min-width: 1100px) {
	.home-hero__facts li {
		flex: 1 1 0;
		max-width: none;
		min-width: 0;
		min-height: 5.5rem;
		padding: calc(var(--xe36-space-unit) * 2) calc(var(--xe36-space-unit) * 2);
		font-size: 1.12rem;
	}
}

/* Mobile: content drives height so nothing is clipped; image as cover backdrop */
@media (max-width: 959px) {
	.home-section.home-hero {
		overflow: visible;
		min-height: 0;
	}

	.home-hero--has-image .home-hero__media {
		position: absolute;
		inset: 0;
		z-index: 0;
	}

	.home-hero--has-image .home-hero__img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center;
	}

	.home-hero__inner {
		position: relative;
		inset: auto;
		padding: clamp(1.5rem, 5vw, 2.5rem) var(--xe36-margin-mobile);
	}
}
