/* Indeco Furniture – giao diện chung. Màu thương hiệu: đen #1C1D20, vàng đồng #C9A86A, kem #F0E9DE */
:root {
  --ink: #1C1D20;
  --gold: #C9A86A;
  --gold-dark: #7A5C2B;
  --cream: #F0E9DE;
  --sand: #E6DCCB;
  --line: #CFC3B0;
  --muted: #4A4238;
  --dark-2: #26272B;
  --dark-muted: #BDB5A8;
  --serif: 'Cormorant Garamond', 'Liberation Serif', Georgia, serif;
  --sans: 'Be Vietnam Pro', 'Liberation Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.container { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 880px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--ink); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand-mark { fill: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 3px; }
.brand-sub { font-size: 10px; letter-spacing: 4px; color: var(--gold); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.main-nav a { color: var(--cream); text-decoration: none; padding: 6px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--gold); font-weight: 600; text-decoration: none; }
.menu-toggle { display: none; background: transparent; color: var(--cream); border: 1px solid #5A5B60; min-height: 44px; padding: 0 16px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D8BB83; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.dark .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(30px, 4.5vw, 44px); }
h3 { font-size: clamp(24px, 3vw, 30px); }
.lead { font-size: 18px; max-width: 560px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.section-tight { padding-top: 56px; padding-bottom: 56px; }
.sand { background: var(--sand); }
.dark { background: var(--ink); color: var(--cream); }
.dark a { color: var(--gold); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 40px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 24px; }
.breadcrumb a { color: var(--muted); }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 56px; }

/* Placeholder ảnh – thay bằng ảnh thật */
.ph { background: #D9CFC0; color: var(--muted); display: flex; align-items: flex-end; padding: 16px; font-size: 13px; aspect-ratio: 4 / 3; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-wide { aspect-ratio: 16 / 10; }
.ph-square { aspect-ratio: 1 / 1; }
.dark .ph { background: #34353A; color: var(--dark-muted); }

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 32px; padding-bottom: 32px; }
.stat-num { font-family: var(--serif); font-size: 32px; font-weight: 700; display: block; line-height: 1.2; }
.stat-label { font-size: 14px; }

/* Cards */
.card-link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.card-link .more { font-weight: 600; color: var(--gold-dark); }
.card-link:hover h3 { color: var(--gold-dark); }
.box { background: var(--cream); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.project-meta { font-size: 14px; color: var(--dark-muted); margin: 0; }
.project-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--gold); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.step-num { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--gold-dark); line-height: 1; }

/* Lists */
.check-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.price-list { display: flex; flex-direction: column; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-row strong { white-space: nowrap; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; padding: 8px 0; list-style-position: outside; }
.faq p { margin: 8px 0 0; }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field input, .field select, .field textarea { min-height: 48px; padding: 10px 12px; border: 1px solid #A89A85; background: #FBF8F3; color: var(--ink); font: inherit; border-radius: var(--radius); }
.dark .field input, .dark .field select, .dark .field textarea { border-color: #5A5B60; background: var(--dark-2); color: var(--cream); }
.field-full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; margin: 8px 0 0; font-weight: 600; }
.form-status.ok { color: #2F6B3A; }
.dark .form-status.ok { color: #9FD3A8; }
.form-status.err { color: #A33A2A; }
.dark .form-status.err { color: #F0A898; }
.consent { font-size: 13px; }

/* Product */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #A89A85; cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px var(--cream); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 44px; height: 44px; background: transparent; border: 0; font: inherit; font-size: 20px; cursor: pointer; }
.qty output { min-width: 40px; text-align: center; font-weight: 600; }
.delivery-box { background: var(--sand); padding: 20px; }
.price-big { font-size: 28px; font-weight: 600; margin: 0; }
.order-summary { background: var(--sand); padding: 28px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.pay-box { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.qr-img { width: 280px; height: auto; background: #fff; border: 1px solid var(--line); }
.pay-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; text-align: left; background: var(--sand); padding: 20px 24px; width: 100%; max-width: 520px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: #141518; color: var(--dark-muted); font-size: 14px; padding: 48px 0 24px; }
.site-footer a { color: var(--dark-muted); }
.site-footer p { margin: 0 0 8px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.footer-brand { color: var(--cream); font-family: var(--serif); font-size: 22px; letter-spacing: 2px; font-weight: 700; }
.footer-title { color: var(--cream); font-weight: 600; }
.copyright { margin-top: 32px !important; padding-top: 16px; border-top: 1px solid #2A2B30; }

/* Mobile */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 0; order: 3; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid #2A2B30; }
  .header-cta { display: none; }
}
@media (max-width: 720px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 1px solid #34353A; }
  .mobile-bar a { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; color: var(--cream); text-decoration: none; font-weight: 600; }
  .mobile-bar a + a { border-left: 1px solid #34353A; }
  .mobile-bar .mobile-bar-main { flex: 1.4; background: var(--gold); color: var(--ink); }
  body { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.muted-dark { color: #D6CEC2; margin: 0; }
.qty-row { align-items: center; gap: 16px; }

/* Bài kiến thức */
.article { max-width: 760px; }
.article h1 { font-size: clamp(34px, 5vw, 48px); margin-top: 8px; }
.article h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 40px 0 12px; }
.article h3 { font-size: 22px; margin: 28px 0 8px; }
.article p, .article li { font-size: 17px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article-meta { color: var(--muted); font-size: 14px; margin: 12px 0 24px; }
.answer-box { background: var(--sand); border-top: 3px solid var(--gold); padding: 20px 24px; margin-bottom: 8px; }
.answer-box p { margin: 0; }
.answer-label { font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px !important; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; }
@media (max-width: 480px) { .table-wrap table { font-size: 14px; } .table-wrap th, .table-wrap td { padding: 8px 6px; } }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 12px; vertical-align: top; }
.table-wrap th { background: var(--sand); font-weight: 600; }
.article-cta { margin-top: 48px; padding: 24px; background: var(--ink); color: var(--cream); display: flex; flex-direction: column; gap: 16px; }
.article-cta .btn-outline { border-color: var(--cream); color: var(--cream); }
.article-cta .btn-dark { background: var(--gold); color: var(--ink); }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.article-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #F7F2EA; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.article-card h2 { font-size: 26px; }
.article-card p { margin: 0; font-size: 15px; }
.article-card .more { font-weight: 600; color: var(--gold-dark); }
.article-card:hover h2 { color: var(--gold-dark); }

/* Ô ảnh khi chưa có ảnh thật: nền thương hiệu + biểu tượng cột */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #E4DACB 0%, #D3C6B2 100%); }
.ph::before { content: ""; position: absolute; inset: 0; background: center / 44px 60px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 60'%3E%3Cg fill='%23C9A86A'%3E%3Crect x='4' y='0' width='36' height='6'/%3E%3Crect x='10' y='10' width='8' height='40'/%3E%3Crect x='26' y='10' width='8' height='40'/%3E%3Crect x='4' y='54' width='36' height='6'/%3E%3C/g%3E%3C/svg%3E"); opacity: .55; }
.ph-note { position: relative; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dark .ph { background: linear-gradient(135deg, #2B2C30 0%, #3A3B40 100%); }
