/*
 * Khung trang: đầu trang dính, menu điện thoại (sheet bên phải), chân trang, thanh nổi Gọi · Zalo · Tư vấn.
 * Không nạp trên /xem/ (trang demo toàn màn hình).
 */

/* ---------- Đầu trang ---------- */

.vs-hdr {
	position: sticky;
	top: 0;
	z-index: 800;
	border-bottom: 1px solid var(--vs-line);
	background: #fff;
	transition: box-shadow .2s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.vs-hdr { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
.vs-hdr.is-scrolled { box-shadow: 0 4px 18px rgba(11, 26, 51, .07); }

/* Thanh quản trị WordPress: dính dưới nó; dưới 600px thanh quản trị không dính nên về 0. */
.admin-bar .vs-hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .vs-hdr { top: 46px; } }
@media (max-width: 600px) { .admin-bar .vs-hdr { top: 0; } }

.vs-hdr__in { display: flex; align-items: center; gap: 12px; min-height: var(--vs-hdr-h); }

.vs-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 44px;
	margin-right: auto;
	color: var(--vs-deep);
	text-decoration: none;
}
.vs-logo:hover { color: var(--vs-deep); }
.vs-logo__mark { flex: none; width: 36px; height: 36px; }
.vs-logo__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.vs-logo__txt b { font-size: 1.0625rem; color: var(--vs-deep); white-space: nowrap; }
.vs-logo__txt small { font-size: .75rem; color: var(--vs-muted); white-space: nowrap; }
.vs-logo__sep { display: none; }

@media (min-width: 768px) {
	.vs-logo__mark { width: 40px; height: 40px; }
	.vs-logo__txt b { font-size: 1.125rem; }
	.vs-logo__txt small { font-size: .8125rem; }
}
@media (min-width: 1140px) {
	.vs-logo__txt { flex-direction: row; align-items: baseline; }
	.vs-logo__sep { display: inline; color: var(--vs-muted); white-space: pre; }
	.vs-logo__txt small { font-size: 1rem; font-weight: 400; color: var(--vs-ink-2); }
}

.vs-nav { display: none; }

.vs-hdr__act { display: flex; flex: none; align-items: center; gap: 8px; }
.vs-hdr__zalo { display: none; }
.vs-hdr__zalo .vs-icon { color: var(--vs-zalo); }
.vs-hdr__more { display: none; }

.vs-menu-btn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	margin-right: -6px;
	border: 0;
	border-radius: var(--vs-radius-sm);
	background: transparent;
	color: var(--vs-ink);
	-webkit-tap-highlight-color: transparent;
}
.vs-menu-btn:hover { background: var(--vs-soft); color: var(--vs-deep); }

@media (min-width: 420px) {
	.vs-hdr__more { display: inline; }
}
@media (min-width: 600px) {
	.vs-hdr__zalo { display: inline-flex; }
}
@media (min-width: 960px) {
	.vs-nav { display: block; margin-right: 8px; }
	.vs-nav__list { display: flex; gap: 2px; }
	.vs-nav__a {
		position: relative;
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 8px 14px;
		border-radius: var(--vs-radius-sm);
		color: var(--vs-ink);
		font-weight: 600;
		text-decoration: none;
	}
	.vs-nav__a:hover { background: var(--vs-soft); color: var(--vs-deep); }
	.vs-nav__a[aria-current] { color: var(--vs-primary); }
	.vs-nav__a[aria-current]::after {
		content: "";
		position: absolute;
		left: 14px; right: 14px; bottom: 4px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
	}
	.vs-menu-btn { display: none; }
}

/* ---------- Menu điện thoại ---------- */

.vs-menu__nav ul { display: grid; gap: 2px; margin: 4px -8px 20px; padding: 0; list-style: none; }
.vs-menu__a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--vs-ink);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
}
.vs-menu__a:hover { background: var(--vs-soft); color: var(--vs-deep); }
.vs-menu__a > .vs-icon:first-child { color: var(--vs-primary); }
.vs-menu__a > span { flex: 1; }
.vs-menu__chev { color: var(--vs-muted); }
.vs-menu__a[aria-current] { background: var(--vs-soft); color: var(--vs-deep); }
.vs-menu__a--sub { min-height: 48px; font-size: .9375rem; font-weight: 400; color: var(--vs-ink-2); }
.vs-menu__a--sub > .vs-icon:first-child { color: var(--vs-muted); }
.vs-menu__contact { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--vs-line); }
.vs-menu__hint { font-size: .9375rem; color: var(--vs-muted); }

@media (min-width: 960px) {
	.vs-menu { display: none !important; }
}

/* ---------- Chân trang ---------- */

.vs-ftr {
	--vs-focus: var(--vs-accent);
	padding: 48px 0 24px;
	background: var(--vs-deeper);
	color: #C5D3E8;
	font-size: .9375rem;
}
.vs-ftr a { color: #fff; text-decoration: none; }
.vs-ftr a:hover { color: #fff; text-decoration: underline; }
.vs-ftr__top { display: grid; gap: 32px; }
@media (min-width: 768px) {
	.vs-ftr { padding-top: 64px; }
	.vs-ftr__top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
}

.vs-ftr__logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-bottom: 14px; }
.vs-ftr__logo:hover { text-decoration: none !important; }
.vs-ftr__logo img { width: 40px; height: 40px; }
.vs-ftr__logo span { display: flex; flex-direction: column; line-height: 1.25; }
.vs-ftr__logo b { font-size: 1.125rem; color: #fff; }
.vs-ftr__logo small { font-size: .8125rem; color: #C5D3E8; }
.vs-ftr__brand p { max-width: 44ch; }

.vs-ftr__h { margin-bottom: 10px; color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vs-ftr__col ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.vs-ftr__col a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; }
.vs-ftr__col a[aria-current] { text-decoration: underline; text-underline-offset: .25em; }
.vs-ftr__contact .vs-icon { color: #8DB8F2; }

.vs-ftr__legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; line-height: 1.55; }
.vs-ftr__co { margin-bottom: 10px; color: #fff; font-weight: 700; font-size: .9375rem; }
.vs-ftr__dl { display: grid; gap: 6px; }
@media (min-width: 768px) {
	.vs-ftr__dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
}
.vs-ftr__dl > div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.vs-ftr__dl dt { color: #A9BBD6; }
.vs-ftr__dl dt::after { content: ":"; }
.vs-ftr__dl dd { color: #E3EAF5; }
.vs-ftr__dl a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }

.vs-ftr__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
	margin-top: 24px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: .875rem;
}
.vs-ftr__bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Thanh nổi điện thoại ---------- */

.vs-dock {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 700;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--vs-line);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -6px 20px rgba(11, 26, 51, .08);
	transition: transform .2s var(--vs-ease);
}
.vs-dock__a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 6px 8px;
	border-radius: 12px;
	color: #fff;
	font-weight: 700;
	font-size: .9375rem;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.vs-dock__a:hover, .vs-dock__a:active { color: #fff; filter: brightness(.92); }
.vs-dock__a--call { background: var(--vs-call); }
.vs-dock__a--zalo { background: var(--vs-zalo); }
.vs-dock__a--cta { background: var(--vs-deep); }

/* Bàn phím ảo đang mở (đang gõ form): ẩn thanh nổi cho khỏi che ô nhập. */
html.vs-typing .vs-dock { transform: translateY(110%); }

@media (max-width: 959.98px) {
	body.vs-has-chrome { padding-bottom: calc(var(--vs-dock-h) + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) {
	.vs-dock { display: none; }
}
