:root {
  --navy: #16235c;
  --blue: #1e5bbf;
  --gold: #e8a93d;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1c2333;
  --muted: #66708a;
  --zalo: #0068ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; flex-wrap: wrap; gap: 6px; }
.topbar a.tel { font-weight: 700; color: var(--gold); font-size: 16px; }
.btn-zalo { background: var(--zalo); color: #fff; padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; }

/* Header */
header.site { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 50; }
header.site .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.logo { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: 2px; }
.logo small { display: block; font-size: 11px; letter-spacing: 0; color: var(--muted); font-weight: 400; }
nav.main a { margin-left: 22px; font-weight: 600; color: var(--navy); }
nav.main a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 54px 0; }
.hero::before { content: ""; position: absolute; inset: -24px; background: url('../images/hero-phong-khach-dem.webp') center / cover no-repeat; filter: blur(9px) brightness(.48); }
.hero .container { position: relative; z-index: 1; }
.hero-full { text-align: center; }
.hero-title-xl { font-size: clamp(34px, 5vw, 64px); line-height: 1.32; margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.hero-title-xl span { color: var(--gold); }
.hero-desc-xl { font-size: 18px; opacity: .93; max-width: 960px; margin: 0 auto 30px; }
.hero-row3 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; }
.hero-ctas { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hero-row3 .hero-bucket { max-width: 200px; }
.hero-buckets { display: flex; flex-direction: row; gap: 10px; justify-content: center; }
.hero-bucket { text-align: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 8px; flex: 1; }
.hero-bucket img { width: 100%; border-radius: 8px; display: block; }
.hb-name { display: block; color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.hero h1 { font-size: 38px; margin-bottom: 10px; }
.hero h1 span { color: var(--gold); }
.hero-slide { position: relative; }
.hero-slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.45); transition: opacity .35s ease; display: block; }
.hs-cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 13px; padding: 26px 12px 10px; border-radius: 0 0 14px 14px; text-align: center; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 30px; font-weight: 700; margin: 4px 6px; }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-outline { border: 2px solid #fff; color: #fff; }

/* Sections */
section.block { padding: 52px 0; }
h2.sec-title { text-align: center; color: var(--navy); font-size: 30px; margin-bottom: 8px; }
p.sec-sub { text-align: center; color: var(--muted); margin-bottom: 30px; }

/* Category filter */
.cat-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-filter button { border: 2px solid var(--blue); background: #fff; color: var(--blue); padding: 9px 20px; border-radius: 24px; font-weight: 600; cursor: pointer; font-size: 15px; }
.cat-filter button.active, .cat-filter button:hover { background: var(--blue); color: #fff; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 3px 14px rgba(20,40,100,.1); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 1/1; overflow: hidden; background: #eef1f7; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.badge-msp { display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 12px; margin-bottom: 8px; align-self: flex-start; }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.card .en { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card .feat { font-size: 14px; color: var(--text); flex: 1; margin-bottom: 6px; }
.card .pack { font-size: 13px; color: #555; background: #f2f6fb; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.card .price-note { font-size: 14px; font-weight: 700; color: #b35400; margin-bottom: 10px; }
.card .actions { display: flex; gap: 8px; }
.card .actions a { flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 14px; font-weight: 700; }
.card .actions .zalo { background: var(--zalo); color: #fff; }
.card .actions .call { background: var(--gold); color: #3a2a00; }

/* Company + contact */
.company { background: #fff; border-radius: 16px; padding: 34px; box-shadow: 0 3px 14px rgba(20,40,100,.1); }
.company h3 { color: var(--navy); font-size: 22px; margin-bottom: 12px; }
.company p { margin-bottom: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 26px; }
.contact-card { background: var(--bg); border-radius: 12px; padding: 22px; text-align: center; }
.contact-card .big { font-size: 26px; font-weight: 800; color: var(--navy); margin: 8px 0; }
.contact-card a.btn-zalo, .contact-card a.btn-call { display: inline-block; margin-top: 10px; }
.btn-call { background: var(--gold); color: #3a2a00; padding: 10px 26px; border-radius: 24px; font-weight: 700; }

/* Footer */
footer { background: var(--navy); color: #cfd6ec; padding: 30px 0; text-align: center; font-size: 14px; }
footer strong { color: #fff; }

/* Chatbot */
#chat-fab { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff; border: none; font-size: 28px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 100; }
#chat-box { position: fixed; right: 20px; bottom: 92px; width: 350px; max-width: calc(100vw - 40px); height: 480px; max-height: calc(100vh - 130px); background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.25); display: none; flex-direction: column; overflow: hidden; z-index: 100; }
#chat-box.open { display: flex; }
#chat-head { background: var(--navy); color: #fff; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
#chat-head button { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
#chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f2f4fa; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.msg.bot { background: #fff; align-self: flex-start; border: 1px solid #e2e6f2; }
.msg.user { background: var(--blue); color: #fff; align-self: flex-end; }
.msg a { color: var(--zalo); font-weight: 700; }
#chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid #e6e9f3; background: #fff; }
#chat-quick button { background: #eef2fd; border: 1px solid var(--blue); color: var(--blue); border-radius: 16px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
#chat-form { display: flex; border-top: 1px solid #e6e9f3; }
#chat-form input { flex: 1; border: none; padding: 12px; font-size: 14px; outline: none; }
#chat-form button { background: var(--blue); color: #fff; border: none; padding: 0 18px; font-size: 16px; cursor: pointer; }
.lead-form input, .lead-form textarea { width: 100%; margin: 6px 0; padding: 9px; border: 1px solid #ccd3e6; border-radius: 8px; font-size: 14px; }
.lead-form button { width: 100%; background: var(--zalo); color: #fff; border: none; padding: 10px; border-radius: 8px; font-weight: 700; cursor: pointer; margin-top: 6px; }

@media (max-width: 900px) {
  .hero-row3 { grid-template-columns: 1fr; gap: 22px; }
  .hero-buckets { flex-direction: row; justify-content: center; }
  .hero-bucket { width: 30%; max-width: 150px; }
  .hero-slide { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  nav.main { display: none; }
  .logo { font-size: 19px; }
}

/* Gallery mẫu nhà */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gallery figure { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 14px rgba(20,40,100,.1); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: 12px; text-align: center; font-weight: 600; color: var(--navy); }

/* Máy tính sơn */
.calc { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 3px 14px rgba(20,40,100,.1); max-width: 860px; margin: 0 auto; }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.calc-row label { font-weight: 600; font-size: 14px; color: var(--navy); display: flex; flex-direction: column; gap: 6px; }
.calc-row input, .calc-row select { padding: 10px; border: 1px solid #ccd3e6; border-radius: 8px; font-size: 15px; }
.calc-result { margin-top: 18px; background: var(--bg); border-radius: 10px; padding: 18px; font-size: 16px; text-align: center; }

/* Steps bán lẻ / giao hàng */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: #fff; border-radius: 14px; padding: 24px 18px; text-align: center; box-shadow: 0 3px 14px rgba(20,40,100,.1); }

/* Quy trình sơn */
.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.proc-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 14px rgba(20,40,100,.1); }
.proc-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.proc-body { padding: 18px; }
.proc-body h3 { color: var(--navy); margin-bottom: 10px; }
.proc-toggle { background: var(--blue); color: #fff; border: none; padding: 9px 20px; border-radius: 20px; font-weight: 700; cursor: pointer; font-size: 14px; }
.proc-detail { display: none; margin-top: 14px; background: var(--bg); border-radius: 10px; padding: 16px 16px 16px 34px; font-size: 14px; }
.proc-detail.open { display: block; }
.proc-detail ol li { margin-bottom: 8px; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step b { color: var(--navy); font-size: 17px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Huy hiệu thương hiệu trên thẻ SP */
.badges { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.badge-brand { display: inline-block; background: var(--gold); color: #5a3c00; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 12px; letter-spacing: .5px; }

/* Thùng sơn 2 bên tên công ty */
.company-buckets { display: flex; align-items: center; gap: 24px; }
.company-text { flex: 1; }
.bucket-side { width: 120px; flex-shrink: 0; border-radius: 12px; }

/* Phong thủy */
.fs-lookup { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 3px 14px rgba(20,40,100,.1); margin-bottom: 16px; }
.fs-lookup label { display: flex; flex-direction: column; font-weight: 700; color: var(--navy); font-size: 14px; gap: 6px; }
.fs-lookup input, .fs-lookup select { padding: 10px 14px; border: 1px solid #ccd6e3; border-radius: 10px; font-size: 15px; min-width: 170px; }
.fs-kq { background: #fff8e8; border: 1px dashed var(--gold); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; font-size: 15px; }
.fs-result .fs-line { margin-bottom: 8px; }
.fs-result .hl { color: #b35400; }
.menh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.menh-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 3px 14px rgba(20,40,100,.1); border-top: 5px solid var(--gold); }
.menh-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 17px; }
.menh-Kim { border-top-color: #9aa0a6; } .menh-Mộc { border-top-color: #2e7d32; }
.menh-Thủy { border-top-color: #1565c0; } .menh-Hỏa { border-top-color: #d32f2f; }
.menh-Thổ { border-top-color: #a16207; }
.mrow { font-size: 14px; margin-bottom: 6px; }
.mnote { font-size: 13px; color: var(--muted); margin: 8px 0; font-style: italic; }
.swatches { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); display: inline-block; }
.years summary { cursor: pointer; font-size: 13px; color: var(--blue); font-weight: 700; }
.ychips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ychip { font-size: 12px; background: var(--bg); border-radius: 8px; padding: 3px 9px; color: #444; }

@media (max-width: 640px) {
  .bucket-side { width: 74px; }
  .company-buckets { gap: 12px; }
}

/* Bố cục 3 cột: giữa cuộn, 2 bên đứng yên */
.layout-3col { display: grid; grid-template-columns: 250px minmax(0,1fr) 300px; gap: 22px; max-width: 1760px; margin: 0 auto; padding: 0 20px; align-items: start; }
.center-col { min-width: 0; }
.side { position: sticky; top: 78px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
.side-box { background: #fff; border-radius: 14px; box-shadow: 0 3px 14px rgba(20,40,100,.1); padding: 16px; overflow-y: auto; margin-bottom: 12px; }
.stitle { color: var(--navy); font-size: 17px; margin-bottom: 4px; text-align: center; }
.side-sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.csw { cursor: pointer; text-align: center; border-radius: 10px; padding: 6px 3px; border: 1px solid #e6e9f3; background: #fff; text-decoration: none; display: block; }
.csw:hover { border-color: var(--blue); }
.csw i { display: block; width: 100%; aspect-ratio: 1 / .72; border-radius: 6px; margin-bottom: 4px; }
.csw b { font-size: 11px; display: block; color: var(--navy); }
.csw span { font-size: 10px; color: var(--muted); display: block; line-height: 1.25; }
.news-item { display: flex; gap: 10px; margin-bottom: 14px; }
.news-item:last-child { margin-bottom: 0; }
.news-item img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.news-item b { font-size: 13px; color: var(--navy); display: block; margin-bottom: 3px; line-height: 1.35; }
.news-item p { font-size: 12px; color: var(--muted); line-height: 1.4; }
.blink-zalo { display: block; text-align: center; background: #0068ff; color: #fff; font-weight: 800; font-size: 15px; padding: 13px 10px; border-radius: 12px; text-decoration: none; animation: blink 1.1s infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 980px) {
  .layout-3col { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
}

/* 3 thùng sơn hero to rõ hơn */
.hero-bucket { padding: 10px; }
.hero-bucket img { border-radius: 8px; }
.hb-name { font-weight: 800; font-size: 17px; letter-spacing: 1px; }

/* Tin tức: bấm vào mở bài viết */
.news-item { cursor: pointer; border-radius: 10px; padding: 6px; transition: background .2s; }
.news-item:hover { background: #f2f6ff; }
.news-item:hover b { color: var(--blue); }

/* Khung đọc bài viết */
.article-modal { position: fixed; inset: 0; background: rgba(10,20,40,.62); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.article-modal.open { display: flex; }
.article-box { background: #fff; border-radius: 16px; max-width: 660px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 28px; position: relative; }
.article-box h3 { color: var(--navy); margin-bottom: 14px; font-size: 22px; padding-right: 34px; line-height: 1.4; }
.article-box p { margin-bottom: 12px; line-height: 1.7; font-size: 15px; }
.article-box ul { margin: 0 0 14px 20px; }
.article-box li { margin-bottom: 9px; line-height: 1.65; font-size: 15px; }
.article-close { position: absolute; top: 12px; right: 14px; border: none; background: #eef2fd; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--navy); }
.article-close:hover { background: #dbe6ff; }

/* 2 thẻ email: mỗi thẻ 1 hàng riêng, địa chỉ mail gọn trên 1 dòng */
.contact-card.email-card { grid-column: 1 / -1; padding: 14px 20px; }
.contact-card.email-card .email-addr { font-size: 16px; font-weight: 800; color: var(--navy); margin: 6px 0; white-space: nowrap; }
@media (max-width: 560px) {
  .contact-card.email-card .email-addr { font-size: 13.5px; }
}
