/* Trang chủ. Dùng chung cỡ chữ, màu và nút với css/style.css. */
.h-title { font-size: var(--t-h2); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.h-lead { max-width: 52ch; margin-top: 10px; color: var(--soft); }
.h-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Tab chữ dùng chung */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--soft); font-size: var(--t-s); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed=true] { border-color: var(--ink); color: var(--ink); font-weight: 600; }

/* Slider video đầu trang */
#hero { --bg: #3a403c; --ease: cubic-bezier(.65, 0, .2, 1); --art: min(74svh, 40vw); position: relative; min-height: 100svh; overflow: clip; color: #fff; background: var(--bg); transition: background-color 1s var(--ease); isolation: isolate; }
#hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 64% 50%, rgb(255 255 255 / .22), transparent 58%); }
#copy { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; z-index: 2; width: min(36vw, 480px); min-height: 360px; display: grid; align-items: center; }
.copy { grid-area: 1 / 1; opacity: 0; visibility: hidden; translate: -26px 0; transition: opacity .45s, translate .45s, visibility .45s; }
.copy.on { opacity: 1; visibility: visible; translate: 0; transition: opacity .7s .35s, translate .7s .35s var(--ease), visibility 0s; }
.copy h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.16; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.copy p { margin-top: 14px; max-width: 40ch; }
.copy .price { margin-top: 18px; font-size: var(--t-h3); font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .8); border-radius: 50%; transition: background .2s, color .2s; }
.social a:hover { background: #fff; color: var(--ink); }
.social svg { width: 20px; height: 20px; }

#orbit { position: absolute; inset: 0; z-index: 1; }
.item { position: absolute; left: 50%; top: 50%; width: calc(var(--art) * .808); height: var(--art); cursor: default; transition: transform 1s var(--ease), opacity .7s; will-change: transform; filter: drop-shadow(0 26px 30px rgb(0 0 0 / .26)); }
.item[data-pos="0"] { transform: translate(calc(-50% + 15vw), -50%); z-index: 2; pointer-events: none; }
.item:not([data-pos="0"]) { display: none; }
#orbit.moving .item { animation: pass 1s var(--ease); }
@keyframes pass { 45% { filter: blur(9px) drop-shadow(0 26px 30px rgb(0 0 0 / .26)); } }
.item.has-video[data-pos="0"] { opacity: 0; }

#backdrop { position: absolute; inset: 0; z-index: -1; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
.bg-video.on { opacity: 1; }
#backdrop::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .9s; background: linear-gradient(90deg, rgb(0 0 0 / .52), rgb(0 0 0 / .2) 42%, transparent 66%); }
.video-on #backdrop::after { opacity: 1; }
.video-on .copy { text-shadow: 0 1px 14px rgb(0 0 0 / .5); }

.zebra { transform: translateY(0); }

.hero-bar { position: absolute; left: var(--gutter); bottom: clamp(18px, 5svh, 46px); z-index: 3; display: flex; align-items: center; gap: 12px; }
.hero-bar button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .75); border-radius: 50%; transition: background .2s, color .2s; }
.hero-bar button:hover { background: #fff; color: var(--ink); }
.hero-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-play, [data-paused="true"] .i-pause { display: none; }
[data-paused="true"] .i-play { display: block; }
.hero-bar [hidden] { display: none; }
#count { min-width: 64px; text-align: center; font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  #hero { --art: min(46svh, 92vw); min-height: max(100svh, 760px); }
  #hero::before { background: radial-gradient(circle at 50% 72%, rgb(255 255 255 / .2), transparent 56%); }
  #copy { top: 88px; translate: 0; right: var(--gutter); width: auto; min-height: 0; align-items: start; }
  .copy h2 { font-size: clamp(24px, 6.4vw, 34px); }
  .copy p { margin-top: 10px; max-width: none; }
  .copy .price { margin-top: 10px; }
  .social { margin-top: 12px; }
  .item { top: auto; bottom: calc(var(--art) * .5 + 76px); }
  .item[data-pos="0"] { transform: translate(-50%, 50%); }
  .hero-bar { left: 50%; translate: -50% 0; bottom: 16px; }
  #backdrop::after { background: linear-gradient(180deg, rgb(0 0 0 / .58), rgb(0 0 0 / .34) 38%, transparent 62%, rgb(0 0 0 / .3)); }
}

/* Mẫu màn */
.model-grid { display: grid; gap: 32px; align-items: center; margin-top: 32px; }
.model-grid > * { min-width: 0; }
.model-copy h2 { font-size: calc(var(--t-h2) * .78); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.model-copy > p { margin-top: 10px; color: var(--soft); }
.traits { margin: 20px 0 24px; }
.traits div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.traits dt { color: var(--soft); font-size: var(--t-s); }
.traits dd { margin: 0; }
.model-stage { position: relative; height: min(68svh, 600px); background: var(--surface); border-radius: var(--r); overflow: hidden; }
#drape { position: absolute; inset: 0; width: 100%; height: 100%; }
.model-stage.has-gal #drape { visibility: hidden; }
.gal { position: absolute; inset: 0; }
.gal[hidden] { display: none; }
.w-slide video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.w-nav[hidden], .w-dots[hidden] { display: none; }
@media (min-width: 900px) { .model-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }

/* Tiêu đề phần Sản phẩm */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.sec-head .more { color: var(--soft); font-size: var(--t-s); text-decoration: underline; text-underline-offset: 3px; }
.sec-head .more:hover { color: var(--ink); }

/* Tính kích thước */
.quote { background: var(--surface); }
.quote .inner { max-width: 760px; margin-inline: auto; }
.calc { display: grid; gap: 18px; margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; color: var(--soft); font-size: var(--t-s); }
.field input, .field select { width: 100%; height: 46px; padding: 0 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font: inherit; font-size: 16px; }
.result { display: grid; gap: 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.total { font-size: var(--t-h2); line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.break { color: var(--soft); font-size: var(--t-s); }
@media (min-width: 620px) { .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } .result { grid-template-columns: 1fr auto; } }

/* Vách giấy */
.walls-grid { display: grid; gap: 28px; align-items: center; margin-top: 32px; }
.walls-grid[hidden], .model-grid[hidden] { display: none; }
.walls-copy h2 { font-size: calc(var(--t-h2) * .78); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.walls-copy .h-lead { margin-top: 10px; }
.walls-grid > * { min-width: 0; }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.rooms button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; transition: background .2s, border-color .2s; }
.rooms button small { font-weight: 400; color: var(--soft); font-size: var(--t-s); }
.rooms button:hover { border-color: var(--ink); }
.rooms button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rooms button[aria-pressed=true] small { color: inherit; opacity: .75; }
.w-now { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.w-code { display: block; color: var(--soft); font-size: var(--t-s); letter-spacing: .08em; }
.w-now b { display: block; margin-top: 2px; font-size: 1.35rem; font-weight: 600; }
.w-now p { margin: 6px 0 18px; color: var(--soft); }
.w-stage { position: relative; height: min(68svh, 600px); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.w-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; }
.w-track::-webkit-scrollbar { display: none; }
.w-track:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.w-slide { height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.w-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-nav { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px; background: rgb(255 255 255 / .88); box-shadow: 0 2px 10px rgb(0 0 0 / .12); font-size: var(--t-s); font-variant-numeric: tabular-nums; color: #222; }
.w-nav button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #222; color: #fff; font-size: 16px; }
.w-nav button:disabled { opacity: .3; }
.w-dots { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 8px; }
.w-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(0 0 0 / .15); transition: height .25s, background .25s; }
.w-dots button[aria-current=true] { height: 24px; background: #fff; }
@media (min-width: 900px) {
  .walls-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .rooms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) { .w-stage { height: 68svh; } }

/* Quy trình */
.proc { background: var(--surface); }
.proc-list { display: grid; gap: 20px; margin: 28px 0; padding: 0; list-style: none; counter-reset: step; }
.proc-list li { counter-increment: step; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.proc-list li::before { content: counter(step); display: block; color: var(--soft); font-size: var(--t-s); }
.proc-list b { display: block; margin-top: 2px; font-weight: 600; }
.proc-list p { color: var(--soft); font-size: var(--t-s); }
@media (min-width: 620px) { .proc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .proc-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
