/*
Theme Name: QATA Group
Theme URI: https://songocaocap.com/
Author: QATA Group
Description: Theme viết tay cho QATA Group – keo phun & sơn gỗ 2K: header 2 tầng, hero chia đôi, sản phẩm không WooCommerce (nhận báo giá), dữ liệu gom trong inc/data.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: qata
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây (màu theo logo QATA, phong cách học từ mẫu)
   ========================================================================== */
:root {
	--c-primary: #22509a;
	--c-primary-dark: #173b75;
	--c-primary-light: #2f66bd;
	--c-accent: #f37a20;
	--c-accent-light: #ff9a3d;
	--c-accent-text: #ffb366;
	--c-green: #2a9a5a;
	--c-bg: #ffffff;
	--c-bg-tint: #eef3fa;
	--c-bg-grey: #f1f3f5;
	--c-bg-dark: #0c2148;
	--c-text: #222222;
	--c-heading: #14284d;
	--c-text-muted: #555555;
	--c-text-invert: #ffffff;
	--c-border: #dde4ee;

	--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(1.85rem, 1.2rem + 2.4vw, 3rem);
	--fs-h1: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
	--fs-script: clamp(1.5rem, 1.25rem + 1vw, 2.15rem);

	--radius: 16px;
	--radius-md: 12px;
	--radius-sm: 6px;
	--radius-pill: 999px;
	--shadow: 0 15px 30px -18px rgba(0, 0, 0, 0.45);
	--shadow-soft: 0 10px 30px -12px rgba(12, 33, 72, 0.22);
	--shadow-btn: 0 18px 30px -16px rgba(12, 33, 72, 0.65);

	--space-section: clamp(3rem, 2.2rem + 3.5vw, 5rem);
	--container: 1200px;
	--gutter: 16px;
	--nav-h: 52px;
	--pattern: repeating-radial-gradient(circle at 18% 30%, transparent 0 26px, rgba(34, 80, 154, 0.045) 26px 27px), repeating-radial-gradient(circle at 85% 80%, transparent 0 30px, rgba(34, 80, 154, 0.04) 30px 31px);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -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 { margin: 0 0 0.5em; font-family: var(--f-heading); font-weight: 600; line-height: 1.2; 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.25em; height: 1.25em; 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--tint { background: var(--c-bg-tint); }
.section--grey { background: var(--c-bg-grey); }
.section--pattern { background-color: var(--c-bg-tint); background-image: var(--pattern); }
.section--brand { position: relative; background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 40%), linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 70%, var(--c-bg-dark) 100%); color: var(--c-text-invert); }
.section--brand .section__title, .section--brand h2, .section--brand h3 { color: #fff; }
.section--brand .section__lead { color: rgba(255, 255, 255, 0.85); }
.section--brand .section__script { color: var(--c-accent-text); }

/* Tiêu đề khối: chữ viết tay + H2 Oswald in hoa (phong cách mẫu). */
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__script { display: block; margin-bottom: 0.15rem; font-family: var(--f-script); font-size: var(--fs-script); font-weight: 700; line-height: 1.2; color: var(--c-accent); }
.section__title { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: 0.01em; color: var(--c-heading); text-wrap: balance; }
.section__title::after { content: ""; display: block; width: 64px; height: 4px; margin: 0.45em auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light)); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); margin-bottom: 0; }
.section__actions { margin: 2.5rem 0 0; text-align: center; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ==========================================================================
   3. Nút
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.95rem; 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:hover { transform: translateY(-2px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--accent { background: linear-gradient(180deg, var(--c-accent-light), var(--c-accent)); color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.btn--accent:hover { color: #fff; filter: brightness(1.05); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { color: var(--c-primary-dark); }
.btn--raised { box-shadow: var(--shadow-btn); }
.btn--sm { min-height: 40px; padding: 8px 12px; font-size: 0.82rem; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group--stack { flex-direction: column; }
.btn-group--stack .btn { width: 100%; }
.section--brand .btn-group .btn--ghost, .quote-band .btn--ghost { border-color: rgba(255, 255, 255, 0.7); }
.tag { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--c-bg-tint); color: var(--c-primary); font-size: 0.75rem; font-weight: 600; }
.checklist { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checklist .icon { margin-top: 2px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-green); color: #fff; stroke-width: 3; }

/* ==========================================================================
   4. Header 2 tầng
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.35); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding-block: 8px; }
.topbar__info { display: none; }
.info-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; line-height: 1.25; }
.info-chip small { display: block; font-size: 0.8rem; color: var(--c-text-muted); }
.info-chip strong { display: block; font-size: 0.95rem; color: var(--c-primary); }
.info-chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.info-chip__icon .icon { width: 20px; height: 20px; }
.info-chip__icon--primary { background: var(--c-primary); }
.info-chip__icon--accent { background: var(--c-accent); }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo__img { width: auto; height: 46px; }
.site-logo__text { font-family: var(--f-heading); font-size: 1.5rem; font-weight: 700; color: var(--c-primary); }
.topbar__cta { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--c-primary); cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; 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: -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); }

/* Menu: mobile là ngăn trượt, desktop là thanh xanh dương đậm. */
.navbar { position: fixed; inset: 68px 0 0 0; z-index: 99; background: #fff; padding: 8px 0 32px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
.nav-open .navbar { transform: none; }
.navbar ul { list-style: none; margin: 0; padding: 0; }
.navbar a { display: block; padding: 12px 0; color: var(--c-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.navbar .sub-menu a { padding-left: 16px; font-weight: 400; font-size: 0.95rem; }
.navbar .sub-menu .sub-menu a { padding-left: 32px; }
.navbar .current-menu-item > a, .navbar a:hover { color: var(--c-accent); }
.navbar__mobile-contact { margin-top: 20px; }

/* ==========================================================================
   5. Hero chia đôi
   ========================================================================== */
.hero { position: relative; display: grid; background: var(--c-primary-dark); color: #fff; overflow: hidden; }
.hero__media { position: relative; min-height: 280px; background: var(--c-bg-tint); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.hero__panel { position: relative; z-index: 1; margin-top: -28px; padding: 40px var(--gutter) 40px; border-radius: 50% 50% 0 0 / 28px 28px 0 0; background: radial-gradient(circle at 75% 15%, rgba(120, 175, 255, 0.28), transparent 50%), linear-gradient(135deg, var(--c-primary-light) 0%, #1f55b0 45%, var(--c-primary-dark) 100%); box-shadow: 0 -8px 0 rgba(120, 170, 240, 0.35); overflow: hidden; }
.hero__panel::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: 0.5; pointer-events: none; }
.hero__panel::after { content: ""; position: absolute; inset: 0 0 auto auto; width: 42%; height: 62%; background: var(--hero-bg, none) right top / cover no-repeat; opacity: 0.22; -webkit-mask-image: radial-gradient(ellipse at 100% 0, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0, #000 25%, transparent 70%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__script { display: block; font-family: var(--f-script); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.1; color: var(--c-accent-text); }
.hero__title { margin: 0 0 0.6em; font-family: var(--f-body); font-size: clamp(1.55rem, 1.1rem + 2vw, 3rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; color: #fff; text-wrap: balance; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.hero__accent { display: block; font-size: clamp(2.7rem, 1.5rem + 4.6vw, 5.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.015em; text-transform: uppercase; }
.hero__accent::after { content: ""; display: block; width: clamp(110px, 8vw + 60px, 210px); height: 6px; margin: 0.18em 0 0.22em; border-radius: 999px; background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light, #ff9a3d)); }
.hero__lead { margin-bottom: 1.4rem; font-size: var(--fs-lg); color: rgba(255, 255, 255, 0.92); text-align: justify; text-align-last: left; }
.hero__perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hero__perks li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 100px; padding: 14px 8px; border-radius: 14px; background: #fff; color: var(--c-primary-dark); font-size: 0.86rem; font-weight: 700; line-height: 1.3; text-align: center; text-wrap: balance; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45); }
.hero__perks li:last-child { grid-column: 1 / -1; }
.hero__perks .icon { width: 34px; height: 34px; color: var(--c-primary-light); }
.hero__perks .is-orange .icon { color: var(--c-accent); }
.hero__perks .is-green .icon { color: var(--c-green, #2a9a5a); }
.hero__perks .icon--fill { fill: currentColor; stroke: none; }
.hero__stat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--c-text); box-shadow: var(--shadow); }
.hero__stat-icon { width: 36px; height: 36px; color: var(--c-primary); }
.hero__stat strong { font-family: var(--f-body); font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--c-primary); }
.hero__stat span { flex: 1 1 140px; font-size: 0.88rem; color: #333; line-height: 1.4; text-wrap: balance; }
.hero__stat .btn { flex: 1 1 100%; }
@media (min-width: 600px) {
	.hero__perks { grid-template-columns: repeat(3, 1fr); }
	.hero__perks li:last-child { grid-column: auto; }
}
@media (min-width: 768px) {
	.hero__media { min-height: 400px; }
	.hero__panel { padding: 52px 40px 48px; }
	.hero__stat .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
	.hero { grid-template-columns: 48% 1fr; min-height: clamp(600px, 38vw, 820px); }
	.hero__media { grid-area: 1 / 1 / 2 / 3; width: calc(48% + 100px); min-height: 0; background: #6b5240; }
	/* Ảnh luôn cao bằng khối, neo mép phải → lon keo (cách mép phải ảnh ~16%) luôn nằm trước khối xanh, không bị cắt đầu */
	.hero__img { inset: 0 0 0 auto; width: auto; max-width: none; height: 100%; object-fit: fill; }
	.hero__media::before { content: ""; position: absolute; inset: -30px; background: var(--hero-photo, none) left center / cover no-repeat; filter: blur(16px) brightness(0.9); }
	.hero__panel { grid-area: 1 / 2 / 2 / 3; display: flex; align-items: center; margin: 0; padding: 44px 40px 44px 64px; border-radius: 90px 0 0 90px / 50% 0 0 50%; box-shadow: -12px 0 0 rgba(120, 170, 240, 0.4), -30px 0 50px rgba(0, 0, 0, 0.25); }
	.hero__accent { font-size: clamp(3.4rem, 1rem + 4.4vw, 5rem); }
	.hero__title { font-size: clamp(2rem, 0.9rem + 1.8vw, 2.9rem); margin-bottom: 0.5em; }
	.hero__lead { margin-bottom: 1.2rem; font-size: 1.02rem; }
	.hero__perks { grid-template-columns: repeat(5, 1fr); gap: 8px; }
	.hero__perks li { min-height: 104px; padding: 12px 6px; font-size: 0.82rem; }
	.hero__stat span { flex: 1 1 120px; min-width: 0; }
	.hero__stat .btn { white-space: nowrap; }
}
@media (min-width: 1280px) {
	.hero__panel { padding-right: 48px; padding-left: 64px; }
	.hero__perks li { font-size: 0.88rem; }
	.hero__stat { flex-wrap: nowrap; gap: 10px 12px; }
	.hero__stat span { padding-right: 14px; border-right: 1px solid var(--c-border); }
	.hero__stat span { font-size: 0.84rem; }
	.hero__stat .btn { padding-inline: 20px; font-size: 0.9rem; }
}

/* ==========================================================================
   6. Vì sao chọn + chứng nhận
   ========================================================================== */
.reasons { display: grid; gap: 20px; align-items: center; }
.reasons__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reason { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.reason__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary)); color: #fff; }
.reason__icon .icon { width: 24px; height: 24px; }
.reason__title { margin-bottom: 0.2em; font-size: 1.1rem; text-transform: uppercase; color: var(--c-primary); }
.reason p { margin: 0; color: var(--c-text-muted); font-size: 0.93rem; }
.reasons__media { order: -1; justify-self: center; max-width: 420px; padding: 10px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }
.reasons__media img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.certs { margin-top: 2.5rem; text-align: center; }
.certs__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-primary); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; }
.certs__label .icon { color: var(--c-green); }
.certs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto; }
.certs__item { display: block; padding: 8px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); color: var(--c-text-muted); font-size: 0.75rem; line-height: 1.3; text-decoration: none; }
.certs__item img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 6px; }

/* ==========================================================================
   7. Ngành nghề
   ========================================================================== */
.usecase { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--c-border); border-top: 4px solid var(--c-primary); border-radius: var(--radius); background: #fff; color: var(--c-text); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform 0.2s, border-color 0.2s; }
.usecase:hover { transform: translateY(-4px); border-top-color: var(--c-accent); color: var(--c-text); }
.usecase__icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: var(--radius-md); background: var(--c-bg-tint); color: var(--c-primary); }
.usecase__icon .icon { width: 28px; height: 28px; }
.usecase__body { display: flex; flex-direction: column; gap: 4px; }
.usecase__title { font-family: var(--f-heading); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; color: var(--c-heading); }
.usecase__text { color: var(--c-text-muted); font-size: 0.92rem; }
.usecase__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.help-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 2rem; padding: 16px 20px; border: 1px dashed var(--c-primary); border-radius: var(--radius); background: #fff; text-align: center; font-weight: 500; color: var(--c-primary-dark); }
.help-band > .icon { width: 28px; height: 28px; color: var(--c-accent); }

/* ==========================================================================
   8. Thẻ sản phẩm, nhóm
   ========================================================================== */
.product-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: var(--shadow); transition: transform 0.2s; }
.product-card:hover { transform: translateY(-4px); }
.product-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--c-bg-tint); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--c-accent); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.product-card__cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-accent); }
.product-card__title { margin: 0.2em 0 0.5em; font-size: 1.12rem; text-transform: uppercase; line-height: 1.25; }
.product-card__title a { color: var(--c-heading); text-decoration: none; }
.product-card__title a:hover { color: var(--c-primary); }
.product-card__specs { margin: 0 0 12px; font-size: 0.83rem; }
.product-card__specs div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--c-border); }
.product-card__specs dt { color: var(--c-text-muted); flex: none; }
.product-card__specs dd { margin: 0; font-weight: 600; text-align: right; }
.product-card__price { margin: auto 0 12px; font-weight: 700; color: var(--c-accent); font-size: 1.05rem; }
.product-card__price.is-quote { font-size: 0.9rem; color: var(--c-primary); }
.product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-card__actions .btn { padding-inline: 8px; }

.group-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.group-grid > * { flex: 0 0 calc((100% - 14px) / 2); }
.group-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; color: var(--c-text); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.group-card:hover { transform: translateY(-4px); color: var(--c-text); }
.group-card__media { aspect-ratio: 1; background: var(--c-bg-tint); overflow: hidden; }
.group-card__media img { width: 100%; height: 100%; object-fit: cover; }
.group-card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; border-top: 3px solid var(--c-primary); }
.group-card__title { font-family: var(--f-heading); font-size: 1rem; font-weight: 600; text-transform: uppercase; line-height: 1.25; color: var(--c-heading); }
.group-card__count { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--c-accent); font-weight: 600; }
.group-card__count .icon { width: 14px; height: 14px; }

/* ==========================================================================
   9. Bảng so sánh
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-soft); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.compare thead th { background: var(--c-primary); color: #fff; font-family: var(--f-heading); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.compare tbody th { font-family: var(--f-heading); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.compare tbody th a { color: var(--c-primary); text-decoration: none; }
.compare tbody tr:nth-child(even) { background: var(--c-bg-tint); }
.compare tbody tr:hover { background: #fff6ee; }
.compare__note { margin-top: 12px; font-size: 0.85rem; color: var(--c-text-muted); text-align: center; }

/* ==========================================================================
   10. Đại lý, quy trình, FAQ
   ========================================================================== */
.dealer__inner { display: grid; gap: 28px; align-items: center; }
.dealer__media img { width: 100%; border-radius: var(--radius); border: 6px solid rgba(255, 255, 255, 0.15); box-shadow: var(--shadow); }
.dealer__body .section__title::after { margin-left: 0; }
.dealer__body p { color: rgba(255, 255, 255, 0.9); }
.dealer .checklist .icon { background: var(--c-accent); }

.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.process__step { position: relative; padding: 22px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-border); text-align: center; box-shadow: var(--shadow-soft); }
.process__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary)); color: #fff; box-shadow: 0 0 0 6px var(--c-bg-tint); }
.process__icon .icon { width: 28px; height: 28px; }
.process__num { display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill); background: var(--c-accent); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.process__title { margin: 0.5em 0 0.3em; font-size: 1.1rem; text-transform: uppercase; }
.process__step p { margin: 0; color: var(--c-text-muted); font-size: 0.9rem; }

.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); overflow: hidden; }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: none; text-align: left; font-weight: 600; font-size: 1rem; color: var(--c-heading); cursor: pointer; }
.faq__q[aria-expanded="true"] { background: var(--c-primary); color: #fff; }
.faq__q::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-bg-tint); color: var(--c-primary); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); background: #fff; }
.faq__a { padding: 16px 20px 6px; color: var(--c-text-muted); }
.faq__a[hidden] { display: none; }

/* ==========================================================================
   11. Form báo giá
   ========================================================================== */
.quote-band { position: relative; background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-bg-dark) 100%); color: #fff; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); opacity: 0.5; pointer-events: none; }
.quote-band__inner { position: relative; display: grid; gap: 28px; align-items: center; }
.quote-band .section__script { color: var(--c-accent-text); }
.quote-band .section__title { color: #fff; }
.quote-band .section__title::after { margin-left: 0; }
.quote-band .section__lead { color: rgba(255, 255, 255, 0.88); }
.quote-band__form { padding: 22px 18px; border-radius: var(--radius); background: #fff; color: var(--c-text); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.quote-band__form-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--f-heading); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; color: var(--c-primary); }
.quote-band__form-title .icon { color: var(--c-accent); }
.quote-band__form .form { padding: 0; box-shadow: none; }
.form { display: grid; gap: 14px; padding: 24px; background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.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: 48px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #f8fafd; color: var(--c-text); }
.form textarea { min-height: 100px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(34, 80, 154, 0.15); }
.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: 4px; }
.notice--ok { background: #e6f5ec; color: #1b6b3a; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   12. Trang con: page hero, danh sách sản phẩm, chi tiết sản phẩm
   ========================================================================== */
.page-hero { padding-block: 36px 40px; background-color: var(--c-bg-tint); background-image: var(--pattern); }
.page-hero--slim { padding-block: 14px; }
.page-hero--slim .breadcrumb { margin: 0; }
.page-hero h1 { margin-bottom: 0.3em; color: var(--c-heading); }
.page-hero .section__script { font-size: 1.6rem; }
.page-hero__lead { max-width: 820px; color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.page-hero__lead p:last-child { margin-bottom: 0; }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--c-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.chip-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.chip { flex: none; padding: 8px 16px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-text); font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover, .chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.chip-nav--sub { margin-top: -6px; }
.chip--sub { background: var(--c-bg-tint); border-color: transparent; color: var(--c-primary); }
.chip--sub span { font-weight: 400; opacity: 0.75; }

.product-top { padding-top: 28px; }
.product-top__inner { display: grid; gap: 28px; }
.product-gallery__main { overflow: hidden; border-radius: var(--radius); background: var(--c-bg-tint); box-shadow: var(--shadow-soft); }
.product-gallery__main img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.product-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.product-gallery__thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: #fff; overflow: hidden; cursor: pointer; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: var(--c-accent); }
.product-info__cat { display: inline-block; margin-bottom: 6px; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--c-bg-tint); color: var(--c-primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.product-info__title { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); text-wrap: balance; }
.product-info__excerpt { color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.product-info__excerpt ul { padding-left: 1.2em; }
.product-info__specs { margin: 1rem 0 1.25rem; border-radius: var(--radius-md); background: var(--c-bg-tint); padding: 6px 16px; }
.product-info__specs div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); }
.product-info__specs div:last-child { border-bottom: 0; }
.product-info__specs dt { color: var(--c-text-muted); }
.product-info__specs dd { margin: 0; font-weight: 600; }
.product-info__price { color: var(--c-accent); font-size: 1.2rem; }
.product-info__price.is-quote { color: var(--c-primary); font-size: 1rem; }
.product-info__price small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--c-text-muted); }
.product-info__actions { display: grid; gap: 10px; }
.product-info__trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--c-text-muted); }
.product-info__trust li { display: flex; align-items: center; gap: 10px; }
.product-info__trust .icon { color: var(--c-green); }
.product-detail__inner { display: grid; gap: 28px; align-items: start; }
.product-detail__content { max-width: none; padding: 24px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.product-detail__heading { font-size: 1.6rem; text-transform: uppercase; padding-bottom: 0.4em; border-bottom: 3px solid var(--c-accent); display: inline-block; }
.product-detail__aside { align-self: stretch; }
.aside-box { padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.aside-box__title { margin-bottom: 0.4em; font-family: var(--f-heading); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; color: var(--c-primary); }
.aside-box__title--sub { margin-top: 1.25rem; font-size: 1rem; }
.aside-box__links { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; }
.aside-box__links a { display: block; padding: 6px 0; border-bottom: 1px dashed var(--c-border); color: var(--c-text); text-decoration: none; }
.aside-box__links a:hover { color: var(--c-accent); }

/* ==========================================================================
   13. Nội dung trang, bài viết
   ========================================================================== */
.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); margin-block: 1em; }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); color: var(--c-primary); }
.entry h3 { margin-top: 1.4em; color: var(--c-heading); }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-tint); }
.entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.entry th { background: var(--c-bg-tint); }
.entry .entry-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 1.25em 0; }
.entry .entry-gallery img { margin: 0; aspect-ratio: 1; object-fit: cover; width: 100%; }
.entry iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card__media { aspect-ratio: 16 / 10; background: var(--c-bg-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.card__title { font-size: 1.1rem; margin-bottom: 0.4em; }
.card__title a { color: var(--c-heading); text-decoration: none; }
.card__text { color: var(--c-text-muted); font-size: 0.92rem; }
.card__meta { margin-top: auto; font-size: 0.85rem; font-weight: 600; color: var(--c-accent); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.page-numbers { min-width: 42px; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; text-align: center; text-decoration: none; }
.page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--c-bg-tint); }
.contact-list .icon { margin-top: 2px; color: var(--c-primary); }
.contact-map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* ==========================================================================
   14. CTA + Footer
   ========================================================================== */
.cta-band { padding-block: 56px; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 0.4em; color: #fff; text-transform: uppercase; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn--ghost { border-color: #fff; }
.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-text); }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__title { margin-bottom: 0.8em; font-size: 1.25rem; text-transform: uppercase; color: #fff; }
.site-footer__title span { color: var(--c-accent-text); font-size: 0.8em; text-transform: none; font-family: var(--f-body); font-weight: 500; }
.site-footer__title--sub { margin-top: 1.5rem; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__contact li { display: flex; gap: 10px; margin-bottom: 10px; }
.site-footer__contact .icon { margin-top: 1px; color: var(--c-accent-text); }
.site-footer__links li { margin-bottom: 8px; }
.site-footer__links a::before { content: "›"; margin-right: 8px; color: var(--c-accent-text); }
.social { display: flex; gap: 10px; }
.social__btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff !important; }
.social__btn:hover { background: var(--c-accent); }
.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.82rem; }

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

/* ==========================================================================
   16. Lightbox
   ========================================================================== */
.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; }

/* ==========================================================================
   12b. Trang Giới thiệu (landing) — page-templates/template-gioi-thieu.php
   ========================================================================== */
.about-hero { position: relative; padding-block: 24px 48px; background-color: var(--c-bg-tint); background-image: var(--pattern), radial-gradient(circle at 90% 10%, rgba(34, 80, 154, 0.1), transparent 45%); overflow: hidden; }
.about-hero__inner { display: grid; gap: 36px; align-items: center; }
.about-hero .breadcrumb { margin-bottom: 1rem; }
.about-hero__title { margin-bottom: 0.4em; font-size: var(--fs-h1); color: var(--c-heading); text-wrap: balance; }
.about-hero__lead { font-size: var(--fs-lg); color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.about-hero .checklist { margin: 1rem 0 1.5rem; }
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.about-hero__media { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.about-hero__media::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border-radius: 28px; background: linear-gradient(135deg, var(--c-accent), var(--c-accent-light)); opacity: 0.9; }
.about-hero__frame { position: relative; overflow: hidden; border: 6px solid #fff; border-radius: 28px; box-shadow: var(--shadow); }
.about-hero__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about-hero__badge { position: absolute; left: -10px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-size: 0.82rem; line-height: 1.3; color: var(--c-text-muted); }
.about-hero__badge .icon { flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 50%; background: var(--c-green); color: #fff; }
.about-hero__badge strong { display: block; font-size: 0.98rem; color: var(--c-primary-dark); }

.about-stats { position: relative; z-index: 1; margin-top: -24px; }
.about-stats__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: 20px; background: rgba(255, 255, 255, 0.2); box-shadow: var(--shadow); }
.about-stats__list li { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px 18px; background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: rgba(255, 255, 255, 0.85); font-size: 0.86rem; line-height: 1.35; }
.about-stats__list strong { font-family: var(--f-body); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1; color: #fff; }
.about-stats__list li:nth-child(odd) strong { color: var(--c-accent-light); }

.story { display: grid; gap: 28px; align-items: center; }
.story__media { position: relative; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__num { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--f-body); font-size: 1.05rem; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.story__title { margin-bottom: 0.6em; text-align: left; }
.story__title::after { margin-left: 0; }
.story__text { color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.story__tags { display: grid; gap: 8px; margin: 1rem 0; padding: 0; list-style: none; }
.story__tags li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-soft); font-weight: 600; color: var(--c-primary-dark); }
.story__tags .icon { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c-green); color: #fff; stroke-width: 3; }
.story__groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.story__groups a { display: inline-block; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--c-primary); transition: background 0.2s, color 0.2s; }
.story__groups a:hover { background: var(--c-primary); color: #fff; }
.story__note { margin: 0 0 1.25rem; padding-left: 12px; border-left: 3px solid var(--c-accent); font-size: 0.92rem; color: var(--c-text-muted); }

.commit-grid { display: grid; gap: 16px; }
.commit { padding: 24px 20px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; background: rgba(255, 255, 255, 0.07); }
.commit__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 16px; background: var(--c-accent); color: #fff; }
.commit__icon .icon { width: 28px; height: 28px; }
.commit__title { margin-bottom: 0.4em; font-size: 1.15rem; }
.commit p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.94rem; }

.cert-grid { display: grid; gap: 18px; }
.cert-card { display: flex; flex-direction: column; align-items: center; padding: 16px 16px 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); text-align: center; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-card__media { display: block; width: 100%; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--c-border); border-radius: 10px; background: #f1f3f5; }
.cert-card__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cert-card__title { font-weight: 700; color: var(--c-primary-dark); }
.cert-card__sub { font-size: 0.88rem; color: var(--c-text-muted); }

.company { display: grid; gap: 28px; align-items: stretch; }
.company__card { padding: 28px 22px; border: 1px solid var(--c-border); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.company__title { margin-bottom: 0.8em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); text-align: left; }
.company__title::after { margin-left: 0; }
.company .contact-list { margin: 0; }
.company__media { position: relative; min-height: 340px; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.company__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company__cta { position: absolute; inset: auto 14px 14px; display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(12, 33, 72, 0.9); color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.company__cta strong { font-size: 1.05rem; color: #fff; }
.company__cta .btn { justify-self: start; margin-top: 6px; }

@media (min-width: 600px) {
	.about-stats__list { grid-template-columns: repeat(4, 1fr); }
	.cert-grid { grid-template-columns: repeat(3, 1fr); }
	.commit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
	.about-hero { padding-block: 32px 72px; }
	.about-hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
	.about-hero__frame img { aspect-ratio: 1 / 1.1; }
	.story { grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
	.story__media { min-height: 400px; }
	.story__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
	.story__body { align-self: center; }
	.story--reverse .story__media { order: 2; }
	.commit-grid { grid-template-columns: repeat(4, 1fr); }
	.company { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
	.company__card { padding: 36px 32px; }
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.form__row { grid-template-columns: 1fr 1fr; }
	.group-grid > * { flex-basis: calc((100% - 28px) / 3); }
	.product-info__actions { grid-template-columns: 1fr 1fr; }
	.product-info__actions .btn:last-child { grid-column: 1 / -1; }
	.entry .entry-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
	.process { grid-template-columns: repeat(2, 1fr); }
	.dealer__inner { grid-template-columns: 5fr 7fr; gap: 48px; }
	.product-top__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
	.site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
	.product-detail__content { padding: 32px; }
}
@media (min-width: 1024px) {
	.topbar__inner { min-height: 92px; }
	.topbar__info { display: flex; gap: 24px; flex: 1; }
	.topbar__cta { flex: 1; justify-content: flex-end; }
	.site-logo__img { height: 64px; }
	.header-cta { display: inline-flex; }
	.nav-toggle { display: none; }
	.navbar { position: static; transform: none; padding: 0; overflow: visible; background: var(--c-primary-dark); }
	.navbar > .container > ul { display: flex; justify-content: space-between; }
	.navbar a { padding: 0 14px; line-height: var(--nav-h); border: 0; color: #fff; white-space: nowrap; }
	.navbar .current-menu-item > a, .navbar .current-menu-ancestor > a, .navbar a:hover { color: var(--c-accent-text); }
	.navbar li { position: relative; }
	.navbar .menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
	.navbar .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 260px; padding: 8px 0; background: #fff; border-top: 3px solid var(--c-accent); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.navbar .sub-menu .sub-menu { top: -8px; left: 100%; border-top: 0; border-radius: var(--radius-sm); }
	.navbar li:hover > .sub-menu, .navbar li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.navbar .sub-menu a, .navbar .sub-menu .sub-menu a { padding: 9px 18px; line-height: 1.4; color: var(--c-text); font-size: 0.9rem; font-weight: 500; }
	.navbar .sub-menu a:hover { background: var(--c-bg-tint); color: var(--c-primary); }
	.navbar__mobile-contact { display: none; }
	html { scroll-padding-top: 160px; }


	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.reasons { grid-template-columns: 1fr 1.1fr 1fr; gap: 28px; }
	.reasons__media { order: 0; }
	.reasons__col--left .reason { flex-direction: row-reverse; text-align: right; }
	.group-grid > * { flex-basis: calc((100% - 56px) / 5); }
	.process { grid-template-columns: repeat(5, 1fr); position: relative; }
	.process::before { content: ""; position: absolute; top: 54px; left: 10%; right: 10%; border-top: 2px dashed var(--c-primary); opacity: 0.35; }
	.quote-band__inner { grid-template-columns: 1fr 1fr; gap: 56px; }
	.quote-band__form { padding: 32px; }
	.product-detail__inner { grid-template-columns: minmax(0, 1fr) 300px; }
	.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; }
}
/* Khối kêu gọi ở cột phải ghim theo khi cuộn (chỉ màn hình đủ rộng và đủ cao). */
@media (min-width: 1024px) and (min-height: 700px) {
	.sidebar__sticky { position: sticky; top: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
