/**
 * Menu + Home slider — ported from dongfengansuong.vn (thuythu-child frontend.css)
 * Desktop / tablet / mobile. Brand accent via --primary-color (#14c131).
 *
 * Source proportions:
 * - Header: glass over hero, solid when stuck/scrolled
 * - Banner: 48.75rem desktop · 400px tablet · aspect 1920/937 mobile
 * - Pagination: horizontal bars (not round dots)
 */

/* ═══════════════════════════════════════════
   HEADER / MENU geometry (sitewide)
   Colors: home glass/white → scrolled dark ink = fc-home-header
           all other pages porcelain dark ink = fc-site-header
═══════════════════════════════════════════ */
#wrapper #header {
	position: fixed;
	z-index: 9999;
	top: 0;
	width: 100%;
}
#wrapper #header .container {
	padding-right: 5.625rem;
	padding-left: 3.75rem;
}
#wrapper #header #logo {
	width: 20.833rem !important;
	max-width: 42%;
}
#wrapper #header #logo img {
	max-height: 3.2rem;
	width: auto;
	height: auto;
	object-fit: contain;
}
#wrapper #header #masthead.header-main {
	height: auto !important;
}

/* Contact row layout — top right (colors via dual header CSS) */
#wrapper #header .contact-header,
.contact-header {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	padding-top: 0.9375rem;
	padding-bottom: 0.625rem;
	transition: all 0.4s ease-in-out;
	flex-wrap: wrap;
	gap: 0;
}
#wrapper #header .contact-header .item,
.contact-header .item {
	margin-left: 3.125rem;
	display: flex;
	align-items: center;
}
#wrapper #header .contact-header .item:first-child,
.contact-header .item:first-child {
	margin-left: 0;
}
#wrapper #header .contact-header .item img,
.contact-header .item img {
	width: 0.9375rem;
	min-width: 0.9375rem;
	height: 0.9375rem;
	margin-right: 0.3125rem;
}
#wrapper #header .contact-header .item p,
.contact-header .item p {
	margin-bottom: 0;
	font-size: 0.729rem;
	font-weight: 400;
	line-height: 1.042rem;
}
#wrapper #header .contact-header .item a,
#wrapper #header .contact-header a.fc-contact-item,
.contact-header .item a {
	letter-spacing: 0.11em;
	text-decoration: none !important;
	font-size: 0.729rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}
#wrapper #header .contact-header .fc-contact-label {
	opacity: 0.75;
	font-weight: 400;
	letter-spacing: 0.04em;
}
#wrapper #header .contact-header .fc-contact-value {
	font-weight: 600;
	letter-spacing: 0.06em;
}
#wrapper #header .contact-header .fc-ico,
#wrapper #header .contact-header svg {
	width: 0.9375rem;
	height: 0.9375rem;
	flex-shrink: 0;
}
#wrapper #header .contact-header svg path,
#wrapper #header .contact-header svg [stroke] {
	stroke: currentColor !important;
}
#wrapper #header .contact-header svg [fill]:not([fill="none"]) {
	fill: currentColor !important;
}

/* Primary nav layout */
#wrapper #header .header-nav-main > li {
	margin-right: 0;
}
#wrapper #header .header-nav-main > li + li {
	margin-left: 2.8125rem;
}
#wrapper #header .header-nav-main > li > a {
	font-size: 0.78125rem !important;
	font-weight: 700 !important;
	line-height: 1.302rem !important;
	padding: 0.625rem 0 !important;
	display: flex;
	align-items: center;
	position: relative;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: color 0.25s ease;
	background: transparent !important;
}
#wrapper #header .header-nav-main > li > a span {
	color: inherit !important;
	-webkit-text-fill-color: inherit !important;
}
#wrapper #header .header-nav-main > li > a:before {
	bottom: -1px;
	left: 50%;
	transform: translateX(-50%);
	position: absolute;
	content: "";
	width: 0;
	height: 2px;
	transition: all 0.4s ease-in-out;
	background: var(--primary-color, #14c131);
	opacity: 1 !important;
}
#wrapper #header .header-nav-main > li > a:hover:before,
#wrapper #header .header-nav-main > li.current-menu-item > a:before,
#wrapper #header .header-nav-main > li.current_page_item > a:before,
#wrapper #header .header-nav-main > li.active > a:before {
	width: 100%;
}
#wrapper #header .header-nav-main > li > a:hover path,
#wrapper #header .header-nav-main > li.current-menu-item > a path {
	fill: var(--primary-color, #14c131);
}

/* Submenu (origin spacing) */
#wrapper #header .header-nav-main li > ul.sub-menu {
	padding: 0 0.625rem;
}
#wrapper #header .header-nav-main li > ul.sub-menu > li > a {
	margin: 0;
	text-transform: uppercase;
	font-size: 0.78125rem;
	font-weight: 700;
	line-height: 1.302rem;
}

/* Geometry: do not shrink font/logo on scroll (anti-jank; size lock owns this) */

/* HOME only fallback glass colors (fc-home-header wins at priority 1000) */
body.home #wrapper #header .header-bg-color,
body.home #wrapper #header .header-bg-color.fill {
	background: rgba(0, 0, 0, 0.1) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
	box-shadow: none !important;
}
body.home #wrapper #header .header-nav-main > li > a {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
body.home #wrapper #header .contact-header .item a,
body.home #wrapper #header .contact-header a.fc-contact-item {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
body.home #wrapper #header .nav-icon > a,
body.home #wrapper #header .icon-menu,
body.home #wrapper #header .icon-menu:before {
	color: #fff !important;
}

/* ═══════════════════════════════════════════
   HOME SLIDER (origin .home_banner)
═══════════════════════════════════════════ */
body.home .home_1,
body.page-template-home .home_1,
body.page-template-templateshome-php .home_1 {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #0a0a0a;
}
body.home .home_banner,
body.page-template-home .home_banner,
body.page-template-templateshome-php .home_banner,
body.home .home_1 .home_banner.swiper-gl,
body.home .home_1 .swiper-gl {
	height: 48.75rem !important;
	max-height: 100vh;
	min-height: 28rem !important;
	width: 100%;
	margin: 0 !important;
	position: relative;
	overflow: hidden;
}
body.home .home_banner .swiper-slide {
	height: 100%;
	position: relative;
	overflow: hidden;
}
/* Source textures for SwiperGL (hidden once canvas is active) */
body.home .home_banner .swiper-gl-image,
body.home .home_banner img.swiper-gl-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	left: 0;
	top: 0;
	display: block;
}
/* Origin: when GL is on, hide img and show WebGL canvas (water wave) */
body.home .home_banner.swiper-gl .swiper-gl-image,
body.home .home_banner.swiper-gl img.swiper-gl-image {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
body.home .home_banner.swiper-gl > canvas,
body.home .home_banner.swiper-gl canvas {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: block !important;
	z-index: 1;
	object-fit: cover;
}
/* Fade fallback: keep images visible */
body.home .home_banner.fc-banner-gl-fallback .swiper-gl-image,
body.home .home_banner:not(.swiper-gl) .swiper-gl-image {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
}

/* Origin pagination = bars (support both class names) */
body.home .home_banner .swiper-pagination,
body.home .home_banner .swiper_pagination {
	position: absolute !important;
	right: 13.229rem !important;
	left: auto !important;
	bottom: 3.333rem !important;
	top: auto !important;
	display: flex !important;
	justify-content: flex-end;
	align-items: center;
	width: auto !important;
	z-index: 9;
	transform: none !important;
	gap: 0;
}
body.home .home_banner .swiper-pagination-bullet,
body.home .home_banner .swiper_pagination > .swiper-pagination-bullet {
	width: 2.1875rem !important;
	height: 3px !important;
	margin: 0 0 0 0.3125rem !important;
	background: #fff !important;
	opacity: 0.3 !important;
	border-radius: 0 !important;
	cursor: pointer;
	transition: all 0.4s ease-in-out;
}
body.home .home_banner .swiper-pagination-bullet-active,
body.home .home_banner .swiper_pagination > .swiper-pagination-bullet.swiper-pagination-bullet-active {
	width: 3.958rem !important;
	opacity: 1 !important;
	background: #fff !important;
}

/* Soft bottom veil for pagination (does not cover whole slide / kill GL) */
body.home .home_1 .home_banner:after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 22%;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 100%);
}

/* ═══════════════════════════════════════════
   TABLET ≤ 1199px (origin ~1152 block)
═══════════════════════════════════════════ */
@media (max-width: 1199px) {
	#wrapper #header .container {
		padding-right: 1.25rem;
		padding-left: 1.25rem;
	}
	#wrapper #header #logo {
		width: 12.5rem !important;
	}
	#wrapper #header .contact-header .item,
	#wrapper #header .header-nav-main > li + li {
		margin-left: 1.25rem;
	}
	body.home .home_banner,
	body.page-template-home .home_banner,
	body.home .home_1 .home_banner.swiper-gl,
	body.home .home_1 .swiper-gl {
		height: 400px !important;
		min-height: 400px !important;
		max-height: none !important;
	}
	body.home .home_banner .swiper-pagination,
	body.home .home_banner .swiper_pagination {
		right: 50% !important;
		transform: translateX(50%) !important;
		justify-content: center;
		bottom: 20px !important;
	}
	body.home .home_banner .swiper-pagination-bullet,
	body.home .home_banner .swiper_pagination > .swiper-pagination-bullet {
		width: 24px !important;
	}
	body.home .home_banner .swiper-pagination-bullet-active,
	body.home .home_banner .swiper_pagination > .swiper-pagination-bullet.swiper-pagination-bullet-active {
		width: 40px !important;
	}
}

/* ═══════════════════════════════════════════
   MOBILE ≤ 849px (origin)
═══════════════════════════════════════════ */
@media (max-width: 849px) {
	#wrapper #header .container {
		padding-right: 1rem;
		padding-left: 1rem;
	}
	#wrapper #header #logo {
		width: 10rem !important;
	}
	#wrapper #header #logo img {
		max-height: 2.4rem;
	}
	/* Contact chips hide or compact on small phones — keep if present */
	#wrapper #header .contact-header {
		display: none !important;
	}
	#wrapper #header .header-nav-main {
		display: none;
	}
	/* Home mobile: slightly denser glass; scrolled → porcelain (matches desktop dual) */
	body.home #wrapper #header .header-bg-color,
	body.home #wrapper #header .header-bg-color.fill {
		background: rgba(0, 0, 0, 0.35) !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
	}
	body.home #wrapper #header.fc-header-scrolled .header-bg-color,
	body.home #wrapper #header .header-wrapper.stuck .header-bg-color {
		background: rgba(255, 255, 255, 0.96) !important;
		border-bottom-color: rgba(35, 52, 44, 0.09) !important;
	}

	body.home .home_banner,
	body.page-template-home .home_banner,
	body.home .home_1 .home_banner.swiper-gl,
	body.home .home_1 .swiper-gl {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: 1920 / 937;
	}
	body.home .home_banner .swiper-pagination,
	body.home .home_banner .swiper_pagination {
		right: 50% !important;
		left: auto !important;
		transform: translateX(50%) !important;
		bottom: 14px !important;
		justify-content: center;
	}
	body.home .home_banner .swiper-pagination-bullet,
	body.home .home_banner .swiper_pagination > .swiper-pagination-bullet {
		width: 18px !important;
		height: 2px !important;
	}
	body.home .home_banner .swiper-pagination-bullet-active {
		width: 32px !important;
	}
}

/* Small phones — keep origin aspect, room for mobile hero if used */
@media (max-width: 549px) {
	#wrapper #header #logo {
		width: 8.5rem !important;
	}
	body.home .home_banner,
	body.home .home_1 .home_banner.swiper-gl {
		aspect-ratio: 16 / 10;
	}
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	#wrapper #header .header-nav-main > li > a,
	#wrapper #header .header-nav-main > li > a:before,
	body.home .home_banner .swiper-pagination-bullet {
		transition: none !important;
	}
}
