/*
  theme.css — 3A Landscape (04-design, bản GOM của Design System Lead, 2026-09-28)

  NGUỒN:
    - `03-prototype-html/assets/theme.css` (bản đã duyệt của UI/Layout Designer,
      1.266 dòng, 22 component C01-C22) — KHÔNG sửa file gốc, chỉ chép sang đây.
      Khối `:root` (Token) đã tách sang `tokens.css` — xem mục 0 bên dưới.
    - 9 khối `<style id="page-only">` của 9 trang: bai-viet.html, bang-gia.html,
      bao-chi.html, blog.html, canh-quan-biet-thu.html, cham-soc-cay-xanh.html,
      du-an-chi-tiet.html, kieng-la.html, lien-he.html — gom nguyên văn vào mục 10,
      mỗi khối có comment `[from: <trang>.html page-only]`. Đã kiểm: 0 selector
      trùng tên giữa 9 trang → KHÔNG cần scope theo class `.page-xxx`.
      Bỏ tiền tố "TODO move to theme.css —" trong comment gốc vì đã chuyển xong
      (không đổi nghĩa, không đổi bất kỳ giá trị CSS nào).
    - 14 trang được kiểm `style="..."` inline: KHÔNG còn cái nào (0 kết quả,
      trừ `assets/font-check.html` — không phải 1 trong 14 trang, không đụng tới).

  THỨ TỰ NẠP: fonts.css → tokens.css → theme.css (file này).

  Quy ước giữ nguyên từ bản gốc:
    - Tên class kiểu BEM: .block, .block__element, .block--modifier.
    - Mỗi component có comment đầu: [Cxx] tên — trang dùng. 22 component đánh mã
      C01..C22 đúng thứ tự component-inventory.md.
    - Mọi transition/animation có 1 câu lý do ngay cạnh (checklist G1).
    - Mobile-first: style gốc cho 375px, nâng dần ở 768 / 1024 / 1440.

  MỤC LỤC
    0. Token — xem tokens.css   6. 22 component (C01–C22)
    1. Reset / base            7. Khối riêng trang (hero, service trio, compare-2, layers, relation…)
    2. Typography              8. Scroll-reveal
    3. Layout                  9. Reduced motion
    4. Nút & link              10. PAGE-ONLY GOM (9 trang, đợt 2)
    5. Section helpers (eyebrow, section head, text-band, split…)
*/

/* =========================================================================
   0. TOKEN — xem tokens.css (PHẢI nạp trước file này). Không định nghĩa lại ở đây.
   ========================================================================= */

/* =========================================================================
   1. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4)); /* neo #id không bị header che */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-900); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

ul[class], ol[class] { list-style: none; padding: 0; }

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.on-dark :focus-visible { outline-color: var(--bg); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip-link: ẩn tới khi nhận focus bàn phím */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--brand-900);
  color: var(--on-dark);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); color: var(--on-dark); }

/* SVG sprite chứa icon/hoạ tiết lá — nằm đầu <body>, không hiển thị */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* =========================================================================
   2. TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  color: var(--brand-900);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; font-weight: var(--fw-semibold); letter-spacing: 0; }

p { text-wrap: pretty; }
p + p { margin-top: var(--space-4); }

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.prose > * + * { margin-top: var(--space-4); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-2); }

/* =========================================================================
   3. LAYOUT
   ========================================================================= */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }             /* nền phụ, vẫn cùng tông sáng (page theme lock) */
.section--tight { padding-block: var(--space-10); }
.section--flush-top { padding-top: 0; }
/* 2 section cùng nền sáng đứng liền nhau → 1 đường kẻ mảnh phân tách */
.section:not(.section--alt) + .section:not(.section--alt) { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { gap: var(--space-7); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* Tỉ lệ khung cho ảnh/placeholder — chống CLS (D4) */
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.ratio-4x5  { aspect-ratio: 4 / 5; }
.ratio-1x1  { aspect-ratio: 1 / 1; }
.ratio-hero { aspect-ratio: 4 / 3; }            /* khung video/ảnh tràn viền: 4:3 → 16:9 → 21:9 */
@media (min-width: 768px)  { .ratio-hero { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .ratio-hero { aspect-ratio: 21 / 9; } }

/* =========================================================================
   4. NÚT & LINK
   CTA chính toàn site DUY NHẤT: "Khảo sát & báo giá" → lien-he.html (.btn--primary / .btn--on-dark)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  /* Lý do: phản hồi thao tác — nền nút đổi màu khi rê/nhấn để người dùng biết đây là nút bấm được. */
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--brand-600); color: var(--surface); }
.btn--primary:hover { background: var(--brand-900); color: var(--surface); }

/* Cùng CTA, đặt trên nền --brand-900 (hero, CTA band) */
.btn--on-dark { background: var(--bg); color: var(--brand-900); }
.btn--on-dark:hover { background: var(--tag-bg); color: var(--brand-900); }

/* Nút phụ (không phải CTA chính): reset bộ lọc, "Xem tất cả dự án" trong empty state */
.btn--ghost { background: transparent; color: var(--brand-900); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--brand-900); color: var(--brand-900); }

.btn--lg { min-height: 56px; padding: 0 var(--space-7); font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--bg-2); color: var(--muted); border-color: var(--line); cursor: not-allowed;
}

/* Link chữ có mũi tên — dùng cho CTA phụ ("Xem bảng giá đầy đủ"), KHÔNG phải nút */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-weight: var(--fw-semibold);
  color: var(--brand-600);
  text-decoration: underline;
  text-decoration-color: transparent;
  /* Lý do: phản hồi thao tác — gạch chân hiện dần khi rê chuột xác nhận đây là link. */
  transition: text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.text-link:hover { color: var(--brand-900); text-decoration-color: currentColor; }
.text-link svg { width: 18px; height: 18px; flex: none;
  /* Lý do: phản hồi thao tác — mũi tên nhích 3px về phía trước báo hướng đi của link. */
  transition: transform var(--dur-fast) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.section--alt .text-link { text-decoration-color: currentColor; } /* brand-600/bg-2 sát ngưỡng → luôn gạch chân */

/* Nhãn nhỏ nền --tag-bg — dùng RẤT ÍT (brief §6.1) */
.tag {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  color: var(--brand-900);            /* không dùng --muted trên --tag-bg (4.45:1) */
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
}

/* =========================================================================
   5. SECTION HELPERS
   ========================================================================= */

/* Eyebrow — tối đa 1/3 số section mỗi trang (D2). Chỉ đặt trên nền --bg/--surface. */
.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}
/* brand-600 trên bg-2 chỉ 4.51:1 (sát ngưỡng) → trên nền phụ dùng brand-900 (≈10.7:1) */
.section--alt .eyebrow { color: var(--brand-900); }

/* Đầu section: tiêu đề + đoạn dẫn, link phụ dạt phải trên desktop */
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head > .eyebrow { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 60ch; }
.section-head .eyebrow + h2 { margin-top: 0; }

/* Tiện ích khoảng cách (thang 4px) — thay cho inline style */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-8);
  }
}

/* Text-band: dải chữ full-width không ảnh lớn, đọc ở độ rộng dễ chịu */
.text-band__inner { max-width: 68ch; }
.text-band__inner > * + * { margin-top: var(--space-4); }
.text-band--aside { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .text-band--aside {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--space-10);
    align-items: start;
  }
}

/* Split = khối zigzag ảnh–chữ. .split--media-left (zigzag-L) / .split--media-right (zigzag-R).
   Luật: KHÔNG quá 2 split liên tiếp trên 1 trang (D1). Mobile: xếp dọc theo thứ tự DOM. */
.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) {
  .split { gap: var(--space-11); }
  .split--media-left  { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--media-right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}
.split__body > * + * { margin-top: var(--space-4); }

/* Danh sách có dấu tick (list [list] trong wireframe) */
.check-list { display: grid; gap: var(--space-3); }
.check-list li { position: relative; padding-left: var(--space-7); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
}
.check-list li::after {
  content: "";
  position: absolute; left: 5px; top: calc(0.3em + 4px);
  width: 8px; height: 5px;
  border-left: 2px solid var(--brand-900);
  border-bottom: 2px solid var(--brand-900);
  transform: rotate(-45deg);
}

/* =========================================================================
   6. COMPONENT (22) — đúng thứ tự component-inventory.md
   ========================================================================= */

/* [C01] Header — mọi trang. Sticky, nav 1 hàng ≥1024px, drawer <1024px. JS: main.js initMobileNav/initSubmenus/initStickyHeader */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  /* Lý do: báo trạng thái — khi cuộn, viền + bóng hiện ra cho biết header đang nổi trên nội dung. */
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-header); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--header-h);
}

/* Wordmark tạm — chờ logo thật của Sang (brief §4) */
.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--brand-900);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--brand-900); }

.site-header__cta { min-height: 44px; padding: 0 var(--space-3); font-size: var(--fs-xs); }

.nav-toggle {
  display: inline-grid;
  place-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.nav-toggle__bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--brand-900);
  /* Lý do: báo trạng thái — 3 gạch xoay thành dấu X cho biết bấm lần nữa sẽ đóng menu. */
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; }
.nav__item { position: relative; }
.nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  /* Lý do: phản hồi thao tác — nền nhạt khi rê chuột xác định mục đang trỏ. */
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__link:hover { background: var(--bg-2); color: var(--brand-900); }
.nav__link[aria-current="page"], .nav__link.is-current {
  color: var(--brand-600);
  box-shadow: inset 0 -2px 0 var(--brand-600);   /* active: gạch dưới, không dùng chấm màu */
  border-radius: 0;
}
.nav__caret { width: 16px; height: 16px;
  /* Lý do: báo trạng thái — mũi tên lật lên khi menu con đang mở. */
  transition: transform var(--dur-fast) var(--ease); }
.nav__sub-toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__sub {
  display: none;
  min-width: 240px;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.nav__sub-toggle[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
}
.nav__sub a:hover { background: var(--bg-2); color: var(--brand-900); }
.nav__sub a[aria-current="page"] { color: var(--brand-600); font-weight: var(--fw-semibold); }

/* --- Mobile/tablet < 1024px: menu mở thành tấm phủ toàn màn hình dưới header --- */
@media (max-width: 1023.98px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    overflow-y: auto;
    padding: var(--space-4) var(--gutter) var(--space-10);
    background: var(--bg);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    /* Lý do: báo trạng thái — menu hiện mờ dần 200ms để mắt nhận ra lớp mới vừa phủ lên trang. */
    transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 200ms var(--ease); }
  .nav { flex-direction: column; }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    min-height: 56px;
    padding-inline: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.125rem;
    text-align: left;
  }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"], .nav__link.is-current { box-shadow: none; }
  .nav__sub { border: 0; border-radius: 0; padding: var(--space-1) 0 var(--space-3) var(--space-4); background: none; }
  html.nav-open { overflow: hidden; }
}
@media (max-width: 399.98px) {
  .brand { font-size: 1rem; }
  .site-header__cta { padding: 0 var(--space-2); }
}
@media (min-width: 400px) {
  .site-header__cta { font-size: var(--fs-small); padding: 0 var(--space-4); }
}

/* --- Desktop ≥ 1024px: nav 1 hàng --- */
@media (min-width: 1024px) {
  .site-header__inner { gap: var(--space-4); }
  .brand { font-size: 1.3125rem; }
  .nav-toggle { display: none; }
  .nav { align-items: center; gap: var(--space-1); }
  .nav__sub {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    box-shadow: var(--shadow-md);
  }
  .site-header__cta { min-height: 44px; padding: 0 var(--space-5); font-size: 0.9375rem; margin-left: var(--space-2); }
}
/* Hover mở menu con — chỉ thiết bị có chuột */
@media (min-width: 1024px) and (hover: hover) {
  .nav__item--has-sub:hover > .nav__sub { display: block; }
  .nav__item--has-sub::after { /* cầu nối vô hình để chuột đi từ nút xuống menu không bị đóng */
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: var(--space-2);
  }
}

/* [C12] Breadcrumb — mọi trang trừ Trang chủ */
.breadcrumb { padding-top: var(--space-6); }
.breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  font-size: var(--fs-small);
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumb__list li { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.breadcrumb__list li + li::before { content: "›"; color: var(--muted); }
.breadcrumb__list li:last-child { overflow: hidden; }
.breadcrumb__list li:last-child span { overflow: hidden; text-overflow: ellipsis; }   /* rút gọn "…" khi quá dài */
.breadcrumb a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); }
.breadcrumb a:hover { color: var(--brand-900); text-decoration-color: currentColor; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: var(--fw-medium); }

/* [C19] Answer-first block — trang chủ, 4 dịch vụ, Bảng giá, Dự án, Liên hệ, Bài viết đơn.
   Đoạn 40–60 từ ngay sau H1; khớp description schema Service/WebPage. */
.page-intro { padding-block: var(--space-7) var(--space-10); }
.page-intro h1 { max-width: 20ch; }
.answer-first {
  max-width: 62ch;
  margin-top: var(--space-6);
  padding-left: var(--space-5);
  border-left: 3px solid var(--brand-600);
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .page-intro { padding-block: var(--space-9) var(--space-11); }
  .page-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-10);
    align-items: end;
  }
  .page-intro__grid .answer-first { margin-top: 0; }
}

/* [C18] Placeholder ảnh/video — toàn site tới khi có tài sản thật.
   Khối hình học: nền --bg-2, viền --line, hoạ tiết lá SVG inline (<use href="#i-leaf">),
   nhãn "ảnh minh hoạ — chờ ảnh thật". KHÔNG giả ảnh chụp, KHÔNG ảnh stock.
   HTML: <div class="ph ratio-4x3" role="img" aria-label="…"><svg class="ph__leaf">…</svg><span class="ph__tag">…</span></div>
         + <figcaption class="media__caption">Sẽ đặt: …</figcaption> */
.media { margin: 0; }
.ph {
  display: block;               /* dùng được cả <div> lẫn <span> (poster nằm trong <button> phải là span) */
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 18px, rgba(23, 59, 42, 0.045) 18px 19px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--brand-900);
}
.ph__leaf {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(48px, 22%, 132px);
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  pointer-events: none;
}
.ph__tag {
  position: absolute;
  left: var(--space-3); top: var(--space-3);
  max-width: calc(100% - var(--space-6));
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}
.ph--sm { border-radius: var(--radius-sm); }
.ph--sm .ph__tag { left: var(--space-2); top: var(--space-2); font-size: 0.6875rem; padding: 2px 6px; }
.ph--bleed { border: 0; border-radius: 0; }
.media__caption {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* [C17] Nhãn trạng thái dữ liệu "(số cần xác nhận)" / "chờ cập nhật" — toàn site.
   Chữ rõ nghĩa, KHÔNG icon/chấm trang trí. Không đưa chuỗi này vào JSON-LD. */
.data-flag {
  display: inline;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
}
.on-dark .data-flag { color: var(--on-dark-muted); }
.draft-note {   /* ghi chú "nội dung nháp chờ duyệt" cho cả một khối */
  font-size: var(--fs-small);
  color: var(--muted);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

/* [C22] Stat/number band — Trang chủ (4 ô), Giới thiệu (3 ô: .stat-band--3). Số tĩnh, KHÔNG đếm chạy. */
.stat-band { padding-block: var(--space-9); }
.stat-band__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-band__item {
  padding: var(--space-5) var(--space-4) var(--space-5) 0;
  border-top: 1px solid var(--line);
}
.stat-band__num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-stat);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-900);
}
.stat-band__num--text { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); line-height: 1.25; letter-spacing: -0.01em; }
.stat-band__label { display: block; margin-top: var(--space-2); color: var(--ink); font-weight: var(--fw-medium); }
.stat-band__source { margin-top: var(--space-5); font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 1024px) {
  .stat-band__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-band--3 .stat-band__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-band__item { border-top: 0; border-left: 1px solid var(--line); padding: var(--space-2) var(--space-7); }
  .stat-band__item:first-child { border-left: 0; padding-left: 0; }
  .stat-band__list--lead-wide { grid-template-columns: 1fr 1fr 1fr 1.4fr; }
}

/* [C05] Card dịch vụ — CHỈ Trang chủ khối "Ba việc 3A Landscape làm".
   Cố ý bất đối xứng: 1 thẻ lớn (--lead) + 2 thẻ ngang nhỏ (--side). KHÔNG dùng làm 3 cột đồng dạng. */
.service-trio { display: grid; gap: var(--space-5); }
.service-trio__side { display: grid; gap: var(--space-5); }
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  /* Lý do: phản hồi thao tác — thẻ nhích lên 2px + viền đậm khi rê chuột, báo cả thẻ bấm được. */
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.service-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.service-card .ph { border: 0; border-radius: 0; }
.service-card__body { padding: var(--space-6); }
.service-card__body > * + * { margin-top: var(--space-3); }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; } /* stretched link: cả thẻ là link */
.service-card__title a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.service-card__desc { color: var(--muted); }
.service-card__more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--fw-semibold); color: var(--brand-600); }
.service-card__more svg { width: 18px; height: 18px; }
.service-card--lead .service-card__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: var(--fw-bold); }
.service-card--side { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.service-card--side .ph { height: 100%; min-height: 160px; }
.service-card--side .service-card__body { padding: var(--space-5); }
@media (min-width: 768px) {
  .service-trio__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--side { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .service-card--lead .service-card__body {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-3) var(--space-10);
    padding: var(--space-8);
  }
  .service-card--lead .service-card__body > * + * { margin-top: 0; }
  .service-card--lead .service-card__head { grid-row: span 2; }
  .service-card--side { grid-template-columns: 200px minmax(0, 1fr); }
  .service-card--side .service-card__body { padding: var(--space-6); }
}
.service-trio__more { margin-top: var(--space-4); color: var(--muted); }

/* [C04] Card dự án — Trang chủ, Tường cây, Cảnh quan, Bảng giá, Dự án, Chi tiết dự án.
   Toàn thẻ là link tới du-an-chi-tiet.html. Biến thể .project-card--video: icon play nhỏ góc ảnh.
   Lưới: .project-grid (1→2→3 cột); .project-grid--mosaic (trang chủ, 6 thẻ, mỗi hàng 1 thẻ rộng). */
.project-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
  /* Mosaic 6 thẻ: [1 1 2] [3 4 4] [5 5 6] — mỗi hàng 1 thẻ rộng, vị trí đổi luân phiên */
  .project-grid--mosaic .project-card:nth-child(1),
  .project-grid--mosaic .project-card:nth-child(4),
  .project-grid--mosaic .project-card:nth-child(5) { grid-column: span 2; }
  .project-grid--mosaic .project-card .ph { aspect-ratio: auto; height: clamp(220px, 20vw, 300px); }
}
.project-card { position: relative; }
.project-card__link { display: block; color: inherit; text-decoration: none; border-radius: var(--radius-lg); }
.project-card__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.project-card__media .ph {
  /* Lý do: phản hồi thao tác — nền ảnh phóng 3% khi rê chuột, dẫn mắt vào thẻ đang chọn. */
  transition: transform 360ms var(--ease);
}
.project-card__link:hover .ph { transform: scale(1.03); }
.project-card__body { padding-top: var(--space-4); }
.project-card__title { font-size: var(--fs-h3); }
.project-card__link:hover .project-card__title { color: var(--brand-600); }
.project-card__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-2); font-size: var(--fs-small); color: var(--muted); }
.project-card__meta span + span::before { content: "·"; margin-right: var(--space-3); }
.project-card__play {
  position: absolute; right: var(--space-3); bottom: var(--space-3);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-900);
  color: var(--on-dark);
}
.project-card__play svg { width: 18px; height: 18px; margin-left: 2px; }

/* [C06] Card bài viết — Trang chủ, Blog, Bài viết đơn. Biến thể list xếp hạng: .post-rank (Blog "Bài đọc nhiều") */
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card .ph { border-radius: var(--radius-lg); }
.post-card__body { padding-top: var(--space-4); display: grid; gap: var(--space-2); }
.post-card__cat { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--brand-600); letter-spacing: 0.02em; }
.post-card__title { font-size: var(--fs-h3); }
.post-card__title a { color: var(--brand-900); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { color: var(--brand-600); }
.post-card__excerpt { color: var(--muted); }
.post-card__date { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 1024px) {
  .post-grid--lead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .post-grid--lead .post-card:first-child { grid-row: span 2; }
  .post-grid--lead .post-card:not(:first-child) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-5); }
  .post-grid--lead .post-card:not(:first-child) .post-card__body { padding-top: 0; }
}
.post-rank { counter-reset: rank; border-top: 1px solid var(--line); }
.post-rank__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.post-rank__num { font-family: var(--font-heading); font-size: 1.75rem; font-weight: var(--fw-bold); color: var(--brand-600); line-height: 1; }
.post-rank__item a { color: var(--brand-900); font-weight: var(--fw-semibold); text-decoration: none; }
.post-rank__item a:hover { text-decoration: underline; }

/* [C07] Khối FAQ (accordion) — mọi trang có H2 "Câu hỏi thường gặp".
   HTML: <div class="faq__item"><h3 class="faq__q"><button aria-expanded aria-controls>…</button></h3><div class="faq__a" id>…</div></div>
   Không JS → mọi câu trả lời hiện sẵn (AI/LLM vẫn đọc được). */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { font-size: var(--fs-h3); }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  min-height: 56px;
  padding: var(--space-5) 0;
  border: 0;
  background: none;
  color: var(--brand-900);
  font: inherit;
  font-weight: var(--fw-semibold);
  text-align: left;
}
.faq__q button:hover { color: var(--brand-600); }
.faq__icon {
  flex: none;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  /* Lý do: báo trạng thái — dấu + xoay 45° thành × khi câu trả lời đang mở. */
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast) var(--ease);
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__q button[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--tag-bg); }
.faq__a { padding: 0 0 var(--space-6); max-width: 70ch; color: var(--ink); }
.faq__a > * + * { margin-top: var(--space-3); }
@media (min-width: 1024px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-10); }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + var(--space-7)); align-self: start; }
}

/* [C10] Khối khu vực phục vụ — Trang chủ, Tường cây, Bảo dưỡng, Cảnh quan, Liên hệ (--full), Footer (1 dòng) */
.service-area__grid { display: grid; gap: var(--space-6); }
.service-area__list { display: grid; gap: var(--space-4); }
.service-area__row { display: grid; gap: var(--space-1); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.service-area__row dt { font-weight: var(--fw-semibold); color: var(--brand-900); }
.service-area__row dd { margin: 0; color: var(--ink); }
@media (min-width: 768px) {
  .service-area__row { grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-6); }
}
@media (min-width: 1024px) {
  .service-area__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-10); align-items: start; }
}

/* [C11] Facade video (poster + nút play) — prototype KHÔNG nhúng iframe. JS hook: initVideoFacades() (đợt 2).
   Trạng thái .is-selected = đã bấm (mô phỏng). GĐ6: lite-embed click-to-load.
   Biến thể: .video-facade--hero (tràn viền), .video-row (hàng cuộn ngang mobile). */
.video-facade { margin: 0; }
.video-facade__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  text-align: left;
}
.video-facade__btn .ph { background-color: var(--bg-2); }
.video-facade__play {
  position: absolute;
  left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%);
  /* Lý do: phản hồi thao tác — nút play đậm màu và to thêm 6% khi rê chuột, báo bấm được. */
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.video-facade__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-facade__btn:hover .video-facade__play { background: var(--brand-900); transform: translate(-50%, -50%) scale(1.06); }
.video-facade.is-selected .ph { outline: 3px solid var(--brand-600); outline-offset: -3px; }
.video-facade__title { margin-top: var(--space-3); font-size: 1.0625rem; font-weight: var(--fw-semibold); color: var(--brand-900); font-family: var(--font-body); letter-spacing: 0; }
.video-facade__meta { font-size: var(--fs-small); color: var(--muted); }
.video-facade--hero .video-facade__btn { border-radius: 0; }
.video-facade--hero .video-facade__play { width: 80px; height: 80px; }
.video-facade--hero .video-facade__play svg { width: 32px; height: 32px; }

.video-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  overscroll-behavior-x: contain;
}
.video-row > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .video-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
}

/* [C13] Bảng giá (table) — Bảng giá (đầy đủ), Trang chủ (rút gọn), Tường cây (rút gọn).
   Luôn là <table> HTML thật. Ô chưa có số: "liên hệ / chờ cập nhật". Mobile cuộn ngang trong .table-wrap, cột đầu dính. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.price-table { min-width: 560px; font-size: 0.9375rem; }
.price-table caption { caption-side: bottom; text-align: left; padding: var(--space-3) var(--space-5); font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); }
.price-table th, .price-table td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--bg-2); color: var(--brand-900); font-size: var(--fs-small); font-weight: var(--fw-semibold); white-space: nowrap; }
.price-table tbody th { position: sticky; left: 0; background: var(--surface); color: var(--brand-900); font-weight: var(--fw-semibold); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody tr:hover > * { background: var(--bg); }
.price-table__price { font-weight: var(--fw-semibold); color: var(--brand-900); white-space: nowrap; }

/* [C14] Khối so sánh 3 gói bảo dưỡng — Bảo dưỡng, Bảng giá. Bảng NGANG (hàng = thuộc tính, cột = gói).
   Gói nổi bật: chỉ thêm 1 dòng nhãn .plan-compare__badge trên cột, KHÔNG đổi kích thước cột.
   Mobile: dùng .plan-stack (mỗi gói 1 khối, gói nổi bật lên đầu) và ẩn bảng; desktop ngược lại.
   GĐ6: 2 dạng render từ CÙNG 1 nguồn dữ liệu (không nhập tay 2 lần). */
.plan-compare { display: none; }
.plan-compare table { min-width: 640px; }
.plan-compare th, .plan-compare td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plan-compare thead th { vertical-align: bottom; background: var(--bg-2); color: var(--brand-900); font-family: var(--font-heading); font-size: 1.125rem; }
.plan-compare tbody th { width: 22%; color: var(--brand-900); font-weight: var(--fw-semibold); background: var(--surface); }
.plan-compare .is-featured { background: var(--bg); }
.plan-compare thead .is-featured { background: var(--tag-bg); }
.plan-compare__badge { display: block; margin-bottom: var(--space-1); font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--brand-900); }
.plan-stack { display: grid; gap: var(--space-5); }
.plan-stack__card { padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan-stack__card.is-featured { border-color: var(--brand-600); }
.plan-stack__card dl { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.plan-stack__card dt { font-size: var(--fs-small); color: var(--muted); }
.plan-stack__card dd { margin: 0; font-weight: var(--fw-medium); }
@media (min-width: 768px) {
  .plan-compare { display: block; }
  .plan-stack { display: none; }
}

/* [C15] Bộ lọc dự án 2 chiều — CHỈ trang Dự án. JS hook: initProjectFilter() (đợt 2, Frontend Interaction).
   Chip = <button aria-pressed>. Mobile: 2 nhóm xếp dọc trong 1 khối. Vùng chạm ≥ 44px. */
.project-filter { display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.project-filter__group { display: grid; gap: var(--space-3); border: 0; padding: 0; min-width: 0; }
.project-filter__label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-900); padding: 0; }
.project-filter__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  /* Lý do: phản hồi thao tác — chip đổi nền khi rê/chọn để thấy ngay tiêu chí đang áp dụng. */
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--brand-900); background: var(--surface); }
.chip[aria-pressed="true"] { background: var(--brand-900); border-color: var(--brand-900); color: var(--on-dark); }
.project-filter__count { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 1024px) {
  .project-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-7); }
  .project-filter__count { grid-column: 1 / -1; }
}

/* [C16] Trạng thái rỗng — Dự án (lọc không khớp), có thể dùng cho Blog. Icon hình học, KHÔNG ảnh; KHÔNG nhồi dự án giả. */
.empty-state {
  display: grid; justify-items: center; gap: var(--space-4);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-state__icon { width: 64px; height: 64px; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--bg-2); color: var(--brand-900); }
.empty-state__title { font-size: var(--fs-h3); }
.empty-state__text { color: var(--muted); max-width: 44ch; }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }

/* [C08] Form khảo sát (5 câu + liên hệ) — CHỈ trang Liên hệ. JS hook: initSurveySteps() (đợt 2).
   Mobile: mỗi .form-step 1 màn hình + .form-progress. Checkbox PDPL mặc định KHÔNG tick; nút gửi disabled tới khi tick. */
.survey-form { display: grid; gap: var(--space-6); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-progress { display: grid; gap: var(--space-2); }
.form-progress__text { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-900); }
.form-progress__bar { height: 6px; border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; }
.form-progress__fill { display: block; height: 100%; width: var(--progress, 16.66%); background: var(--brand-600);
  /* Lý do: báo trạng thái — thanh tiến trình trượt dài ra khi sang bước mới. */
  transition: width var(--dur-base) var(--ease); }
.form-step { border: 0; padding: 0; min-width: 0; display: grid; gap: var(--space-4); }
.form-step__legend { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: var(--fw-semibold); color: var(--brand-900); padding: 0; }
.form-step__hint { font-size: var(--fs-small); color: var(--muted); }
.choice-grid { display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer;
  /* Lý do: phản hồi thao tác — ô lựa chọn đổi viền/nền khi được chọn. */
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.choice:hover { border-color: var(--brand-900); }
.choice input { width: 20px; height: 20px; accent-color: var(--brand-600); flex: none; }
.choice:has(input:checked) { border-color: var(--brand-600); background: var(--surface); box-shadow: inset 0 0 0 1px var(--brand-600); }
.field { display: grid; gap: var(--space-2); }
.field__label { font-weight: var(--fw-semibold); color: var(--brand-900); }
.field__input { min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem; }
.field__input:focus-visible { outline-offset: 0; border-color: var(--brand-600); }
.field__error { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--brand-900); padding-left: var(--space-3); border-left: 3px solid var(--brand-900); }
.field--invalid .field__input { border-color: var(--brand-900); border-width: 2px; }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand-600); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); background: var(--bg-2); font-size: var(--fs-small); }
.form-status--error { border-left: 3px solid var(--brand-900); }

/* [C09] Hộp tác giả — Bài viết đơn (bắt buộc), Chi tiết dự án (tuỳ chọn), Giới thiệu (thẻ định danh anh Phúc).
   Xếp ngang cả mobile. author phải đúng người viết/duyệt thật. */
.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box .ph { width: 72px; height: 72px; border-radius: var(--radius-lg); }
.author-box .ph__leaf { width: 36px; }
.author-box__name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: var(--fw-semibold); color: var(--brand-900); }
.author-box__role { font-size: var(--fs-small); color: var(--muted); }
.author-box__meta { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-1); }
.author-box a { font-size: var(--fs-small); font-weight: var(--fw-semibold); }

/* [C20] Bảng thông số kỹ thuật (dự án) — Chi tiết dự án. Desktop: hàng ngang; mobile: list label–value dọc. Ô trống ghi "chờ cập nhật". */
.spec-table { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.spec-table__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.spec-table__row:last-child { border-bottom: 0; }
.spec-table dt { font-size: var(--fs-small); color: var(--muted); }
.spec-table dd { margin: 0; font-weight: var(--fw-semibold); color: var(--brand-900); }
@media (min-width: 1024px) {
  .spec-table--inline { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .spec-table--inline .spec-table__row { grid-template-columns: 1fr; gap: var(--space-1); border-bottom: 0; border-right: 1px solid var(--line); padding: var(--space-5); }
  .spec-table--inline .spec-table__row:last-child { border-right: 0; }
}

/* [C21] Khối báo chí — Trang chủ, Giới thiệu (rút gọn), Báo chí (đầy đủ).
   LIST theo từng cơ quan, KHÔNG banner 3 logo đồng cỡ, KHÔNG dựng logo bằng chữ.
   Chưa có link → .data-flag "chờ link bài". CẤM bịa tiêu đề/trích dẫn. */
.press-list { border-top: 1px solid var(--line); }
.press-list__item { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
.press-list__name { font-family: var(--font-body); font-size: 1.125rem; font-weight: var(--fw-semibold); letter-spacing: 0; color: var(--ink); }
.press-list__status { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 768px) {
  .press-list__item { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-6); }
}
.press-list--compact .press-list__item { padding-block: var(--space-4); }

/* [C03] CTA band — cuối hầu hết trang (trừ Liên hệ). Nền --brand-900 có chủ đích (brief §6.1).
   Biến thể: .cta-band--light (Blog hub, nhẹ hơn). Nhãn nút chuẩn "Khảo sát & báo giá";
   "Khám cây miễn phí" CHỈ ở Bảo dưỡng/Bảng giá; Kiểng lá "Vào nhóm cộng đồng" + link phụ. */
.cta-band { padding-block: var(--space-11); background: var(--brand-900); color: var(--on-dark); }
.cta-band__inner { display: grid; gap: var(--space-6); }
.cta-band__title { color: var(--on-dark); font-size: var(--fs-h2); max-width: 22ch; }
.cta-band__text { color: var(--on-dark-muted); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.cta-band__aside { color: var(--on-dark); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 4px; }
.cta-band__aside:hover { color: var(--tag-bg); }
@media (min-width: 1024px) {
  .cta-band { padding-block: var(--space-12); }
  .cta-band__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-10); }
  .cta-band__actions { justify-content: flex-start; }
}
.cta-band--light { background: var(--bg-2); color: var(--ink); padding-block: var(--space-10); }
.cta-band--light .cta-band__title { color: var(--brand-900); }
.cta-band--light .cta-band__text { color: var(--muted); }

/* [C02] Footer — mọi trang. 3 cột link + NAP "chờ cập nhật" + social + khu vực 1 dòng + CTA lặp lại.
   KHÔNG mượn NAP/social của 3A Signature, 3A Marketing, Phúc An Khang. Nền sáng (page theme lock). */
.site-footer { padding-block: var(--space-11) var(--space-7); background: var(--bg-2); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.site-footer__top { display: grid; gap: var(--space-8); }
.site-footer__brand .brand { font-size: 1.5rem; }
.site-footer__intro { margin-top: var(--space-3); color: var(--muted); max-width: 36ch; }
.site-footer__cta { margin-top: var(--space-5); }
.site-footer__cols { display: grid; gap: var(--space-7); }
.site-footer__title { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-900); margin-bottom: var(--space-3); }
.site-footer__links li + li { margin-top: var(--space-1); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.site-footer__links a:hover { color: var(--brand-600); text-decoration: underline; }
.site-footer__nap { display: grid; gap: var(--space-2); }
.site-footer__nap div { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.site-footer__nap dt { color: var(--muted); min-width: 72px; }
.site-footer__nap dd { margin: 0; }
.site-footer__area { margin-top: var(--space-4); color: var(--ink); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 768px) {
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-11); }
  .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================================
   7. KHỐI RIÊNG TRANG (dùng lại được ở đợt 2)
   ========================================================================= */

/* Hero tràn viền có chữ — Trang chủ, Giới thiệu. Nền --brand-900 phủ ảnh có chủ đích (brief §6.1).
   Ảnh/poster hero là LCP → không lazy, GĐ6 thêm fetchpriority="high". */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 88svh, 820px);
  color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; z-index: -2; height: 100%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--scrim-strong) 0%, var(--scrim-mid) 58%, var(--scrim-soft) 100%);
  pointer-events: none;
}
.hero__media .ph__tag { top: var(--space-4); left: auto; right: var(--space-4); }
.hero__media .ph__leaf { top: 32%; width: clamp(80px, 14vw, 180px); opacity: 0.28; }
.hero__note { position: absolute; right: var(--space-4); top: calc(var(--space-4) + 34px); max-width: 280px; font-size: var(--fs-xs); color: var(--brand-900); background: var(--surface); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); text-align: right; }
.hero__content { padding-block: var(--space-12) var(--space-10); }
.hero__title { color: var(--on-dark); font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.03em; max-width: 16ch; }
.hero__lead { margin-top: var(--space-5); max-width: 40ch; font-size: var(--fs-lead); color: var(--on-dark-muted); }
.hero__actions { margin-top: var(--space-7); }
@media (min-width: 1024px) {
  .hero__content { padding-block: var(--space-13) var(--space-11); }
  .hero__note { top: calc(var(--space-6) + 34px); right: var(--gutter); }
  .hero__media .ph__tag { top: var(--space-6); right: var(--gutter); }
}
.hero--portrait { min-height: clamp(480px, 72svh, 680px); }
.hero--portrait .hero__title { font-size: var(--fs-h1); max-width: 18ch; }

/* Trước / Sau — Tường cây, Chi tiết dự án. 2 panel cạnh nhau; mobile xếp dọc. */
.ba { display: grid; gap: var(--space-5); }
.ba__label { position: absolute; left: var(--space-3); bottom: var(--space-3); padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); background: var(--brand-900); color: var(--on-dark); font-weight: var(--fw-semibold); font-size: var(--fs-small); }
@media (min-width: 768px) { .ba { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* So sánh 2 cột (Trong nhà / Ngoài trời) — Tường cây. KHÔNG phải 3 cột. Mobile xếp dọc. */
.compare-2 { display: grid; gap: var(--space-5); }
.compare-2__panel { padding: var(--space-7) var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare-2__panel h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); font-weight: var(--fw-bold); }
.compare-2__rows { margin-top: var(--space-5); display: grid; }
.compare-2__rows div { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.compare-2__rows dt { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-600); }
.compare-2__rows dd { margin: 0; }
.compare-2__panel--outdoor { background: var(--bg); }
@media (min-width: 768px) { .compare-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .compare-2__panel { padding: var(--space-9) var(--space-8); } }

/* Sơ đồ cắt lớp tường cây — Tường cây. Sơ đồ nguyên lý vẽ bằng CSS (không phải ảnh chụp), có nhãn chờ bản vẽ thật. */
.layers { margin: 0; padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.layers__stack { display: grid; gap: var(--space-2); }
.layers__band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 52px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.layers__band small { font-weight: var(--fw-regular); font-size: var(--fs-xs); }
.layers__band--wall { background: var(--bg-2); color: var(--ink); background-image: repeating-linear-gradient(45deg, transparent 0 8px, rgba(23, 59, 42, 0.08) 8px 9px); }
.layers__band--membrane { background: var(--brand-900); color: var(--on-dark); min-height: 40px; }
.layers__band--frame { background: var(--surface); color: var(--brand-900); border: 2px solid var(--brand-900); }
.layers__band--medium { background: var(--tag-bg); color: var(--brand-900); }
.layers__band--plants { background: var(--brand-600); color: var(--surface); min-height: 72px; }
.layers__band--light { background: transparent; color: var(--brand-900); border: 2px dashed var(--line-strong); }
.layers__axis { display: flex; justify-content: space-between; margin-bottom: var(--space-3); font-size: var(--fs-xs); color: var(--muted); }
.layers figcaption { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--muted); }
.layer-list { counter-reset: layer; display: grid; gap: var(--space-4); }
.layer-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); }
.layer-list li::before { counter-increment: layer; content: counter(layer); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--tag-bg); color: var(--brand-900); font-weight: var(--fw-bold); font-size: var(--fs-small); }
.layer-list strong { color: var(--brand-900); }

/* Quy trình có thứ tự thật (process-steps) — Tường cây, Giới thiệu, Bảo dưỡng. Số = thứ tự bước thật, không trang trí.
   Mobile dọc, desktop ngang có đường nối. */
.steps { display: grid; gap: var(--space-6); counter-reset: step; }
.steps__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-900); color: var(--on-dark); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 1.125rem; }
.steps__item h3 { font-size: 1.1875rem; }
.steps__item p { margin-top: var(--space-2); color: var(--muted); }
.steps__item:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: calc(var(--space-6) * -1 + 8px); width: 2px; background: var(--line); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7); }
  .steps__item { grid-template-columns: 1fr; gap: var(--space-4); }
  .steps__item:not(:last-child)::after { left: 56px; right: calc(var(--space-7) * -1 + 12px); top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* Lưới 4 ô phân loại (grid-4) — Tường cây (ứng dụng theo công trình), Cảnh quan, Kiểng lá. Nội dung mỗi ô khác nhau thật. */
.type-card { display: flex; flex-direction: column; gap: var(--space-3); }
.type-card h3 { margin-top: var(--space-2); }
.type-card p { color: var(--muted); }
.type-card .text-link { margin-top: auto; }

/* Quan hệ 3 thực thể — Giới thiệu. Danh sách dọc có nối, cùng dạng ở mọi màn hình (mobile = list 3 dòng). */
.relation { margin: 0; padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.relation__list { display: grid; }
.relation__node { padding: var(--space-5); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); }
.relation__node--center { background: var(--brand-900); border-color: var(--brand-900); color: var(--on-dark); }
.relation__node--center .relation__name { color: var(--on-dark); }
.relation__node--center .relation__role, .relation__node--center .data-flag { color: var(--on-dark-muted); }
.relation__name { display: block; font-family: var(--font-heading); font-size: 1.1875rem; font-weight: var(--fw-bold); color: var(--brand-900); }
.relation__role { display: block; margin-top: var(--space-1); font-size: var(--fs-small); color: var(--muted); }
.relation__edge { position: relative; padding: var(--space-4) 0 var(--space-4) var(--space-8); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-600); }
.relation__edge::before { content: ""; position: absolute; left: var(--space-5); top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.relation figcaption { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--muted); }

/* =========================================================================
   8. SCROLL-REVEAL — hiệu ứng DUY NHẤT khi cuộn
   Lý do: dẫn mắt — khối nội dung mới hiện nhẹ (mờ → rõ, nhích 12px) khi vào tầm nhìn,
   giúp người đọc nhận ra đã sang phần mới. 320ms, chạy 1 lần.
   Chỉ bật khi main.js thêm class .reveal-ready vào <html> (không JS / reduced-motion = hiện sẵn).
   KHÔNG gắn cho hero (ảnh LCP).
   ========================================================================= */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================================
   9. REDUCED MOTION — tắt mọi animation/transition (G2)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  .service-card:hover, .project-card__link:hover .ph { transform: none; }
}

/* =========================================================================
   10. PAGE-ONLY GOM — 9 khối <style id="page-only"> của đợt 2 (2026-09-28)
   Gom NGUYÊN VĂN giá trị CSS, chỉ bỏ tiền tố "TODO move to theme.css —" trong
   comment gốc (đã chuyển xong, giữ lại phần mô tả ý nghĩa). Đã kiểm 0 selector
   trùng tên giữa 9 trang → không scope theo .page-xxx.
   ========================================================================= */

/* [from: bai-viet.html page-only] — Template Bài viết đơn (34 rule). */

/* .article-head: H1 + meta bài + hộp tác giả, khổ đọc hẹp. */
.article-head { padding-block: var(--space-7) var(--space-8); }
.article-head h1 { max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-5); font-size: var(--fs-small); color: var(--muted); }
.article-meta strong { color: var(--ink); font-weight: var(--fw-semibold); }
.article-head .answer-first { margin-top: var(--space-7); }
.article-head .author-box { margin-top: var(--space-7); max-width: 68ch; }
.author-box__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); margin-top: var(--space-2); }
.author-box__links .author-box__meta { margin-top: 0; }

/* .article-layout: mục lục (trái, dính khi cuộn trên desktop) + thân bài khổ ~65ch. */
.article-layout { display: grid; gap: var(--space-8); padding-bottom: var(--section-y); }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--space-10); align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

/* .toc: mục lục dùng <details> gốc của trình duyệt (không JS). Mở sẵn; người đọc mobile tự thu gọn. */
.toc { padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: var(--fs-small); }
.toc summary { display: flex; align-items: center; min-height: 44px; font-weight: var(--fw-semibold); color: var(--brand-900); cursor: pointer; }
.toc ol { margin-top: var(--space-2); padding-left: 1.25em; display: grid; gap: var(--space-1); }
.toc ol ol { margin-top: var(--space-1); }
.toc a { display: inline-block; padding-block: var(--space-1); color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand-600); text-decoration: underline; }

/* .article-body: thân bài, khổ đọc ~65ch, nhịp H2/H3 rõ. */
.article-body { max-width: 65ch; }
.article-body > * + * { margin-top: var(--space-5); }
.article-body h2 { margin-top: var(--space-10); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.article-body h3 { margin-top: var(--space-7); }
.article-body > h2:first-of-type { margin-top: var(--space-8); }
.article-body ul, .article-body ol { padding-left: 1.25em; }
.article-body li + li { margin-top: var(--space-2); }

/* .answer-box: khối "trích dẫn nhanh" (AEO) — bảng tóm tắt, AI/LLM trích được nguyên khối. */
.answer-box { padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: inset 4px 0 0 var(--brand-600); }
.answer-box__label { font-size: var(--fs-xs); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-900); }
.answer-box__lead { margin-top: var(--space-2); font-weight: var(--fw-semibold); color: var(--brand-900); }
.answer-box dl { display: grid; margin-top: var(--space-4); }
.answer-box dl > div { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.answer-box dt { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-900); }
.answer-box dd { margin: 0; }
@media (min-width: 768px) { .answer-box dl > div { grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-5); } }

/* .context-link: link ngữ cảnh sang trang dịch vụ/bảng giá trong thân bài.
   Luôn gạch chân dày 2px + đậm để nhận ra ngay là link "đi tiếp", khác link thường. */
.context-link { font-weight: var(--fw-semibold); color: var(--brand-600); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.context-link:hover { color: var(--brand-900); }

/* [from: bang-gia.html page-only] — Trang Bảng giá (7 rule). */

/* [bang-gia] thanh neo 3 mục trong trang (#tuong-cay #bao-duong #canh-quan) */
.jump-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin-top: var(--space-7); }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--brand-900); font-size: var(--fs-small); font-weight: var(--fw-semibold); text-decoration: none;
  /* Lý do: phản hồi thao tác — viền đậm khi rê chuột báo đây là link nhảy tới mục. */
  transition: border-color var(--dur-fast) var(--ease);
}
.jump-links a:hover { border-color: var(--brand-900); color: var(--brand-900); }

/* [C13] bảng giá 6 cột: đủ rộng để cột "Gồm / Không gồm / Ghi chú" không bị bóp (mobile cuộn ngang trong .table-wrap) */
.price-table--wide { min-width: 860px; }

/* [C14] dòng hành động ngay dưới bảng 3 gói (nút + ghi chú điều kiện) */
.plan-after { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); }

/* [bang-gia] danh sách yếu tố làm giá thay đổi: 2 cột từ tablet */
.factor-list strong { display: block; color: var(--brand-900); }
@media (min-width: 768px) {
  .factor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-8); }
}

/* [from: bao-chi.html page-only] — Trang Báo chí, biến thể đầy đủ của [C21] (9 rule). */

/* [C21] biến thể đầy đủ cho trang Báo chí: tên cơ quan là H2 (cột trái),
   thông tin bài ở cột phải. Vẫn là LIST dọc theo cơ quan, không phải banner 3 logo đồng cỡ. */
.press-list--full .press-list__item { gap: var(--space-4); padding-block: var(--space-7); }
.press-list--full .press-list__name { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: -0.01em; color: var(--brand-900); }
@media (min-width: 768px) {
  .press-list--full .press-list__item { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: var(--space-8); }
}

/* [C21] bảng thông tin 1 bài báo (tiêu đề / ngày / link gốc) */
.press-meta { display: grid; gap: var(--space-3); }
.press-meta div { display: grid; gap: var(--space-1); padding-bottom: var(--space-3); border-bottom: 1px dashed var(--line); }
.press-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.press-meta dt { font-size: var(--fs-small); color: var(--muted); }
.press-meta dd { margin: 0; }
@media (min-width: 768px) {
  .press-meta div { grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-4); }
}

/* [from: blog.html page-only] — Blog hub (17 rule). */

/* Bố cục Blog 2 cột (lưới bài + sidebar chuyên mục/dịch vụ). theme.css chưa có layout có sidebar.
   <1280px: sidebar xuống dưới lưới (768–1279px chia 2 cột); ≥1280px: cột phải 280px, dính khi cuộn. */
.blog-layout { display: grid; gap: var(--space-10); margin-top: var(--space-10); }
.blog-aside { display: grid; gap: var(--space-8); align-content: start; }
.blog-aside h2 { font-size: var(--fs-h3); }
.blog-aside__list { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.blog-aside__list li { border-bottom: 1px solid var(--line); }
.blog-aside__list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1) var(--space-3); min-height: 48px; padding-block: var(--space-2); color: var(--ink); font-weight: var(--fw-semibold); text-decoration: none; }
.blog-aside__list a:hover { color: var(--brand-600); text-decoration: underline; }
.blog-aside__count { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--muted); }
@media (min-width: 768px) and (max-width: 1279.98px) { .blog-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-9); } }
@media (min-width: 1280px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-10); }
  .blog-aside { position: sticky; top: calc(var(--header-h) + var(--space-7)); }
}
/* Phân trang tĩnh (Blog, sau này archive chuyên mục). Ô chạm 44px. */
.pagination { margin-top: var(--space-9); }
.pagination__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.pagination__list a, .pagination__list span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font-size: var(--fs-small); font-weight: var(--fw-semibold); text-decoration: none; }
.pagination__list a:hover { border-color: var(--brand-900); background: var(--surface); color: var(--brand-900); }
.pagination__list [aria-current="page"] { background: var(--brand-900); border-color: var(--brand-900); color: var(--on-dark); }
/* Tiêu đề bài nổi bật lớn hơn card thường (biến thể C06). */
.post-card--featured .post-card__title { font-size: var(--fs-h2); }

/* [from: canh-quan-biet-thu.html page-only] — Trang Cảnh quan biệt thự (15 rule). */

/* .scope-grid: 4 hạng mục, dạng "tờ thông số" có gạch đầu đậm, không icon, không khung thẻ. */
.scope-grid { display: grid; gap: var(--space-7) var(--space-9); }
.scope-grid__item { padding-top: var(--space-4); border-top: 2px solid var(--brand-900); }
.scope-grid__item p { margin-top: var(--space-2); color: var(--muted); }
.scope-grid__item .text-link { margin-top: var(--space-1); }
@media (min-width: 768px) { .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* .timeline: nhật ký thi công theo tập. Trục dọc bên trái, mốc = số tập thật. */
.timeline { position: relative; display: grid; gap: var(--space-9); }
.timeline::before { content: ""; position: absolute; left: 21px; top: var(--space-2); bottom: var(--space-2); width: 2px; background: var(--line-strong); }
.timeline__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-4); }
.timeline__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-900); color: var(--on-dark); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 1.125rem; }
.timeline__content { display: grid; gap: var(--space-5); }
.timeline__label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-900); }
.timeline__text > * + * { margin-top: var(--space-3); }
.timeline__text .muted { font-size: var(--fs-small); }
@media (min-width: 1024px) {
  .timeline__item { grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-6); }
  .timeline__content { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); align-items: start; }
}

/* [from: cham-soc-cay-xanh.html page-only] — Trang Chăm sóc – Bảo dưỡng (15 rule). */

/* .cause-list: "5 lý do cây chết". Mỗi dòng: số | lý do | dấu hiệu + cách xử lý.
   Mobile: số trái, nội dung xếp dọc. Desktop: 3 cột. Không icon, không chấm trang trí. */
.cause-list { border-top: 1px solid var(--line); }
.cause-list__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.cause-list__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--tag-bg); color: var(--brand-900); font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 1.125rem; }
.cause-list__head p { margin-top: var(--space-2); color: var(--muted); }
.cause-list__cols { grid-column: 2; display: grid; gap: var(--space-4); }
.cause-list__cols dt { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-900); }
.cause-list__cols dd { margin: var(--space-1) 0 0; }
@media (min-width: 1024px) {
  .cause-list__item { grid-template-columns: 56px minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); align-items: start; }
  .cause-list__cols { grid-column: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
}

/* .check-list--2col: checklist mỗi lần chăm chia 2 cột từ tablet. */
@media (min-width: 768px) { .check-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); } }

/* .case-slot: khung case doanh nghiệp đang chờ phép công bố (viền đứt = chưa có nội dung thật). */
.case-slot { display: grid; gap: var(--space-6); padding: var(--space-6); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.case-slot__body > * + * { margin-top: var(--space-4); }
@media (min-width: 1024px) { .case-slot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); padding: var(--space-8); align-items: center; } }

/* .inline-cta: hàng nút + ghi chú ngay dưới bảng gói / quy trình khám. */
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-7); }
.inline-cta p { color: var(--muted); font-size: var(--fs-small); max-width: 48ch; }

/* [from: du-an-chi-tiet.html page-only] — Template Chi tiết dự án (3 rule). */

/* .project-hero__head: khối tên dự án đè nhẹ lên mép dưới ảnh hero (wireframe §9 khối [03]).
   Dùng chung cho mọi trang chi tiết dự án; theme.css gốc chưa có class tương ứng. */
.project-hero__head {
  position: relative;
  margin-top: calc(var(--space-8) * -1);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-6) var(--gutter) 0;
  background: var(--bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.project-hero__head .answer-first { margin-top: var(--space-5); }
@media (min-width: 1024px) {
  .project-hero__head {
    max-width: 920px;
    margin-top: calc(var(--space-12) * -1);
    margin-inline: calc(var(--space-8) * -1) 0;
    padding: var(--space-8) var(--space-8) 0;
  }
}

/* [from: kieng-la.html page-only] — Trang Kiểng lá (19 rule). */

/* .plant-mosaic: 4 nhóm cây, lưới BẤT ĐỐI XỨNG.
   Desktop: 1 thẻ lớn dọc bên trái (monstera) + 3 thẻ ngang nhỏ xếp dọc bên phải. Tablet: thẻ lớn tràn hàng + 3 thẻ. Mobile: 1 cột. */
.plant-mosaic { display: grid; gap: var(--space-6); }
.plant-card { display: grid; gap: var(--space-3); align-content: start; }
.plant-card h3 { margin-top: var(--space-1); }
.plant-card p { color: var(--muted); }
.plant-card__latin { font-size: var(--fs-small); color: var(--muted); font-style: italic; }
.plant-card--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: var(--fw-bold); }
@media (min-width: 768px) {
  .plant-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plant-card--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-4) var(--space-8); align-items: end; }
  .plant-card--lead > .ph { grid-row: span 4; }
}
@media (min-width: 1024px) {
  .plant-mosaic { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-7) var(--space-10); }
  .plant-card--lead { grid-column: 1; grid-row: 1 / span 3; grid-template-columns: 1fr; align-items: start; }
  .plant-card--lead > .ph { grid-row: auto; }
  .plant-card--side { grid-template-columns: 168px minmax(0, 1fr); column-gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
  .plant-card--side:last-child { border-bottom: 0; padding-bottom: 0; }
  .plant-card--side > .ph { grid-row: span 4; align-self: start; }
}

/* .post-grid--4: biến thể .post-grid--lead cho 4 bài (1 lớn + 3 nhỏ), thẻ lớn cao 3 hàng. */
@media (min-width: 1024px) { .post-grid--4 .post-card:first-child { grid-row: span 3; } }

/* .community-actions: nút cộng đồng đang khoá + nhãn lý do ngay cạnh (không để nút chết không giải thích). */
.community-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.community-actions .data-flag { white-space: normal; font-size: var(--fs-small); }

/* Link chữ trong CTA band nền sáng: luôn gạch chân (brand-600 trên bg-2 chỉ 4.51:1, sát ngưỡng) và cỡ chữ lớn hơn cho đủ nặng khi không có nút. */
.cta-band--light .text-link { text-decoration-color: currentColor; font-size: 1.125rem; }

/* [from: lien-he.html page-only] — Trang Liên hệ / Khảo sát (17 rule). */

/* [lien-he] bố cục form (trái) + cột liên hệ nhanh (phải, dính khi cuộn trên desktop) */
.contact-layout { display: grid; gap: var(--space-8); align-items: start; }
.contact-aside { display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--bg-2); border-radius: var(--radius-lg); }
.contact-aside h2 { font-size: var(--fs-h3); }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-10); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

/* [lien-he] nút kênh liên hệ nhanh (đang khoá vì chờ link) + NAP rút gọn */
.quick-contact { display: grid; gap: var(--space-3); }
.quick-contact .btn { width: 100%; justify-content: space-between; }
.contact-nap { display: grid; gap: var(--space-2); font-size: var(--fs-small); }
.contact-nap div { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.contact-nap dt { color: var(--muted); min-width: 72px; }
.contact-nap dd { margin: 0; }

/* [C08] progressive enhancement: khi JS stepper CHƯA chạy (form chưa có .is-stepper)
   thì mọi bước hiện cùng lúc, ẩn nút Tiếp/Quay lại + thanh tiến trình, kẻ phân cách giữa các bước.
   Frontend Interaction: initSurveySteps() thêm .is-stepper vào form khi bật chế độ từng bước. */
.survey-form:not(.is-stepper) .form-actions--step,
.survey-form:not(.is-stepper) [data-step-prev],
.survey-form:not(.is-stepper) .form-progress__bar { display: none; }
.survey-form:not(.is-stepper) .form-step + .form-step { padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* [C08] câu 2 có 2 nhóm lựa chọn (m² / số cây); JS ẩn nhóm không khớp câu 1 */
.choice-group { display: grid; gap: var(--space-3); }
.choice-group__label { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--brand-900); }
textarea.field__input { min-height: 112px; resize: vertical; }
.form-note { font-size: var(--fs-small); color: var(--muted); }
