/*
Theme Name: VINASẤY
Theme URI: https://setechvn.com/
Author: SETECH Việt Nam
Description: Theme viết tay cho VINASẤY — máy sấy nông sản, thực phẩm. Dữ liệu gom trong inc/data.php, schema JSON-LD, form nhận báo giá lưu đơn, nút liên hệ nổi, không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vinasay
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   Màu lấy từ logo VINASẤY; nền, bo góc, bóng, font theo phong cách mẫu đã chốt.
   ========================================================================== */
:root {
	--c-primary: #D8000C;      /* đỏ chữ logo */
	--c-primary-dark: #B0000A;
	--c-accent: #0084CC;       /* xanh dương logo */
	--c-green: #0CAE48;        /* xanh lá logo */
	--c-lime: #D2DE1E;         /* vàng chanh logo */
	--c-heading: #171940;      /* xanh than tiêu đề */
	--c-bg: #ffffff;
	--c-bg-alt: #EFF1F3;       /* nền xám nhạt */
	--c-bg-dark: #171940;
	--c-text: #2a2a33;
	--c-text-muted: #5f6270;
	--c-text-invert: #ffffff;
	--c-border: #e3e6ea;

	--f-body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.15rem;
	--fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	--fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
	--fs-h1: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);

	--radius: 25px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--shadow: 0 0 32px -7px rgba(0, 0, 0, 0.12);
	--shadow-hover: 0 18px 40px -12px rgba(23, 25, 64, 0.22);
	--shadow-btn: 2px 3px 18px -3px rgba(216, 0, 12, 0.55);

	--space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
	--container: 1236px;
	--gutter: 16px;
	--header-h: 76px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); font-weight: 500; line-height: 1.65; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; color: var(--c-heading); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.section__eyebrow { display: inline-block; margin-bottom: 0.6rem; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-primary); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); }
.section__text { color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.82); }
.section--dark .section__eyebrow { color: var(--c-lime); }
.section__more { margin: 2.5rem 0 0; text-align: center; }
.grid { display: grid; gap: 28px; grid-template-columns: 1fr; }

/* Icon tròn viền (phong cách mẫu) */
.icon-circle { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border: 2px solid var(--c-primary); border-radius: 50%; color: var(--c-primary); background: #fff; transition: background 0.25s, color 0.25s; }
.icon-circle .icon { width: 34px; height: 34px; }

/* Chấm tròn trang trí */
.dot { position: absolute; border-radius: 50%; pointer-events: none; }
.dot--1 { width: 22px; height: 22px; top: 14%; left: 22%; background: #dfe2e6; }
.dot--2 { width: 26px; height: 26px; top: 64%; left: 4%; background: #dfe2e6; }
.dot--3 { width: 22px; height: 22px; top: 12%; right: 4%; background: var(--c-primary); opacity: 0.85; }

/* ==========================================================================
   3. Nút — viên thuốc, mũi tên tròn (phong cách mẫu)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 26px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: #fff; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--arrow { padding-right: 8px; }
.btn--arrow .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #fff; color: var(--c-primary); stroke-width: 2.4; }
.btn--outline.btn--arrow .icon { background: var(--c-primary); color: #fff; }
.btn--outline.btn--arrow:hover .icon { background: #fff; color: var(--c-primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   4. Topbar + Header
   ========================================================================== */
.topbar { display: none; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); font-size: 0.8rem; color: var(--c-text-muted); }
.topbar__inner { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; }
.topbar__info { display: flex; gap: 24px; align-items: center; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__social { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.topbar__social a { color: var(--c-heading); font-weight: 600; text-decoration: none; }
.topbar__social a:hover, .topbar__info a:hover { color: var(--c-primary); }
.topbar__hotline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.topbar__hotline:hover { background: var(--c-primary-dark); color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.97); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(0, 0, 0, 0.18); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; min-width: 0; font-family: var(--f-heading); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: 0.01em; line-height: 1; color: var(--c-primary); text-decoration: none; white-space: nowrap; }
.site-logo:hover { color: var(--c-primary); }
.custom-logo-link img, .site-logo img { max-height: 60px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--c-primary); cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-bg); padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 12px 0; color: var(--c-heading); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a, .primary-nav .children a { padding-left: 16px; font-weight: 500; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--c-primary); }
.header-cta { display: none; }

/* ==========================================================================
   5. Hero — 2 cột trên nền xám nhạt
   ========================================================================== */
.hero { position: relative; padding: 48px 0 130px; background: var(--c-bg-alt); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
.hero__content { text-align: center; }
.hero h1 { text-wrap: balance; }
.hero__badge { display: inline-block; margin-bottom: 1.1rem; padding: 6px 16px; border-radius: var(--radius-pill); background: #fff; color: var(--c-primary); font-size: 0.78rem; font-weight: 700; line-height: 1.4; box-shadow: var(--shadow); }
@media (min-width: 600px) { .hero__badge { font-size: var(--fs-sm); } }
.hero__lead { max-width: 560px; margin-inline: auto; font-size: var(--fs-lg); color: var(--c-heading); }
.hero__btns { justify-content: center; margin-top: 1.75rem; }
.hero__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__placeholder { display: grid; place-items: center; align-content: center; gap: 12px; aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, #fff 0%, #fff 55%, rgba(210, 222, 30, 0.25) 100%); box-shadow: var(--shadow); color: var(--c-text-muted); font-weight: 600; }
.hero__placeholder .icon { width: 72px; height: 72px; color: var(--c-lime); stroke-width: 1.4; }

/* 3 thẻ lợi ích đè mép dưới hero */
.benefits { position: relative; z-index: 2; margin-top: -90px; }
.benefit { padding: 40px 28px 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: transform 0.25s, box-shadow 0.25s; }
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.benefit:hover .icon-circle { background: var(--c-primary); color: #fff; }
.benefit h3 { font-weight: 600; }
.benefit p { margin: 0; color: var(--c-text-muted); }
/* Thẻ có ảnh: ảnh trên cùng, icon tròn đè mép dưới ảnh */
.benefit--img { padding: 0; overflow: hidden; }
.benefit__media { aspect-ratio: 16 / 10; background: var(--c-bg-alt); overflow: hidden; }
.benefit__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.benefit--img:hover .benefit__media img { transform: scale(1.06); }
.benefit--img .benefit__body { position: relative; padding: 0 26px 30px; }
.benefit--img .icon-circle { position: relative; z-index: 1; margin-top: -38px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.25); }

/* ==========================================================================
   6. Số liệu
   ========================================================================== */
.stats-section .split { gap: 40px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { padding: 26px 18px; border-radius: var(--radius); background: var(--c-bg-alt); text-align: center; }
.stat:nth-child(1) { background: var(--c-primary); }
.stat:nth-child(1) .stat__number, .stat:nth-child(1) .stat__label { color: #fff; }
.stat:nth-child(4) { background: var(--c-heading); }
.stat:nth-child(4) .stat__number, .stat:nth-child(4) .stat__label { color: #fff; }
.stat__number { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; line-height: 1.1; color: var(--c-primary); }
.stat__label { margin-top: 6px; font-weight: 600; color: var(--c-heading); }

/* ==========================================================================
   7. Thẻ dòng máy, thẻ bài viết
   ========================================================================== */
.svc-card { display: flex; flex-direction: column; padding: 34px 24px 26px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: transform 0.25s, box-shadow 0.25s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.svc-card:hover .icon-circle { background: var(--c-primary); color: #fff; }
.svc-card__title { font-weight: 600; }
.svc-card__title a { color: inherit; text-decoration: none; }
.svc-card__title a:hover { color: var(--c-primary); }
.svc-card p { color: var(--c-text-muted); font-size: 0.95rem; }
.svc-card__price { margin-top: -0.25rem; font-weight: 700; color: var(--c-primary) !important; }
.svc-card__more { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; font-weight: 700; color: var(--c-primary); text-decoration: none; }
.svc-card__more .icon { transition: transform 0.2s; }
.svc-card__more:hover .icon { transform: translateX(4px); }

/* Thẻ có ảnh: ảnh trên cùng, icon tròn đè mép dưới ảnh */
.svc-card__body { display: flex; flex-direction: column; flex: 1; }
.svc-card--img { padding: 0; overflow: hidden; }
.svc-card__media { display: block; aspect-ratio: 4 / 3; background: var(--c-bg-alt); overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.svc-card--img:hover .svc-card__media img { transform: scale(1.06); }
.svc-card--img .svc-card__body { padding: 0 20px 24px; }
.svc-card--img .icon-circle { position: relative; z-index: 1; width: 64px; height: 64px; margin-top: -32px; margin-bottom: 14px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.25); }
.svc-card--img .icon-circle .icon { width: 28px; height: 28px; }

/* Điện thoại: thẻ ngang gọn — ảnh vuông bên trái, chữ bên phải */
@media (max-width: 767px) {
	#dong-may .grid { gap: 16px; }
	.svc-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px 18px; text-align: left; }
	.svc-card .icon-circle { grid-row: span 4; width: 56px; height: 56px; margin: 0; }
	.svc-card .icon-circle .icon { width: 26px; height: 26px; }
	.svc-card__title { margin-bottom: 0.3em; }
	.svc-card p { margin-bottom: 0.5em; }
	.svc-card__more { justify-content: flex-start; }
	.svc-card--img { grid-template-columns: 116px 1fr; column-gap: 0; padding: 0; }
	.svc-card--img .svc-card__media { aspect-ratio: auto; height: 100%; min-height: 130px; }
	.svc-card--img .svc-card__body { padding: 14px 16px; }
	.svc-card--img .icon-circle { display: none; }
}
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card__title { margin-bottom: 0.4em; font-weight: 600; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-text-muted); }
.card__meta { margin-top: auto; font-weight: 700; color: var(--c-primary); }

/* ==========================================================================
   8. Bảng giá (tab + bảng)
   ========================================================================== */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.tabs__btn { min-height: 46px; padding: 8px 22px; border: 2px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-heading); font-weight: 700; cursor: pointer; transition: 0.2s; }
.tabs__btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tabs__btn[aria-selected="true"] { border-color: var(--c-primary); background: var(--c-primary); color: #fff; box-shadow: var(--shadow-btn); }
.tabs__panel[hidden] { display: none; }
.tabs__panel + .tabs__panel { margin-top: 32px; }
.tabs__panel .btn { margin-top: 20px; }
.tabs__title { text-align: center; }
.price-table { padding: 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.price-table th { padding: 14px 16px; background: var(--c-heading); color: #fff; font-weight: 700; text-align: left; }
.price-table th:first-child { border-radius: 16px 0 0 0; }
.price-table th:last-child { border-radius: 0 16px 0 0; text-align: right; }
.price-table td { padding: 13px 16px; border-bottom: 1px solid var(--c-border); }
.price-table tbody tr:nth-child(even) { background: #f8f9fa; }
.price-table tbody tr:hover { background: #fff4f4; }
.price-table__model { font-weight: 700; color: var(--c-accent); white-space: nowrap; }
.price-table__price { text-align: right; white-space: nowrap; }
.price-table__price strong { color: var(--c-primary); font-size: 1.05rem; }
.price-table__price del { display: block; color: var(--c-text-muted); font-size: 0.82rem; }
.price-table__price a { font-weight: 700; color: var(--c-primary); }
.price-table__note { margin: 12px 8px 4px; font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ==========================================================================
   9. Dự án + đánh giá
   ========================================================================== */
.project { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project__media { position: relative; aspect-ratio: 4 / 3; background: #e6e9ec; }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-text-muted); font-weight: 600; }
.project__place { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-size: var(--fs-sm); font-weight: 700; }
.project__body { padding: 22px 24px 26px; }
.project__body h3 { font-weight: 600; }
.project__body p { margin: 0; color: var(--c-text-muted); }

.review { position: relative; display: flex; flex-direction: column; margin: 0; padding: 36px 30px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.review__mark { position: absolute; top: -22px; left: 30px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary); color: #fff; box-shadow: var(--shadow-btn); }
.review__mark .icon { width: 22px; height: 22px; }
.review blockquote { margin: 0 0 22px; font-size: 1.02rem; color: var(--c-heading); }
.review blockquote p { margin: 0; text-align: justify; text-align-last: left; }
.review figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--c-border); line-height: 1.35; }
.review figcaption small { color: var(--c-text-muted); }
.review__avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-primary); font-weight: 700; font-size: 1.2rem; }

/* ==========================================================================
   10. FAQ, quy trình, album
   ========================================================================== */
.feature { padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-primary); font-size: 1.5rem; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 700; }
.steps h3 { margin-bottom: 0.25em; font-size: var(--fs-lg); }
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { padding: 0 24px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font-weight: 700; font-size: 1.05rem; color: var(--c-heading); cursor: pointer; }
.faq__q::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-bg-alt); font-size: 1.3rem; line-height: 1; color: var(--c-primary); transition: transform 0.2s, background 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq__a { padding-bottom: 18px; color: var(--c-text-muted); }
.faq__a p { text-align: justify; text-align-last: left; }
.faq__a[hidden] { display: none; }
#hoi-dap { background: var(--c-bg-alt); }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 1.5rem; cursor: pointer; }

/* ==========================================================================
   11. Form + danh sách liên hệ
   ========================================================================== */
.form { display: grid; gap: 16px; padding: 30px 26px; background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: var(--fs-sm); color: var(--c-heading); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 10px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: var(--c-bg-alt); color: var(--c-text); }
.form textarea { min-height: 110px; border-radius: 18px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(216, 0, 12, 0.12); }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.notice--ok { background: #e6f7ec; color: #0b6b2d; }
.notice--err { background: #fdecec; color: #9b1c1c; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--c-lime); }
.contact-list a { color: inherit; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--c-lime); }

/* ==========================================================================
   12. Nội dung trang, bài viết
   ========================================================================== */
.page-hero { position: relative; padding-block: 56px; background: var(--c-bg-alt); overflow: hidden; }
.page-hero h1 { text-wrap: balance; }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 8px; }
.breadcrumb a { color: inherit; }
.entry { max-width: 820px; margin-inline: auto; }
/* Canh đều đoạn văn dài cho cân đối; dòng cuối canh trái; ô bảng/chú thích ảnh giữ canh trái. */
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry img { border-radius: var(--radius-sm); }
.entry figure { margin: 1.6em 0; }
.entry figure img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.entry figcaption { margin-top: 10px; font-size: var(--fs-sm); color: var(--c-text-muted); text-align: center; }
/* Hai ảnh cạnh nhau trong bài */
.anh-doi { display: grid; gap: 16px; margin: 1.6em 0; }
.anh-doi figure { margin: 0; }
@media (min-width: 600px) { .anh-doi { grid-template-columns: 1fr 1fr; } }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.entry h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }
.entry blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--c-primary); background: var(--c-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ==========================================================================
   13. CTA + Footer
   ========================================================================== */
.cta-band { padding-block: 64px; background: var(--c-primary); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; color: #fff; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn--primary { background: #fff; color: var(--c-primary); box-shadow: none; }
.cta-band .btn--primary .icon { background: var(--c-primary); color: #fff; }
.cta-band .btn--outline { background: transparent; border-color: #fff; color: #fff; }
.site-footer { padding-top: 64px; background: var(--c-bg-dark); color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; border-top: 5px solid var(--c-primary); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { position: relative; margin-bottom: 1.2rem; padding-bottom: 10px; color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--c-primary); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__brand { margin-bottom: 0.6rem; font-size: 1.8rem; font-weight: 700; color: #fff; }
.site-footer .contact-list { margin-top: 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.85rem; }
.footer-social a:hover { background: var(--c-primary); border-color: var(--c-primary); }
.site-footer__bottom { margin-top: 48px; padding-block: 20px; padding-bottom: 88px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; font-size: 0.85rem; }

/* ==========================================================================
   14. Nút liên hệ nổi — mobile: thanh dưới đáy; desktop: cột nút tròn góc phải
   ========================================================================== */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-bg); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.float-contact__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.75rem; font-weight: 700; color: #fff; text-decoration: none; }
.float-contact__btn:hover { color: #fff; }
.float-contact__btn svg { width: 22px; height: 22px; fill: currentColor; }
.float-contact__phone { background: var(--c-primary); }
.float-contact__zalo { background: #0068ff; }
.float-contact__mess { background: #a033ff; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
	.stats { gap: 22px; }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
	.hero { padding: 72px 0 150px; }
	.hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
	.benefits { margin-top: -110px; }
}
@media (min-width: 1024px) {
	.topbar { display: block; }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.nav-toggle { display: none; }
	.primary-nav { position: static; transform: none; padding: 0; overflow: visible; background: none; margin-left: auto; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 2px; }
	.primary-nav a { padding: 10px 13px; border: 0; font-size: 0.98rem; }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px 0; background: var(--c-bg); border-radius: 16px; box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
	.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 9px 20px; white-space: nowrap; }
	.primary-nav a { white-space: nowrap; }
	.header-cta { display: inline-flex; }
	.hero { padding: 90px 0 170px; }
	.benefits { margin-top: -120px; }
	.float-contact { left: auto; right: 20px; bottom: 20px; grid-auto-flow: row; gap: 12px; background: none; box-shadow: none; }
	.float-contact__btn { width: 56px; height: 56px; min-height: 0; border-radius: 50%; box-shadow: var(--shadow); }
	.float-contact__btn span { display: none; }
	.site-footer__bottom { padding-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
