/* ============================================================
   AMACONG HOME — bộ giao diện dùng chung cho toàn bộ website
   Sửa màu / phông / khoảng cách: chỉ sửa trong khối :root bên dưới
   ============================================================ */

:root {
  /* Màu thương hiệu */
  --ink:        #15181d;   /* nền đậm, chữ tiêu đề */
  --ink-2:      #232830;
  --ink-3:      #3d4550;
  --muted:      #6b7280;   /* chữ phụ */
  --line:       #e4e2dd;   /* đường kẻ */
  --paper:      #ffffff;
  --paper-2:    #faf8f5;   /* nền kem nhạt */
  --paper-3:    #f2efe9;
  --brand:      #b4562c;   /* đất nung — màu nhấn chính */
  --brand-dark: #8f4322;
  --brand-soft: #fbeee7;
  --gold:       #b08d46;
  --ok:         #15803d;
  --warn:       #b45309;

  /* Kích thước */
  --wrap: 1200px;
  --r:    14px;   /* bán kính bo góc */
  --r-sm: 9px;
  --shadow:    0 1px 2px rgba(21,24,29,.05), 0 8px 24px -12px rgba(21,24,29,.16);
  --shadow-lg: 0 2px 4px rgba(21,24,29,.06), 0 24px 56px -20px rgba(21,24,29,.28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-title: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Thanh trên cùng ---------- */
.topbar {
  background: var(--ink);
  color: #cfd3da;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-links { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.logo { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--ink); color: #fff;
  /* Phải là flex, không dùng grid: grid sẽ đẩy chữ H xuống dòng thứ hai */
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.04em;
}
.logo-mark span { color: var(--brand); }
.logo-text { line-height: 1.05; }
.logo-name { font-weight: 800; font-size: 17.5px; color: var(--ink); letter-spacing: -.02em; display: block; }
.logo-sub  { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink-2); font-weight: 550; font-size: 15.5px;
  padding: 9px 13px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-3); color: var(--ink); }
.nav a.active { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 11px; font-size: 19px; cursor: pointer; color: var(--ink);
}

@media (max-width: 980px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding-bottom: 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 9px; }
  .topbar-links { display: none; }
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 15.5px;
  cursor: pointer; transition: .16s ease; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Khối section ---------- */
.section { padding: 78px 0; }
.section-tight { padding: 52px 0; }
.section-cream { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #cfd3da; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.section-ink .section-head p { color: #a8aeb8; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  /* ĐỔI ẢNH BÌA TRANG CHỦ: thay file  anh/hero.jpg  bằng ảnh khác, giữ nguyên tên.
     Ảnh nên nằm ngang, tối một chút, chi tiết chính lệch về bên phải.
     Muốn thấy ảnh rõ hơn: giảm ba số .94 / .78 / .42 xuống. */
  background-image: linear-gradient(100deg, rgba(12,14,17,.96) 0%, rgba(12,14,17,.82) 46%, rgba(12,14,17,.45) 100%),
                    url("../../anh/hero.jpg");
  background-color: var(--ink);
  background-size: cover, cover;
  background-position: center, center 32%;
  background-repeat: no-repeat, no-repeat;
  padding: 104px 0 96px;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero-lead { font-size: 19px; color: #dfe2e7; max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 44px; flex-wrap: wrap;
  margin-top: 58px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats b { display: block; font-size: 30px; color: #fff; font-weight: 800; letter-spacing: -.03em; }
.hero-stats span { font-size: 14px; color: #b9bfc8; }

.page-hero { background: var(--ink); color: #cfd3da; padding: 62px 0 58px; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: #a8aeb8; font-size: 18px; max-width: 62ch; margin: 0; }
.crumb { font-size: 13.5px; color: #8b929d; margin-bottom: 16px; }
.crumb a { color: #b9bfc8; }

/* ---------- Lưới ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr !important; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Thẻ ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: .18s ease;
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #d8d4cc; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card-link { display: inline-block; margin-top: 15px; font-weight: 650; font-size: 15px; }
.card-link::after { content: " →"; }

/* ---------- Thẻ nhà đất ---------- */
.listing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s ease;
}
.listing:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.listing-img { position: relative; aspect-ratio: 4/3; background: var(--paper-3); overflow: hidden; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.listing:hover .listing-img img { transform: scale(1.05); }
.listing-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.listing-count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.66); color: #fff; font-size: 12.5px;
  padding: 4px 9px; border-radius: 6px; backdrop-filter: blur(4px);
}
.listing-body { padding: 18px 19px 20px; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-size: 21px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.listing-unit { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.listing-title {
  font-size: 16.5px; font-weight: 650; color: var(--ink); margin: 7px 0 4px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-addr { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.listing-specs {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto;
  padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
.listing-specs b { color: var(--ink); font-weight: 650; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 650;
  padding: 4px 10px; border-radius: 6px; background: var(--paper-3); color: var(--ink-3);
}
.tag-brand { background: var(--brand); color: #fff; }
.tag-ok    { background: #dcfce7; color: #15803d; }
.tag-hot   { background: #fee2e2; color: #b91c1c; }
.tag-ink   { background: var(--ink); color: #fff; }
.tag-mau   { background: #fde68a; color: #78350f; }   /* nhãn TIN MẪU */

/* ---------- Bộ lọc ---------- */
.filter {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 30px;
}
.filter-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; align-items: end; }
@media (max-width: 980px) { .filter-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .filter-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px;
}
.field select, .field input, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15.5px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); transition: .15s;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 5px; }

.result-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
  font-size: 15px; color: var(--muted);
}
.result-bar b { color: var(--ink); }

.empty {
  text-align: center; padding: 62px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper-2);
}
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* ---------- Bảng ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 540px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-weight: 700; color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { background: var(--paper-2); font-weight: 750; color: var(--ink); }

/* ---------- Quy trình ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 15px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft); border-radius: 9px;
  width: 46px; height: 46px; display: grid; place-items: center;
}
.step h3 { font-size: 17px; margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Danh sách dấu tick ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--brand); font-weight: 800;
}
.section-ink .ticks li::before { color: #e0a37f; }

/* ---------- Bảng giá ---------- */
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before {
  content: "Phổ biến nhất"; position: absolute; top: -13px; left: 26px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; letter-spacing: .04em;
}
.price-num { font-size: 33px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 10px 0 2px; }
.price-unit { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.price-card .ticks { margin-bottom: 26px; }
.price-card .ticks li { font-size: 15px; }
.price-card .btn { margin-top: auto; }

/* ---------- Máy tính chi phí ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: 16px; }
.calc-out {
  background: var(--ink); color: #cfd3da; border-radius: var(--r); padding: 28px;
  position: sticky; top: 92px;
}
.calc-out h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #9aa1ab; }
.calc-total { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 4px; }
.calc-sub { font-size: 14px; color: #9aa1ab; margin-bottom: 22px; }
.calc-lines { display: grid; gap: 10px; font-size: 15px; }
.calc-lines div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-lines b { color: #fff; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13px; color: #8b929d; margin-top: 20px; line-height: 1.55; }

/* ---------- Bài viết ---------- */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; transition: .18s;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-meta { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; margin-bottom: 11px; }
.post-card h3 { font-size: 18.5px; margin-bottom: .4em; }
.post-card p { color: var(--muted); font-size: 15.5px; flex: 1; }

.prose { max-width: 74ch; font-size: 17.5px; }
.prose h2 { margin-top: 1.7em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand);
  color: var(--ink-3); font-size: 18px;
}
.prose img { border-radius: var(--r); margin: 1.6em 0; }

.callout {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: var(--r-sm); padding: 18px 20px; margin: 26px 0; font-size: 16px;
}
.callout b { color: var(--ink); }
.callout-warn { background: #fef6e7; border-left-color: var(--warn); }

/* ---------- Dải CTA ---------- */
.cta-band {
  background: var(--brand); color: #fff; border-radius: 18px;
  padding: 46px 44px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p  { color: #ffe4d7; margin: 0; font-size: 17px; max-width: 52ch; }
.cta-band .btn-ghost { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff5f0; color: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9aa1ab; padding: 60px 0 26px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 38px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { color: #c3c9d1; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-name { color: #fff; }
.site-footer .logo-sub { color: #7d848e; }
.footer-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: #7d848e;
}

/* ---------- Nút gọi nổi ---------- */
.floats {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 11px;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-lg); font-size: 15px; font-weight: 700;
  transition: .16s;
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-call  { background: var(--brand); font-size: 24px; }
.float-zalo  { background: #0068ff; font-size: 14px; letter-spacing: -.02em; }
@media (max-width: 640px) { .float-btn { width: 48px; height: 48px; } }

/* Cột phụ dạng khối thông tin */
.info-box {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
}
.info-box h3 { font-size: 17px; }
.info-rows { display: grid; gap: 0; font-size: 15.5px; }
.info-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-rows > div:last-child { border-bottom: none; }
.info-rows span { color: var(--muted); }
.info-rows b { color: var(--ink); text-align: right; font-weight: 650; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; }
.gallery img { border-radius: var(--r-sm); aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }

/* Hộp chú thích dev — chỉ để anh biết chỗ cần sửa, xoá được */
.dev-note {
  background: #fffbea; border: 1px dashed #d6b656; border-radius: var(--r-sm);
  padding: 13px 16px; font-size: 14.5px; color: #6b5410; margin-bottom: 22px;
}
.dev-note b { color: #4a3906; }

@media print { .site-header, .topbar, .floats, .site-footer, .filter { display: none; } }
