/* ============================================================
   VietCyber Bar — assets/css/style.css
   Theme thuan: Flexbox/Grid, khong framework CSS nang.
   Tong mau: den/xam dam + vang dong + do ruou vang.
   ============================================================ */
:root {
	--bg: #0b0a08;
	--bg-2: #141210;
	--ink: #f3ede2;
	--muted: rgba(243, 237, 226, 0.66);
	--gold: #d9a441;
	--gold-soft: #e8c37a;
	--wine: #7b1e26;
	--line: rgba(217, 164, 65, 0.22);
	--card: #171411;
	--radius: 14px;
	--font-head: "Playfair Display", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body.vcbar {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.7;
	overflow-x: hidden;
	transition: background-color 0.6s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }

.eyebrow {
	font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
	color: var(--gold); font-weight: 500; margin-bottom: 14px;
}
.section-title {
	font-family: var(--font-head); font-weight: 700;
	font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12;
	margin-bottom: 22px; text-wrap: balance;
}
/* Mask cho text-reveal: JS tach [data-split] thanh .line > .line-inner.
   Trang thai an (translateY) do JS thiet lap — khong CSS san de
   khong-JS van doc duoc chu. */
[data-split] .line { display: inline-block; overflow: hidden; vertical-align: bottom; }
[data-split] .line-inner { display: inline-block; will-change: transform; }

/* ---------- Nut ---------- */
.vcbar-btn {
	display: inline-block; padding: 14px 30px; border-radius: 999px;
	font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.vcbar-btn--gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #1a1206; box-shadow: 0 8px 32px rgba(217, 164, 65, 0.28); }
.vcbar-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(217, 164, 65, 0.42); }
.vcbar-btn--ghost { border-color: var(--line); color: var(--ink); }
.vcbar-btn--ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.vcbar-btn--sm { padding: 10px 22px; font-size: 14px; }

/* ---------- Navbar thong minh ---------- */
.vcbar-nav {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
	border-bottom: 1px solid transparent;
}
.vcbar-nav__inner {
	width: min(1280px, 94vw); margin: 0 auto;
	display: flex; align-items: center; gap: 28px; padding: 18px 0;
	transition: padding 0.45s ease;
}
.vcbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.vcbar-brand__mark {
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--font-head); font-weight: 900; font-size: 20px;
	color: #1a1206; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
	transition: box-shadow 0.45s ease;
}
.vcbar-brand__text { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: 0.12em; }
.vcbar-brand__text em { font-style: italic; color: var(--gold); font-size: 16px; letter-spacing: 0; }
.vcbar-nav__list { display: flex; gap: 26px; list-style: none; }
.vcbar-nav__list a { text-decoration: none; font-size: 14.5px; font-weight: 400; color: var(--muted); transition: color 0.3s ease; }
.vcbar-nav__list a:hover { color: var(--gold-soft); }
.vcbar-nav__toggle { display: none; background: none; border: 0; cursor: pointer; }
.vcbar-nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.3s ease; }
/* Trang thai dac dan sau khi cuon qua hero */
.vcbar-nav.is-solid { background: rgba(11, 10, 8, 0.88); backdrop-filter: blur(14px); border-color: var(--line); }
.vcbar-nav.is-solid .vcbar-nav__inner { padding: 12px 0; }
.vcbar-nav.is-solid .vcbar-brand__mark { box-shadow: 0 0 18px rgba(217, 164, 65, 0.55); }
/* An khi cuon xuong, hien khi cuon len */
.vcbar-nav.is-hidden { transform: translateY(-110%); }

/* ---------- 1. Hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero__bg {
	position: absolute; inset: -12% 0; z-index: 0;
	background-size: cover; background-position: center;
	filter: brightness(0.5) saturate(1.1);
	will-change: transform, filter;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,10,8,0.55), rgba(11,10,8,0.25) 40%, var(--bg) 96%); }
.hero__smoke {
	position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.7;
	background:
		radial-gradient(42% 34% at 18% 68%, rgba(123, 30, 38, 0.5), transparent 70%),
		radial-gradient(38% 32% at 84% 30%, rgba(217, 164, 65, 0.28), transparent 70%),
		radial-gradient(60% 40% at 55% 85%, rgba(217, 164, 65, 0.12), transparent 70%);
	filter: blur(10px); will-change: transform, opacity;
}
.hero__inner { position: relative; z-index: 2; width: min(1160px, 92vw); margin: 0 auto; text-align: center; }
.hero__eyebrow, .hero__eyebrow { color: var(--gold); }
.hero__eyebrow { font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; margin-bottom: 18px; }
.hero__title {
	font-family: var(--font-head); font-weight: 900;
	font-size: clamp(72px, 16vw, 210px); line-height: 0.95; letter-spacing: 0.04em;
	text-shadow: 0 0 60px rgba(217, 164, 65, 0.35);
	will-change: transform, opacity;
}
.hero__tagline { margin: 22px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__glass { position: absolute; z-index: 2; right: 6vw; bottom: 12vh; width: clamp(70px, 9vw, 130px); opacity: 0.9; filter: drop-shadow(0 0 24px rgba(217,164,65,0.45)); will-change: transform; }
.hero__scrollhint { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero__scrollhint::after { content: ""; display: block; width: 1px; height: 44px; margin: 10px auto 0; background: linear-gradient(var(--gold), transparent); animation: hintDrop 2s ease-in-out infinite; }
@keyframes hintDrop { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- 2. About ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,0.55); background: linear-gradient(135deg, #241a10, #3a1520); }
.about__text p + p { margin-top: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat__num { display: block; font-family: var(--font-head); font-size: clamp(26px, 3vw, 38px); color: var(--gold-soft); }
.stat__label { font-size: 13px; color: var(--muted); }

/* ---------- 3. Menu (pinned) ---------- */
.menu { background: var(--bg-2); overflow: hidden; }
.menu-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(72px, 9vw, 110px) 0; position: relative; }
.menu-stage { position: relative; width: min(1160px, 92vw); margin: 30px auto 0; min-height: 460px; }
.menu-glow {
	position: absolute; inset: -60px -10vw; z-index: 0; pointer-events: none;
	background: radial-gradient(46% 60% at 50% 45%, var(--glow, #c97b2d), transparent 70%);
	opacity: 0.32; filter: blur(30px); transition: background 0.6s ease;
}
.menu-card {
	position: absolute; inset: 0; z-index: 1; margin: auto;
	max-width: 520px; background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 22px; text-align: center;
	opacity: 0; visibility: hidden; will-change: transform, opacity;
	box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.menu-card.is-active { opacity: 1; visibility: visible; }
.menu-card__media img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: linear-gradient(135deg, #241a10, #3a1520); }
.menu-card__name { font-family: var(--font-head); font-size: 27px; margin: 16px 0 4px; }
.menu-card__price { color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
.menu-card__desc { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.menu-hint { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 18px; }

/* ---------- 4. Pour ---------- */
.pour__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.pour__text p:last-of-type { color: var(--muted); }
.pour__stage { display: grid; place-items: center; min-height: 420px; }
.pour-svg { width: min(300px, 60vw); filter: drop-shadow(0 0 34px rgba(123, 30, 38, 0.6)); }
.pour-svg__stream { fill: #a8323e; }
.pour-svg__liquid { fill: #7b1e26; }

/* ---------- 5. Gallery (horizontal scroll) ---------- */
.gallery { overflow: hidden; padding-left: 0; padding-right: 0; }
.hscroll { margin-top: 34px; overflow: hidden; }
.hscroll__track { display: flex; gap: 18px; padding: 0 4vw; width: max-content; will-change: transform; }
.hscroll__item { flex: 0 0 clamp(240px, 34vw, 460px); }
.hscroll__item img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: linear-gradient(135deg, #241a10, #3a1520); }

/* ---------- 6. Events ---------- */
.events__list { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 130px 1fr; gap: 22px; padding: 26px 6px; border-bottom: 1px solid var(--line); align-items: baseline; transition: background 0.4s ease, padding 0.4s ease; }
.event:hover { background: rgba(217, 164, 65, 0.05); padding-left: 16px; }
.event__day { font-family: var(--font-head); color: var(--gold); font-size: 20px; }
.event__body h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 4px; }
.event__body p { color: var(--muted); font-size: 15px; }

/* ---------- 8. Booking ---------- */
.booking { background: var(--bg-2); }
.booking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.booking__form label { display: block; font-size: 14px; margin-bottom: 16px; color: var(--muted); }
.booking__form input {
	display: block; width: 100%; margin-top: 8px; padding: 13px 16px;
	background: #0e0d0b; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
	font-size: 15px; font-family: inherit; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.booking__form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,0.18); }
.booking__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.booking__msg { margin-top: 14px; min-height: 1.6em; color: var(--gold-soft); font-size: 14.5px; }
.booking__info h3 { font-family: var(--font-head); font-size: 26px; margin-bottom: 12px; }
.booking__info p { color: var(--muted); margin-bottom: 8px; }
.booking__info a { color: var(--gold-soft); }
.vcbar-footer__map { width: 100%; height: 170px; border: 0; border-radius: 10px; margin-top: 12px; filter: grayscale(1) invert(0.92) contrast(0.9); }
.vcbar-social { display: flex; gap: 10px; margin: 16px 0 4px; }
.vcbar-social a {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 600;
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.vcbar-social a:hover { border-color: var(--gold); background: rgba(217,164,65,0.12); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.vcbar-footer { border-top: 1px solid var(--line); padding: 60px 0 0; background: #080706; }
.vcbar-footer__inner { width: min(1160px, 92vw); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 36px; }
.vcbar-footer__tagline { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 300px; }
.vcbar-footer__list { list-style: none; }
.vcbar-footer__list li { margin-bottom: 10px; }
.vcbar-footer__list a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.vcbar-footer__list a:hover { color: var(--gold-soft); }
.vcbar-footer__info p { color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.vcbar-footer__info a { color: var(--gold-soft); }
.vcbar-footer__bottom { margin-top: 44px; border-top: 1px solid var(--line); padding: 18px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.about__grid, .pour__grid, .booking__grid { grid-template-columns: 1fr; }
	.vcbar-footer__inner { grid-template-columns: 1fr 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.hero__glass { right: 4vw; bottom: 16vh; opacity: 0.55; }
	.event { grid-template-columns: 90px 1fr; }
}
@media (max-width: 760px) {
	.vcbar-nav__toggle { display: block; margin-left: auto; }
	.vcbar-nav__cta { display: none; }
	.vcbar-nav__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11,10,8,0.97); border-bottom: 1px solid var(--line); padding: 10px 4vw 20px; }
	.vcbar-nav.is-open .vcbar-nav__menu { display: block; }
	.vcbar-nav__list { flex-direction: column; gap: 4px; }
	.vcbar-nav__list a { display: block; padding: 10px 0; font-size: 16px; }
	.vcbar-footer__inner { grid-template-columns: 1fr; }
	/* Mobile khong pin: card xep chong thanh cot thuong. */
	.menu-stage { min-height: 0; }
	.menu-card { position: relative; inset: auto; margin: 0 auto 16px; }
	.hscroll { overflow-x: auto; }
}

/* ---------- 0. Preloader: logo + vet sang + man keo ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; visibility: visible; }
.preloader__curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #080706; }
.preloader__curtain--left { left: 0; }
.preloader__curtain--right { right: 0; }
.preloader__center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preloader__logo { font-family: var(--font-head); font-weight: 900; font-size: clamp(48px, 8vw, 84px); letter-spacing: 0.14em; }
.preloader__bar { position: relative; width: 200px; height: 2px; background: rgba(243,237,226,0.14); overflow: hidden; border-radius: 99px; }
.preloader__sweep { position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); animation: sweep 1.1s ease-in-out infinite; }
@keyframes sweep { 0% { left: -40%; } 100% { left: 100%; } }
.preloader__pct { font-size: 12px; letter-spacing: 0.3em; color: var(--muted); }
.preloader.is-done { visibility: hidden; transition: visibility 0s 1s; }
.preloader.is-done .preloader__curtain--left { transform: translateX(-101%); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1); }
.preloader.is-done .preloader__curtain--right { transform: translateX(101%); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1); }
.preloader.is-done .preloader__center { opacity: 0; transition: opacity 0.3s ease; }

/* ---------- Dien anh: film grain + vignette + glow ---------- */
.vcbar-grain { position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grainShift 0.9s steps(3) infinite; }
@keyframes grainShift { 0% { transform: translate(0, 0); } 33% { transform: translate(-2%, 1%); } 66% { transform: translate(1%, -2%); } 100% { transform: translate(0, 0); } }
.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.vcbar-btn--gold { box-shadow: 0 8px 32px rgba(217, 164, 65, 0.35), 0 0 0 1px rgba(232, 195, 122, 0.25); }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat__num { text-shadow: 0 0 26px rgba(217, 164, 65, 0.45); }

/* ---------- Marquee: dai chu chay giua About / Menu ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; background: rgba(217, 164, 65, 0.04); }
.marquee__track { display: flex; width: max-content; will-change: transform;
	font-family: var(--font-head); font-size: clamp(18px, 2.6vw, 28px); letter-spacing: 0.08em; color: var(--gold-soft); white-space: nowrap; }
.marquee__track span { padding-right: 12px; }
/* Bien the CTA truoc section Dat ban: nen vang dam hon de day nhip. */
.marquee--cta { background: rgba(217, 164, 65, 0.09); }
.marquee--cta .marquee__track { color: var(--gold); }

/* ---------- Duong chia section dang song ---------- */
.divider { line-height: 0; background: var(--bg-2); }
.divider__svg { width: 100%; height: 70px; display: block; }
.divider__wave--back { fill: rgba(217, 164, 65, 0.12); }
.divider__wave--front { fill: var(--bg); }

/* ---------- Tilt 3D + glow vien card ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; transition: box-shadow 0.4s ease, border-color 0.4s ease; }
.menu-card:hover, .hscroll__item:hover { border-color: rgba(217, 164, 65, 0.65); box-shadow: 0 30px 90px rgba(0,0,0,0.6), 0 0 34px rgba(217, 164, 65, 0.22); }
.hscroll__item { border: 1px solid transparent; border-radius: var(--radius); }
.hscroll__item img { transition: transform 0.5s ease; }

/* ---------- Pour: da + giot suong ---------- */
.pour-svg__ice { fill: rgba(220, 235, 245, 0.5); stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; opacity: 0; }
.pour-svg__drop { fill: rgba(200, 225, 240, 0.75); opacity: 0; }

/* ---------- Stories kieu Instagram ---------- */
.stories { margin-top: 30px; max-width: 760px; }
.stories__bars { display: flex; gap: 8px; margin-bottom: 20px; }
.stories__bar { flex: 1; height: 4px; border: 0; border-radius: 99px; background: rgba(243,237,226,0.18); cursor: pointer; padding: 0; overflow: hidden; }
.stories__fill { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 99px; }
.stories__stage { position: relative; min-height: 230px; }
.stories__slide { position: absolute; inset: 0; opacity: 0; transform: translateX(48px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; margin: 0; }
.stories__slide.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.stories__text { font-family: var(--font-head); font-size: clamp(20px, 2.8vw, 30px); font-style: italic; line-height: 1.5; }
.stories__author { margin-top: 18px; display: flex; gap: 12px; align-items: baseline; }
.stories__author span { color: var(--muted); font-size: 14px; }

/* ---------- Magnetic CTA ---------- */
.vcbar-nav__cta { will-change: transform; transition: box-shadow 0.35s ease, background 0.35s ease; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	[data-split] .line-inner { transform: none; }
	.preloader { display: none; }
	.vcbar-grain { display: none; }
}
