/*
Theme Name: Hà Tĩnh Paper
Theme URI: https://hatinhpaper.com/
Author: Hiếu Hưng Paper
Description: Theme viết tay cho Hiếu Hưng Paper (hatinhpaper.com): tổng kho giấy in, giấy vệ sinh, văn phòng phẩm giá sỉ cho Hà Tĩnh. Dữ liệu gom trong inc/data.php + inc/data-san-pham.php, schema JSON-LD, form 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: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hatinhpaper
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây (màu lấy theo logo Hiếu Hưng Paper)
   ========================================================================== */
:root {
	--c-primary: #2e8b2e;
	--c-primary-dark: #0f5a2c;
	--c-primary-light: #8cc63f;
	--c-accent: #ffb81c;
	--c-accent-light: #ffd45c;
	--c-bg: #ffffff;
	--c-bg-alt: #eef7ec;
	--c-grey: #f1f3f4;
	--c-bg-dark: #07311a;
	--c-text: #222222;
	--c-heading: #10331f;
	--c-text-muted: #555555;
	--c-text-invert: #ffffff;
	--c-border: #dfe6e1;

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Oswald", "Arial Narrow", sans-serif;
	--f-script: "Dancing Script", cursive;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.075rem;
	--fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
	--fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
	--fs-h1: clamp(2rem, 1.5rem + 2.2vw, 3rem);
	--fs-script: clamp(1.5rem, 1.25rem + 1vw, 2.1rem);

	--radius: 16px;
	--radius-sm: 8px;
	--radius-pill: 999px;
	--shadow: 0 15px 30px -18px rgba(0, 0, 0, 0.45);
	--shadow-drop: 0 18px 30px -20px rgba(7, 49, 26, 0.6);

	--space-section: clamp(3.5rem, 2.4rem + 3.8vw, 5.5rem);
	--container: 1200px;
	--gutter: 16px;
	--topbar-h: 92px;
	--nav-h: 54px;
	--header-h: 68px;
	--pattern: repeating-radial-gradient(circle at 15% 25%, transparent 0 26px, rgba(15, 90, 44, 0.05) 26px 27px), repeating-radial-gradient(circle at 88% 80%, transparent 0 30px, rgba(15, 90, 44, 0.045) 30px 31px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); 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-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 600; 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); line-height: 1.1; }
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: 22px; height: 22px; 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-color: var(--c-bg-alt); }
.section--grey { background: var(--c-grey); }
.section--pattern { background-image: var(--pattern); }
.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__head h2 { text-transform: uppercase; }
.section__script, .section__eyebrow { display: block; margin-bottom: 0.1rem; font-family: var(--f-script); font-size: var(--fs-script); font-weight: 600; line-height: 1.2; color: var(--c-primary); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); }
.section__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 2.5rem 0 0; }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.82); }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 3px 10px; border-radius: var(--radius-pill); background: var(--c-bg-alt); color: var(--c-primary-dark); font-size: 0.78rem; font-weight: 600; }
.checklist { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-weight: 500; }
.checklist .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c-accent); color: var(--c-bg-dark); stroke-width: 3; }

/* ==========================================================================
   3. Nút
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn--shadow { box-shadow: var(--shadow-drop); }
.btn--primary { background: var(--c-primary-dark); color: var(--c-text-invert); }
.btn--primary:hover { background: var(--c-primary); color: var(--c-text-invert); }
.btn--accent { background: linear-gradient(180deg, var(--c-accent-light), var(--c-accent)); color: var(--c-bg-dark); text-transform: uppercase; font-family: var(--f-heading); font-weight: 600; letter-spacing: 0.02em; font-size: 1.05rem; }
.btn--accent:hover { color: var(--c-bg-dark); filter: brightness(1.05); }
.btn--outline { border-color: var(--c-primary-dark); color: var(--c-primary-dark); background: transparent; }
.btn--outline:hover { background: var(--c-primary-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   4. Header 2 tầng
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--c-bg); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.topbar__info { display: none; }
.topbar__item { display: flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; line-height: 1.25; }
.topbar__item small { display: block; font-size: 0.8rem; color: var(--c-text-muted); }
.topbar__item strong { display: block; color: var(--c-primary-dark); font-weight: 700; }
.topbar__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary-dark); color: #fff; }
.topbar__icon .icon { width: 20px; height: 20px; }
.topbar__icon--accent { background: var(--c-accent); color: var(--c-bg-dark); }
.site-logo { display: flex; align-items: center; color: var(--c-primary); font-family: var(--f-heading); font-size: 1.4rem; font-weight: 700; text-decoration: none; }
.site-logo__img { width: auto; height: 54px; object-fit: contain; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; }
.header-call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary-dark); color: #fff; }
.header-call .icon { width: 20px; height: 20px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-heading); position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--c-primary-dark); padding: 8px 0 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: 13px 0; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.primary-nav .sub-menu a, .primary-nav .children a { padding-left: 16px; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav a:hover { color: var(--c-accent-light); }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 60%, var(--c-bg-dark) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: 0.5; filter: invert(1); pointer-events: none; }
.hero__media { position: relative; height: 260px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, var(--c-primary)); }
.hero__inner { position: relative; z-index: 1; }
.hero__content { padding-block: 8px 48px; }
.hero__title { margin: 0 0 1rem; color: #fff; line-height: 1; text-wrap: balance; }
.hero__script { display: inline-block; margin-bottom: 0.15em; padding-bottom: 0.08em; font-family: var(--f-script); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 600; border-bottom: 2px solid var(--c-accent); }
.hero__brand { display: block; font-family: var(--f-heading); font-size: clamp(2.7rem, 1.9rem + 3.4vw, 4.4rem); font-weight: 700; white-space: nowrap; letter-spacing: 0.01em; line-height: 1.02; color: #fff; text-shadow: 0 4px 0 rgba(7, 49, 26, 0.55), 0 0 2px var(--c-primary-light); }
.hero__line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 0.2em; font-family: var(--f-heading); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 600; color: #e9f7c9; }
.hero__tag { display: inline-block; padding: 0.12em 0.5em; border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--c-accent-light), var(--c-accent)); color: var(--c-bg-dark); font-style: normal; font-size: 0.85em; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.hero__lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.6; color: rgba(255, 255, 255, 0.95); max-width: 600px; }
.hero__benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 1.5rem 0; padding: 0; list-style: none; }
.hero__benefits li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 10px; background: #fff; color: var(--c-primary-dark); font-size: 0.82rem; font-weight: 600; line-height: 1.25; text-align: center; }
.hero__benefits .icon { width: 28px; height: 28px; color: var(--c-primary); }
.hero__benefits li:last-child { grid-column: 1 / -1; }
.hero__stat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 14px; padding: 16px 18px; border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: var(--shadow); }
.hero__stat-icon { grid-row: span 2; color: var(--c-primary); }
.hero__stat-icon .icon { width: 40px; height: 40px; }
.hero__stat strong { font-family: var(--f-body); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--c-heading); }
.hero__stat strong small { font-size: 1rem; font-weight: 600; }
.hero__stat-label { font-size: 0.85rem; line-height: 1.35; color: var(--c-text-muted); }
.hero__stat .btn { grid-column: 1 / -1; }

/* ==========================================================================
   6. Lý do (6 ý quanh ảnh)
   ========================================================================== */
.reasons { display: grid; gap: 24px; }
.reasons__col { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.reason { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.reason__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--c-bg-alt); color: var(--c-primary-dark); border: 2px solid var(--c-primary-light); }
.reason h3 { margin-bottom: 0.25em; font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; color: var(--c-primary-dark); }
.reason p { margin: 0; font-size: 0.92rem; color: var(--c-text-muted); }
.reasons__media { order: -1; display: grid; place-items: center; }
.reasons__media img { width: min(100%, 380px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 30px 50px -30px rgba(7, 49, 26, 0.6); }

/* ==========================================================================
   7. Giải pháp theo khách hàng
   ========================================================================== */
.solutions { display: grid; gap: 20px; }
.solution { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--c-border); background: #fff; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.solution:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary-light); }
.solution__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; }
.solution__icon .icon { width: 28px; height: 28px; }
.solution__title { margin: 0; font-size: 1.3rem; text-transform: uppercase; }
.solution__title a { color: var(--c-heading); text-decoration: none; }
.solution__title a::after { content: ""; position: absolute; inset: 0; }
.solution p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }
.hint { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 2rem; padding: 20px 24px; border-radius: var(--radius); background: var(--c-bg-alt); border: 1px dashed var(--c-primary-light); text-align: center; }
.hint p { margin: 0; }
.hint .btn { flex: none; white-space: nowrap; }

/* ==========================================================================
   8. Thẻ sản phẩm / gian hàng, bài viết
   ========================================================================== */
.section--brand { background: linear-gradient(160deg, var(--c-primary) 0%, var(--c-primary-dark) 55%, var(--c-bg-dark) 100%); color: #fff; position: relative; }
.section--brand::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); filter: invert(1); opacity: 0.4; pointer-events: none; }
.section--brand .container { position: relative; }
.section--brand .section__head h2 { color: #fff; }
.section--brand .section__script { color: var(--c-accent-light); }
.section--brand .section__lead { color: rgba(255, 255, 255, 0.85); }
.products { display: grid; gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-grey); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card__title { margin-bottom: 0.4em; font-size: 1.3rem; }
.card__title a { color: var(--c-heading); text-decoration: none; }
.card__text { color: var(--c-text-muted); font-size: 0.93rem; }
.card__meta { margin-top: auto; font-weight: 600; color: var(--c-primary); }
.card--product { border: 0; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6); }
.card--product .card__title { text-transform: uppercase; }
.specs { margin: 0 0 1rem; font-size: 0.85rem; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.specs dt { color: var(--c-text-muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; color: var(--c-heading); }
.card__price { margin: auto 0 0.9rem; color: var(--c-text-muted); font-size: 0.9rem; }
.card__price strong { font-family: var(--f-heading); font-size: 1.5rem; font-weight: 600; color: var(--c-primary-dark); }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card__actions .btn { flex: 1; }

/* ==========================================================================
   9. Bảng giá
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--c-border); -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: 0.93rem; }
.price-table thead th { padding: 14px 16px; background: var(--c-primary-dark); color: #fff; font-family: var(--f-heading); font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; text-align: left; text-transform: uppercase; }
.price-table td, .price-table tbody th { padding: 10px 16px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: middle; }
.price-table tbody tr:nth-child(even) { background: #f7fbf6; }
.price-table tbody tr:hover { background: var(--c-bg-alt); }
.price-table__name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-heading); }
.price-table__name img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.price-table__price { font-weight: 700; color: var(--c-primary-dark); white-space: nowrap; }
.price-note { margin-top: 0.75rem; text-align: center; font-size: 0.875rem; color: var(--c-text-muted); }

/* ==========================================================================
   10. Vì sao mua tận kho, dải cắt khổ, khách hàng, quy trình
   ========================================================================== */
.why { display: grid; gap: 32px; align-items: center; }
.why__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__img { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__img--0 { aspect-ratio: 3 / 4; }
.why__img--1 { aspect-ratio: 3 / 4; margin-top: 40px; }
.why__list ul { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.why__list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.why__check { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary-dark); color: #fff; }
.why__check .icon { width: 18px; height: 18px; stroke-width: 3; }
.why__list h3 { margin: 0 0 0.15em; font-family: var(--f-body); font-size: 1.02rem; font-weight: 700; color: var(--c-primary-dark); }
.why__list p { margin: 0; font-size: 0.93rem; color: var(--c-text-muted); }

.band { position: relative; padding-block: var(--space-section); background: linear-gradient(120deg, var(--c-bg-dark) 0%, var(--c-primary-dark) 60%, var(--c-primary) 100%); color: #fff; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); filter: invert(1); opacity: 0.35; pointer-events: none; }
.band__inner { position: relative; display: grid; gap: 32px; align-items: center; }
.band__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid rgba(255, 255, 255, 0.9); box-shadow: 0 30px 50px -30px #000; }
.band h2 { color: #fff; text-transform: uppercase; }
.band .section__script { color: var(--c-accent-light); }
.band p { color: rgba(255, 255, 255, 0.9); }

.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.client { margin: 0; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.client img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.client figcaption { padding: 12px 14px; font-weight: 600; font-size: 0.9rem; line-height: 1.35; color: var(--c-heading); text-align: center; }

.process { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.process__step { position: relative; padding: 24px 20px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); text-align: center; }
.process__num { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; font-family: var(--f-heading); font-size: 1.6rem; font-weight: 600; box-shadow: 0 0 0 6px var(--c-bg-alt); }
.process__label { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--c-accent); color: var(--c-bg-dark); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.process h3 { margin-bottom: 0.3em; font-size: 1.15rem; text-transform: uppercase; }
.process p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); }

/* ==========================================================================
   11. FAQ, album
   ========================================================================== */
.feature { padding: 24px; border-radius: var(--radius); background: var(--c-bg); border: 1px solid var(--c-border); }
.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; }
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq__item { border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.4); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: #fff; text-align: left; font-family: var(--f-body); font-weight: 700; font-size: 1rem; color: var(--c-heading); cursor: pointer; transition: background 0.2s, color 0.2s; }
.faq__q::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-bg-alt); font-size: 1.3rem; line-height: 1; color: var(--c-primary-dark); transition: transform 0.2s; }
.faq__q[aria-expanded="true"] { background: var(--c-primary-dark); color: #fff; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--c-accent); }
.faq__a { padding: 16px 20px 6px; color: var(--c-text-muted); }
.faq__a[hidden] { display: none; }
.gallery { display: grid; gap: 8px; 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; }

/* ==========================================================================
   12. Dải báo giá + form
   ========================================================================== */
.quote { position: relative; padding-block: var(--space-section); background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 55%, var(--c-bg-dark) 100%); color: #fff; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); filter: invert(1); opacity: 0.4; pointer-events: none; }
.quote__inner { position: relative; display: grid; gap: 32px; align-items: center; }
.quote h2 { color: #fff; text-transform: uppercase; }
.quote .section__script { color: var(--c-accent-light); }
.quote .section__lead { color: rgba(255, 255, 255, 0.88); }
.quote .btn--ghost { color: #fff; }
.quote__form { padding: 24px 20px; border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: 0 30px 60px -30px #000; }
.quote__form-title { margin-bottom: 0.75rem; text-align: center; text-transform: uppercase; color: var(--c-primary-dark); }
.quote__form .form { padding: 0; box-shadow: none; }
.form { display: grid; gap: 14px; padding: 24px; background: var(--c-bg); color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 14px; }
.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: 46px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #f9fbf9; color: var(--c-text); }
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(46, 139, 46, 0.15); background: #fff; }
.form button[type="submit"] { width: 100%; background: linear-gradient(180deg, var(--c-accent-light), var(--c-accent)); color: var(--c-bg-dark); font-family: var(--f-heading); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: 0.8rem; color: var(--c-text-muted); text-align: center; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.notice--ok { background: #e8f6ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   13. Nội dung trang, bài viết
   ========================================================================== */
.page-hero { position: relative; padding-block: 48px; background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 70%, var(--c-bg-dark) 100%); color: #fff; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); filter: invert(1); opacity: 0.4; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .section__lead { color: rgba(255, 255, 255, 0.88); max-width: 760px; }
.breadcrumb { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.8); margin-bottom: 8px; }
.breadcrumb a { color: inherit; }
.entry { max-width: 780px; 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 h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.entry h3 { color: var(--c-primary-dark); }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); }
.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 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.catalog__item { display: flex; flex-direction: column; border-radius: 12px; background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
.catalog__item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--c-grey); }
.catalog__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 12px; }
.catalog__name { margin: 0; font-family: var(--f-body); font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: var(--c-heading); }
.catalog__price { margin-top: auto; font-weight: 700; color: var(--c-primary-dark); }
.catalog__price small { font-weight: 400; color: var(--c-text-muted); }

/* ==========================================================================
   14. CTA + Footer
   ========================================================================== */
.cta-band { position: relative; padding-block: 56px; background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary)); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); text-transform: uppercase; }
.cta-band .btn-group { justify-content: center; }
.site-footer { padding-top: 56px; background: var(--c-bg-dark); color: rgba(255, 255, 255, 0.8); font-size: var(--fs-sm); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent-light); }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer h3 { margin-bottom: 1rem; color: #fff; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.site-footer__logo img { width: 72px; height: 72px; padding: 4px; border-radius: 14px; background: #fff; object-fit: contain; }
.site-footer__logo span { font-family: var(--f-heading); font-size: 1.5rem; font-weight: 600; color: #fff; line-height: 1.15; text-transform: uppercase; }
.site-footer__logo small { display: block; font-family: var(--f-body); font-size: 0.8rem; font-weight: 400; color: var(--c-accent-light); text-transform: none; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-primary-light); }
.site-footer__bottom { margin-top: 40px; padding-block: 18px 88px; border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center; font-size: 0.8rem; }

/* ==========================================================================
   15. 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: 600; 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-dark); }
.float-contact__zalo { background: #0068ff; }
.float-contact__mess { background: #a033ff; }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
	.hero__benefits { grid-template-columns: repeat(3, 1fr); }
	.hero__benefits li:last-child { grid-column: auto; }
	.hero__stat { grid-template-columns: auto auto 1fr; }
	.hero__stat-icon { grid-row: auto; }
	.solutions, .products { grid-template-columns: repeat(2, 1fr); }
	.catalog { grid-template-columns: repeat(3, 1fr); }
	.hint { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
	.clients { grid-template-columns: repeat(4, 1fr); }
	.process { grid-template-columns: repeat(5, 1fr); gap: 14px; }
	.process__step { border: 0; background: transparent; padding: 0 6px; }
	.process__step::before { content: ""; position: absolute; top: 30px; left: calc(50% + 40px); width: calc(100% - 66px); border-top: 2px dashed var(--c-primary-light); }
	.process__step:last-child::before { display: none; }
	.why { grid-template-columns: 1fr 1fr; gap: 56px; }
	.band__inner { grid-template-columns: 5fr 7fr; gap: 56px; }
	.quote__inner { grid-template-columns: 1fr 1fr; gap: 56px; }
	.quote__form { padding: 32px 28px; }
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
	:root { --header-h: calc(var(--topbar-h) + var(--nav-h)); }
	html { scroll-padding-top: calc(var(--nav-h) + 16px); }
	/* Tầng trên cuộn đi, thanh menu dính lại. */
	.site-header { top: calc(-1 * var(--topbar-h)); }
	.topbar { display: grid; grid-template-columns: 1fr auto 1fr; min-height: var(--topbar-h); }
	.topbar__info { display: flex; gap: 28px; }
	.site-logo { justify-self: center; }
	.site-logo__img { height: 80px; }
	.topbar__actions { justify-self: end; }
	.header-cta { display: inline-flex; text-transform: uppercase; }
	.header-call { display: none; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.catalog { grid-template-columns: repeat(4, 1fr); }
	.nav-toggle { display: none; }
	.primary-nav { position: static; transform: none; padding: 0; overflow: visible; background: var(--c-primary-dark); }
	.primary-nav .container > ul { display: flex; justify-content: center; gap: clamp(8px, 2.5vw, 48px); }
	.primary-nav a { display: flex; align-items: center; min-height: var(--nav-h); padding: 0 8px; border: 0; font-size: 1.02rem; white-space: nowrap; }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px 0; background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow); 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 { min-height: 0; padding: 9px 18px; color: var(--c-text); font-weight: 500; font-size: 0.95rem; }
	.primary-nav .sub-menu a:hover, .primary-nav .children a:hover { color: var(--c-primary); background: var(--c-bg-alt); }

	.hero { min-height: 690px; display: flex; align-items: center; background: linear-gradient(100deg, var(--c-primary) 0 50%, var(--c-primary-dark) 80%, var(--c-bg-dark) 100%); }
	.hero::before { left: 50%; }
	.hero__media { position: absolute; inset: 0 50% 0 0; height: auto; }
	.hero__media::after { inset: 0 -1px 0 auto; width: 35%; height: auto; background: linear-gradient(90deg, rgba(46, 139, 46, 0), var(--c-primary)); }
	.hero__inner { display: flex; justify-content: flex-end; }
	.hero__content { width: 50%; max-width: 620px; padding-block: 56px; }
	.hero__benefits { grid-template-columns: repeat(5, 1fr); }
	.hero__stat { grid-template-columns: auto auto 1fr auto; }
	.hero__stat .btn { grid-column: auto; }

	.reasons { grid-template-columns: 1fr 360px 1fr; align-items: center; gap: 28px; }
	.reasons__media { order: 0; }
	.reasons__col--left .reason { flex-direction: row-reverse; text-align: right; }
	.solutions { grid-template-columns: repeat(6, 1fr); }
	.solution { grid-column: span 2; }
	.solution:nth-child(4) { grid-column: 2 / span 2; }
	.products { grid-template-columns: repeat(6, 1fr); }
	.products > * { grid-column: span 2; }
	.products > :nth-child(4) { grid-column: 2 / span 2; }
	.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: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Bảng giá đầy đủ */
.price-group { margin-bottom: 3rem; scroll-margin-top: calc(var(--nav-h) + 20px); }
.price-group__title { text-transform: uppercase; color: var(--c-primary-dark); border-left: 6px solid var(--c-accent); padding-left: 14px; }
.price-group .price-table { min-width: 520px; }
.price-group__more { margin-top: 0.75rem; text-align: right; font-weight: 600; }

/* Trang sản phẩm */
.page-hero--product { padding-block: 16px; }
.page-hero--product .breadcrumb { margin: 0; }
.product__top { display: grid; gap: 28px; align-items: start; }
.product__media { overflow: hidden; border-radius: var(--radius); background: var(--c-grey); border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.product__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product__group { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--c-bg-alt); color: var(--c-primary-dark); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.product__title { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); color: var(--c-heading); margin-bottom: 0.4em; }
.product__excerpt { color: var(--c-text-muted); }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 1rem 0; padding: 16px 18px; border-radius: var(--radius); background: var(--c-bg-alt); border-left: 6px solid var(--c-accent); }
.product__price span { width: 100%; font-size: 0.85rem; color: var(--c-text-muted); }
.product__price strong { font-family: var(--f-heading); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--c-primary-dark); }
.product__price em { font-style: normal; color: var(--c-text-muted); }
.product__price small { width: 100%; font-size: 0.82rem; color: var(--c-text-muted); }
.product__specs { margin-bottom: 1.25rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.25rem; }
.product__promise { margin: 0; }
.product__aside .form { position: static; }
.entry h2 { text-transform: none; color: var(--c-heading); }
.entry table { background: #fff; }
.entry th { background: var(--c-bg-alt); text-align: left; }
.catalog__name a { color: inherit; text-decoration: none; }
.catalog__name a::after { content: ""; position: absolute; inset: 0; }
.catalog__item { position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.catalog__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-table__name a { color: inherit; text-decoration: none; }
.price-table__name a:hover { color: var(--c-primary); text-decoration: underline; }
@media (min-width: 768px) {
	.product__top { grid-template-columns: 5fr 6fr; gap: 48px; }
}
@media (min-width: 1024px) {
	.product__aside { position: sticky; top: calc(var(--nav-h) + 20px); }
}
