/**
 * Nam Việt — Homepage EN (v2 industrial direction).
 *
 * Section styles for template-home-en.php (capability-led EN home). The shell
 * (.utility / header.site / footer.site / mobile drawer) is now the shared v2
 * DOM, styled by the global header.css + footer.css — this file only carries the
 * page sections. Shared atoms (.container, .btn*, .kicker, .grid-bg, section,
 * .sec-head) live in base.css. Source: design/v2/homepage-en.html.
 *
 * Enqueued via inc/hooks-frontend.php (handle `nv-home-en`, 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 { 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; }

/* =================== 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 .t-k { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.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 .t-link { margin-top: 14px; font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s, color 0.2s; }
.tile:hover .t-link { gap: 11px; color: #fff; }
.tile .t-link .ar { transition: transform 0.2s; }
.tile:hover .t-link .ar { transform: translateX(3px); }
.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; display: block; overflow: hidden; flex: none; aspect-ratio: 16 / 12; }
.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 .cat.accent { background: var(--orange); }
.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; transition: gap 0.2s, color 0.2s; }
.pcard:hover .pl { gap: 10px; color: var(--orange); }
.pcard .pl .ar { transition: transform 0.2s; }
.pcard:hover .pl .ar { transform: translateX(3px); }
.prod-foot { margin-top: 42px; display: flex; justify-content: center; }
.nv-en-empty { grid-column: 1 / -1; text-align: center; color: var(--s-500); padding: 40px 0; }

/* =================== PROCESS (dark stepper) =================== */
.process { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.process .grid-bg { opacity: 0.5; }
.process .container { position: relative; z-index: 2; }
.process .sec-head h2 { color: #fff; }
.process .sec-head p { color: var(--s-400); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 6px 28px 4px 0; }
.step:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.09); }
.step + .step { padding-left: 28px; }
.step .n { font-family: var(--mono); font-size: 2.7rem; font-weight: 700; color: var(--orange); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; display: inline-block; }
.step .nu { display: block; width: 0; height: 2px; background: var(--orange); margin-top: 14px; transition: width 0.4s ease; }
.step:hover .nu { width: 42px; }
.step .s-ico { margin: 22px 0 0; color: var(--orange); display: block; transition: color 0.3s, transform 0.3s; }
.step .s-ico svg { width: 30px; height: 30px; }
.step:hover .s-ico { color: #fff; transform: translateY(-3px); }
.step h3 { font-size: 1.18rem; color: #fff; margin: 16px 0 10px; }
.step p { font-size: 0.92rem; color: var(--s-300); max-width: 24em; }

/* =================== 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-band .c-phone a { color: #fff; }
.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; }

/* =================== 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; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feat { grid-column: span 2; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; gap: 34px 0; }
  .step { padding: 6px 28px 4px 28px; border-right: none !important; }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(odd):not(:last-child) { border-right: 1px solid rgba(255,255,255,0.09) !important; }
}
@media (max-width: 680px) {
  .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); }
  .bento, .prod-grid { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 220px; }
  .tile.feat, .tile.wide { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 6px 0 4px 0; border-right: none !important; }
  .step + .step { padding-left: 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.09); }
  .hero h1 { font-size: 2.4rem; }
}
