/*
Theme Name: Mũ Bảo Hiểm TP.HCM
Theme URI: https://mubaohiemtphcm.vn/
Author: mubaohiemtphcm.vn
Description: Theme viết tay cho mubaohiemtphcm.vn — cẩm nang kỹ thuật và đặt sản xuất mũ bảo hiểm in logo tại TP.HCM. Phong cách Industrial Precision; dữ liệu gom trong inc/data.php; schema JSON-LD; biểu mẫu chuẩn bị đơn hàng lưu đơn; 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: mbh-tphcm
*/

/* ==========================================================================
   1. Tokens — nhận diện thương hiệu (01_BRAND_IDENTITY.md, design-tokens.css)
   ========================================================================== */
:root {
	--c-primary: #112B4A;       /* navy — màu chính, chữ trên nền sáng */
	--c-primary-dark: #0a1c31;
	--c-accent: #0875B9;        /* xanh — nút, liên kết, điểm nhấn */
	--c-accent-dark: #065f97;
	--c-highlight: #42B8E8;     /* xanh sáng — chi tiết nhỏ, nền tối */
	--c-bg: #ffffff;
	--c-bg-alt: #F3F8FC;
	--c-bg-dark: #112B4A;
	--c-text: #1d3550;
	--c-text-muted: #56677c;
	--c-text-invert: #ffffff;
	--c-border: #dce6f0;

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-heading: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;            /* 16px mobile → 17px desktop (đặt ở body) */
	--fs-lg: 1.125rem;
	--fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
	--fs-h2: clamp(1.5625rem, 1.3rem + 1.1vw, 2rem);       /* 25 → 32px */
	--fs-h1: clamp(1.875rem, 1.2rem + 2.6vw, 2.75rem);     /* 30 → 44px */

	--radius: 8px;
	--radius-lg: 12px;
	--radius-sm: 6px;
	--radius-pill: 8px;         /* nút: bo 8px theo nhận diện */
	--shadow: 0 10px 30px rgba(17, 43, 74, 0.10);
	--ring: inset 0 0 0 1px var(--c-border);

	--space-section: clamp(3.5rem, 2.6rem + 3.6vw, 6rem);
	--container: 1240px;
	--gutter: 16px;
	--header-h: 76px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.7; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
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-accent-dark); }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.22; margin: 0 0 0.6em; color: var(--c-primary); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
figure { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-highlight); outline-offset: 2px; }
.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: rgba(255, 255, 255, 0.86); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0.6rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); }
.section__eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--c-highlight); }
.section--dark .section__eyebrow { color: var(--c-highlight); }
.section__head--left .section__lead { text-align: justify; text-align-last: left; }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); margin-bottom: 0; }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.78); }
.section__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 2.5rem; }
.section__row .section__head { margin-bottom: 0; }
.section__row--title { align-items: center; margin-bottom: 1rem; }
.section__row--title h2 { margin-bottom: 0; }
#mau-mu .section__head, #quy-trinh .section__head { margin-bottom: 1rem; }
#mau-mu .section__head h2, #quy-trinh .section__head h2 { margin-bottom: 0; }
.section__cta { margin: 2.5rem 0 0; text-align: center; }
.section__cta .btn { min-width: 260px; min-height: 56px; padding: 15px 40px; font-size: 1.0625rem; letter-spacing: 0.02em; box-shadow: 0 8px 20px rgba(8, 117, 185, 0.22); }
.section__lead--full { max-width: none; margin: 0 0 2.5rem; text-align: justify; text-align-last: left; }
.section__more { margin: 2rem 0 0; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

/* ==========================================================================
   3. Nút, liên kết mũi tên
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 52px; padding: 13px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { border-color: var(--c-border); color: var(--c-primary); background: #fff; }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-accent); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   4. Thanh trên + Header
   ========================================================================== */
.topbar { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); font-size: 0.875rem; color: var(--c-text); }
.topbar__inner { display: flex; align-items: center; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--c-accent); }
.topbar strong { color: var(--c-primary); font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.01em; }
.topbar svg { width: 17px; height: 17px; fill: var(--c-accent); flex: none; }
.topbar__contact { display: flex; align-items: center; gap: 28px; }
.topbar__contact a { white-space: nowrap; }
.topbar .topbar__email { display: none; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--c-border); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(17, 43, 74, 0.08); }
.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-weight: 800; color: var(--c-primary); text-decoration: none; }
.site-logo__img, .site-logo img { height: 52px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--c-bg-alt); cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--c-primary); 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: calc(var(--header-h) + 40px) 0 0 0; background: var(--c-bg); padding: 8px 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: 13px 0; color: var(--c-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; 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; color: var(--c-text-muted); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a:hover { color: var(--c-accent); }
.primary-nav .primary-nav__cta { display: flex; margin-top: 20px; border: 0; color: #fff; }
.header-cta { display: none; }

/* ==========================================================================
   5. Hero hai cột
   ========================================================================== */
.hero { position: relative; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); background: linear-gradient(180deg, #fff 0%, var(--c-bg-alt) 100%); overflow: hidden; }
.hero { padding-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.hero + .section { padding-top: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
/* Trang chủ: mọi khối cách đều nhau như khoảng hero → mẫu mũ (chủ web chốt 11/11). */
.home main .section { padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--c-border) 1px, transparent 1px), linear-gradient(90deg, var(--c-border) 1px, transparent 1px); background-size: 48px 48px; opacity: 0.35; mask-image: linear-gradient(90deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero__badge { display: inline-flex; align-items: flex-start; gap: 10px; line-height: 1.5; text-wrap: balance; margin-bottom: 1.1rem; padding: 6px 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--ring); color: var(--c-accent); font-size: var(--fs-sm); font-weight: 600; }
.hero__badge::before { content: ""; flex: none; margin-top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-highlight); }
.hero h1 { font-size: clamp(1.75rem, 1.15rem + 1.9vw, 2.375rem); line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; margin-bottom: 0.6em; }
.hero__br { display: none; }
.hero__lead { max-width: 600px; text-wrap: pretty; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--c-text-muted); text-align: justify; text-align-last: left; margin-bottom: 1.75rem; }
.hero .btn-group { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 600px; }
.hero .btn-group .btn { width: 100%; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.hero__points { display: grid; gap: 8px; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary); }
.hero__points li { position: relative; padding-left: 28px; }
.hero__points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 4px; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero__media figcaption { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; text-align: center; max-width: calc(100% - 32px); line-height: 1.45; padding: 8px 14px; border-radius: var(--radius); background: rgba(17, 43, 74, 0.88); color: #fff; font-size: 0.8125rem; font-weight: 500; }

/* ==========================================================================
   6. Quy trình — dòng thời gian
   ========================================================================== */
.timeline { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.timeline__item { position: relative; padding-left: 64px; }
.timeline__num { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--c-bg-alt); }
.timeline__item::before { content: ""; position: absolute; left: 22px; top: 54px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--c-border); }
.timeline__item::after { content: ""; position: absolute; left: 13px; bottom: -22px; width: 20px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30'%3E%3Cpath d='M10 3v22M3.5 17.5l6.5 7.5 6.5-7.5' fill='none' stroke='%230875B9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.timeline__item:last-child::before, .timeline__item:last-child::after { display: none; }
.timeline__media { margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-border); }
.timeline__media img { width: 100%; height: 100%; object-fit: cover; }
.timeline h3 { margin-bottom: 0.4em; font-size: 1.0625rem; text-align: center; }
.timeline p { margin: 0; text-align: justify; text-align-last: left; color: var(--c-text-muted); font-size: 0.9375rem; line-height: 1.6; }

/* ==========================================================================
   7. Thẻ mẫu mũ + thẻ chung
   ========================================================================== */
.products { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.product { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--ring); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--shadow); }
.product__media { position: relative; aspect-ratio: 1; background: var(--c-bg-alt); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__code { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: var(--radius-sm); background: var(--c-primary); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; }
.product__title { margin-bottom: 0.45em; text-align: center; font-size: 1rem; }
.product__note { flex: 1; text-align: justify; text-align-last: left; margin-bottom: 12px; color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.55; }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 0.875rem; }
.product__spec { color: var(--c-text-muted); font-size: 0.8125rem; }

.card { display: flex; flex-direction: column; background: var(--c-bg); border-radius: var(--radius); box-shadow: var(--ring); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--shadow); }
.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: 20px; }
.card__title { margin-bottom: 0.4em; }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-text-muted); }
.card__meta { margin-top: auto; font-weight: 600; color: var(--c-accent); font-size: var(--fs-sm); }

/* ==========================================================================
   8. Kỹ thuật in logo, kiểm tra chất lượng
   ========================================================================== */
.media-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.media-stack__item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.media-stack__item img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .4s ease; }
.media-stack__item:hover img { transform: scale(1.04); }
.tech-list { display: grid; gap: 4px; margin-bottom: 1.5rem; }
.tech-list__item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.tech-list__num { flex: none; font-size: 0.875rem; font-weight: 800; color: var(--c-accent); padding-top: 2px; }
.tech-list h3 { margin-bottom: 0.25em; font-size: 1.0625rem; }
.tech-list p { margin: 0; color: var(--c-text-muted); font-size: 0.9375rem; text-align: justify; text-align-last: left; }
.checklist__title { margin: 0 0 0.6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-accent); }
.checklist__note { margin: -0.5rem 0 1.25rem; font-size: 0.9375rem; color: var(--c-text-muted); }
.checklist { display: grid; gap: 10px; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 12px 16px 12px 48px; border-radius: var(--radius); background: var(--c-bg-alt); font-weight: 400; color: var(--c-primary); }
.checklist li strong { font-weight: 700; }
.section--alt .checklist li { background: #fff; box-shadow: var(--ring); }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 15px no-repeat; }
.qc-photos { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 18vw, 230px); gap: 12px; }
.qc-photos__item { border-radius: var(--radius-lg); overflow: hidden; background: var(--c-border); }
.qc-photos__item img { width: 100%; height: 100%; object-fit: cover; }
.qc-photos__item:first-child { grid-row: span 2; }

/* ==========================================================================
   9. Thư viện ảnh, lightbox
   ========================================================================== */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--ring); }
.section--dark .gallery__item { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.gallery__item a { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 10px 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--c-text); }
.section--dark .gallery figcaption { color: rgba(255, 255, 255, 0.8); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(10, 28, 49, 0.94); }
.lightbox img { max-height: 90vh; width: auto; border-radius: var(--radius); }
.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; }

/* ==========================================================================
   10. Kiến thức (1 lớn + danh sách)
   ========================================================================== */
.news { display: grid; gap: 28px; }
.news__media { display: block; margin-bottom: 16px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-border); }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
.news__cat { display: inline-block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-accent); }
.news h3 a { color: var(--c-primary); text-decoration: none; }
.news h3 a:hover { color: var(--c-accent); }
.news__main h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.news__main p { color: var(--c-text-muted); }
.news__list { display: grid; gap: 16px; align-content: start; }
.news__item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--ring); }
.news__thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--c-border); }
.news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news__item h3 { margin-bottom: 0.3em; font-size: 1rem; line-height: 1.4; }
.news__item p { margin: 0; font-size: 0.875rem; color: var(--c-text-muted); line-height: 1.5; }

/* ==========================================================================
   11. FAQ + form
   ========================================================================== */
.faq-form { display: grid; gap: 40px; }
.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { position: relative; display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0 18px 16px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 1rem; line-height: 1.5; color: var(--c-primary); cursor: pointer; }
.faq__q::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 2px; background: var(--c-border); transition: background 0.2s; }
.faq__q[aria-expanded="true"]::before { background: var(--c-accent); }
.faq__q::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--c-accent); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 18px 16px; color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.faq__a[hidden] { display: none; }
.faq-form__box { align-self: start; padding: 24px; border-radius: var(--radius-lg); background: var(--c-bg-alt); box-shadow: var(--ring); }
.faq-form__box h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); margin-bottom: 0.4em; }
.faq-form__lead { color: var(--c-text-muted); font-size: 0.9375rem; text-align: justify; text-align-last: left; }

.form { display: grid; gap: 14px; }
.faq-form__box .form, .form--card { padding: 0; }
.form--card { padding: 24px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--ring), 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-primary); }
.form .req { color: #c62828; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; color: var(--c-text); }
.form textarea { min-height: 96px; resize: vertical; }
.form textarea::placeholder { font-style: italic; color: #a3b0bf; opacity: 1; }
.form textarea:placeholder-shown { font-size: 0.6875em; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(8, 117, 185, 0.15); }
.form .form__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--c-text-muted); line-height: 1.5; }
.form .form__check input { flex: none; width: 18px; min-height: 0; height: 18px; margin-top: 3px; accent-color: var(--c-accent); }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; text-align: justify; text-align-last: left; font-size: 0.8125rem; color: var(--c-text-muted); line-height: 1.5; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 4px; }
.notice--ok { background: #e7f5ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   12. Trang con, bài viết
   ========================================================================== */
.page-hero { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); }
.page-hero h1 { margin-bottom: 0.3em; text-wrap: balance; }
.page-hero p { max-width: none; color: var(--c-text-muted); margin: 0; text-align: justify; text-align-last: left; }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 10px; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }
.entry { max-width: 800px; margin-inline: auto; }
.entry--wide { max-width: none; }
/* 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); }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); }
.entry > :first-child { margin-top: 0; }
.page-hero + .section { padding-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); padding-bottom: clamp(2.25rem, 1.75rem + 1.5vw, 3.25rem); }
.entry > :last-child { margin-bottom: 0; }
.page-hero + .section .sidebar { margin-top: 0; }
.entry h3 { margin-top: 1.3em; }
.entry blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.entry th, .entry td { padding: 10px 12px; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry th { background: var(--c-bg-alt); color: var(--c-primary); }
.entry figure { margin: 1.5em 0; }
.entry figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--c-text-muted); }
.entry .note { padding: 14px 18px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f1dfa8; font-size: 0.9375rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius); box-shadow: var(--ring); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; box-shadow: none; }
.layout-sidebar { display: grid; gap: 40px; }
.sidebar__box { padding: 22px; border-radius: var(--radius-lg); background: var(--c-bg-alt); box-shadow: var(--ring); }
.sidebar__box h2, .sidebar__box h3 { font-size: 1.125rem; }
.sidebar__box ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.sidebar__box li { padding: 6px 0; border-bottom: 1px solid var(--c-border); font-size: 0.9375rem; }
.sidebar__box li a { color: var(--c-primary); text-decoration: none; }
.sidebar__box--cta { padding: 28px 24px; }
.sidebar__box--cta h2 { font-size: 1.25rem; }
.sidebar__box .sidebar__points { margin: 0 0 1.25rem; }
.sidebar__points li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--c-border); color: var(--c-primary); font-weight: 500; }
.sidebar__points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sidebar__box li a:hover { color: var(--c-accent); }
.page-section { margin-top: 3rem; }

/* ==========================================================================
   13. CTA + Footer
   ========================================================================== */
.cta-band { padding-block: 56px; background: var(--c-primary); color: rgba(255, 255, 255, 0.86); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band h2 { margin-bottom: 0.25em; color: #fff; }
.cta-band p { margin: 0; }
.site-footer { padding-top: 64px; background: #fff; border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: 0.9375rem; }
.site-footer a { color: var(--c-primary); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer h3 { color: var(--c-primary); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer h3 + h3 { margin-top: 1.1rem; }
.site-footer h3 a { color: inherit; text-decoration: none; }
.site-footer h3 a:hover { color: var(--c-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; line-height: 1.55; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__logo { display: inline-block; }
.site-footer__logo img { height: 76px; width: auto; margin: -6px 0 12px -6px; }
.site-footer__text { text-align: justify; text-align-last: left; }
.site-footer__slogan { text-wrap: balance; font-weight: 700; color: var(--c-primary); margin-bottom: 0.5em; }
.site-footer__eco a { font-weight: 600; color: var(--c-accent); }
.site-footer__bottom { margin-top: 40px; padding-block: 20px 88px; border-top: 1px solid var(--c-border); font-size: 0.8125rem; text-align: center; }

/* ==========================================================================
   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(17, 43, 74, 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); }
.float-contact__zalo { background: #0068ff; }
.float-contact__fb { background: #1877f2; }
.float-contact__mess { background: #a033ff; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.hero .btn-group { grid-template-columns: 1fr 1fr; gap: 14px; }
	.form__row { grid-template-columns: 1fr 1fr; }
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.topbar .topbar__email { display: inline-flex; }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	body { font-size: 1.0625rem; }
	.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: 56px; align-items: center; }
	.products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.timeline { grid-template-columns: repeat(2, 1fr); }
	.timeline__item::before, .timeline__item::after { display: none; }
	.news { grid-template-columns: 1.15fr 1fr; gap: 32px; }
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.faq-form__box { padding: 32px; }
	.topbar { font-size: 0.9375rem; }
	.topbar__inner { min-height: 46px; }
	.topbar strong { font-size: 1.125rem; }
	.media-stack { gap: 16px; }
}
@media (min-width: 1024px) {
	.hero__br { display: inline; }
	.hero h1 { font-size: min(2rem, 2.4vw); line-height: 1.7; text-wrap: wrap; }
	:root { --header-h: 96px; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
	.products { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: stretch; }
	.hero__media { margin: 0; height: 100%; }
	.hero__content h1:first-child { margin-top: -0.32em; }
	.hero__media img { height: 100%; aspect-ratio: auto; }
	.split--media { grid-template-columns: 1fr 1.1fr; }
	.split--qc { grid-template-columns: 1.1fr 1fr; }
	/* Dòng thời gian ngang: số tròn nối bằng đường kẻ (kiểu mẫu). */
	.timeline { grid-template-columns: repeat(5, 1fr); gap: 20px; }
	.timeline__item { padding-left: 0; padding-top: 64px; }
	.timeline__num { left: 50%; transform: translateX(-50%); }
	.timeline__item::before { display: none; }
	.timeline__item::after { display: block; left: calc(100% - 12px); right: auto; top: 13px; bottom: auto; width: 44px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20'%3E%3Cpath d='M3 10h34M29 3.5l7.5 6.5-7.5 6.5' fill='none' stroke='%230875B9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
	.timeline__item:last-child::before, .timeline__item:last-child::after { display: none; }
	.faq-form { grid-template-columns: 1.1fr 1fr; gap: 56px; }
	.faq-form__box { position: sticky; top: calc(var(--header-h) + 20px); }
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
	.layout-sidebar .entry { margin-inline: 0; }
	.site-footer__grid { grid-template-columns: 1.9fr 1.25fr 1fr 0.7fr; gap: 48px; }
	.site-footer__logo img { height: 64px; margin: -10px 0 6px -6px; }
	.site-footer__brand p { margin-bottom: 0.6em; }
	.site-footer__brand .site-footer__eco { margin-bottom: 0; }
	.nav-toggle { display: none; }
	.primary-nav { position: static; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav .primary-nav__cta { display: none; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 14px; }
	.primary-nav a { position: relative; padding: 12px 16px; border: 0; font-size: 1rem; white-space: nowrap; }
	.primary-nav > div > ul > li > a::before, .primary-nav > ul > li > a::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--c-highlight); transform: scaleX(0); transition: transform .2s ease; }
	.primary-nav .current-menu-item > a::before, .primary-nav li > a:hover::before { transform: scaleX(1); }
	.primary-nav li { position: relative; }
	.primary-nav .sub-menu, .primary-nav .children { display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 250px; padding: 8px 0; background: var(--c-bg); border-radius: var(--radius); box-shadow: var(--ring), var(--shadow); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
	.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { display: block; }
	.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: 0.6; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 8px 16px; white-space: nowrap; }
	.header-cta { display: inline-flex; white-space: nowrap; flex: none; min-height: 54px; padding: 14px 32px; font-size: 1rem; letter-spacing: 0.03em; box-shadow: 0 6px 16px rgba(8, 117, 185, 0.22); }
	.site-logo { flex: none; }
	.site-logo__img, .site-logo img { height: 84px; }
	.float-contact { left: auto; right: 20px; bottom: 20px; grid-auto-flow: row; gap: 12px; background: none; box-shadow: none; }
	.float-contact__btn { width: 54px; height: 54px; min-height: 0; border-radius: 50%; box-shadow: var(--shadow); }
	.float-contact__btn span { display: none; }
	.site-footer__bottom { padding-bottom: 20px; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
	.site-footer__grid { grid-template-columns: 2.1fr 1.3fr 1.1fr 0.55fr; gap: 32px; }
	.primary-nav > div > ul, .primary-nav > ul { gap: 4px; }
	.primary-nav a { padding: 12px 12px; font-size: 0.9375rem; }
	.header-cta { padding-left: 22px; padding-right: 22px; }
	.site-logo__img, .site-logo img { height: 72px; }
}
@media (min-width: 1024px) and (min-height: 700px) {
	.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
