﻿/**
 * Homepage hero contract.
 * Custom two-block full-banner slider with shared foreground shell.
 */

.banner.banner-home,
.section-01-hero.banner-home {
	--hero-panel: var(--color-brand-primary);
	--hero-panel-deep: var(--color-brand-primary-deep);
	--hero-accent: var(--color-brand-accent);
	--hero-overlay: var(--color-ink-dark-alpha-42);
	--hero-left-block: 560px;
	--hero-header-height: 72px;
	--hero-mobile-height: calc(100svh - var(--hero-header-height));
	--hero-title-lines: 4;
	--hero-intro-lines: 4;
	position: relative;
	height: calc(100svh - var(--hero-header-height));
	min-height: 760px;
	max-height: none;
	margin: 0;
	padding: 0;
	color: var(--color-canvas-white);
	background: var(--hero-panel-deep);
	overflow: hidden;
	isolation: isolate;
	contain: layout paint;
	opacity: 0;
}

.banner.banner-home.is-show {
	animation: thuanhaiHeroFadeIn 1s ease forwards;
}

.banner-home .hero-split-shell {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: var(--hero-left-block) minmax(0, 1fr);
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: linear-gradient(180deg, var(--color-brand-primary-light) 0%, var(--hero-panel) 48%, var(--hero-panel-deep) 100%);
}

.banner-home .full-banner {
	position: relative;
	grid-column: 2;
	z-index: 1;
	width: 100%;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	visibility: visible;
}

.banner-home .slidebox-list,
.banner-home .slidebox-item {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.banner-home .bg-home,
.banner-home .bg-home__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.banner-home .slidebox-item {
	z-index: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1200ms ease, visibility 1200ms ease;
}

.banner-home .slidebox-item.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.banner-home .bg-home {
	margin: 0;
	overflow: hidden;
	background: var(--hero-panel-deep);
}

.banner-home .bg-home::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(90deg, var(--color-brand-primary-alpha-18) 0%, var(--color-brand-primary-alpha-08) 36%, rgba(50, 179, 14, 0) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.1));
	pointer-events: none;
}

.banner-home .bg-home__image {
	z-index: 1;
	display: block;
	object-fit: cover;
	transform: none;
	transition: none;
}

.banner-home .slidebox-item.is-active .bg-home__image {
	transform: none;
}

.banner-home .left-banner {
	position: relative;
	grid-column: 1;
	z-index: 5;
	display: flex;
	align-items: stretch;
	height: 100%;
	min-height: 100%;
	width: 100%;
	overflow: hidden;
	padding: 60px 60px 0 60px;
	background:
		linear-gradient(180deg, var(--color-brand-primary-alpha-22), var(--color-brand-primary-alpha-42)),
		linear-gradient(180deg, var(--color-brand-primary-light) 0%, var(--hero-panel) 48%, var(--hero-panel-deep) 100%);
	pointer-events: none;
}

.banner-home .left-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: min(100%, 660px);
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding-bottom: 42px;
}

.banner-home .left-banner__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-bottom: 18px;
}

.banner-home .left-banner__brand-icon {
	display: inline-flex;
	width: 68px;
	height: 68px;
	color: var(--hero-accent);
}

.banner-home .left-banner__brand-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.banner-home .left-banner__divider {
	display: block;
	width: 100%;
	height: 1px;
	margin-bottom: 22px;
	background: rgba(255, 255, 255, 0.22);
}

.banner-home .left-banner__headline-wrap {
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-top: 18px;
}

.banner-home .left-banner h2,
.banner-home .left-banner__intro,
.banner-home .left-banner .input-but {
	opacity: 0;
	transform: translate3d(0, 100px, 0);
}

.banner-home .left-banner h2 {
	margin: 0;
	color: var(--hero-lime);
	font-family: var(--font-primary);
	font-size: var(--text-display);
	font-weight: var(--weight-bold);
	line-height: 1.06;
	letter-spacing: -0.02em;
	white-space: normal;
	text-wrap: balance;
	width: 100%;
	text-align: left;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--hero-title-lines);
}

.banner-home .left-banner__intro {
  max-width: 560px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  color: rgba(255, 255, 255, 0.88);
	font-size: clamp(15px, 0.98vw, 18px);
	font-weight: var(--weight-semibold);
	line-height: 1.58;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--hero-intro-lines);
}

.banner-home .left-banner .input-but {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 200px;
	min-height: 50px;
	margin-top: 0;
	align-self: center;
	padding: 10px 14px 10px 24px;
	border-radius: 999px;
	border: 1px solid var(--color-brand-accent-alpha-80);
	color: var(--hero-accent);
	background: transparent;
	font-family: var(--font-primary);
	font-size: var(--text-button, 16px);
	font-weight: var(--weight-bold);
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	pointer-events: auto;
	transition: transform var(--motion-fast, 160ms) var(--ease-standard, ease), border-color var(--motion-fast, 160ms) var(--ease-standard, ease), background var(--motion-fast, 160ms) var(--ease-standard, ease), color var(--motion-fast, 160ms) var(--ease-standard, ease);
}

.banner-home .left-banner__cta-group {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: auto;
}

.banner-home .left-banner__divider--cta {
	margin-top: 18px;
	margin-bottom: 26px;
}

.banner-home .left-banner .input-but:hover,
.banner-home .left-banner .input-but:focus-visible {
	transform: translateY(-2px);
	border-color: var(--hero-accent);
	background: var(--color-brand-accent-alpha-12);
}

.banner-home .left-banner.ani-show h2,
.banner-home .left-banner.ani-show .left-banner__intro,
.banner-home .left-banner.ani-show .input-but {
	animation: thuanhaiHeroFadeInUp 1s ease forwards;
}

.banner-home .left-banner.ani-show h2 { animation-delay: 0.6s; }
.banner-home .left-banner.ani-show .left-banner__intro { animation-delay: 0.6s; }
.banner-home .left-banner.ani-show .input-but {
	animation-delay: 0.9s;
}

.banner-home .slidebox-arrows {
	position: absolute;
	right: clamp(22px, 2.1vw, 34px);
	bottom: clamp(22px, 2vw, 32px);
	z-index: 7;
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: auto;
}

.banner-home .slidebox-arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0 0 2px;
	border: 1.5px solid rgba(255, 255, 255, 0.68);
	border-radius: 50%;
	color: var(--color-white, #fff);
	background: transparent;
	backdrop-filter: none;
	font-family: var(--font-primary);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	contain: layout paint;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transition: border-color var(--motion-fast, 160ms) ease, transform var(--motion-fast, 160ms) ease, color var(--motion-fast, 160ms) ease, box-shadow var(--motion-fast, 160ms) ease;
	opacity: 1;
	transform: none;
}

.banner-home .slidebox-arrow::before {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--hero-lime);
	opacity: 0;
	transform: scale(0.74);
	transition: opacity var(--motion-fast, 160ms) ease, transform var(--motion-fast, 160ms) ease;
	z-index: -1;
}

.banner-home .slidebox-arrow:hover,
.banner-home .slidebox-arrow:focus-visible {
	border-color: rgba(255, 255, 255, 0.92);
	background: transparent;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.banner-home .slidebox-arrow:hover::before,
.banner-home .slidebox-arrow:focus-visible::before {
	opacity: 1;
	transform: scale(1);
}

.banner-home .slidebox-arrow--prev {
	padding-right: 1px;
}

.banner-home .slidebox-arrow--next {
	padding-left: 1px;
}

.banner-home .slidebox-arrow,
.banner-home .slidebox-arrow:visited,
.banner-home .slidebox-arrow:hover,
.banner-home .slidebox-arrow:focus-visible,
.banner-home .slidebox-arrow:active {
	color: #fff;
	-webkit-text-fill-color: #fff;
}
.banner-home.single-banner .slidebox-arrows {
	display: none;
}

.fullscreen .banner-home .full-banner {
	width: 100vw;
}

.fullscreen .banner-home .hero-split-shell {
	grid-template-columns: 0 minmax(0, 1fr);
}

.fullscreen .banner-home .left-banner {
	width: 0;
	padding-inline: 0;
	overflow: hidden;
}

.fullscreen .banner-home .slidebox-arrows {
	position: absolute;
	right: clamp(22px, 2.1vw, 34px);
	bottom: clamp(22px, 2vw, 32px);
	z-index: 7;
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: auto;
}

.fullscreen .banner-home .bg-home__image {
	height: 100vh;
}

@keyframes thuanhaiHeroFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes thuanhaiHeroFadeInUp {
	from { opacity: 0; transform: translate3d(0, 30px, 0); }
	to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 1100px) {
	.banner.banner-home,
	.section-01-hero.banner-home {
		height: var(--hero-mobile-height, calc(100svh - var(--hero-header-height)));
		min-height: 700px;
		max-height: none;
	}

	.banner-home .hero-split-shell {
		display: block;
		min-height: inherit;
	}

	.banner-home .full-banner {
		position: absolute;
		inset: 0;
	}

	.banner-home .left-banner {
		align-items: flex-end;
		width: min(720px, 100%);
		padding: clamp(92px, 11vh, 128px) var(--gutter-tablet, 32px) clamp(82px, 10vh, 110px);
		background: transparent;
	}

	.banner-home .left-banner-content {
		width: min(460px, 100%);
		height: auto;
		min-height: 0;
		max-height: 100%;
		padding-bottom: 0;
	}

	.banner-home .left-banner__brand-icon {
		width: 60px;
		height: 60px;
	}

	.banner-home .left-banner__headline-wrap {
		flex: 0 0 auto;
		justify-content: flex-start;
		padding-top: 0;
		align-items: flex-start;
	}

}

@media (max-width: 1280px) and (min-width: 1101px) {
	.banner-home .hero-split-shell {
		grid-template-columns: 470px minmax(0, 1fr);
	}

	.banner-home .left-banner {
		padding-right: 44px;
	}
}

@media (max-width: 767px) {
	:root {
		--bvyhct-header-height: 58px;
	}

	.header.site-header--thuanhai {
		min-height: 58px;
		padding-inline: 10px;
	}

	.header.site-header--thuanhai .logo {
		min-height: 58px;
		gap: 8px;
		max-width: calc(100% - 42px);
	}

	.header.site-header--thuanhai .logo__image {
		max-width: 112px;
		max-height: 40px;
	}

	.header.site-header--thuanhai .logo__identity {
		display: grid;
		max-width: min(56vw, 200px);
		max-height: 38px;
		opacity: 1;
		transform: none;
	}

	.header.site-header--thuanhai .logo__name {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 11px;
		line-height: 1.1;
		white-space: normal;
	}

	.header.site-header--thuanhai .right-header {
		height: 40px;
		margin-left: auto;
	}

	.header.site-header--thuanhai .nav-click {
		width: 24px;
		min-width: 24px;
		height: 24px;
	}

	.header.site-header--thuanhai .navigation {
		position: fixed;
		inset: 0;
		width: 100vw;
		height: 100dvh;
		min-height: 100dvh;
		max-height: none;
		overflow-y: auto;
	}

	.header.site-header--thuanhai .navigation__panel {
		min-height: 100dvh;
		padding-top: max(82px, calc(var(--bvyhct-header-height, 58px) + 24px));
	}

	body.is-header-overlay-open .floating-utility,
	body.is-header-overlay-open .bvyhct-chat-widget,
	body.is-header-overlay-open .chat-widget,
	body.is-header-overlay-open [data-chat-widget] {
		opacity: 0;
		pointer-events: none;
	}

	.banner.banner-home,
	.section-01-hero.banner-home {
		height: var(--hero-mobile-height, calc(100svh - var(--hero-header-height)));
		min-height: 640px;
		max-height: none;
		--hero-title-lines: 3;
		--hero-intro-lines: 3;
	}

	.banner-home .bg-home::after {
		background:
			linear-gradient(180deg, rgba(9, 42, 16, 0.82) 0%, rgba(18, 78, 17, 0.62) 50%, rgba(0, 0, 0, 0.5) 100%);
	}

	.banner-home .left-banner {
		align-items: center;
		justify-content: center;
		padding: 88px var(--gutter-mobile, 20px) 116px;
		text-align: center;
	}

	.banner-home .left-banner-content {
		width: 100%;
		align-items: center;
		justify-content: center;
	}

	.banner-home .left-banner h2 {
	margin: 0;
	color: var(--hero-lime);
	font-family: var(--font-primary);
	font-size: var(--text-display);
	font-weight: var(--weight-bold);
	line-height: 1.06;
	letter-spacing: -0.02em;
		white-space: normal;
		text-wrap: balance;
		width: 100%;
		text-align: center;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: var(--hero-title-lines);
	}

	.banner-home .left-banner__brand-icon {
		width: 54px;
		height: 54px;
	}

	.banner-home .left-banner__brand {
		margin-bottom: 20px;
	}

	.banner-home .left-banner__divider {
		margin-bottom: 20px;
	}

	.banner-home .left-banner__headline-wrap {
		justify-content: center;
		text-align: center;
	}

	.banner-home .left-banner__intro {
	max-width: 500px;
	margin: clamp(18px, 2vw, 26px) auto 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(15px, 0.98vw, 18px);
	font-weight: var(--weight-semibold);
	line-height: 1.58;
	text-align: center;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--hero-intro-lines);
}

	.banner-home .left-banner .input-but {
		width: auto;
		min-width: min(260px, 100%);
		align-self: center;
	}

	.banner-home .left-banner__cta-group {
		align-items: center;
		margin-top: 0;
	}

	.banner-home .left-banner__divider--cta {
		margin-top: 26px;
		margin-bottom: 20px;
	}

	.banner-home .slidebox-arrows {
		position: absolute;
		left: 50%;
		right: auto;
		bottom: clamp(28px, 6vw, 46px);
		z-index: 7;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		pointer-events: auto;
		transform: translateX(-50%);
	}

	.banner-home .slidebox-arrow {
		width: 48px;
		height: 48px;
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.banner.banner-home,
	.banner-home .slidebox-item,
	.banner-home .bg-home__image,
	.banner-home .left-banner.ani-show h2,
	.banner-home .left-banner.ani-show .left-banner__intro,
	.banner-home .left-banner.ani-show .input-but {
		animation: none !important;
		transition: none !important;
	}

	.banner.banner-home,
	.banner-home .left-banner h2,
	.banner-home .left-banner__intro,
	.banner-home .left-banner .input-but {
		opacity: 1 !important;
		transform: none !important;
	}
}


.banner-home .slidebox-arrow--prev {
	padding-right: 1px;
}

.banner-home .slidebox-arrow--next {
	padding-left: 1px;
}









