/**
 * Nam Việt — Homepage VI (v2 industrial direction).
 *
 * Section styles for template-home-vi.php. Shared atoms (.container, .btn*,
 * .kicker, .num-tag, .notch, .grid-bg, section, .sec-head) live in base.css.
 * Source: design/v2/homepage-vi.html.
 *
 * Enqueued via inc/hooks-frontend.php (handle `nv-home`, depends on nv-base).
 */

/* =================== HERO =================== */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 0; }
.hero .grid-bg { opacity: 0.9; }
.hero-inner {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 96px 28px 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy { padding-bottom: 120px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); font-weight: 700; color: #fff; margin: 26px 0 22px; letter-spacing: -0.035em; }
.hero h1 .hl, .hero h1 span { color: var(--orange); position: relative; white-space: nowrap; }
.hero p.lead { font-size: 1.12rem; color: var(--s-300); max-width: 30em; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 26px; align-items: center; font-family: var(--mono); font-size: 0.78rem; color: var(--s-400); letter-spacing: 0.04em; flex-wrap: wrap; }
.hero-trust b { color: #fff; font-weight: 700; }
.hero-trust .sep { width: 1px; height: 30px; background: rgba(255,255,255,0.14); }

.hero-visual { position: relative; align-self: center; min-height: 540px; }
.hero-photo { position: absolute; inset: 34px -28px 22px 0; background-size: cover; background-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(26,28,31,0.55), transparent 50%); z-index: 1; }
/* Editable media slot (image OR video) — fills its parent like the bg image did. */
.nv-video { position: relative; overflow: hidden; background: var(--ink, #1a1c1f); }
.nv-video > .nv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo.nv-video { position: absolute; }
.hero-frame { position: absolute; top: 22px; left: -12px; right: -40px; bottom: 10px; border: 1px solid rgba(255,255,255,0.22); pointer-events: none; }
.spec-card { position: absolute; left: -26px; bottom: 56px; background: var(--white); color: var(--ink); padding: 20px 24px; box-shadow: var(--sh-lg); max-width: 260px; z-index: 3; }
.spec-card .sc-k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--orange-700); text-transform: uppercase; }
.spec-card .sc-v { font-family: var(--display); font-weight: 700; font-size: 1.55rem; margin-top: 4px; line-height: 1.1; }
.spec-card .sc-sub { font-size: 0.82rem; color: var(--s-500); margin-top: 4px; }

/* =================== STAT STRIP =================== */
.stats { position: relative; z-index: 5; background: var(--white); box-shadow: var(--sh-md); margin-top: -1px; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-left: 1px solid var(--s-100); position: relative; }
.stat:first-child { border-left: none; }
.stat .sv { font-family: var(--mono); font-weight: 700; font-size: 2.5rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .sv .u { color: var(--orange); }
.stat .sl { font-size: 0.86rem; color: var(--s-500); margin-top: 10px; font-weight: 500; }
.stat::after { content: ""; position: absolute; left: 28px; bottom: 24px; width: 0; height: 2px; background: var(--orange); transition: width 0.4s ease; }
.stat:hover::after { width: 36px; }

/* =================== ABOUT (broken 2-col) =================== */
.about { background: var(--paper); }
.about .container { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media .am-main { position: relative; aspect-ratio: 4 / 4.4; background-size: cover; background-position: center; box-shadow: var(--sh-md); }
.about-media .am-tag { position: absolute; right: -22px; top: 40px; background: var(--ink); color: #fff; padding: 16px 20px; box-shadow: var(--sh-lg); }
.about-media .am-tag .t-k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--orange); text-transform: uppercase; }
.about-media .am-tag .t-v { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-top: 3px; }
.about-media .am-badge { position: absolute; left: -24px; bottom: -24px; width: 120px; height: 120px; background: var(--orange); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; box-shadow: var(--sh-orange); }
.about-media .am-badge .b-n { font-family: var(--mono); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.about-media .am-badge .b-l { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; text-align: center; padding: 0 8px; }
.about-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 18px 0 20px; }
.about-body p { color: var(--s-700); margin-bottom: 18px; max-width: 40em; }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; font-weight: 500; }
.checklist li .ck { flex: none; width: 22px; height: 22px; background: var(--orange-050); color: var(--orange-700); display: grid; place-items: center; margin-top: 1px; font-size: 0.7rem; font-weight: 700; border: 1px solid var(--orange-100); }

/* =================== CAPABILITIES (dark bento) =================== */
.cap { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cap .grid-bg { opacity: 0.7; }
.cap .container { position: relative; z-index: 2; }
.cap .sec-head h2 { color: #fff; }
.cap .sec-head p { color: var(--s-400); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.tile { position: relative; background: var(--ink-2) center/cover no-repeat; border: 1px solid rgba(255,255,255,0.09); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 0; transition: background 0.3s; background: linear-gradient(to top, rgba(20,22,25,0.94) 12%, rgba(20,22,25,0.6) 52%, rgba(20,22,25,0.34)); }
.tile > * { position: relative; z-index: 1; }
.tile:hover { border-color: rgba(217,131,42,0.6); transform: translateY(-3px); }
.tile:hover::before { background: linear-gradient(to top, rgba(20,22,25,0.9) 10%, rgba(20,22,25,0.5) 52%, rgba(20,22,25,0.22)); }
.tile h3 { font-size: 1.3rem; color: #fff; margin-bottom: 8px; }
.tile p { font-size: 0.9rem; color: var(--s-300); max-width: 30em; }
.tile.feat { grid-column: span 2; grid-row: span 2; }
.tile.feat h3 { font-size: 1.9rem; }
.tile.wide { grid-column: span 2; }

/* =================== PRODUCTS (magazine grid) =================== */
.prod { background: var(--paper); }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { position: relative; background: var(--white); box-shadow: var(--sh-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.3s, transform 0.3s; }
.pcard:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.pcard .ph { position: relative; overflow: hidden; flex: none; aspect-ratio: 16 / 11; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.pcard:hover .ph img { transform: scale(1.06); }
.pcard .cat { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 11px; z-index: 2; }
.pcard .pb { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard h3 { font-size: 1.2rem; color: var(--ink); }
.pcard p { font-size: 0.88rem; color: var(--s-500); flex: 1; }
.pcard .pprice { display: flex; flex-direction: column; gap: 3px; padding-left: 11px; border-left: 3px solid var(--orange); }
.pcard .pprice-label { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-400); line-height: 1; }
.pcard .pprice-value { font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1.25; }
.pcard .pprice.is-quote { border-left-color: var(--s-200); }
.pcard .pprice.is-quote .pprice-value { font-family: var(--body); font-size: 0.92rem; font-weight: 600; color: var(--s-500); letter-spacing: 0; }
.pcard .pl { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--orange-700); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.prod-more { display: flex; justify-content: center; margin-top: 44px; }

/* =================== WHY / COMMITMENT =================== */
.why { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.why .grid-bg { opacity: 0.5; }
.why .container { position: relative; z-index: 2; }
.why .sec-head h2 { color: #fff; }
.why .sec-head p { color: var(--s-400); }
.commit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.commit-item { position: relative; overflow: hidden; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); padding: 38px 32px 36px; transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s; }
.commit-item::after { content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(217,131,42,0.16), transparent 68%); opacity: 0; transition: opacity 0.35s; pointer-events: none; z-index: 0; }
.commit-item:hover { transform: translateY(-6px); border-color: rgba(217,131,42,0.55); background: rgba(255,255,255,0.052); box-shadow: 0 22px 46px rgba(0,0,0,0.34); }
.commit-item:hover::after { opacity: 1; }
.commit-item .ci-ico { position: relative; z-index: 1; width: 60px; height: 60px; display: grid; place-items: center; background: rgba(217,131,42,0.12); border: 1px solid rgba(217,131,42,0.34); color: var(--orange); margin-bottom: 26px; transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.commit-item:hover .ci-ico { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 10px 22px rgba(217,131,42,0.4); }
.commit-item .ci-ico svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.commit-item h3 { position: relative; z-index: 1; font-size: 1.3rem; color: #fff; margin-bottom: 11px; }
.commit-item p { position: relative; z-index: 1; font-size: 0.94rem; color: var(--s-300); max-width: 26em; }

/* =================== TESTIMONIALS =================== */
.tmonials { background: var(--paper); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tm-card { position: relative; background: #fff; box-shadow: var(--sh-sm); padding: 34px 32px 30px; display: flex; flex-direction: column; transition: box-shadow 0.3s, transform 0.3s; }
.tm-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.tm-card .quote { color: var(--orange); line-height: 0; margin-bottom: 18px; }
.tm-card .quote svg { width: 46px; height: 38px; fill: currentColor; }
.tm-card p { font-size: 0.97rem; color: var(--s-700); line-height: 1.64; min-height: 6.7em; margin-bottom: 24px; }
.tm-author { display: flex; align-items: center; border-top: 1px solid var(--s-100); padding-top: 20px; }
.tm-author .who b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-bottom: 3px; }
.tm-author .who span { font-size: 0.8rem; color: var(--s-500); line-height: 1.42; }

/* =================== CTA BAND =================== */
.cta-band { position: relative; background: var(--orange); color: #fff; overflow: hidden; padding: 72px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay; background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 40px 40px; }
.cta-band::after { content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%; background: linear-gradient(120deg, transparent, rgba(26,28,31,0.18)); pointer-events: none; }
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .ctk { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin: 12px 0 6px; max-width: 18em; }
.cta-band .c-phone { font-family: var(--mono); font-weight: 700; font-size: 1.2rem; margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.cta-band .c-phone .cp-ico { display: flex; align-items: center; }
.cta-band .c-phone .cp-ico svg { width: 20px; height: 20px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--orange-700); box-shadow: 0 16px 30px rgba(26,28,31,0.22); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* =================== NEWS (editorial 1+list) =================== */
.news { background: var(--paper); }
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 46px; }
.news-feat { background: var(--white); box-shadow: var(--sh-sm); overflow: hidden; transition: 0.3s; display: block; }
.news-feat:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.news-feat .ph { aspect-ratio: 16 / 8.5; overflow: hidden; }
.news-feat .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.news-feat:hover .ph img { transform: scale(1.05); }
.news-feat .nb { padding: 26px 28px 30px; }
.news-feat .nb .meta { font-family: var(--mono); font-size: 0.74rem; color: var(--orange-700); letter-spacing: 0.06em; }
.news-feat h3 { font-size: 1.5rem; margin: 12px 0 10px; color: var(--ink); }
.news-feat p { color: var(--s-500); font-size: 0.95rem; }
.news-list { display: flex; flex-direction: column; }
.nitem { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--s-200); align-items: start; transition: 0.2s; }
.nitem:first-child { border-top: none; padding-top: 0; }
.nitem:hover h4 { color: var(--orange-700); }
.nitem .nn { font-family: var(--mono); font-size: 0.8rem; color: var(--s-400); font-weight: 700; padding-top: 3px; }
.nitem .meta { font-family: var(--mono); font-size: 0.7rem; color: var(--s-400); letter-spacing: 0.05em; }
.nitem h4 { font-size: 1.08rem; margin: 5px 0 4px; color: var(--ink); transition: color 0.2s; line-height: 1.3; }
.nitem p { font-size: 0.86rem; color: var(--s-500); }
.news-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--s-200); font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange-700); transition: gap 0.2s, color 0.2s; }
.news-more:hover { color: var(--orange); gap: 12px; }
.news-more .ar { transition: transform 0.2s; }
.news-more:hover .ar { transform: translateX(3px); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { padding-bottom: 54px; }
  .hero-visual { min-height: 380px; margin: 0 -28px; }
  .hero-photo { inset: 0; }
  .hero-frame, .spec-card { display: none; }
  .about .container, .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media .am-badge { left: auto; right: 24px; }
  .about-media .am-tag { right: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feat { grid-column: span 2; }
  .prod-grid, .tm-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav.main, .head-phone { display: none; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--s-100); }
  .checklist, .prod-grid, .bento, .tm-grid, .commit { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 220px; }
  .tile.feat, .tile.wide { grid-column: auto; grid-row: auto; }
  .hero h1 { font-size: 2.4rem; }
}
