/*
Theme Name: Tấn Đại Phú
Theme URI: https://tandaiphuplastics.com/
Author: Tấn Đại Phú
Description: Theme viết tay cho Công ty TNHH Tấn Đại Phú — bao bì nhựa. Dữ liệu gom trong inc/data.php, schema JSON-LD, form nhận báo giá lưu đơn, nút liên hệ nổi, không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: tandaiphu
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây
   ========================================================================== */
:root {
	--c-primary: #0B2A5B;
	--c-primary-hover: #14407F;
	--c-primary-dark: #071D40;
	--c-accent: #2E8BEA;
	--c-accent-soft: #D9EAFB;
	--c-bg: #ffffff;
	--c-bg-alt: #EEF5FC;
	--c-bg-dark: #071D40;
	--c-text: #1F2733;
	--c-text-muted: #5F6B7C;
	--c-text-invert: #ffffff;
	--c-border: #DCE5F0;
	--c-silver: #C9D1DC;

	/* Chữ Hán: Nunito Sans không có → rơi về font hệ thống Trung giản thể. */
	--f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--f-heading: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
	--fs-h2: clamp(1.6rem, 1.05rem + 2.4vw, 3rem);
	--fs-h1: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);

	--radius: 16px;
	--radius-sm: 8px;
	--radius-pill: 100px;
	--shadow: 0 1px 16px rgba(11, 42, 91, 0.09);
	--shadow-lg: 0 16px 40px rgba(11, 42, 91, 0.14);

	--space-section: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
	--container: 1280px;
	--gutter: 16px;
	--header-h: 72px;
	--header-gap: 12px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--header-gap) * 2); -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-accent); }
h1, h2, h3, h4 { font-family: var(--f-heading); font-weight: 800; line-height: 1.2; margin: 0 0 0.6em; color: inherit; }
h1 { font-size: var(--fs-h1); text-wrap: balance; }
h2 { font-size: var(--fs-h2); text-wrap: balance; }
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; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section__head { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__head h2 { color: var(--c-primary); }
.section--dark .section__head h2 { color: #fff; }
.section__head--left { margin-inline: 0; text-align: left; }
/* Nhãn nhỏ có gạch ngang trên tiêu đề khối (học phong cách mẫu); căn giữa thì gạch hai bên. */
.section__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 0.75rem; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-primary); }
.section__eyebrow::before, .section__head:not(.section__head--left) .section__eyebrow::after { content: ""; width: 40px; height: 2px; background: var(--c-accent); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); }
.section--dark .section__lead { color: rgba(255, 255, 255, 0.8); }
.section__more { margin: 2.5rem 0 0; text-align: center; }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

/* ==========================================================================
   3. Nút — hình viên thuốc, có mũi tên
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px; border: 1.5px solid transparent; border-radius: var(--radius-pill); font-weight: 700; 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(-2px); }
.btn .icon-arrow { flex: none; transition: transform 0.2s; }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 8px 20px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: #1F78D4; color: #fff; }
.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: currentColor; color: inherit; background: transparent; }
.btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.btn--on-dark:hover { background: #fff; color: var(--c-primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   4. Header — thanh trắng bo góc, nổi trên ảnh đầu trang
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; padding-top: var(--header-gap); pointer-events: none; }
.site-header__inner { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding: 0 12px 0 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow 0.2s; }
.site-header.is-scrolled .site-header__inner { box-shadow: var(--shadow-lg); }
/* Trang con: header nằm trên nền xanh nhạt của page-hero. */
body:not(.home) .site-header { background: var(--c-bg-alt); }
.site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--c-primary); }
.site-logo img { width: 72px; height: auto; flex: none; }
/* Tên + khẩu hiệu: tên to đậm, đường kẻ mảnh, khẩu hiệu nhỏ màu nhấn — 2 dòng cùng một bề rộng. */
.site-logo__text { display: inline-grid; justify-items: start; line-height: 1.1; white-space: nowrap; }
.site-logo__name { font-weight: 800; font-size: 1.32rem; letter-spacing: 0.035em; }
.site-logo__text small { justify-self: stretch; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--c-border); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.015em; color: var(--c-accent); }
/* Tên giãn chữ cho dài bằng dòng khẩu hiệu (khẩu hiệu tiếng Việt dài hơn tiếng Anh). */
@media (min-width: 600px) {
	.site-logo__name { font-size: 1.55rem; letter-spacing: 0.02em; }
	.site-logo__text small { font-size: 0.62rem; }
	:lang(vi) .site-logo__name { letter-spacing: 0.25em; margin-right: -0.25em; }
}
.site-logo--trang { color: #fff; }
.site-logo--trang .site-logo__text small { color: var(--c-silver); border-top-color: rgba(255, 255, 255, 0.25); }
.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-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 { pointer-events: auto; position: fixed; inset: calc(var(--header-h) + var(--header-gap) * 2) var(--gutter) auto; max-height: calc(100vh - var(--header-h) - 48px); background: #fff; padding: 8px 20px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: 0.2s; }
.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 12px 0; color: var(--c-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a, .primary-nav .children a { padding-left: 16px; font-weight: 500; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a:hover { color: var(--c-accent); }
.header-cta { display: none; }
/* Chọn ngôn ngữ: viên thuốc 3 nút, ngôn ngữ đang xem nền navy. */
.lang-switch ul { display: flex; gap: 2px; margin: 0; padding: 3px; list-style: none; background: var(--c-bg-alt); border-radius: var(--radius-pill); }
.lang-switch a { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.03em; color: var(--c-text-muted); text-decoration: none; transition: background 0.2s, color 0.2s; }
.lang-switch a:hover { color: var(--c-primary); }
.lang-switch a.is-current { background: var(--c-primary); color: #fff; }
.lang-switch--header { margin-left: auto; }
.lang-switch a { white-space: nowrap; }
@media (max-width: 599px) {
	.site-header__inner { gap: 8px; padding: 0 4px 0 12px; }
	.site-logo { gap: 8px; }
	.site-logo img { width: 52px; }
	.site-logo__name { font-size: 1rem; }
	.site-logo__text small { max-width: 150px; margin-top: 2px; padding-top: 2px; font-size: 0.56rem; line-height: 1.25; white-space: normal; }
	.lang-switch ul { padding: 2px; }
	.lang-switch a { min-width: 26px; height: 26px; padding: 0 6px; font-size: 0.7rem; }
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0.01em; line-height: 1.3; }
:lang(zh) .section__eyebrow { letter-spacing: 0.12em; }

/* ==========================================================================
   5. Hero — ảnh thật phủ navy chuyển màu bên trái
   ========================================================================== */
.hero { position: relative; margin-top: calc(-1 * (var(--header-h) + var(--header-gap))); padding-block: calc(var(--header-h) + 56px) 64px; color: #fff; background: linear-gradient(125deg, #061733 0%, var(--c-primary) 48%, #123c7a 100%); overflow: hidden; isolation: isolate; }
/* Lưới chấm mờ + 2 quầng sáng xanh — tạo chiều sâu cho nền navy, không cần ảnh nền. */
.hero__bgfx { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(circle at 78% 30%, rgba(46, 139, 234, 0.45), transparent 42%),
		radial-gradient(circle at 8% 90%, rgba(46, 139, 234, 0.25), transparent 38%),
		radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.hero__bgfx::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, rgba(6, 23, 51, 0.35)); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__content { position: relative; z-index: 1; max-width: 640px; }
.hero__line { display: block; width: 92px; height: 4px; margin-bottom: 1.5rem; background: var(--c-accent); border-radius: 2px; }
.hero__badge { display: inline-block; margin-bottom: 1rem; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); margin-bottom: 1.75rem; }
.hero__lead { max-width: 580px; margin-bottom: 2rem; font-size: var(--fs-lg); color: rgba(255, 255, 255, 0.86); text-align: justify; text-align-last: left; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; 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 d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
/* Ảnh bên phải: khung bo góc, ảnh máy móc xếp chồng, 2 thẻ thông tin lơ lửng. */
.hero__visual { position: relative; padding: 0 0 36px 0; }
.hero__frame { position: relative; overflow: hidden; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); outline: 1px solid rgba(255, 255, 255, 0.18); outline-offset: 6px; }
.hero__img { width: 100%; aspect-ratio: 1176 / 615; object-fit: cover; }
.hero__inset { position: absolute; left: -14px; bottom: 0; width: 26%; max-width: 170px; overflow: hidden; border: 5px solid #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero__inset img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero__chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #fff; color: var(--c-text); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25); line-height: 1.2; }
.hero__chip strong { display: block; color: var(--c-primary); font-weight: 800; }
.hero__chip small { display: block; font-size: 0.75rem; color: var(--c-text-muted); }
.hero__chip--iso { top: -18px; right: 12px; }
.hero__chip-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8f6ec; color: #1d8a45; }
.hero__chip--years { right: -8px; bottom: 8px; padding: 12px 18px; background: var(--c-accent); color: #fff; }
.hero__chip--years strong { color: #fff; font-size: 2rem; line-height: 1; }
.hero__chip--years small { color: rgba(255, 255, 255, 0.9); }
@media (max-width: 599px) {
	.hero__chip--iso { top: -14px; right: 6px; padding: 8px 12px; }
	.hero__chip--years { right: 4px; padding: 8px 12px; }
	.hero__chip--years strong { font-size: 1.5rem; }
	.hero__inset { left: 8px; width: 28%; border-width: 3px; }
}
@media (min-width: 1024px) {
	.hero { min-height: min(92vh, 860px); display: flex; align-items: center; }
	.hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
	.hero__visual { padding: 0 0 40px 24px; }
	.hero__inset { left: -8px; }
}

/* ==========================================================================
   6. Đối tác + con số
   ========================================================================== */
.partners { padding-block: 40px; border-bottom: 1px solid var(--c-border); text-align: center; }
.partners__title { margin: 0 0 20px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); }
/* Dải logo chạy vòng: 2 danh sách giống nhau nối tiếp, dịch -50% rồi lặp lại liền mạch. */
.partners__marquee { overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.partners__track { display: flex; width: max-content; animation: tdp-marquee var(--marquee-time, 40s) linear infinite; }
.partners__marquee:hover .partners__track, .partners__marquee:active .partners__track { animation-play-state: paused; }
@keyframes tdp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partners__logos { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.partners__logos li { display: grid; place-items: center; flex: none; width: 150px; height: 84px; padding: 12px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.partners__logos li:hover { border-color: var(--c-accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.partners__logos img { width: auto; height: auto; max-width: 100%; max-height: 58px; object-fit: contain; }
.partners__more { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.stats { padding-block: 56px; background: var(--c-primary); color: #fff; background-image: radial-gradient(circle at 85% 20%, rgba(46, 139, 234, 0.35), transparent 45%); }
.stats__list { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.stats__item { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--c-accent); }
.stats__num { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 800; line-height: 1; }
.stats__label { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); }

/* ==========================================================================
   7. Giới thiệu — 2 ảnh so le
   ========================================================================== */
.about { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: 0.85fr 1fr; gap: 16px; align-items: end; }
.about__img { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--1 { aspect-ratio: 3 / 4; margin-bottom: 0; }
.about__img--2 { aspect-ratio: 3 / 4.6; margin-bottom: 48px; }
.about__body p { text-align: justify; text-align-last: left; color: var(--c-text-muted); }
.about .section__head { margin-bottom: 1.25rem; }
.checklist { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232E8BEA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ==========================================================================
   8. Thẻ sản phẩm, bài viết
   ========================================================================== */
.grid--products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--c-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; background: var(--c-bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card__title { margin-bottom: 0.4em; font-size: 1.15rem; color: var(--c-primary); }
.card__title a { color: inherit; text-decoration: none; }
.card__text { color: var(--c-text-muted); font-size: 0.95rem; }
.card__tag { align-self: flex-start; margin: 0 0 1rem; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--c-accent-soft); color: var(--c-primary); font-size: 0.8rem; font-weight: 700; }
.card__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; color: var(--c-primary); text-decoration: none; }
.card__meta:hover { color: var(--c-accent); }

/* ==========================================================================
   9. Quy trình, bảng giá, đánh giá
   ========================================================================== */
.process { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.process__step { position: relative; padding: 18px 16px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.process__step:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
.process__num { display: block; margin-bottom: 10px; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--c-accent-soft); -webkit-text-stroke: 1.5px var(--c-accent); }
.process__step h3 { margin-bottom: 0.35em; color: var(--c-primary); }
.process__step p { margin: 0; color: var(--c-text-muted); font-size: 0.95rem; }

.price-table__wrap { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead { display: none; }
.price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; border-bottom: 1px solid var(--c-border); }
.price-table th[scope="row"] { grid-column: 1 / -1; order: -1; text-align: left; font-weight: 700; color: var(--c-primary); }
.price-table td { padding: 0; }
.price-table td[data-label="ĐVT"] { display: none; }
.price-table__code { font-size: 0.78rem; font-weight: 700; color: var(--c-text-muted); letter-spacing: 0.04em; }
.price-table__price { font-weight: 800; color: var(--c-primary); font-size: 1.1rem; text-align: right; white-space: nowrap; }
.price-table__price small { font-weight: 600; font-size: 0.8rem; color: var(--c-text-muted); }
.price-table__note { grid-column: 1 / -1; font-size: 0.9rem; color: var(--c-text-muted); }
.price-table__foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 24px; }
.price-table__foot p { margin: 0; max-width: 720px; color: var(--c-text-muted); font-size: var(--fs-sm); }

.quote { position: relative; margin: 0; padding: 32px; background: var(--c-bg-alt); border-radius: var(--radius); }
.quote__mark { color: var(--c-accent); margin-bottom: 12px; }
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; line-height: 1.7; }
.quote blockquote p { margin: 0; text-align: justify; text-align-last: left; }
.quote figcaption { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--c-border); }
.quote figcaption strong { color: var(--c-primary); }
.quote figcaption span { font-size: var(--fs-sm); color: var(--c-text-muted); }

/* ==========================================================================
   9b. Nhà máy & năng lực, chứng nhận, nút tải catalog
   ========================================================================== */
.plant { display: grid; gap: 40px; align-items: center; }
.plant__lead { color: var(--c-text-muted); text-align: justify; text-align-last: left; }
.plant .section__head { margin-bottom: 1.25rem; }
.plant__gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.plant__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); grid-column: span 2; aspect-ratio: 3 / 4; }
.plant__item--1 { grid-column: span 6; aspect-ratio: 16 / 7; }
.plant__item--5, .plant__item--6 { grid-column: span 3; aspect-ratio: 4 / 3; }
.plant__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.plant__item:hover img { transform: scale(1.06); }
.plant__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(7, 29, 64, 0.85)); color: #fff; font-size: 0.8rem; font-weight: 700; }
.btn--catalog { gap: 12px; padding-block: 8px; text-align: left; }
.btn__stack { display: flex; flex-direction: column; line-height: 1.2; }
.btn__note { margin-top: 2px; font-size: 0.72rem; font-weight: 600; opacity: 0.75; }

.cert { display: grid; gap: 32px; align-items: center; max-width: 1000px; margin-inline: auto; padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cert__media a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
.cert__media img { width: 100%; transition: transform 0.4s; }
.cert__media a:hover img { transform: scale(1.03); }
.cert__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color: #fff; box-shadow: var(--shadow-lg); }
.cert__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); background: #e8f6ec; color: #1d6b35; font-size: 0.8rem; font-weight: 700; }
.cert__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a052; }
.cert__title { margin: 12px 0 2px; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); color: var(--c-primary); }
.cert__sub { margin-bottom: 1.25rem; color: var(--c-accent); font-weight: 700; }
.cert__rows { display: grid; gap: 0; margin: 0 0 12px; }
.cert__rows div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--c-border); }
.cert__rows dt { color: var(--c-text-muted); font-size: var(--fs-sm); }
.cert__rows dd { margin: 0; font-weight: 700; }
.cert__note { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
@media (min-width: 768px) { .cert { grid-template-columns: 340px 1fr; gap: 48px; padding: 36px; } }
@media (min-width: 1024px) { .plant { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
@media (max-width: 479px) { .cert__rows div { grid-template-columns: 1fr; gap: 2px; } }

/* ==========================================================================
   10. FAQ, album, lý do (theme gốc)
   ========================================================================== */
.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 { max-width: 860px; margin-inline: auto; }
.faq__item { margin-bottom: 12px; padding-inline: 24px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; font-weight: 700; font-size: var(--fs-lg); color: var(--c-primary); cursor: pointer; }
.faq__q::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent-soft); font-size: 1.25rem; line-height: 1; color: var(--c-primary); transition: transform 0.2s; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { padding-bottom: 18px; color: var(--c-text-muted); }
.faq__a p { text-align: justify; text-align-last: left; }
.faq__a[hidden] { display: none; }
.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; }

/* ==========================================================================
   11. Form báo giá
   ========================================================================== */
.quote-form { display: grid; gap: 40px; align-items: start; }
.contact-list { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--c-accent); }
.contact-list span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-muted); }
.contact-list a { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.page-hero__lead p { margin: 0; }
.contact-cards { display: grid; gap: 12px; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.contact-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
.contact-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); }
.contact-card__body { display: grid; gap: 2px; font-weight: 600; }
.contact-card__body small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-muted); }
.contact-card__body a { font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.map-card { overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card iframe { display: block; width: 100%; height: 320px; border: 0; }
.maps--single .map-card iframe { height: 420px; }
.map-card__body { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 20px; }
.map-card__body h3 { margin: 0 0 2px; color: var(--c-primary); }
.map-card__body p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.form { display: grid; gap: 16px; padding: 28px; background: var(--c-bg); color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--fs-sm); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-text); transition: border-color 0.2s, box-shadow 0.2s; }
.form textarea { min-height: 120px; border-radius: var(--radius); resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(46, 139, 234, 0.18); }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: var(--fs-sm); 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; }

/* ==========================================================================
   12. Nội dung trang, bài viết
   ========================================================================== */
.page-hero { padding-block: 40px 56px; background: var(--c-bg-alt); }
.page-hero h1 { color: var(--c-primary); margin-bottom: 0.3em; }
.page-hero .section__lead { max-width: 760px; margin: 0; }
.not-found { padding-block: 48px 72px; text-align: center; }
.not-found__inner { max-width: 760px; }
.not-found__code { display: block; font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--c-accent); letter-spacing: 0.04em; }
.not-found .section__lead { margin: 0 auto 1.75rem; }
.page-hero--split { padding-block: 32px 64px; overflow: hidden; }
.page-hero__grid { display: grid; gap: 40px; align-items: center; }
.page-hero--split .section__lead { margin-bottom: 1.75rem; text-align: justify; text-align-last: left; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.page-hero__badge { position: absolute; left: -12px; bottom: -20px; display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: var(--c-primary); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.page-hero__badge strong { font-size: 2.4rem; line-height: 1; font-weight: 800; color: #fff; }
.page-hero__badge span { font-size: 0.85rem; line-height: 1.3; color: rgba(255, 255, 255, 0.85); }
.about-page { display: grid; gap: 40px; align-items: start; }
.about-page .entry { max-width: none; margin: 0; }
.catalog-card { margin: 0; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.catalog-card img { width: 100%; }
.catalog-card figcaption { display: grid; gap: 8px; padding: 20px; }
.catalog-card strong { font-size: 1.1rem; color: var(--c-primary); }
.catalog-card span { font-size: var(--fs-sm); color: var(--c-text-muted); }
.catalog-card .btn { justify-self: start; margin-top: 6px; }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-text-muted); margin-bottom: 12px; }
.breadcrumb a { color: inherit; }
.entry { max-width: 820px; margin-inline: auto; }
/* Canh đều đoạn văn dài cho cân đối; dòng cuối canh trái; ô bảng/chú thích ảnh giữ canh trái. */
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry img { border-radius: var(--radius); }
.entry > img.wp-post-image { width: 100%; max-height: 440px; object-fit: cover; }
.entry h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--c-primary); }
.entry h3 { margin-top: 1.4em; color: var(--c-primary); }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1em; overflow: hidden; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--c-border); }
.entry th, .entry td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; }
.entry thead th { background: var(--c-primary); color: #fff; font-weight: 700; }
.entry tbody tr:nth-child(even) { background: var(--c-bg-alt); }
.entry ol li::marker, .entry ul li::marker { color: var(--c-accent); font-weight: 700; }
@media (max-width: 599px) { .entry table { display: block; overflow-x: auto; white-space: nowrap; } }
.entry figure { margin: 1.5em 0; }
/* Ảnh minh họa trong bài ({{anh:...}} khi nhập nội dung): canh giữa, không phóng quá cỡ gốc, chú thích nhỏ. */
.entry .wp-block-image { text-align: center; }
.entry .wp-block-image img { display: inline-block; width: auto; max-width: 100%; max-height: 460px; border-radius: var(--radius); box-shadow: var(--shadow); }
.entry .wp-block-image figcaption { text-align: center; font-style: italic; }
.entry figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.post-title { max-width: 900px; }
.post-meta { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.post-layout { display: grid; gap: 40px; }
.post-body { max-width: none; margin: 0; min-width: 0; }
.post-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.75rem; }
.sidebar { display: grid; gap: 20px; align-content: start; }
.sidebar__sticky { display: grid; gap: 20px; }
.sidebar-cta { display: grid; gap: 10px; padding: 24px; background: var(--c-primary); color: #fff; border-radius: var(--radius); background-image: radial-gradient(circle at 90% 10%, rgba(46, 139, 234, 0.45), transparent 55%); }
.sidebar-cta strong { font-size: 1.2rem; }
.sidebar-cta p { margin: 0 0 6px; font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); }
.sidebar-cta__phone { color: #fff; font-weight: 700; text-align: center; font-size: var(--fs-sm); }
.sidebar-cta__phone:hover { color: #fff; }
.sidebar-list { padding: 20px 24px; background: var(--c-bg-alt); border-radius: var(--radius); }
.sidebar-list strong { display: block; margin-bottom: 8px; color: var(--c-primary); }
.sidebar-list ul { margin: 0; padding: 0; list-style: none; }
.sidebar-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 600; }
.sidebar-list li:last-child a { border-bottom: 0; }
.sidebar-list a:hover { color: var(--c-accent); }
/* Khung "Về đơn vị biên soạn" cuối bài (E-E-A-T) */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 2.5rem; padding: 22px 24px; background: var(--c-bg-alt); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--radius); }
.author-box__logo { flex: none; display: grid; place-items: center; width: 92px; height: 92px; background: #fff; border-radius: 50%; box-shadow: var(--shadow); }
.author-box__logo img { width: 66px; }
.author-box__body p { margin: 0 0 6px; text-align: left !important; }
.author-box__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent); }
.author-box__name { font-weight: 800; color: var(--c-primary); }
.author-box__reviewer { font-weight: 700; }
.author-box__body a { font-weight: 700; text-decoration: none; }
@media (max-width: 599px) { .author-box { flex-direction: column; } .author-box__logo { width: 72px; height: 72px; } .author-box__logo img { width: 52px; } }
.card__date { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.04em; }
.card--post .card__title { font-size: 1.1rem; line-height: 1.35; }
.card--post .card__media { aspect-ratio: 16 / 9; }
.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-pill); text-decoration: none; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ==========================================================================
   13. CTA + Footer navy
   ========================================================================== */
.cta-band { padding-block: 56px; background: var(--c-primary); color: #fff; text-align: center; background-image: radial-gradient(circle at 15% 50%, rgba(46, 139, 234, 0.35), transparent 50%); }
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band .btn-group { justify-content: center; }
.cta-band .btn--ghost { color: #fff; }
.site-footer { padding-top: 64px; background: var(--c-primary); color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { margin-bottom: 1rem; color: #fff; font-size: var(--fs-lg); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer__grid { display: grid; gap: 36px; }
.site-footer__brand .site-logo { margin-bottom: 16px; }
.site-footer__brand .site-logo img { width: 80px; }
.site-footer__legal { margin-bottom: 4px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.site-footer__contact strong { color: #fff; font-weight: 700; }
.site-footer__tax { margin-bottom: 10px; font-size: var(--fs-sm); color: var(--c-silver); }
.site-footer__catalog { margin: 16px 0 0; font-weight: 700; }
.site-footer .btn--ghost { color: #fff; }
.site-footer .btn--ghost:hover { background: #fff; color: var(--c-primary); text-decoration: none; }
.site-footer .btn--accent:hover { color: #fff; text-decoration: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 48px; padding-block: 20px 88px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: var(--fs-sm); }

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

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
	.form__row { grid-template-columns: 1fr 1fr; }
	.stats__list { grid-template-columns: repeat(4, 1fr); }
	.process { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; --header-gap: 16px; }
	.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; }
	.partners__logos li { width: 170px; height: 92px; }
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
	.site-footer__grid > :last-child { grid-column: 1 / -1; }
	.price-table thead { display: table-header-group; }
	.price-table tr { display: table-row; padding: 0; }
	.price-table th, .price-table td { display: table-cell !important; padding: 16px 20px; vertical-align: middle; text-align: left; border-bottom: 1px solid var(--c-border); }
	.price-table thead th { background: var(--c-primary); color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
	.price-table tbody tr:last-child > * { border-bottom: 0; }
	.price-table tbody tr:hover { background: var(--c-bg-alt); }
	.price-table__price { text-align: right; }
	.price-table thead th:nth-child(4) { text-align: right; }
}
@media (min-width: 1024px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.gallery { grid-template-columns: repeat(4, 1fr); }
	.about { grid-template-columns: 1fr 1fr; gap: 72px; }
	.quote-form { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
	.page-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
	.about-page { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
	.about-page__aside { position: sticky; top: calc(var(--header-h) + 40px); }
	.post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
	.sidebar { align-self: stretch; }
	.process { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
	.site-footer__grid > :last-child { grid-column: auto; }
	.site-footer__bottom { padding-bottom: 20px; }
	.nav-toggle { display: none; }
	.primary-nav { position: static; max-height: none; padding: 0; overflow: visible; background: none; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none; margin-left: auto; }
	.primary-nav > div > ul, .primary-nav > ul { display: flex; gap: 2px; }
	.primary-nav a { padding: 10px 14px; border: 0; white-space: nowrap; }
	.primary-nav li { position: relative; }
	.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
	.primary-nav .sub-menu, .primary-nav .children { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px 0; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s; }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu,
	.primary-nav li:hover > .children, .primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a, .primary-nav .children a { padding: 10px 20px; }
	.header-cta { display: inline-flex; }
	.lang-switch--header { margin-left: 8px; }
	.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-lg); }
	.float-contact__btn span { display: none; }
}
@media (min-width: 1200px) {
	.grid--products { grid-template-columns: repeat(5, 1fr); gap: 20px; }
	.process { grid-template-columns: repeat(6, 1fr); }
	.process__step { padding: 22px 18px; }
}
/* ==========================================================================
   16. Chuyển động — hiện dần khi cuộn, ảnh đầu trang phóng chậm, header thu gọn
   (class .reveal chỉ do JS thêm → không JS vẫn hiện đủ nội dung)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0ms; }

.hero__visual { animation: tdp-rise 1s 0.2s cubic-bezier(.2,.7,.2,1) both; }
.hero__img { animation: tdp-zoom 14s ease-out both; }
@keyframes tdp-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__chip--iso { animation: tdp-float 5s ease-in-out 1.2s infinite; }
.hero__chip--years { animation: tdp-float 6s ease-in-out 0.4s infinite reverse; }
.hero__inset { animation: tdp-float 7s ease-in-out infinite; }
@keyframes tdp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__content > * { animation: tdp-rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(2) { animation-delay: 0.1s; }
.hero__content > :nth-child(3) { animation-delay: 0.2s; }
.hero__content > :nth-child(4) { animation-delay: 0.32s; }
.hero__content > :nth-child(5) { animation-delay: 0.44s; }
@keyframes tdp-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__line { animation-name: tdp-line; transform-origin: left; }
@keyframes tdp-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Gợi ý cuộn xuống ở đáy ảnh đầu trang. */
.hero__scroll { display: none; }
@media (min-width: 768px) { .hero__scroll { display: block; } }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; z-index: 1; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 14px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: tdp-scroll 1.8s ease-in-out infinite; }
@keyframes tdp-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.site-header__inner { transition: min-height 0.25s, box-shadow 0.25s, background 0.25s; }
.site-header.is-scrolled .site-header__inner { min-height: 62px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-logo img { transition: width 0.25s; }
.site-header.is-scrolled .site-logo img { width: 60px; }

/* Nút chính có vệt sáng lướt qua khi rê chuột. */
.btn--primary, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before, .btn--accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.btn--primary:hover::before, .btn--accent:hover::before { transform: translateX(120%); }

/* Nút nổi gọi điện có vòng sóng nhẹ để gây chú ý. */
@media (min-width: 1024px) {
	.float-contact__phone { position: relative; }
	.float-contact__phone::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(11, 42, 91, 0.45); animation: tdp-ring 2.4s infinite; }
}
@keyframes tdp-ring { 0% { box-shadow: 0 0 0 0 rgba(11, 42, 91, 0.45); } 70% { box-shadow: 0 0 0 16px rgba(11, 42, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 42, 91, 0); } }

@media (min-width: 1024px) and (min-height: 700px) {
	.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 36px); }
}
@media (prefers-reduced-motion: reduce) {
	.partners__marquee { -webkit-mask-image: none; mask-image: none; }
	.partners__track { width: auto; justify-content: center; }
	.partners__logos { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
	.partners__logos[aria-hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   17. Tối ưu điện thoại (chủ web yêu cầu 08/11/2026) — bản máy tính không đổi
   ========================================================================== */
.scroll-dots { display: none; }
@media (max-width: 767px) {
	:root { --space-section: 3.25rem; }
	.section__head { margin-bottom: 1.75rem; }
	.section__lead { font-size: 1rem; }
	.section__more { margin-top: 1.25rem; }
	.section__more.btn-group .btn { flex: 1 1 100%; }

	/* Dải thẻ trượt ngang (sản phẩm, tin tức, nhận xét, sản phẩm khác): thấy 1 thẻ + mép thẻ kế → biết vuốt. */
	.grid--scroll-mobile { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
	.grid--scroll-mobile::-webkit-scrollbar { display: none; }
	.grid--scroll-mobile > * { scroll-snap-align: start; }
	.grid--scroll-wide { grid-auto-columns: 88%; }
	.grid--scroll-mobile .card:hover, .grid--scroll-mobile .card.reveal.is-visible:hover { transform: none; }
	.grid--scroll-mobile .card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.scroll-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
	.scroll-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--c-silver); cursor: pointer; transition: width 0.25s, background 0.25s; }
	.scroll-dots button.is-active { width: 22px; background: var(--c-accent); }

	/* Đầu trang chủ: gọn hơn, 2 nút bằng nhau. */
	.hero { padding-block: calc(var(--header-h) + 36px) 48px; }
	.hero__grid { gap: 36px; }
	.hero__line { margin-bottom: 1rem; }
	.hero__lead { margin-bottom: 1.5rem; font-size: 1rem; }
	.hero .btn-group { flex-wrap: nowrap; gap: 10px; }
	.hero .btn-group .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: 0.95rem; }
	.hero__trust { margin-top: 1.25rem; gap: 8px 16px; font-size: 0.82rem; }

	/* Giới thiệu: 2 ảnh ngang bằng nhau, không so le. */
	.about { gap: 28px; }
	.about__media { grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
	.about__img--1, .about__img--2 { aspect-ratio: 4 / 3; margin: 0; }
	.about .btn { width: 100%; }

	/* Dải số liệu, quy trình: gọn hơn. */
	.stats { padding-block: 40px; }
	.stats__list { gap: 22px 16px; }
	.process__num { font-size: 1.8rem; margin-bottom: 6px; }
	.process__step h3 { font-size: 1rem; }
	.process__step p { font-size: 0.88rem; }

	/* Nhà máy: ảnh lớn thấp lại. */
	.plant { gap: 28px; }
	.plant__item--1 { aspect-ratio: 16 / 8; }
	.plant .btn-group .btn { width: 100%; }

	/* Chứng nhận: ảnh giấy nhỏ lại, canh giữa. */
	.cert { padding: 20px; gap: 20px; }
	.cert__media { max-width: 230px; margin-inline: auto; }
	.cert__info { text-align: left; }
	.cert__rows div { padding: 9px 0; }

	/* Nhận xét */
	.quote { padding: 24px 22px; }
	.quote blockquote { font-size: 0.98rem; }

	/* Form báo giá + thông tin liên hệ: 2 nút bằng nhau, thông tin gọn. */
	.quote-form { gap: 28px; }
	.contact-list { gap: 10px; margin-bottom: 1.25rem; }
	.contact-list a { font-size: 1.2rem; }
	.quote-form .btn-group { flex-wrap: nowrap; }
	.quote-form .btn-group .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; white-space: nowrap; font-size: 0.9rem; gap: 6px; }
	.quote-form .btn-group .btn:first-child { flex-grow: 1.45; }
	.quote-form .btn-group .btn .icon-arrow { display: none; }
	.form { padding: 20px 18px; gap: 14px; }

	/* Bản đồ thấp lại. */
	.map-card iframe, .maps--single .map-card iframe { height: 220px; }
	.map-card__body { padding: 14px 16px; }

	/* Trang con: đầu trang, ảnh sản phẩm, form cạnh nội dung. */
	.page-hero { padding-block: 28px 36px; }
	.page-hero--split { padding-block: 24px 48px; }
	.page-hero__badge { left: 10px; bottom: -16px; padding: 10px 16px; }
	.page-hero__badge strong { font-size: 1.8rem; }
	.entry > img.wp-post-image { max-height: 240px; margin-bottom: 1.25rem !important; }
	.about-page__aside { max-width: 300px; margin-inline: auto; }

	/* Chân trang */
	.site-footer { padding-top: 44px; }
	.site-footer__grid { gap: 28px; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Bảng trong nội dung (quy cách sản phẩm, so sánh): mỗi dòng thành một thẻ có nhãn — không tràn ngang. */
@media (max-width: 599px) {
	.entry table.table--cards { display: block; white-space: normal; overflow: visible; box-shadow: none; border-radius: 0; }
	.table--cards thead { display: none; }
	.table--cards tbody, .table--cards tr, .table--cards td, .table--cards th { display: block; }
	.table--cards tr { margin-bottom: 12px; padding: 10px 14px; background: #fff !important; border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm); }
	.table--cards td, .table--cards tbody th { display: grid; grid-template-columns: 36% 1fr; gap: 10px; padding: 6px 0; border: 0; border-bottom: 1px dashed var(--c-border); text-align: left; }
	.table--cards tr > :last-child { border-bottom: 0; }
	.table--cards td::before, .table--cards tbody th::before { content: attr(data-label); font-size: 0.8rem; font-weight: 700; color: var(--c-text-muted); }
	.table--cards tr > :first-child { font-weight: 800; color: var(--c-primary); }
}

/* ==========================================================================
   18. Đầu trang ảnh phủ kín (chủ web yêu cầu 08/11/2026): ảnh nhà xưởng + cuộn màng làm nền cả khối
   ========================================================================== */
.hero--cover { background: var(--c-bg-dark); }
.hero--cover .hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; animation: tdp-zoom 14s ease-out both; }
.hero--cover .hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(6, 23, 51, 0.86) 0%, rgba(11, 42, 91, 0.66) 32%, rgba(11, 42, 91, 0.28) 58%, rgba(11, 42, 91, 0.06) 100%),
		linear-gradient(0deg, rgba(6, 23, 51, 0.5) 0%, transparent 30%); }
.hero--cover .hero__trust, .hero--cover .hero__badge { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.hero--cover h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips .hero__chip { position: static; }
@media (min-width: 1024px) {
	.hero--cover { min-height: min(86vh, 780px); }
	.hero--cover .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
	.hero__chips { position: relative; display: block; align-self: stretch; min-height: 420px; }
	.hero__chips .hero__chip { position: absolute; }
	.hero__chips .hero__chip--iso { top: 8%; right: 0; }
	.hero__chips .hero__chip--years { bottom: 4%; right: 6%; }
}
@media (max-width: 767px) {
	.hero--cover .hero__bg { object-position: 72% 50%; }
	.hero--cover .hero__shade { background: linear-gradient(180deg, rgba(6, 23, 51, 0.86) 0%, rgba(11, 42, 91, 0.74) 55%, rgba(6, 23, 51, 0.9) 100%); }
	.hero__chips { gap: 10px; }
	.hero__chips .hero__chip { padding: 8px 12px; }
	.hero__chips .hero__chip--years strong { font-size: 1.5rem; }
}
