/* ==========================================================================
   DT HOMES — phong cách Apple (HIG): clarity, deference, depth.
   Token màu qua CSS variables + Dark Mode qua prefers-color-scheme.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4efe6;
  --surface: #ffffff;
  --surface-2: #faf6ee;
  --text: #2b241a;
  --text-muted: #786f60;
  --border: rgba(96, 72, 32, 0.14);
  --accent: #8a6a34;
  --accent-hover: #6f5326;
  --accent-soft: rgba(138, 106, 52, 0.12);
  --accent-gradient: linear-gradient(135deg, #a07d45 0%, #7a5a29 100%);
  --danger: #b4472b;
  --danger-hover: #97371f;
  --shadow: 0 4px 20px rgba(74, 54, 20, 0.08);
  --shadow-lg: 0 14px 46px rgba(74, 54, 20, 0.16);
  --header-bg: rgba(250, 246, 238, 0.78);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130c;
    --bg-alt: #1f1a11;
    --surface: #241d13;
    --surface-2: #1c160e;
    --text: #f3ece0;
    --text-muted: #b3a892;
    --border: rgba(214, 188, 140, 0.16);
    --accent: #c8a24a;
    --accent-hover: #d8b662;
    --accent-soft: rgba(200, 162, 74, 0.18);
    --accent-gradient: linear-gradient(135deg, #c8a24a 0%, #9a7635 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 14px 46px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(28, 22, 14, 0.78);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
.muted { color: var(--text-muted); }
.link { font-weight: 500; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em; padding: 0.7em 1.4em; border-radius: 980px;
  font-size: 1rem; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 6px 18px rgba(122, 90, 41, 0.28); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); color: #fff; }
.btn-block { width: 100%; }

/* ---- Header (frosted glass) --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent-gradient); color: #fff;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
}
.brand-logo { display: block; height: 46px; width: auto; }
.brand-logo-footer { height: 58px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 0.08em; }
.brand-text small { color: var(--text-muted); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--text); font-size: 0.92rem; font-weight: 500;
  padding: 0.5em 0.85em; border-radius: 10px; transition: background-color 0.2s ease;
}
.site-nav a:hover { background: var(--accent-soft); }
.site-nav a.active { color: var(--accent); }
.hotline {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.9rem; font-weight: 600; white-space: nowrap; color: #fff;
  padding: 0.62em 1.25em; border-radius: 980px; border: 0;
  background: var(--accent-gradient); box-shadow: 0 6px 18px rgba(122, 90, 41, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.hotline:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(122, 90, 41, 0.34); }
.hotline svg { flex: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* ---- Forms -------------------------------------------------------------- */
label { display: grid; gap: 7px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
select, input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  padding: 0.7em 0.85em; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
select:hover, input:hover { border-color: rgba(0, 0, 0, 0.18); }
select:focus, input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
@media (prefers-color-scheme: dark) {
  select:hover, input:hover { border-color: rgba(255, 255, 255, 0.24); }
}

/* ---- Hero (banner đầu trang) -------------------------------------------- */
.hero {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  min-height: clamp(320px, 34vw, 480px);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; z-index: 0;
}
.hero-bg-placeholder {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--accent-soft) 0 14px, transparent 14px 28px),
    var(--surface-2);
  color: var(--text-muted); font-size: 0.9rem; letter-spacing: 0.04em;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--surface) 88%, transparent) 28%,
    color-mix(in srgb, var(--surface) 40%, transparent) 46%,
    transparent 62%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(28px, 4vw, 56px) 22px;
}
.hero-copy { min-width: 0; max-width: 42ch; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent);
}
.hero-eyebrow-line { display: block; width: 46px; height: 2px; background: var(--accent); opacity: 0.7; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0 0 0.35em; color: var(--accent-hover);
  text-shadow: 0 1px 2px color-mix(in srgb, var(--surface) 70%, transparent);
}
.hero-lead {
  margin: 0; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text); max-width: 38ch;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--surface) 70%, transparent);
}
@media (max-width: 700px) {
  .hero { min-height: clamp(360px, 62vw, 440px); }
  .hero::before {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--surface) 20%, transparent) 0%,
      color-mix(in srgb, var(--surface) 80%, transparent) 52%,
      var(--surface) 100%);
  }
  .hero-inner { width: 100%; }
}

/* ---- Project filter (Dự án phân phối) ----------------------------------- */
.section-filter {
  position: relative;
  isolation: isolate;
  padding-top: clamp(40px, 6vw, 72px);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-alt) 62%, transparent) 0%,
      color-mix(in srgb, var(--bg-alt) 82%, transparent) 55%,
      var(--bg-alt) 100%),
    url("/static/img/section-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.filter-divider {
  display: block; width: 120px; height: 2px; margin-top: 10px;
  background: linear-gradient(90deg, transparent, #c8a24a, transparent);
}
.project-filter {
  max-width: 940px; margin: 36px auto 0; padding: clamp(24px, 3.5vw, 40px);
  display: grid; gap: clamp(22px, 3vw, 30px);
  border-radius: 22px;
}
.filter-block { display: grid; gap: 14px; }
.filter-block-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.filter-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 0; }
.filter-unit { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-muted); opacity: 0.8; }
.filter-sep { height: 1px; border: 0; margin: 0; background: var(--border); }

.project-pills { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; padding: 0.62em 1.3em;
  border-radius: 980px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-muted); cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.pill span:hover { border-color: rgba(0, 0, 0, 0.2); color: var(--text); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.pill input:checked + span:hover { color: #fff; border-color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .pill span:hover { border-color: rgba(255, 255, 255, 0.28); }
}

.filter-status { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.filter-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); }

.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 22px; }
.filter-field { gap: 10px; }
.filter-field-head {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.filter-ico {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 9px; color: var(--accent); background: var(--accent-soft);
}
.filter-ico svg { width: 17px; height: 17px; }

/* Select với mũi tên tuỳ biến (bỏ mũi tên native lệch chuẩn) */
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 2.4em; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 0.95em; top: 50%; width: 9px; height: 9px;
  margin-top: -3px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); pointer-events: none; transition: border-color 0.2s ease;
}
.select-wrap:hover::after { border-color: var(--text); }

.price-range { display: flex; align-items: center; gap: 12px; max-width: 440px; }
.price-range .dash { color: var(--text-muted); flex: none; }

.filter-actions {
  display: flex; justify-content: flex-end; gap: 12px;
  border-top: 1px solid var(--border); margin-top: 2px; padding-top: 22px;
}
.filter-actions .btn { min-width: 130px; }
.filter-actions .btn-primary { min-width: 170px; }

@media (max-width: 900px) {
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-actions { flex-direction: column-reverse; }
  .filter-actions .btn { width: 100%; }
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

/* ---- Cards / grids ------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.grid { display: grid; gap: 22px; }
.grid-cards { grid-template-columns: repeat(3, 1fr); }
.grid-news { grid-template-columns: repeat(2, 1fr); }

/* ---- Dự án nổi bật ------------------------------------------------------ */
.section-featured { background: var(--bg-alt); }
.featured-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.featured-eyebrow {
  margin: 0 0 6px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
}
.featured-heading h2 { margin: 0; }
.featured-all { flex-shrink: 0; }

.listing-card { overflow: hidden; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.listing-card:hover, .listing-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); outline: none; }
.listing-card:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-soft); }
.listing-media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-alt); overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.listing-card:hover .listing-media img, .listing-card:focus-visible .listing-media img { transform: scale(1.06); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 0.3em 0.8em; border-radius: 980px; font-size: 0.75rem; font-weight: 600; color: #fff;
  backdrop-filter: blur(8px);
}
.badge-sale { background: rgba(0, 113, 227, 0.92); }
.badge-rent { background: rgba(52, 199, 89, 0.92); }
.listing-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.45));
  opacity: 0; transition: opacity 0.25s ease;
}
.listing-card:hover .listing-overlay, .listing-card:focus-visible .listing-overlay { opacity: 1; }
.listing-overlay-btn {
  padding: 0.6em 1.3em; border-radius: 980px; font-size: 0.9rem; font-weight: 600;
  color: #1d1d1f; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow);
  transform: translateY(6px); transition: transform 0.25s ease;
}
.listing-card:hover .listing-overlay-btn, .listing-card:focus-visible .listing-overlay-btn { transform: translateY(0); }
.listing-body { padding: 18px 20px 22px; }
.listing-meta { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; color: var(--text-muted); }
.listing-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.listing-price { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.listing-cta { font-size: 0.9rem; font-weight: 600; color: var(--accent); white-space: nowrap; transition: transform 0.2s ease; }
.listing-card:hover .listing-cta, .listing-card:focus-visible .listing-cta { transform: translateX(3px); }

/* ---- Listing modal (lightbox) ------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); animation: modal-fade 0.2s ease; }
.modal-panel {
  position: relative; z-index: 1; width: min(920px, 100%); max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: modal-pop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: #1d1d1f;
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow);
}
.modal-close:hover { background: #fff; }
.modal-media { position: relative; background: var(--bg-alt); }
.modal-media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.modal-media .badge { top: 14px; left: 14px; }
.modal-body { padding: 26px 28px; display: flex; flex-direction: column; }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 0.2em; }
.modal-specs { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.modal-specs li { display: flex; flex-direction: column; gap: 2px; }
.modal-specs span { font-size: 0.78rem; color: var(--text-muted); }
.modal-specs strong { font-size: 0.98rem; }
.modal-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); }
.modal-foot .listing-price { font-size: 1.5rem; }

/* ---- Gallery (chuyển ảnh trong modal) ----------------------------------- */
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: #1d1d1f;
  background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow);
  display: grid; place-items: center; transition: background-color 0.2s ease, transform 0.15s ease;
}
.gallery-nav:hover { background: #fff; }
.gallery-nav:active { transform: translateY(-50%) scale(0.92); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-count {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  padding: 0.25em 0.7em; border-radius: 980px; font-size: 0.78rem; font-weight: 600;
  color: #fff; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
}
.gallery-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 7px;
}
.gallery-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.55); transition: background-color 0.2s ease, transform 0.2s ease;
}
.gallery-dot:hover { background: rgba(255, 255, 255, 0.85); }
.gallery-dot.active { background: #fff; transform: scale(1.35); }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---- Steps -------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px 20px; }
.step-no {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

/* ---- News --------------------------------------------------------------- */
.news-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.news-card:hover, .news-card:focus-visible { color: var(--text); transform: translateY(-6px); box-shadow: var(--shadow-lg); outline: none; }
.news-card:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-soft); }
.news-cover { aspect-ratio: 8 / 5; background: var(--bg-alt); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-cover img, .news-card:focus-visible .news-cover img { transform: scale(1.06); }
.news-body { flex: 1; padding: 20px 22px 0; }
.news-body h3 { margin: 0 0 0.4em; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; margin: 14px 22px 20px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---- Article (news detail) ---------------------------------------------- */
.article-container { max-width: 760px; }
.article-back { margin-bottom: 20px; }
.article-back a { font-size: 0.9rem; font-weight: 500; }
.article-head h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 0.4em; line-height: 1.2; }
.article-meta { display: flex; gap: 16px; font-size: 0.9rem; margin: 0; }
.article-cover { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body { margin-top: 28px; font-size: 1.06rem; line-height: 1.75; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 { font-size: 1.5rem; margin: 1.4em 0 0.5em; }
.article-body h3 { font-size: 1.22rem; margin: 1.3em 0 0.5em; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--accent); color: var(--text-muted); font-style: italic; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1em 0; }
.article-body a { text-decoration: underline; }

/* ---- Listing page ------------------------------------------------------- */
.page-head { padding: clamp(36px, 5vw, 64px) 0 0; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.35em; }
.page-head .muted { margin: 0; font-size: 1.05rem; }
.empty { text-align: center; padding: 64px 24px; color: var(--text-muted); }
.empty h3 { margin-bottom: 0.4em; }
.empty p { margin: 0; }

/* Section chứa danh sách nằm ngay sau tiêu đề trang: bỏ padding-top thừa */
.page-head + .section { padding-top: clamp(24px, 4vw, 40px); }

/* Bố cục 2 cột: bộ lọc dính bên trái, kết quả bên phải */
.list-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }

.filter { position: sticky; top: 84px; padding: 0; overflow: hidden; }
.filter h2 {
  margin: 0; padding: 18px 24px; font-size: 1.05rem;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.filter label {
  display: grid; gap: 7px; padding: 16px 24px 0;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
}
.filter select, .filter input { text-transform: none; letter-spacing: normal; font-weight: 400; }
.filter .btn { margin-inline: 24px; width: calc(100% - 48px); }
.filter .btn-primary { margin-top: 24px; }
.filter .btn-ghost { margin-top: 10px; margin-bottom: 24px; }

.list-results { min-width: 0; }
.list-results .result-count { margin: 2px 0 20px; color: var(--text-muted); font-size: 0.95rem; }
.list-results .grid-cards { grid-template-columns: repeat(2, 1fr); }

/* ---- About / Contact ---------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { color: var(--text-muted); }

/* Giới thiệu: copy bên trái, điểm nổi bật bên phải */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-intro-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.5em; }
.about-intro-copy p { color: var(--text-muted); font-size: 1.05rem; }
.about-cta { display: flex; gap: 12px; margin-top: 1.4em; flex-wrap: wrap; }

.about-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-highlights li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-highlight-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.about-highlight-icon svg { width: 24px; height: 24px; }
.about-highlights strong { display: block; margin-bottom: 3px; }
.about-highlights p { margin: 0; font-size: 0.92rem; }

/* Dải số liệu */
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.about-stats li { display: flex; flex-direction: column; gap: 4px; }
.about-stats strong { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.about-stats span { font-size: 0.92rem; }

/* Giá trị cốt lõi */
.about-values { grid-template-columns: repeat(3, 1fr); }
.value-card { padding: 26px 24px; }
.value-card h3 { margin-bottom: 0.4em; }
.value-card p { margin: 0; }

/* Banner CTA cuối trang */
.about-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 40px); background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); flex-wrap: wrap; }
.about-banner h2 { margin-bottom: 0.3em; }
.about-banner p { margin: 0; }
.about-banner .btn { flex-shrink: 0; }

/* Bố cục 2 cột: form bên trái, thông tin bên phải */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; padding-top: clamp(24px, 4vw, 40px); }

.contact-form { padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; }
.contact-form h2 { font-size: 1.35rem; margin: 0; }
.contact-form-lead { margin: -8px 0 4px; font-size: 0.95rem; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { margin: 0; }
.contact-form textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.contact-form .btn-primary { margin-top: 4px; }
.form-note { margin: 0; font-size: 0.82rem; }

.contact-info-card { padding: clamp(24px, 4vw, 32px); position: sticky; top: 84px; }
.contact-info-card h2 { font-size: 1.2rem; margin: 0 0 20px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-text small { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-text a, .contact-text span { font-size: 1.02rem; font-weight: 500; color: var(--text); word-break: break-word; }
.contact-text a:hover { color: var(--accent); }
.contact-call { margin: 0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 0.95rem; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.brand-footer { margin-bottom: 12px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---- Responsive --------------------------------------------------------- */
/* Laptop nhỏ / tablet ngang: thu gọn sidebar bộ lọc trước khi xếp dọc */
@media (max-width: 1080px) {
  .list-layout { grid-template-columns: 260px 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Tablet dọc */
@media (max-width: 900px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .about-intro { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .about-values { grid-template-columns: 1fr; }
  .about-banner { flex-direction: column; align-items: flex-start; }
  .list-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter { position: static; }
}

/* Điện thoại */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .section { padding: clamp(36px, 9vw, 56px) 0; }
  .section-head { margin-bottom: 24px; }
  .nav-toggle { display: flex; }
  .hotline { display: none; }
  .site-nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--header-bg); backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 8px 18px 16px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.3s ease; margin-left: 0;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 0.85em 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .contact-form-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .about-banner { flex-direction: column; align-items: flex-start; }
  .about-banner .btn { width: 100%; }
  .grid-cards, .grid-news, .list-results .grid-cards { grid-template-columns: 1fr; }
  .featured-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .featured-all { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-panel { grid-template-columns: 1fr; width: 100%; max-height: 100vh; border-radius: 0; border: 0; }
  .modal-media img { min-height: 220px; }
  .modal-specs { grid-template-columns: 1fr 1fr; }
  .modal-body { padding: 22px 20px; }
}

/* Điện thoại nhỏ */
@media (max-width: 400px) {
  .container { padding-inline: 16px; }
  .modal-specs { grid-template-columns: 1fr; }
  .modal-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .modal-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
