/*
Theme Name: BanWeb.vn
Theme URI: https://banweb.vn/
Description: Kho web mẫu – khách xem demo chạy thật trong khung máy tính / máy tính bảng / điện thoại, chọn mẫu, đặt gói online (VietQR, đặt cọc) hoặc để lại số tư vấn. Phong cách "sáng chuyên nghiệp": nền trắng – xanh nhạt, nhấn xanh dương #2454FF, khung trình duyệt.
Author: LTV
Author URI: https://letuanvu.com/
Version: 1.0.0
Requires PHP: 7.4
Text Domain: banweb
*/

:root {
	--bg: #FFFFFF;
	--soft: #F4F7FF;
	--soft-2: #EAF0FF;
	--line: #E2E8F5;
	--line-2: #CBD5EA;
	--ink: #0F1A33;
	--ink-2: #26324F;
	--muted: #56607A;
	--blue: #2454FF;
	--blue-d: #1638C9;
	--blue-t: #E8EEFF;
	--ok: #0E9F5C;
	--warn: #C2410C;
	--zalo: #0068FF;
	--r: 10px;
	--r-sm: 8px;
	--shadow: 0 1px 2px rgba(15, 26, 51, .06), 0 8px 24px -10px rgba(15, 26, 51, .14);
	--shadow-lg: 0 2px 4px rgba(15, 26, 51, .06), 0 24px 60px -20px rgba(15, 26, 51, .28);
	--f-head: "Manrope", system-ui, sans-serif;
	--f-body: "Be Vietnam Pro", system-ui, sans-serif;
	--wrap: 1240px;
	--hh: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 30px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.18; }
h2 { font-size: clamp(24px, 2.8vw, 36px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.kicker { font: 700 13px/1.4 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 10px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }

/* ---------- Nút ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px;
	border: 1.5px solid transparent; border-radius: var(--r-sm);
	font: 700 15px/1.2 var(--f-head); letter-spacing: -.005em;
	cursor: pointer; text-align: center; white-space: nowrap;
	transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(36, 84, 255, .7); }
.btn--blue:hover { background: var(--blue-d); color: #fff; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--blue); color: var(--blue); }
.btn--soft { background: var(--soft); color: var(--ink-2); border-color: var(--line); }
.btn--soft:hover { background: var(--blue-t); color: var(--blue-d); }
.btn--white { background: #fff; color: var(--blue-d); }
.btn--white:hover { background: var(--blue-t); color: var(--blue-d); }
.btn--ghost-w { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-w:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--f-head); }
.link-arrow .ic { transition: transform .18s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { display: inline-grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); gap: 3px; }
.logo__mark i { display: block; border-radius: 2px; background: var(--blue); }
.logo__mark i:nth-child(1) { grid-column: 1 / 3; }
.logo__mark i:nth-child(3) { background: #9DB2FF; }
.logo__text { font: 800 22px/1 var(--f-head); letter-spacing: -.03em; }
.logo__text b { color: var(--blue); font-weight: 800; }
.logo__text small { font-size: 15px; color: var(--muted); font-weight: 700; margin-left: 1px; }
.custom-logo { max-height: 44px; width: auto; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; align-items: center; gap: 28px; height: var(--hh); }
.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: 8px 12px; border-radius: 6px;
	font: 600 15px/1.2 var(--f-head); color: var(--ink-2); white-space: nowrap;
}
.nav__list a:hover { background: var(--soft); color: var(--blue); }
.nav__list .current-menu-item > a, .nav__list .current_page_parent > a, .nav__list .current-menu-ancestor > a { color: var(--blue); background: var(--blue-t); }
.nav__mobile-extra { display: none; }
.tools { display: flex; align-items: center; gap: 6px; }
.tools__phone { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; font: 700 15px var(--f-head); color: var(--ink); white-space: nowrap; }
.tools__phone .ic { color: var(--blue); }
.tools__ic { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); }
.tools__ic:hover { background: var(--soft); color: var(--blue); }
.cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--blue); color: #fff; font: 700 11px/18px var(--f-head); text-align: center;
	box-shadow: 0 0 0 2px #fff;
}
.tools__cta { margin-left: 6px; }
.tools__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; place-items: center; cursor: pointer; color: var(--ink); }
.nav-overlay { position: fixed; inset: 0; background: rgba(15, 26, 51, .45); z-index: 55; }

@media (max-width: 1240px) {
	.site-header__in { gap: 16px; }
	.nav__list a { padding: 8px 9px; font-size: 14.5px; }
	.tools__phone span { display: none; }
}
@media (max-width: 1100px) {
	.tools__cta { display: none; }
}
@media (max-width: 960px) {
	:root { --hh: 64px; }
	.tools__burger { display: inline-grid; }
	.tools__phone { display: none; }
	.nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
		width: min(340px, 86vw); padding: 84px 20px 24px;
		background: #fff; box-shadow: var(--shadow-lg);
		transform: translateX(105%); transition: transform .25s ease;
		overflow-y: auto; visibility: hidden;
	}
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open .site-header { z-index: 80; }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { padding: 13px 12px; font-size: 17px; }
	.nav__mobile-extra { display: grid; gap: 10px; margin-top: 22px; }
	.tools__burger { position: relative; z-index: 75; }
	.site-header__in { justify-content: space-between; }
	.tools { margin-left: auto; }
}

/* ---------- Khung trình duyệt (dấu ấn) ---------- */
.browser { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: #F7F9FD; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DCEA; flex-shrink: 0; }
.browser__bar i:first-child { background: #FF8A80; }
.browser__bar i:nth-child(2) { background: #FFD27A; }
.browser__bar i:nth-child(3) { background: #7CDB9A; }
.browser__bar span {
	flex: 1; min-width: 0; margin-left: 8px; padding: 2px 10px;
	background: #fff; border: 1px solid var(--line); border-radius: 5px;
	font: 500 11.5px/1.4 var(--f-body); color: var(--muted);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__view { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.scrollshot { transition: object-position 5s ease-in-out; }
.tpl-card:hover .scrollshot, .browser__view:focus .scrollshot, .browser__view:hover .scrollshot { object-position: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .scrollshot { transition: none; } }

/* ---------- Thông báo ---------- */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; margin: 0 0 14px; }
.notice .ic { flex-shrink: 0; margin-top: 2px; }
.notice--ok { background: #E7F8EF; color: #075E37; }
.notice--err { background: #FFF1EB; color: #9A3412; }

/* ---------- Dải CTA ---------- */
.cta-band { background: var(--blue); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; max-width: 620px; }
.cta-band p { color: #DDE5FF; margin: 0; max-width: 620px; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
@media (max-width: 960px) {
	.cta-band__in { flex-direction: column; align-items: flex-start; }
}

/* ---------- Chân trang ---------- */
.site-footer { background: var(--ink); color: #B7C0D6; padding: 64px 0 0; font-size: 15px; }
.site-footer a { color: #DCE3F3; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo__text small { color: #8A95B0; }
.site-footer .logo__text b { color: #7F9BFF; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand p { margin: 16px 0; max-width: 360px; }
.site-footer__h { font: 700 14px var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 4px 0 16px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.contact-lines li { display: flex; gap: 10px; align-items: center; }
.contact-lines .ic { color: #7F9BFF; flex-shrink: 0; }
.site-footer__pay p { display: flex; gap: 8px; align-items: flex-start; }
.site-footer__pay .ic { color: #7F9BFF; flex-shrink: 0; margin-top: 3px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8A95B0; }
@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.site-footer { padding-bottom: 70px; }
}

/* ---------- Nút liên hệ nổi ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 10px; }
.fab__btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; box-shadow: 0 8px 22px -8px rgba(15, 26, 51, .55); transition: transform .18s; }
.fab__btn:hover { transform: translateY(-2px); color: #fff; }
.fab__btn--zalo { background: var(--zalo); font: 800 13px var(--f-head); }
.fab__btn--call { background: var(--ok); }
.demo-body .fab { display: none; }

/* ---------- Ô nhập chung ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px;
	background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
	font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 84, 255, .15); outline: none; }
label { font: 600 14px/1.4 var(--f-head); color: var(--ink-2); }
