/* ==========================================================================
   Splash - trang chọn nhánh Hùng IN / Hùng AI
   Chỉ nạp ở route "/" nên hoàn toàn tách biệt với main.css và uikit.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body.splash {
	background: #f7f5f2;
	color: #1c1a17;
	font-family: 'Be Vietnam Pro', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.splash-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 46px 24px 0;
}

/* --- Thương hiệu mẹ --- */
.splash-brand {
	text-align: center;
	margin-bottom: 34px;
}

.splash-brand__name {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 42px;
	font-weight: 500;
	letter-spacing: .17em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #14120f;
}

.splash-brand__name a {
	color: inherit;
	text-decoration: none;
}

.splash-brand__tag {
	margin: 10px 0 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .42em;
	text-indent: .42em;
	text-transform: uppercase;
	color: #8d8578;
}

.splash-brand__logo {
	max-height: 62px;
	width: auto;
}

.splash-lede {
	margin: 28px 0 0;
	text-align: center;
	font-size: 15px;
	color: #57524a;
}

/* --- Hai ô lựa chọn --- */
.splash-choices {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 14px;
	-webkit-box-align: stretch;
	-ms-flex-align: stretch;
	align-items: stretch;
	overflow: visible;
	padding-bottom: 8px;
}

.splash-card {
	position: relative;
	z-index: 1;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 0;
	flex: 1 1 0;
	min-width: 280px;
	min-height: 392px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
	padding: 40px;
	border-radius: 3px;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: -webkit-transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, min-height .45s ease;
	transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease, min-height .45s ease;
}

.splash-card:hover,
.splash-card:focus-within {
	z-index: 3;
	-webkit-transform: scale(1.12);
	transform: scale(1.12);
	box-shadow: 0 40px 80px -18px rgba(8, 7, 6, .55), 0 12px 30px rgba(8, 7, 6, .3);
}

/* Ảnh nền: đặt file vào templates/frontend/images/ với đúng tên là tự hiện.
   Chưa có ảnh thì nền gradient bên dưới vẫn cho ra giao diện hoàn chỉnh. */
.splash-card::before {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -2;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	-webkit-transition: -webkit-transform .6s cubic-bezier(.22, 1, .36, 1);
	transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.splash-card::after {
	content: '';
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: -1;
	background: -webkit-linear-gradient(top, rgba(8, 7, 6, .12) 8%, rgba(8, 7, 6, .45) 48%, rgba(8, 7, 6, .88) 100%);
	background: linear-gradient(to bottom, rgba(8, 7, 6, .12) 8%, rgba(8, 7, 6, .45) 48%, rgba(8, 7, 6, .88) 100%);
	-webkit-transition: background .35s ease;
	transition: background .35s ease;
}

.splash-card:hover::before,
.splash-card:focus-within::before {
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

.splash-card:hover::after,
.splash-card:focus-within::after {
	background: -webkit-linear-gradient(top, rgba(8, 7, 6, .28) 0%, rgba(8, 7, 6, .78) 42%, rgba(8, 7, 6, .94) 100%);
	background: linear-gradient(to bottom, rgba(8, 7, 6, .28) 0%, rgba(8, 7, 6, .78) 42%, rgba(8, 7, 6, .94) 100%);
}

.splash-card:focus-within {
	outline: 2px solid #fff;
	outline-offset: -6px;
}

.splash-card--in::before {
	background-color: #1b1713;
	background-image: url('../images/splash-hungin.jpg'),
		-webkit-radial-gradient(28% 22%, ellipse, #4a3a25 0%, #211a13 46%, #100d0a 100%);
	background-image: url('../images/splash-hungin.jpg'),
		radial-gradient(ellipse at 28% 22%, #4a3a25 0%, #211a13 46%, #100d0a 100%);
}

.splash-card--ai::before {
	background-color: #0d1428;
	background-image: url('../images/splash-hungai.jpg'),
		-webkit-radial-gradient(70% 26%, ellipse, #2b3f77 0%, #16203f 48%, #080c18 100%);
	background-image: url('../images/splash-hungai.jpg'),
		radial-gradient(ellipse at 70% 26%, #2b3f77 0%, #16203f 48%, #080c18 100%);
}

.splash-card__body {
	position: relative;
	width: 100%;
}

.splash-card__eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .34em;
	text-indent: .34em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .66);
}

.splash-card__title {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 44px;
	font-weight: 500;
	line-height: 1.12;
	color: #fff;
}

.splash-card__desc {
	margin: 16px 0 0;
	max-width: 34ch;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .74);
}

.splash-card__cta {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
	padding: 13px 26px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	-webkit-transition: background-color .25s ease, -webkit-transform .25s ease;
	transition: background-color .25s ease, transform .25s ease;
}

.splash-card__cta svg {
	-webkit-transition: -webkit-transform .25s ease;
	transition: transform .25s ease;
}

.splash-card:hover .splash-card__cta svg,
.splash-card:focus-within .splash-card__cta svg {
	-webkit-transform: translateX(4px);
	transform: translateX(4px);
}

.splash-card--in .splash-card__cta { background: #b0803c; }
.splash-card--in:hover .splash-card__cta,
.splash-card--in:focus-within .splash-card__cta { background: #c6934a; }

.splash-card--ai .splash-card__cta { background: #2f56b0; }
.splash-card--ai:hover .splash-card__cta,
.splash-card--ai:focus-within .splash-card__cta { background: #3a66c8; }

/* --- Preview bài mới + sản phẩm (hiện khi hover) --- */
.splash-card__preview {
	position: relative;
	z-index: 2;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 18px 22px;
	max-height: 0;
	margin-top: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-transform: translateY(10px);
	transform: translateY(10px);
	-webkit-transition: max-height .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, margin-top .35s ease, -webkit-transform .45s cubic-bezier(.22, 1, .36, 1);
	transition: max-height .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, margin-top .35s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}

.splash-card:hover .splash-card__preview,
.splash-card:focus-within .splash-card__preview {
	max-height: 320px;
	margin-top: 26px;
	opacity: 1;
	pointer-events: auto;
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.splash-preview__group {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 160px;
	flex: 1 1 160px;
	min-width: 0;
}

.splash-preview__label {
	margin: 0 0 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .28em;
	text-indent: .28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.splash-preview__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.splash-preview__list li + li {
	margin-top: 8px;
}

.splash-preview__item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 10px;
	padding: 6px 8px 6px 6px;
	border-radius: 2px;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, .06);
	-webkit-transition: background-color .2s ease;
	transition: background-color .2s ease;
}

.splash-preview__item:hover,
.splash-preview__item:focus-visible {
	background: rgba(255, 255, 255, .14);
}

.splash-preview__thumb {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	width: 48px;
	height: 36px;
	overflow: hidden;
	border-radius: 1px;
	background: rgba(0, 0, 0, .25);
}

.splash-preview__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.splash-preview__text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .9);
}

.splash-preview__more {
	-webkit-box-flex: 1;
	-ms-flex: 1 0 100%;
	flex: 1 0 100%;
	margin-top: -4px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
}

.splash-preview__more:hover,
.splash-preview__more:focus-visible {
	color: #fff;
	text-decoration: underline;
}

@media (hover: none) {
	.splash-card__preview {
		max-height: none;
		margin-top: 22px;
		opacity: 1;
		pointer-events: auto;
		-webkit-transform: none;
		transform: none;
	}
	.splash-card {
		-webkit-transform: none !important;
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.splash-card,
	.splash-card::before,
	.splash-card__preview,
	.splash-card__cta,
	.splash-card__cta svg {
		-webkit-transition: none !important;
		transition: none !important;
	}
}

/* --- Chân trang --- */
.splash-foot {
	margin-top: 40px;
	padding: 26px 24px 34px;
	text-align: center;
	border-top: 1px solid #e2ddd5;
	position: relative;
}

.splash-foot__mark {
	position: absolute;
	top: -9px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	padding: 0 12px;
	background: #f7f5f2;
	color: #b3aa9c;
	font-size: 13px;
	line-height: 18px;
}

.splash-foot__name {
	margin: 0 0 16px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .3em;
	text-indent: .3em;
	text-transform: uppercase;
	color: #3b3630;
}

.splash-foot__contact {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #5d564d;
}

.splash-foot__contact li {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 9px;
	max-width: 100%;
	text-align: left;
}

.splash-foot__contact li + li {
	border-left: 1px solid #ded8cf;
	padding-left: 26px;
}

.splash-foot__contact a {
	color: inherit;
	text-decoration: none;
}

.splash-foot__contact a:hover { color: #b0803c; }

.splash-foot__contact svg {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	color: #a49a8b;
}

.splash-foot__copy {
	margin: 18px 0 0;
	font-size: 12px;
	color: #9a9186;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.splash-card {
		min-height: 340px;
		padding: 32px;
	}
	.splash-card__title { font-size: 38px; }
}

@media (max-width: 767px) {
	.splash-wrap { padding: 34px 18px 0; }
	.splash-brand__name { font-size: 32px; letter-spacing: .13em; }
	.splash-brand__tag { font-size: 10px; letter-spacing: .34em; text-indent: .34em; }
	.splash-lede { font-size: 14px; margin-top: 22px; }

	.splash-choices {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
	}

	.splash-card {
		min-height: 300px;
		padding: 28px;
	}
	.splash-card__title { font-size: 34px; }
	.splash-card__cta { margin-top: 24px; }
	.splash-card:hover,
	.splash-card:focus-within {
		-webkit-transform: scale(1.03);
		transform: scale(1.03);
	}
	.splash-preview__text { font-size: 12px; }

	.splash-foot__contact {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		gap: 12px;
	}
	.splash-foot__contact li + li {
		border-left: 0;
		padding-left: 0;
	}
}
