/* ============================================================================
   GES-V2.1 — HOMEPAGE V2 styles (needs-first). Additive; loads AFTER style.css +
   design-system-v0.css. Scoped to .hv2 / .hv2-* so it cannot leak into other pages.
   Tokens only (VNPT Visual DNA V1). Rollback = remove <link> + switch body include.
   ============================================================================ */
.hv2, .hv2-trust, .hv2 *, .hv2-trust *{ box-sizing:border-box; }
.hv2 .container, .hv2-trust .container{ width:100%; max-width:1200px; margin:0 auto; padding-left:20px; padding-right:20px; }
.hv2-sec{ padding:64px 0; }
.hv2-sechead{ margin-bottom:32px; }
.hv2-sechead__sub{ margin:8px 0 0; color:var(--color-text-secondary); font-size:1rem; line-height:1.6; max-width:70ch; }
.hv2-sechead--row{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.hv2-seeall{ color:var(--color-brand-primary); font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.hv2-seeall svg{ width:18px; height:18px; }
.hv2-seeall:hover{ color:var(--color-brand-primary-deep); }
.hv2-seeall:hover svg{ transform:translateX(3px); transition:transform var(--motion-fast); }

/* ---- HERO ---- */
.hv2-hero{ background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0,170,255,.14), transparent 60%),
    linear-gradient(180deg, var(--color-surface-soft), #fff 78%);
  border-bottom:1px solid var(--color-border-subtle); }
.hv2-hero__inner{ display:grid; grid-template-columns:1.15fr .85fr; gap:48px; align-items:center;
  /* clear the fixed .site-header (desktop ~115px 2-row); body has no offset padding */
  padding-top:150px; padding-bottom:72px; }
.hv2-eyebrow{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.9rem;
  color:var(--color-brand-primary-deep); background:#fff; border:1px solid var(--color-border-subtle);
  padding:7px 14px; border-radius:var(--radius-pill); box-shadow:var(--elevation-1); }
.hv2-eyebrow__dot{ width:8px; height:8px; border-radius:50%; background:var(--color-success); }
.hv2-hero__title{ font-family:var(--font-family-base); font-weight:800; letter-spacing:-.01em;
  font-size:clamp(2rem,4.4vw,3.2rem); line-height:1.1; color:var(--color-text-primary); margin:20px 0 0; }
.hv2-accent{ color:var(--color-brand-primary); }
.hv2-hero__lede{ margin:18px 0 0; font-size:1.1rem; line-height:1.65; color:var(--color-text-secondary); max-width:60ch; }
.hv2-hero__actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.hv2-hero__call{ display:inline-flex; align-items:center; gap:8px; margin-top:16px; text-decoration:none;
  color:var(--color-text-primary); font-size:1rem; }
.hv2-hero__call strong{ color:var(--color-brand-primary); }
.hv2-hero__call svg{ width:18px; height:18px; color:var(--color-brand-primary); }
.hv2-hero__call:hover strong{ color:var(--color-brand-primary-deep); }

/* hero aside — network / local-infrastructure motif (CSS + inline SVG, no heavy media, no 3D).
   Central VNPT node linked to service nodes; concentric rings = local reach; "Thủ Đức" location chip. */
.hv2-hero__aside{ display:flex; justify-content:center; }
.hv2-net{ position:relative; width:min(400px,92%); aspect-ratio:1/1; }
.hv2-net__links{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.hv2-net__ring{ stroke:var(--color-border-subtle); stroke-width:1.5; fill:none; }
.hv2-net__link{ stroke:var(--color-brand-primary); stroke-width:1.5; opacity:.30;
  stroke-dasharray:5 7; animation:hv2-flow 1.6s linear infinite; }
@keyframes hv2-flow{ to{ stroke-dashoffset:-24; } }
.hv2-net__core, .hv2-net__node, .hv2-net__loc{ position:absolute; display:flex; align-items:center; justify-content:center; }
.hv2-net__core{ top:50%; left:50%; transform:translate(-50%,-50%); width:96px; height:96px; border-radius:26px;
  background:linear-gradient(135deg,var(--color-brand-primary-deep),var(--color-brand-accent)); color:#fff;
  box-shadow:0 16px 38px rgba(0,102,204,.34); }
.hv2-net__core svg{ width:44px; height:44px; }
.hv2-net__node{ width:56px; height:56px; border-radius:16px; background:#fff;
  border:1px solid var(--color-border-subtle); color:var(--color-brand-primary); box-shadow:var(--elevation-1); }
.hv2-net__node svg{ width:26px; height:26px; }
.hv2-net__node--tl{ top:2%;  left:2%; }   .hv2-net__node--tr{ top:2%;  right:2%; }
.hv2-net__node--ml{ top:50%; left:-3%; transform:translateY(-50%); }
.hv2-net__node--mr{ top:50%; right:-3%; transform:translateY(-50%); }
.hv2-net__node--bl{ bottom:2%; left:2%; } .hv2-net__node--br{ bottom:2%; right:2%; }
.hv2-net__loc{ bottom:-6px; left:50%; transform:translateX(-50%); gap:6px; padding:6px 14px; border-radius:var(--radius-pill);
  background:#fff; border:1px solid var(--color-border-subtle); box-shadow:var(--elevation-1);
  font-size:.82rem; font-weight:700; color:var(--color-text-primary); white-space:nowrap; }
.hv2-net__loc svg{ width:15px; height:15px; color:var(--color-brand-primary); }

/* ---- NEEDS ---- */
.hv2-needs__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.hv2-need{ display:flex; gap:14px; align-items:flex-start; padding:18px; text-decoration:none;
  background:#fff; border:1px solid var(--color-border-subtle); border-radius:var(--radius-md);
  transition:border-color var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base); }
.hv2-need:hover{ border-color:var(--color-brand-primary); transform:translateY(-3px); box-shadow:var(--elevation-2); }
.hv2-need__ic{ flex-shrink:0; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--color-brand-primary) 8%, #fff); color:var(--color-brand-primary); }
.hv2-need__ic svg{ width:22px; height:22px; }
.hv2-need__body{ display:flex; flex-direction:column; gap:4px; }
.hv2-need__name{ font-weight:700; color:var(--color-text-primary); font-size:1rem; line-height:1.3; }
.hv2-need__blurb{ font-size:.85rem; color:var(--color-text-secondary); line-height:1.5; }
.hv2-need--muted .hv2-need__ic{ background:var(--color-surface-soft); color:var(--color-text-secondary); }

/* ---- SELECTED SERVICES ---- */
.hv2-svc{ background:var(--color-surface-soft); }
.hv2-svc__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.hv2-card{ display:flex; flex-direction:column; gap:10px; padding:24px; text-decoration:none;
  background:#fff; border:1px solid var(--color-border-subtle); border-radius:var(--radius-md);
  transition:border-color var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base); }
.hv2-card:hover{ border-color:var(--color-brand-primary); transform:translateY(-4px); box-shadow:var(--elevation-2); }
.hv2-card__ic{ width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--color-brand-primary) 8%, #fff); color:var(--color-brand-primary); }
.hv2-card__ic svg{ width:26px; height:26px; }
.hv2-card__title{ font-size:1.15rem; font-weight:700; color:var(--color-text-primary); margin:4px 0 0; line-height:1.3; }
.hv2-card__desc{ font-size:.92rem; color:var(--color-text-secondary); line-height:1.55; margin:0; flex-grow:1; }
.hv2-card__cta{ display:inline-flex; align-items:center; gap:6px; color:var(--color-brand-primary); font-weight:700; font-size:.9rem; }
.hv2-card__cta svg{ width:16px; height:16px; }
.hv2-card:hover .hv2-card__cta svg{ transform:translateX(3px); transition:transform var(--motion-fast); }

/* ---- TRUST ---- */
.hv2-trust{ padding:40px 0; background:#fff; border-top:1px solid var(--color-border-subtle); border-bottom:1px solid var(--color-border-subtle); }
.hv2-trust__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.hv2-trust__item{ display:flex; gap:14px; align-items:center; }
.hv2-trust__ic{ flex-shrink:0; width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--color-brand-primary) 8%, #fff); color:var(--color-brand-primary); }
.hv2-trust__ic svg{ width:24px; height:24px; }
.hv2-trust__item strong{ display:block; font-size:.98rem; color:var(--color-text-primary); }
.hv2-trust__item span{ display:block; font-size:.82rem; color:var(--color-text-secondary); line-height:1.45; margin-top:2px; }

/* ---- HOW WE HELP ---- */
.hv2-how__row{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.hv2-step{ position:relative; padding:24px; background:#fff; border:1px solid var(--color-border-subtle); border-radius:var(--radius-md); }
.hv2-step__n{ font-size:.85rem; font-weight:800; color:var(--color-brand-primary); }
.hv2-step__ic{ display:flex; width:46px; height:46px; margin:10px 0 12px; border-radius:12px; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--color-brand-primary) 8%, #fff); color:var(--color-brand-primary); }
.hv2-step__ic svg{ width:24px; height:24px; }
.hv2-step h3{ font-size:1.05rem; font-weight:700; color:var(--color-text-primary); margin:0 0 6px; }
.hv2-step p{ font-size:.88rem; color:var(--color-text-secondary); line-height:1.55; margin:0; }

/* ---- NEWS ---- */
.hv2-news__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.hv2-news__card{ display:flex; flex-direction:column; gap:10px; padding:22px; text-decoration:none;
  background:#fff; border:1px solid var(--color-border-subtle); border-radius:var(--radius-md);
  transition:border-color var(--motion-base), transform var(--motion-base), box-shadow var(--motion-base); }
.hv2-news__card:hover{ border-color:var(--color-brand-primary); transform:translateY(-3px); box-shadow:var(--elevation-2); }
.hv2-news__tag{ align-self:flex-start; font-size:.72rem; font-weight:700; color:var(--color-brand-primary);
  background:color-mix(in srgb, var(--color-brand-primary) 8%, #fff); padding:3px 10px; border-radius:var(--radius-pill); }
.hv2-news__title{ font-size:1rem; font-weight:700; line-height:1.4; color:var(--color-text-primary); margin:0; flex-grow:1;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hv2-news__more{ display:inline-flex; align-items:center; gap:6px; color:var(--color-brand-primary); font-weight:700; font-size:.85rem; }
.hv2-news__more svg{ width:15px; height:15px; }

/* ---- RESPONSIVE ---- */
@media (max-width:1024px){
  .hv2-hero__inner{ grid-template-columns:1fr; gap:32px; }
  .hv2-hero__copy{ order:1; }        /* value-prop first; decorative aside follows */
  .hv2-hero__aside{ order:2; }
  .hv2-net{ width:min(340px,66%); }
  .hv2-needs__grid, .hv2-trust__grid, .hv2-how__row, .hv2-news__grid{ grid-template-columns:repeat(2,1fr); }
  .hv2-svc__grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .hv2-sec{ padding:44px 0; }
  .hv2-hero__inner{ padding-top:90px; padding-bottom:40px; }  /* clear fixed header (~67px mobile) */
  .hv2-hero__lede{ font-size:1rem; }
  .hv2-needs__grid, .hv2-trust__grid, .hv2-how__row, .hv2-news__grid, .hv2-svc__grid{ grid-template-columns:1fr; }
  .hv2-hero__actions .dsv0-btn{ flex:1 1 auto; justify-content:center; }
  .hv2-hero__aside{ display:none; }  /* phones: lead with the value prop, keep hero compact */
  .hv2-hero__call{ display:none; }   /* de-dup: header already shows the 0914 call CTA on mobile */
}
@media (prefers-reduced-motion: reduce){
  .hv2-need, .hv2-card, .hv2-news__card{ transition:none; }
  .hv2-net__link{ animation:none; opacity:.28; }
}

/* ---- MOBILE DENSITY POLISH (phones only; "see all" links cover the rest) ---- */
.hv2-needs__seeall{ display:none; margin-top:16px; justify-content:center; width:100%;
  border:1px solid var(--color-border-subtle); border-radius:var(--radius-md); padding:14px; }
@media (max-width:600px){
  .hv2-needs__grid .hv2-need:nth-child(n+7){ display:none; }      /* 6 needs + "Xem tất cả" */
  .hv2-svc__grid   .hv2-card:nth-child(n+5){ display:none; }      /* 4 service cards + head "Tất cả dịch vụ" */
  .hv2-news__grid  .hv2-news__card:nth-child(n+4){ display:none; }/* 3 news + head "Tất cả tin tức" */
  .hv2-needs__seeall{ display:inline-flex; }
}
/* fade the floating chatbot while the contact form is in view (don't cover CTA/form) */
body.gx-contact-inview #chatbotWrapper{ opacity:0; visibility:hidden; transition:opacity .2s ease, visibility .2s ease; }

/* ============================================================================
   HOME-MOBILE-LOWER-UX-V1 — lower-homepage mobile composition (2026-09-09).
   Homepage-scoped: home-v2.css is loaded ONLY by body-v2.php, so every rule here
   applies to '/' alone — Service Hub / VinaPhone / news never load this file, so
   the floating-control + footer overrides below cannot leak to other pages.
   VISUAL / RESPONSIVE ONLY. No markup, JS, commerce, resolver, registry or DB
   change. Tokens only. Rollback = restore this file (filemtime cache-bust).
   ============================================================================ */

/* ---- Tablet & down (<=820px): compact the oversized dark CTA, tighten rhythm ---- */
@media (max-width:820px){
  /* CONTACT-CTA — 110px top/bottom created a huge dark void on mobile */
  .contact-cta{ padding:56px 0; }
  .cta-orb-1{ width:260px; height:260px; top:-90px; left:-80px; opacity:.22; }
  .cta-orb-2{ width:220px; height:220px; bottom:-90px; right:-70px; }
  .cta-inner{ gap:28px; }
  .cta-text h2{ margin-bottom:14px; }
  .cta-text p{ margin-bottom:20px; }

  /* FOOTER — reduce excessive height/heaviness; keep all required content */
  .dsv0-footer{ padding:44px 0 24px; }
  .dsv0-footer__grid{ gap:30px; }
  .dsv0-footer__brand-text{ max-width:none; margin:12px 0 16px; }
}

/* ---- Phones (<=600px): intentional single-column composition, not squeezed ---- */
@media (max-width:600px){
  /* Section rhythm — clear, even gaps (was 44px; trims giant blank bands) */
  .hv2-sec{ padding:40px 0; }

  /* CONTACT-CTA further compaction on phones */
  .contact-cta{ padding:44px 0; }

  /* CONTACT ITEMS — turn bare links into compact, tappable cards (>=44px target) */
  .cta-contacts{ gap:10px; }
  .cta-contact-item{ min-height:44px; padding:11px 13px; border-radius:12px;
    background:rgba(255,255,255,.06); }

  /* HOW / process steps — compact horizontal cards (icon left, number+title+desc
     right) instead of 4 tall vertical boxes with big empty space */
  .hv2-how__row{ gap:10px; }
  .hv2-step{ display:grid; grid-template-columns:44px 1fr; column-gap:14px; align-items:center; padding:14px 16px; }
  .hv2-step__ic{ grid-column:1; grid-row:1 / span 3; align-self:center; margin:0; width:44px; height:44px; }
  .hv2-step__n{ grid-column:2; grid-row:1; }
  .hv2-step h3{ grid-column:2; grid-row:2; margin:2px 0 0; }
  .hv2-step p{ grid-column:2; grid-row:3; margin:4px 0 0; }

  /* FLOATING CONTROLS — reduce dominance, respect safe-area, stop the cluttered
     bottom band. Chat = bottom-right, back-to-top = bottom-left, hide the
     always-on "Chat tư vấn" hint pill (visual only; launcher fully functional). */
  #fdcl-fab{ width:60px !important; height:60px !important; right:16px !important;
    bottom:calc(16px + env(safe-area-inset-bottom,0px)) !important; }
  #fdcl-fab .fdcl-i svg{ width:30px !important; height:30px !important; }
  #fdcl-hint{ display:none !important; }
  .scroll-to-top{ width:46px !important; height:46px !important; left:16px !important;
    bottom:calc(16px + env(safe-area-inset-bottom,0px)) !important; }
  .scroll-to-top i{ font-size:19px !important; }

  /* FOOTER — a touch tighter on phones */
  .dsv0-footer{ padding:40px 0 22px; }
  .dsv0-footer__social{ gap:12px; }
}

/* ---- Keep floating controls off the conversion surface (all viewports):
       fade chat + back-to-top while the contact/CTA section is in view so they
       never cover the form/CTA. Extends the existing #chatbotWrapper fade. ---- */
body.gx-contact-inview #fdcl-fab,
body.gx-contact-inview #fdcl-hint,
body.gx-contact-inview .scroll-to-top{
  opacity:0 !important; visibility:hidden !important; pointer-events:none !important;
  transition:opacity .2s ease, visibility .2s ease;
}
