/* ===== Alluvia City · đồng bộ bộ nhận diện thetuandao.com (navy · trắng ngà · đường kẻ mảnh) ===== */
:root {
  --bg: #f2f0eb;
  --bg-alt: #e9e6df;
  --card: #f8f7f3;
  --ink: #1d2533;
  --muted: #6a6f78;
  --line: #d6d1c6;
  --navy: #1b2436;
  --navy-2: #26324a;
  --accent-dark: #0f1624;
  --soft: #8a7a5c;
  --ivory: #f2f0eb;
  --serif: "Playfair Display", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --wrap: 1200px;
  --panel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='228' height='228'/%3E%3Crect x='30' y='30' width='200' height='200'/%3E%3Crect x='36' y='36' width='188' height='188' stroke-opacity='.04'/%3E%3Cpath d='M16 16l14 14M244 16l-14 14M16 244l14-14M244 244l-14-14'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--navy) var(--panel); color: var(--ivory); }
section.dark .eyebrow, section.dark .en, section.dark p.muted { color: rgba(242,240,235,.62); }
section.dark em { color: #d9cdb4; }

/* Chữ */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.eyebrow.line::before { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.en { display: block; font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(38px, 6vw, 72px); text-transform: uppercase; letter-spacing: .03em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 22px; letter-spacing: .02em; }
em { font-style: italic; text-transform: none; letter-spacing: 0; color: var(--navy-2); }
p.muted { color: var(--muted); }
.head { margin-bottom: 56px; max-width: 720px; }
.head h2 { margin-top: 18px; }
.head p { margin-top: 20px; color: var(--muted); }
section.dark .head p { color: rgba(242,240,235,.7); }

/* Nút */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--navy); background: var(--navy); color: var(--ivory); cursor: pointer; transition: .3s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--ivory); }
.btn.light { background: transparent; color: var(--ivory); border-color: rgba(242,240,235,.5); }
.btn.light:hover { background: var(--ivory); color: var(--navy); }
.btn.ivory { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.link-arrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow::after { content: "  →"; }

/* Ảnh giữ chỗ — thay bằng ảnh thật: <div class="ph"><img src="..." alt=""></div> */
.ph { background: var(--navy) var(--panel); position: relative; overflow: hidden; }
.ph.blue { background-color: #2b3850; }
.ph.slate { background-color: #3a4152; }
.ph.deep { background-color: #151c2a; }
.ph img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.ph .ph-label { position: absolute; inset: auto 0 0 0; padding: 14px 18px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(242,240,235,.55); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(242,240,235,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--script); font-weight: 400; font-size: 38px; color: var(--navy); line-height: .9; }
.logo small { font-size: 9px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.nav a { white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent; transition: .3s; }
.nav a:hover { border-color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 20px; font-size: 13px; letter-spacing: .06em; }
.header-cta .btn { padding: 12px 20px; font-size: 11px; }

/* Breadcrumb */
.crumbs { padding: 22px 0 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 10px; opacity: .5; }

/* Hero dự án */
.p-hero { position: relative; padding: 0; color: var(--ivory); }
.p-hero .ph { position: absolute; inset: 0; }
.p-hero .ph::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(15,22,36,.78) 0%, rgba(15,22,36,.45) 45%, rgba(15,22,36,.08) 80%), linear-gradient(180deg, rgba(15,22,36,0) 55%, rgba(15,22,36,.55) 100%); }
.p-hero .inner { position: relative; z-index: 3; min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 70px; }
.p-hero.short .inner { min-height: 56vh; }
.p-hero .eyebrow { color: rgba(242,240,235,.75); }
.p-hero h1 { margin-top: 22px; }
.p-hero h1 em { display: block; color: #d9cdb4; font-size: .92em; }
.p-hero .lead { max-width: 560px; margin-top: 22px; font-size: 16px; color: rgba(242,240,235,.82); }
.p-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Dải số liệu */
.stats { background: var(--navy); color: var(--ivory); border-top: 1px solid rgba(242,240,235,.12); }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 30px 22px; border-left: 1px solid rgba(242,240,235,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.stat b small { font-family: var(--sans); font-size: 12px; margin-left: 4px; opacity: .7; }
.stat span { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: rgba(242,240,235,.6); }

/* Thanh mục lục dính */
.subnav { position: sticky; top: 84px; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 18px 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.subnav a:hover, .subnav a.on { color: var(--navy); border-color: var(--navy); }
.subnav a.cta { margin-left: auto; color: var(--navy); font-weight: 400; }

/* Lưới chung */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Tổng quan */
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 40px; }
.facts div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 24px; }
.facts dt { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: 20px; margin-top: 6px; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.mosaic .ph:first-child { grid-row: span 2; }

/* Vị trí */
.distances { list-style: none; border-top: 1px solid var(--line); }
.distances li { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.distances b { font-family: var(--serif); font-weight: 400; font-size: 26px; min-width: 110px; }

/* Phân khu */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zone { display: flex; flex-direction: column; background: rgba(242,240,235,.04); border: 1px solid rgba(242,240,235,.14); transition: .35s; }
.zone:hover { border-color: rgba(242,240,235,.5); transform: translateY(-4px); }
.zone .ph { aspect-ratio: 4/5; }
.zone .body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.zone .num { font-size: 11px; letter-spacing: .3em; color: rgba(242,240,235,.5); }
.zone h3 { font-size: 30px; margin-top: 8px; }
.zone .area { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #d9cdb4; margin-top: 4px; }
.zone ul { list-style: none; margin: 18px 0 24px; font-size: 14px; color: rgba(242,240,235,.75); }
.zone li { padding: 6px 0; border-bottom: 1px solid rgba(242,240,235,.08); }
.zone .link-arrow { margin-top: auto; align-self: flex-start; }
.zone.new .badge { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 5px 10px; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; background: var(--ivory); color: var(--navy); }

/* Thẻ sản phẩm */
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: .35s; }
.card:hover { border-color: var(--navy); transform: translateY(-4px); }
.card .ph { aspect-ratio: 4/3; }
.card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card .num { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.card h3 { margin-top: 8px; }
.card .spec { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 22px; font-size: 13px; color: var(--muted); }
.card .spec span::before { content: "— "; opacity: .5; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.card.big .ph { aspect-ratio: 16/10; }
.card.big h3 { font-size: 28px; }

/* Tiện ích */
.amenity .ph { aspect-ratio: 1/1; }
.amenity h4 { font-size: 17px; margin-top: 14px; }

/* Tiến độ */
.timeline { list-style: none; border-left: 1px solid rgba(242,240,235,.25); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 34px 34px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ivory); }
.timeline li.plan::before { background: transparent; border: 1px solid var(--ivory); }
.timeline b { font-family: var(--serif); font-weight: 400; font-size: 22px; display: block; }
.timeline span { color: rgba(242,240,235,.72); }

/* Chính sách */
.policy { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.policy div { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.policy b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--navy); }
.policy p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Bảng thông số (trang chi tiết) */
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-right: 20px; }
.spec-table td { font-family: var(--serif); font-size: 18px; }
.tbd { color: var(--muted); font-family: var(--sans); font-size: 14px; font-style: italic; }

/* Khối "đang cập nhật" */
.pending { border: 1px dashed var(--line); padding: 46px 30px; text-align: center; color: var(--muted); background: var(--card); }
.pending b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 8px; }

/* Đăng ký */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.form { display: grid; gap: 22px; }
.form label { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgba(242,240,235,.6); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(242,240,235,.3); color: var(--ivory); font: inherit; padding: 10px 0; outline: none; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ivory); }
.form .btn { justify-self: start; margin-top: 8px; }
.agent { display: flex; gap: 18px; align-items: center; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(242,240,235,.15); }
.agent .avatar { width: 56px; height: 56px; border-radius: 50%; }
.agent b { font-family: var(--serif); font-weight: 400; font-size: 20px; display: block; }
.agent small { color: rgba(242,240,235,.65); font-size: 13px; }

/* Footer */
.footer { background: var(--accent-dark); color: rgba(242,240,235,.7); padding: 50px 0; font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer .logo b { color: var(--ivory); }
.footer a:hover { color: var(--ivory); }

/* Nút Zalo nổi */
.zalo { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--navy); color: var(--ivory); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(15,22,36,.25); }

/* Trang tổng chủ đầu tư: phần mở đầu + hai cổng dự án */
.hub-intro { padding: 72px 0 48px; }
.hub-intro h1 { margin-top: 20px; }
.hub-intro h1 em { color: var(--soft); }
.hub-intro .lead { margin-top: 16px; max-width: 560px; color: var(--muted); font-size: 16px; }
.hub { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.hub-panel { position: relative; display: flex; align-items: flex-end; min-height: 72vh; color: var(--ivory); overflow: hidden; }
.hub-panel + .hub-panel { border-left: 1px solid rgba(242,240,235,.15); }
.hub-panel .ph { position: absolute; inset: 0; }
.hub-panel .ph img { transition: transform 1.2s ease; }
.hub-panel:hover .ph img, .hub-panel:focus-visible .ph img { transform: scale(1.04); }
.hub-panel .ph::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(15,22,36,.05) 35%, rgba(15,22,36,.82) 100%); }
.hub-mark { position: absolute; z-index: 1; left: -0.04em; top: 8%; font-family: var(--serif); font-style: italic; font-size: clamp(90px, 13vw, 210px); line-height: 1; color: rgba(242,240,235,.06); white-space: nowrap; pointer-events: none; }
.hub-inner { position: relative; z-index: 3; padding: 48px clamp(20px, 4vw, 60px); max-width: 560px; }
.hub-inner .eyebrow { color: rgba(242,240,235,.75); }
.hub-inner h2 { margin-top: 18px; font-size: clamp(34px, 4.2vw, 56px); }
.hub-inner h2 em { display: block; color: #d9cdb4; }
.hub-inner p { margin: 16px 0 26px; color: rgba(242,240,235,.8); }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.feature-img { display: block; aspect-ratio: 4/5; }

/* Bảng so sánh sản phẩm */
.scroll-x { overflow-x: auto; }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 15px 14px 15px 0; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cmp tbody th { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.cmp tbody th a:hover { border-bottom: 1px solid currentColor; }
.cmp tfoot th, .cmp tfoot td { font-weight: 500; border-bottom: 0; }

/* Khối chi tiết từng dòng sản phẩm */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.product:first-child { border-top: 0; padding-top: 0; }
.product .ph { aspect-ratio: 4/3; }
.product h3 { font-size: 28px; margin-top: 10px; }
.product .spec-table { margin-top: 22px; }
.product .variant { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); }
.product .variant b { font-family: var(--serif); font-weight: 400; font-size: 18px; }
.product .plans { grid-column: 1 / -1; }
.plans-bar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); }
.plans-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.plans-tabs button { font: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: .2s; }
.plans-tabs button:hover { border-color: var(--navy); color: var(--navy); }
.plans-tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.plans-models button[aria-pressed="true"] { background: var(--soft); border-color: var(--soft); }
.plans-tabs button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.plans-main { display: block; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.plans-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.plans-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }
.floors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.floors span { padding: 5px 12px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Responsive */
.header-cta { white-space: nowrap; }
.logo small { white-space: nowrap; }
@media (max-width: 1100px) { .nav { display: none; } }
@media (max-width: 1024px) {
  .zones { grid-template-columns: 1fr 1fr; }
  .zone .ph { aspect-ratio: 16/10; }
  .grid-4, .policy { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .grid-2, .contact { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .hub { grid-template-columns: 1fr; }
  .hub-panel { min-height: 62vh; }
  .hub-panel + .hub-panel { border-left: 0; border-top: 1px solid rgba(242,240,235,.15); }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature-img { aspect-ratio: 4/3; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-cta .phone { display: none; }
  .zones, .grid-3, .grid-4, .policy { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: 160px 160px; }
  .subnav { top: 84px; }
  .distances b { min-width: 86px; font-size: 22px; }
}
