/* =====================================================================
   ZENITH HOME — Trang Cửa composite
   Dùng chung token & component trong zenith.css
   ===================================================================== */
.zh-composite {
  --door: #5b3b27; --door-dark: #3d2618; --grain: rgba(0, 0, 0, .22); --grain2: rgba(255, 255, 255, .06);
  --door-trans: fill .8s var(--zh-ease), stroke .8s var(--zh-ease);
  display: block; background: #fff;
}

/* ---------- Bản vẽ cửa ---------- */
.zh-door-svg { display: block; width: 100%; height: auto; overflow: visible; }
.zh-composite .zh-d-frame { fill: var(--door-dark); transition: var(--door-trans); }
.zh-composite .zh-d-leaf { fill: var(--door); transition: var(--door-trans); }
.zh-composite .zh-grain-l { fill: none; stroke: var(--grain); stroke-width: .8; transition: var(--door-trans); }
.zh-composite .zh-grain-l2 { stroke: var(--grain2); }
.zh-composite .zh-d-groove, .zh-composite .zh-d-groove line { stroke: rgba(0, 0, 0, .35); stroke-width: 1.4; fill: none; }
.zh-composite .zh-d-metal-line line { stroke: #c8ccd2; stroke-width: 2.2; }
.zh-composite .zh-d-gold line, .zh-composite .zh-d-gold rect { stroke: #d6a843; stroke-width: 2.4; fill: none; }
.zh-composite .zh-d-glass { fill: rgba(220, 235, 245, .55); stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.zh-composite .zh-d-glass-line { stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.zh-composite .zh-d-panel { fill: rgba(0, 0, 0, .06); stroke: rgba(0, 0, 0, .3); stroke-width: 1.2; }
.zh-composite .zh-d-panel2 { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .14); }
.zh-composite .zh-d-lock { fill: #15171c; stroke: #3a3e47; stroke-width: 1; }
.zh-composite .zh-d-metal { fill: #c8ccd2; }
.zh-composite .zh-d-led { fill: #4cd37a; }

/* ---------- HERO ---------- */
.zh-cp-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(60% 90% at 78% 40%, rgba(20, 48, 126, .55), transparent 70%), linear-gradient(180deg, #0a1430, var(--zh-night));
}
.zh-cp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: clamp(560px, 80vh, 740px); padding-top: 48px; padding-bottom: 48px; }
.zh-cp-hero .zh-crumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; font-size: 13px; color: rgba(255, 255, 255, .5); }
html body .zh-cp-hero .zh-crumbs a { color: rgba(255, 255, 255, .7); }
html body .zh-cp-hero .zh-crumbs a:hover { color: var(--zh-amber); }
html body .zh-cp-hero .zh-eyebrow { color: var(--zh-amber); }
html body .zh-cp-title { margin: 0 0 24px; color: #fff !important; font-size: clamp(38px, 5vw, 66px); line-height: 1.12; font-weight: 300; letter-spacing: -.03em; }
html body .zh-cp-title em { font-style: normal; font-weight: 600; color: #f3d9a4; }
.zh-cp-lead { max-width: 500px; margin: 0 0 40px; font-size: 17px; line-height: 1.75; font-weight: 300; color: rgba(255, 255, 255, .72); }
.zh-cp-hero-body > * { opacity: 0; animation: zh-fade-up-lg 1.1s var(--zh-ease) forwards; }
.zh-cp-hero-body > :nth-child(2) { animation-delay: .15s; } .zh-cp-hero-body > :nth-child(3) { animation-delay: .3s; }
.zh-cp-hero-body > :nth-child(4) { animation-delay: .45s; } .zh-cp-hero-body > :nth-child(5) { animation-delay: .6s; }

/* Cửa 3D mở hé, ánh sáng hắt ra */
.zh-cp-hero-door { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
.zh-door3d { position: relative; width: min(300px, 70%); aspect-ratio: 200 / 420; perspective: 1400px; }
.zh-door3d-inside {
  position: absolute; inset: 2.5% 4% 0 4%;
  background: linear-gradient(180deg, #ffe7b8 0%, #ffcf86 55%, #f0a64a 100%);
  box-shadow: 0 0 80px 20px rgba(255, 196, 110, .35); opacity: 0; animation: zh-inside-on 1.6s 1.4s ease-out forwards;
}
@keyframes zh-inside-on { to { opacity: 1; } }
.zh-door3d-leaf {
  position: absolute; inset: 0; transform-origin: 4% 50%; transform-style: preserve-3d;
  animation: zh-door-open 2.4s 1s cubic-bezier(.6, .05, .25, 1) forwards, zh-door-sway 7s 3.6s ease-in-out infinite alternate;
  filter: drop-shadow(18px 10px 30px rgba(0, 0, 0, .55));
}
@keyframes zh-door-open { from { transform: rotateY(0); } to { transform: rotateY(-34deg); } }
@keyframes zh-door-sway { from { transform: rotateY(-34deg); } to { transform: rotateY(-26deg); } }
.zh-door3d-frame { position: absolute; inset: 0; border: 10px solid #1b2236; border-bottom: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .1); pointer-events: none; }
.zh-door3d-floor {
  position: absolute; left: 50%; bottom: 8px; width: 120%; max-width: 520px; height: 90px; transform: translateX(-30%);
  background: radial-gradient(ellipse 50% 50% at 40% 0%, rgba(255, 196, 110, .45), transparent 70%);
  opacity: 0; animation: zh-inside-on 1.6s 1.8s ease-out forwards; pointer-events: none;
}

/* ---------- Ưu điểm ---------- */
.zh-cp-benefits { background: var(--zh-ivory); }
.zh-head-note--dark { color: var(--zh-text) !important; }
.zh-cp-ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--zh-line); border: 1px solid var(--zh-line); }
.zh-cp-ben-grid li { background: var(--zh-ivory); padding: 40px 36px; transition: background .4s var(--zh-ease); }
.zh-cp-ben-grid li:hover { background: #fff; }
.zh-cp-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--zh-gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
html body .zh-cp-ben-grid h3 { margin: 22px 0 10px; font-size: 18px; font-weight: 500; color: var(--zh-ink); }
.zh-cp-ben-grid p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--zh-muted); }

/* ---------- Cấu tạo ---------- */
.zh-cp-layers { background: #fff; }
.zh-cp-layers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.zh-cp-layer-fig { margin: 0; }
.zh-cp-layer-fig svg { width: 100%; height: auto; overflow: visible; }
.zh-layer path { stroke: rgba(10, 22, 51, .35); stroke-width: 1.2; transition: transform .6s var(--zh-ease), fill .5s, opacity .5s; }
.zh-layer[data-layer="1"] path { fill: var(--door); }
.zh-layer[data-layer="2"] path { fill: #c9b79a; }
.zh-layer[data-layer="3"] path { fill: #9aa3b2; }
.zh-layer[data-layer="4"] path { fill: #2b2f38; }
.zh-cp-layer-fig[data-active] .zh-layer path { opacity: .35; }
.zh-cp-layer-fig[data-active="1"] .zh-layer[data-layer="1"] path,
.zh-cp-layer-fig[data-active="2"] .zh-layer[data-layer="2"] path,
.zh-cp-layer-fig[data-active="3"] .zh-layer[data-layer="3"] path,
.zh-cp-layer-fig[data-active="4"] .zh-layer[data-layer="4"] path { opacity: 1; transform: translate(-16px, -10px); }
.zh-cp-layer-fig.zh-explode .zh-layer[data-layer="1"] path { animation: zh-explode1 1.4s var(--zh-ease) both; }
@keyframes zh-explode1 { from { transform: translateX(120px); } to { transform: none; } }
.zh-cp-layer-fig.zh-explode .zh-layer[data-layer="2"] path { animation: zh-explode2 1.4s var(--zh-ease) both; }
@keyframes zh-explode2 { from { transform: translateX(80px); } to { transform: none; } }
.zh-cp-layer-fig.zh-explode .zh-layer[data-layer="3"] path { animation: zh-explode3 1.4s var(--zh-ease) both; }
@keyframes zh-explode3 { from { transform: translateX(40px); } to { transform: none; } }
.zh-cp-layer-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--zh-line); }
.zh-cp-layer-list li { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--zh-line); cursor: default; outline: none; transition: padding .4s var(--zh-ease); }
.zh-cp-layer-list li b { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--zh-gold-ink); padding-top: 4px; }
html body .zh-cp-layer-list h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; color: var(--zh-ink); }
.zh-cp-layer-list p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--zh-muted); }
.zh-cp-layer-list li.zh-active, .zh-cp-layer-list li:focus-visible { padding-left: 14px; box-shadow: inset 2px 0 0 var(--zh-gold); }

/* ---------- Mẫu cửa ---------- */
.zh-cp-models { background: var(--zh-ivory); }
.zh-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.zh-swatches button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(10, 22, 51, .15); cursor: pointer; padding: 0;
  background: var(--c); box-shadow: inset 0 0 0 3px var(--zh-ivory); transition: transform .3s var(--zh-ease), box-shadow .3s;
}
.zh-swatches button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zh-swatches button:hover { transform: scale(1.1); }
.zh-swatches button[aria-checked="true"] { box-shadow: inset 0 0 0 3px var(--zh-ivory), 0 0 0 2px var(--zh-ink); }
.zh-cp-color-name { margin: -32px 0 40px; text-align: right; font-size: 13px; letter-spacing: .06em; color: var(--zh-muted); }
.zh-cp-color-name b { color: var(--zh-ink); font-weight: 600; }
.zh-cp-model-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.zh-cp-model { margin: 0; }
.zh-cp-door-stage {
  position: relative; padding: 14% 16% 0; background: linear-gradient(180deg, #fff 0%, #f1ede5 100%);
  border: 1px solid var(--zh-line); border-bottom: 0; overflow: hidden;
}
.zh-cp-door-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(0deg, rgba(10, 22, 51, .08), transparent); }
.zh-cp-door-stage .zh-door-svg { transition: transform .7s var(--zh-ease), filter .7s; filter: drop-shadow(0 16px 18px rgba(10, 22, 51, .15)); transform-origin: left center; }
.zh-cp-model:hover .zh-door-svg { transform: perspective(900px) rotateY(-14deg); filter: drop-shadow(14px 18px 22px rgba(10, 22, 51, .22)); }
.zh-cp-model figcaption { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 0; border-top: 1px solid var(--zh-ink); }
.zh-cp-model figcaption b { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--zh-gold-ink); }
.zh-cp-model figcaption span { font-size: 15.5px; font-weight: 500; color: var(--zh-ink); }
.zh-cp-note { margin: 32px 0 0; font-size: 13px; color: var(--zh-muted); }

/* ---------- Khoá thông minh ---------- */
.zh-cp-lock { position: relative; overflow: hidden; background: var(--zh-night); color: #fff; }
.zh-cp-lock > .zh-container { position: relative; z-index: 1; }
html body .zh-cp-lock .zh-title { color: #fff; margin-bottom: 24px; }
.zh-cp-lock .zh-eyebrow { color: var(--zh-amber); }
.zh-cp-lock-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.zh-cp-lock-visual { position: relative; width: min(280px, 80%); margin: 0 auto; }
.zh-cp-lock-img { position: absolute; right: -34%; top: 30%; width: 46%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.zh-cp-lock-pulse { position: absolute; left: 79%; top: 53%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 1px solid #4cd37a; animation: zh-ring-px 2.4s ease-out infinite; }
@keyframes zh-ring-px { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.zh-cp-lock-lead { max-width: 560px; margin: 0 0 24px; font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, .7); }
.zh-cp-checks { margin: 0 0 36px; padding: 0; list-style: none; }
.zh-cp-checks li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--zh-line-dark); font-size: 15px; color: rgba(255, 255, 255, .85); }
.zh-cp-checks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 6px; border-left: 1.5px solid var(--zh-amber); border-bottom: 1.5px solid var(--zh-amber); transform: rotate(-45deg); }

/* ---------- Ứng dụng ---------- */
.zh-cp-uses { background: #fff; }
.zh-cp-use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.zh-cp-use-grid li { padding-top: 26px; border-top: 1px solid var(--zh-ink); }
.zh-cp-use-grid span { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--zh-gold-ink); }
html body .zh-cp-use-grid h3 { margin: 16px 0 10px; font-size: 20px; font-weight: 500; color: var(--zh-ink); }
.zh-cp-use-grid p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--zh-muted); }

/* ---------- Quy trình ---------- */
.zh-cp-process { background: var(--zh-ivory); }
.zh-cp-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.zh-cp-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--zh-line); }
.zh-cp-steps::after { content: ""; position: absolute; left: 0; top: 22px; height: 1px; width: 100%; background: var(--zh-gold); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--zh-ease); }
.zh-cp-steps.zh-in::after { transform: scaleX(1); }
.zh-cp-steps li { position: relative; }
.zh-cp-steps b {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--zh-ivory); border: 1px solid var(--zh-gold); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--zh-gold-ink);
}
html body .zh-cp-steps h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 500; color: var(--zh-ink); }
.zh-cp-steps p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--zh-muted); }

/* ---------- Hỏi đáp ---------- */
.zh-cp-faq { background: #fff; }
.zh-cp-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.zh-cp-faq-list { border-top: 1px solid var(--zh-line); }
.zh-cp-faq-list details { border-bottom: 1px solid var(--zh-line); }
.zh-cp-faq-list summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: 17px; font-weight: 500; color: var(--zh-ink);
}
.zh-cp-faq-list summary::-webkit-details-marker { display: none; }
.zh-cp-faq-list summary::after, .zh-cp-faq-list summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--zh-gold); transition: transform .35s var(--zh-ease);
}
.zh-cp-faq-list summary::before { transform: rotate(90deg); }
.zh-cp-faq-list details[open] summary::before { transform: rotate(0); }
.zh-cp-faq-list summary:hover { color: var(--zh-gold-ink); }
.zh-cp-faq-list details p { margin: 0; padding: 0 48px 24px 0; font-size: 15px; line-height: 1.8; color: var(--zh-text); animation: zh-fade-up .4s var(--zh-ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .zh-cp-model-grid { grid-template-columns: repeat(3, 1fr); }
  .zh-cp-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .zh-cp-steps::before, .zh-cp-steps::after { display: none; }
}
@media (max-width: 900px) {
  .zh-cp-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .zh-cp-hero-door { order: 2; }
  .zh-cp-ben-grid { grid-template-columns: 1fr 1fr; }
  .zh-cp-layers-grid, .zh-cp-lock-grid, .zh-cp-faq-grid { grid-template-columns: 1fr; }
  .zh-cp-use-grid { grid-template-columns: 1fr 1fr; }
  .zh-cp-color-name { margin: 0 0 24px; text-align: left; }
}
@media (max-width: 600px) {
  .zh-cp-ben-grid, .zh-cp-use-grid { grid-template-columns: 1fr; }
  .zh-cp-ben-grid li { padding: 28px 24px; }
  .zh-cp-model-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .zh-cp-steps { grid-template-columns: 1fr 1fr; }
  .zh-door3d { width: 58%; }
  .zh-cp-lock-img { right: -28%; }
}
@media (prefers-reduced-motion: reduce) {
  .zh-cp-hero-body > *, .zh-door3d-inside, .zh-door3d-floor { opacity: 1; animation: none; }
  .zh-door3d-leaf { animation: none; transform: rotateY(-30deg); }
  .zh-cp-layer-fig .zh-layer path { animation: none !important; }
}
/* màu cửa truyền qua currentColor để đi xuyên qua <use> */
.zh-door-svg { color: var(--door); transition: color .8s var(--zh-ease); }
.zh-door3d { z-index: 1; }
@media (max-width: 600px) { .zh-door3d { width: 48%; } .zh-cp-hero-door { padding-bottom: 28px; } }
