/* =========================================================================
   base.css – Nền tảng giao diện dùng chung – VNTRIP TMS
   -------------------------------------------------------------------------
   1. Font thương hiệu cho toàn website
   2. Cuộn mượt có bù chiều cao header (menu anchor không bị header che)
   3. Nút thương hiệu (.vt-btn) – dùng cho nút tùy chỉnh ngoài Elementor
   4. Nhãn nhỏ đầu section (.vt-eyebrow)
   5. Hiệu ứng hiện dần khi cuộn (.vt-reveal) – JS trong site.js
   6. Viền focus khi dùng bàn phím
   7. Tôn trọng chế độ "giảm chuyển động" của hệ điều hành
   Class của child theme đều bắt đầu bằng "vt-" để không đụng Astra/Elementor.
   ========================================================================= */

/* 1. Font thương hiệu */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--vt-font);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 2. Cuộn mượt, bù header cố định */
html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--vt-header-h);
}

/* 3. Nút thương hiệu */
.vt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 52px;
	padding: 0 24px;
	border-radius: var(--vt-r-btn);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: transform .15s var(--vt-ease), box-shadow .15s var(--vt-ease), background .15s, color .15s, border-color .15s;
}
.vt-btn--primary { background: var(--vt-yellow); color: var(--vt-dark); box-shadow: var(--vt-sh-y); }
.vt-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(252, 185, 19, .38); color: var(--vt-dark); }
.vt-btn--ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.vt-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.vt-btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }

/* 4. Nhãn nhỏ đầu section (dùng ngoài Elementor; widget Elementor xem home/common.css) */
.vt-eyebrow:not(.elementor-element) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vt-text-2);
}
.vt-eyebrow:not(.elementor-element)::before {
	content: "";
	width: 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--vt-yellow);
}

/* 5. Hiện dần khi cuộn – chỉ áp dụng khi JS đã chạy (class .vt-js trên <html>) */
.vt-js .vt-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .4s var(--vt-ease), transform .4s var(--vt-ease);
}
.vt-js .vt-reveal.vt-in {
	opacity: 1;
	transform: none;
}
/* Trong trình chỉnh sửa Elementor: luôn hiện để dễ sửa */
.elementor-editor-active .vt-reveal { opacity: 1 !important; transform: none !important; }

/* 6. Focus bàn phím */
.vt-site :focus-visible {
	outline: 2px solid var(--vt-yellow);
	outline-offset: 2px;
}

/* 7. Giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.vt-js .vt-reveal { opacity: 1; transform: none; transition: none; }
	.vt-btn { transition: none; }
}
