/* v08 · 28/09/2026 — Mọi hiệu ứng :hover chỉ chạy trên desktop ≥1200px có chuột (@media (min-width: 1200px) and (hover: hover)). Mobile/tablet không có hover. */
/* =====================================================================
   F2Tech Asia — page sections
   Design @1920 · rem = px / 10 · 12-col grid (margin 40, gutter 40)
   ===================================================================== */

/* extra button variants */
.btn--dark { background: rgba(255,255,255,.2);; color: var(--neutral-0); }
@media (min-width: 1200px) and (hover: hover) { .btn--dark:hover { background: rgba(255,255,255,.4); } }
.btn--outline-light { border: 1px solid rgba(255,255,255,.4); color: var(--neutral-0); }
@media (min-width: 1200px) and (hover: hover) { .btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); } }

.tagline--center { text-align: center; display: block; }

/* round icon button */
.round-btn {
  width: 4.4rem; height: 4.4rem; border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.round-btn svg { width: 2rem; height: 2rem; }
@media (min-width: 1200px) and (hover: hover) { .round-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; } }

.chip-tag {
  font-family: var(--font-mono);
  font-size: 1.2rem; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase;
  padding: .7rem 1.2rem; border-radius: .4rem;
  background: var(--light-gray); color: var(--fg-muted);
}

/* ============================= HEADER ============================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: transform .5s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
  color: #fff;
}
/* hide on scroll-down, reveal on scroll-up (toggled from JS via scroll direction) */
.site-header.header-hidden { transform: translateY(-100%); }
.topbar { border-bottom: 1px solid rgba(255,255,255,.14); transition: border-color .4s; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 3.7rem; }
.topbar-left { display: flex; gap: 3.2rem; }
.topbar-item { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: 1.3rem; }
.topbar-item .ico { width: 1.6rem; height: 1.6rem; color: var(--primary); }
.topbar-right { display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 1.3rem; }
.lang { color: inherit; opacity: .6; font-family: var(--font-mono); font-size: 1.3rem; }
.lang.active { opacity: 1; }
.lang-sep { opacity: .4; }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 8.8rem; }
.brand { display: flex; align-items: center; gap: 1.2rem; }
.brand-logo { width: 4.2rem; height: 4.2rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.9rem; font-weight: 600; }
.brand-name em { color: inherit; font-style: normal; font-weight: 500; }   /* v09: "Asia" cùng màu với "F2Tech", không nghiêng */
.brand-tagline { font-family: var(--font-mono); font-size: 1rem; letter-spacing: .12em; opacity: .7; }

.nav-links { display: flex; align-items: center; gap: 3.6rem; }
.nav-link {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: .5rem;
  position: relative; padding: .6rem 0;
}
.nav-link .chev { width: 1.4rem; height: 1.4rem; opacity: .7; }
.nav-link::after { content:''; position:absolute; left:0; bottom:-.2rem; width:0; height:1px; background: currentColor; transition: width .35s var(--ease); }
/* .nav-link:hover::after { width: 100%; } */
.nav-cta { padding: 1.2rem 2.2rem; }

.nav-burger { display: none; width: 3.2rem; height: 2rem; flex-direction: column; justify-content: space-between; }
.nav-burger span { display:block; width:100%; height:2px; background: currentColor; }

/* scrolled state → solid white header, dark text */
.site-header.scrolled { background: #fff; color: var(--fg); box-shadow: 0 10px 34px -18px rgba(15,27,45,.28), 0 1px 0 var(--border); }
.site-header.scrolled .topbar { border-color: var(--border); }
.site-header.scrolled .brand-tagline { opacity: .55; }

/* over dark sections (trust / ai / footer) → white text, no white bar */
.site-header.on-dark,
.site-header.on-dark.scrolled { background: transparent; color: #fff; box-shadow: none; }
.site-header.on-dark .brand-name { color: #fff; }
.site-header.on-dark .brand-tagline { opacity: .7; }

/* ============================= HERO ============================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background: #180a0d url('../assets/img/hero image.png?v=20260930-3') center right / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0;
  background: rgba(0, 0, 0, .2); /* v16.6: phủ đen 20% lên ảnh hero để cụm chữ bên trái tương phản hơn. Đổi độ đậm: sửa số .2 */
}
.hero-stripes { position: absolute; inset: 0; pointer-events: none;
  /* background: repeating-linear-gradient(90deg, transparent 0, transparent 15.16rem, rgba(255,255,255,.035) 15.16rem, rgba(255,255,255,.035) 15.56rem); */
}
.hero-inner { position: relative; z-index: 2; }
.hero-content { padding-top: 8rem; }
.hero-title { font-size: 8.8rem; line-height: 1.05; font-weight: 500; letter-spacing: -.4rem; }
.hero-title em { color: var(--primary); }
.hero-desc { margin-top: 3rem; max-width: 52rem; font-size: 1.6rem; line-height: 1.6; color: rgba(255,255,255,.82); }
.hero-actions { margin-top: 4rem; display: flex; gap: 2.6rem; }
.hero-actions .btn { padding: 1.6rem 3rem; }

/* ============================= SECTION 2 — CLIENTS ============================= */
.clients { padding: 10rem 0 18rem; }
.clients-marquee { margin: 6rem 0 16rem; }
.clients-marquee .marquee-track { gap: 2.4rem; }
.client-box {
  flex: none; width: 25rem; height: 16rem; border-radius: 1.2rem;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden;
}
/* v15.3: logo màu — bình thường xám + mờ, hover (≥1200px) hiện đúng màu */
.client-box img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .4s ease, opacity .4s ease;
}
@media (min-width: 1200px) and (hover: hover) { .client-box:hover img { filter: grayscale(0); opacity: 1; } }

.clients-body { row-gap: 4rem; align-items: start; }
.reveal-copy { display: flex; flex-direction: column; gap: 3rem; }
.reveal-text { font-size: 6.4rem; line-height: 1.3; font-weight: 600; letter-spacing: -.4rem; }
.reveal-text .word { color: var(--gray); transition: color .2s; }

.stats { align-self: end; display: flex; flex-direction: column; gap: 2.4rem; }
.stats-head { display: flex; align-items: center; justify-content: space-between; }
.stats-index { font-family: var(--font-mono); font-size: 1.2rem; color: var(--fg-muted); }
.stat-num { font-size: 7rem; font-weight: 600; color: var(--primary); line-height: 1; }
.stat-desc { font-size: 1.6rem; color: var(--fg-muted); line-height: 1.6; margin-top: 1rem; }
.stats-nav { display: flex; gap: 1.2rem; }

/* ============================= SECTION 2.1 — FULL-BLEED PARALLAX IMAGE ============================= */
.images-data { position: relative; height: 100vh; overflow: hidden; }
.images-data-media { position: absolute; left: 0; right: 0; top: -15%; height: 130%; will-change: transform; }
.images-data-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  background: linear-gradient(135deg, #1c2b40, #0f1b2d); }

/* ============================= SECTION 3 — DATA / STICKY ============================= */
.data { padding: 18rem 0; }
.data-inner { align-items: stretch; }
.data-nav-wrap { position: relative; align-self: stretch; }
.data-nav-sticky { position: sticky; top: 10rem; }
.data-nav-sticky .tagline { margin-bottom: 6rem; line-height: 1.5; }
.data-nav { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; }
.data-nav button {
  font-size: 4.8rem; font-weight: 600; color: var(--gray); text-align: left; letter-spacing: -2px;
  transition: color .35s var(--ease); line-height: 1.1;
}
@media (min-width: 1200px) and (hover: hover) { .data-nav button:hover { color: var(--fg-muted); } }
.data-nav button.active { color: var(--fg); }

.data-cards { display: flex; flex-direction: column; gap: 8rem; }
.data-card { scroll-margin-top: 16rem; }
.data-card-media { width: 100%; aspect-ratio: 16 / 10; background: var(--gray); margin-bottom: 2.8rem; border-radius: 1.5rem; overflow: hidden; }
.data-card h3 { font-size: 2.8rem; font-weight: 500; margin-bottom: 1.2rem; }
.data-card p { font-size: 1.6rem; color: var(--fg-muted); line-height: 1.7; max-width: 62rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================= SECTION 4 — TRUST / HORIZONTAL ============================= */
.trust { background: var(--trust-bg); color: #fff; position: relative; }
.trust-pin { height: 100vh; width: 100%; display: flex; flex-direction: column; justify-content: space-around; padding: 8rem 0; overflow: hidden;
  background: var(--trust-bg);
}
.trust-head { margin-bottom: 6rem; }
.trust-head .tagline { margin-bottom: 2rem; }
.trust-title { font-size: 6.4rem; line-height: 1.1; font-weight: 500; letter-spacing: -.4rem; }
.trust-title em { color: var(--primary); }
.trust-track { display: flex; gap: 4rem; padding-left: 51rem; padding-right: var(--grid-margin); width: max-content; }
.trust-card { flex: none; width: 40rem; border-top: 1px solid rgba(255,255,255,.16); padding-top: 2.8rem; }
.trust-num { font-family: var(--font-mono); font-size: 1.4rem; color: var(--primary); }
.trust-ico { margin: 4rem 0 3rem; color: #fff; }
.trust-ico svg { width: 8rem; height: 8rem; }
.trust-card h3 { font-size: 2.8rem; font-weight: 500; margin-bottom: 1.4rem; }
.trust-card p { font-size: 1.6rem; line-height: 1.7; color: rgba(255,255,255,.6); }

/* ============================= SECTION 5 — STORIES (case-study list) ============================= */
.stories { padding: 14rem 0; }
.stories-row { align-items: start; row-gap: 3rem; margin-bottom: 11rem; }
.stories-tagline { grid-column: 1 / 3; align-self: start; line-height: 1.5; }

.story-thumb { display: block; aspect-ratio: 4 / 3; background: var(--gray); border-radius: 1.4rem; overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (min-width: 1200px) and (hover: hover) { .story-thumb:hover img { transform: scale(1.04); } }

/* text cluster — explicit per-element rhythm (no uniform gap) */
.story-info { display: flex; flex-direction: column; align-self: flex-start; }
.story-tags { display: flex; flex-wrap: wrap; gap: 2rem; }
.story-title { font-size: 2.8rem; font-weight: 500; line-height: 1.25; margin-top: 2.4rem; }
.story-title a { transition: color .25s var(--ease); }
@media (min-width: 1200px) and (hover: hover) { .story-title a:hover { color: var(--primary); } }
.story-quote { width: 4rem; height: 4rem; margin-top: 3.2rem; }   /* sign.svg quote mark */
.story-testimonial { font-size: 1.6rem; line-height: 1.7; color: var(--fg-muted); margin-top: 1.6rem; }
.story-author { display: flex; align-items: center; gap: 1.4rem; margin-top: 3rem; }
.story-avatar { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--primary); flex: none; }
.story-author-name { font-size: 1.5rem; font-weight: 600; }
.story-author-role { font-size: 1.3rem; color: var(--fg-muted); }

.stories-all-wrap { display: flex; justify-content: start; }
.stories-all { padding: 1.6rem 4rem; }

/* ============================= SECTION 6 — INSIGHT ============================= */
.insight { padding: 18rem 0; background:var(--light-gray); }
.insight-head { align-items: end; margin-bottom: 5rem; }
.insight-title { font-size: 6.4rem; font-weight: 500; letter-spacing: -.4rem; margin-top: .8rem; }
.insight-head-cta { display: flex; justify-content: flex-end; }
.insight-grid { row-gap: 4rem; }
.insight-card { display: block; }
.insight-media { position: relative; aspect-ratio: 4 / 3.4; background: var(--gray); border-radius: 1.2rem; overflow: hidden; margin-bottom: 2rem; }
/* CMS thumbnail — fills the media box; gray box shows until an image is set */
.insight-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
@media (min-width: 1200px) and (hover: hover) { .insight-card:hover .insight-thumb { transform: scale(1.05); } }
.insight-meta { display: flex; gap: 1.6rem; align-items: center; margin-bottom: 1.2rem; }
.insight-date { font-family: var(--font-mono); font-size: 1.3rem; color: var(--fg-muted); }
.insight-card h3 { font-size: 2.8rem; font-weight: 500; line-height: 1.3; transition: color .3s; }
@media (min-width: 1200px) and (hover: hover) { .insight-card:hover h3 { color: var(--primary); } }

/* ============================= SECTION 7 — AI CTA ============================= */
.ai { position: relative; background: var(--primary); color: #fff; overflow: hidden; min-height: 50vh; display: flex; align-items: center; padding: 6rem 0; }
.ai-rings { position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0, rgba(255,255,255,0) 7rem, rgba(255,255,255,.10) 7rem, rgba(255,255,255,.10) 7.1rem); }
.ai-inner { position: relative; z-index: 1; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3.6rem; }
.ai-title { font-size: 4.4rem; font-weight: 500; line-height: 1.2; }
.ai-sources { display: flex; gap: 2.8rem; }
.ai-source { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; color: #fff; transition: transform .3s var(--ease); }
.ai-source svg { width: 2.6rem; height: 2.6rem; padding: 1.4rem; box-sizing: content-box; border-radius: 1.4rem; background: rgba(255,255,255,.15); transition: background .3s var(--ease), color .3s var(--ease); }
.ai-source-label { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 500; letter-spacing: .02em; }
@media (min-width: 1200px) and (hover: hover) { .ai-source:hover { transform: translateY(-.5rem); } }
@media (min-width: 1200px) and (hover: hover) { .ai-source:hover svg { background: #fff; color: var(--primary); } }

/* ============================= SECTION 8 — FOOTER ============================= */
.footer { position: relative; background: var(--dark); color: #fff; min-height: 100vh; display: flex; align-items: stretch; overflow: hidden; }
.footer-dots { position: absolute; inset: 0; z-index: 0; }
.footer-inner { position: relative; z-index: 1; width: 100%; min-height: 100vh; padding-block: 9rem 5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 6rem; }
.footer-top, .footer-mid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--grid-gutter); align-items: start; }
.footer-connect .tagline, .footer-links h4 { margin-bottom: 2rem; }
.footer-links h4 { font-family: var(--font-mono); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 500; }
.footer-links a { display: block; font-size: 1.5rem; margin-bottom: 1.1rem; color: rgba(255,255,255,.85); width: fit-content; }
@media (min-width: 1200px) and (hover: hover) { .footer-links a:hover { color: #fff; } }
.footer-phone { border: 1px solid rgba(255,255,255,.2); border-radius: .6rem; padding: 1rem 1.4rem; font-family: var(--font-mono); font-size: 1.3rem; margin-bottom: 1.2rem !important; }
.socials { display: flex; gap: 1.2rem; }
.social { width: 4.4rem; height: 4.4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .3s, border-color .3s; }
.social svg { width: 2rem; height: 2rem; }
@media (min-width: 1200px) and (hover: hover) { .social:hover { background: var(--primary); border-color: var(--primary); } }

.brand--footer .brand-name { color: #fff; }
.footer-org { display: flex; flex-direction: column; gap: 3rem; }
.footer-block .tagline { color: var(--primary); margin-bottom: 1rem; }
.footer-block p { font-size: 1.5rem; color: rgba(255,255,255,.7); line-height: 1.6; }
.footer-underline { text-decoration: underline; text-underline-offset: 3px; font-size: 1.4rem; margin-top: .8rem; display: inline-block; }
.footer-cta h2 { font-size: 4.4rem; font-weight: 500; line-height: 1.15; margin-bottom: 3.6rem; }
.footer-cta-actions { display: flex; gap: 2rem; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 4rem; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom span, .footer-bottom-links a { font-size: 1.3rem; color: rgba(255,255,255,.55); }
.footer-bottom-links { display: flex; gap: 3rem; }
@media (min-width: 1200px) and (hover: hover) { .footer-bottom-links a:hover { color: #fff; } }

.to-top { position: absolute; right: var(--grid-margin); bottom: 4rem; z-index: 2;
  width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: background .3s, border-color .3s; }
.to-top svg { width: 2rem; height: 2rem; }
@media (min-width: 1200px) and (hover: hover) { .to-top:hover { background: var(--primary); border-color: var(--primary); } }

/* ============================= MOBILE / TABLET (< 1200px) ============================= */
@media (max-width: 1199px) {
  .topbar { display: none; }

  /* ---------- header + hamburger ---------- */
  .site-header { will-change: auto; }
  .navbar-inner { height: 6.4rem; }
  .brand-logo { width: 3.6rem; height: 3.6rem; }
  .brand-tagline { display: none; }
  .nav-cta { display: none; }
  .brand { position: relative; z-index: 1002; }

  /* mobile: header is ALWAYS the light version (white bg, dark text) — never dark-over-section */
  .site-header,
  .site-header.on-dark,
  .site-header.on-dark.scrolled { background: #fff; color: var(--fg); box-shadow: 0 1px 0 var(--border); }
  .site-header.on-dark .brand-name { color: var(--fg); }
  .site-header.on-dark .nav-burger { background: rgba(15,27,45,.08); }

  .nav-burger { display: flex; position: relative; z-index: 1002;
    width: 4.6rem; height: 4.6rem; border-radius: 50%; align-items: center; justify-content: center;
    background: rgba(15,27,45,.08); backdrop-filter: blur(6px); }
  .site-header.on-dark .nav-burger { background: rgba(255,255,255,.16); }
  .nav-burger span { position: absolute; left: 50%; top: 50%; width: 2rem; height: 2px; background: currentColor;
    transition: transform .3s var(--ease), opacity .3s; }
  .nav-burger span:nth-child(1) { transform: translate(-50%, -4px); }
  .nav-burger span:nth-child(2) { transform: translate(-50%, 4px); }
  .site-header.menu-open .nav-burger span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
  .site-header.menu-open .nav-burger span:nth-child(2) { transform: translate(-50%, 0) rotate(-45deg); }

  /* full-screen mobile menu */
  .nav-links { display: flex; position: fixed; inset: 0; z-index: 1001;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem;
    padding: 12rem var(--grid-margin) 6rem; background: var(--bg);
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .5s var(--ease), opacity .4s var(--ease); }
  .site-header.menu-open .nav-links { transform: translateX(0); opacity: 1; visibility: visible; }
  .nav-link { font-size: 3.2rem; font-family: var(--font-display); font-weight: 600; color: var(--fg); padding: 1.2rem 0; letter-spacing: -.01em; }
  .nav-link .chev, .nav-link::after { display: none; }
  .site-header.menu-open { transform: none !important; background: var(--bg); color: var(--fg); box-shadow: 0 1px 0 var(--border); }
  .site-header.menu-open .brand-name { color: var(--fg); }
  .site-header.menu-open .nav-cta { display: inline-flex; position: fixed; z-index: 1001;
    left: var(--grid-margin); right: var(--grid-margin); bottom: 6rem; justify-content: center; }

  /* ---------- hero ---------- */
  .hero { min-height: 100vh; }
  .hero-content { padding-top: 6rem; }
  .hero-title { font-size: 3.8rem; line-height: 1.14; }
  .hero-desc { font-size: 1.6rem; margin-top: 2.4rem; }
  .hero-actions { margin-top: 3rem; flex-direction: column; align-items: stretch; gap: 1.4rem; }
  .hero-actions .btn { justify-content: center; }

  /* ---------- clients + stats ---------- */
  .clients { padding: 8rem 0 10rem; }
  .clients-marquee { margin: 4rem 0 6rem; }
  .client-box { width: 13rem; height: 8.4rem; border-radius: .8rem; padding: 0; }
  .clients-marquee .marquee-track { gap: 1.4rem; }
  .clients-body { row-gap: 4rem; }
  .reveal-copy { grid-column: 1 / -1; }
  .reveal-text { font-size: 2.8rem; }
  .stats { align-self: start; border-top: 1px solid var(--border); padding-top: 3rem; }
  .stat-num { font-size: 5.6rem; }

  /* ---------- data: hide sticky nav, cards full width (start col 1) ---------- */
  .data { padding: 8rem 0; }
  .data-nav-wrap { display: none; }
  .data-cards { grid-column: 1 / -1; gap: 5rem; }
  .data-card h3 { font-size: 2.2rem; }

  /* ---------- trust: stack ---------- */
  .trust-pin { height: auto; min-height: auto; padding: 8rem 0; }
  .trust-head { display: flex; flex-direction: column; margin-bottom: 4rem; }
  .trust-title { grid-column: 1 / -1; font-size: 3rem; }
  .trust-track { flex-direction: column; width: 100%; padding-inline: 0; gap: 0; }
  .trust-card { width: 100%; padding: 1.6rem; border-top: none; border-bottom: 1px solid rgba(255,255,255,.16); }
  .trust-ico { margin: 1.6rem 0; }
  .trust-ico svg { width: 5.6rem; height: 5.6rem; }

  /* ---------- stories ---------- */
  .stories { padding: 8rem 0; }
  .stories-row { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 6rem; }
  .stories-tagline { margin-bottom: 1rem; }
  .story-info { align-self: stretch; }
  .story-title { font-size: 2.4rem; }

  /* ---------- insight / ai ---------- */
  .insight { padding: 8rem 0; }
  .insight-head { margin-bottom: 4rem; }
  .insight-title { font-size: 3.2rem; }
  .insight-head-cta { justify-content: flex-start; margin-top: 2rem; }
  .ai { padding: 7rem 0; min-height: auto; }
  .ai-title { font-size: 3rem; }

  /* ---------- footer (full-width column) ---------- */
  .footer { min-height: auto; }
  .footer-inner { min-height: auto; justify-content: flex-start; padding-block: 8rem; gap: 5rem; }
  .footer-top, .footer-mid { display: flex; flex-direction: column; gap: 4rem; }
  .footer-cta h2 { font-size: 2.8rem; }
  .footer-bottom { flex-direction: column; gap: 1.6rem; align-items: flex-start; }
}

/* tablet (≥768px): data cards 2 per row, starting at column 1 */
@media (min-width: 768px) and (max-width: 1199px) {
  .data-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem 3rem; }
}

/* phone: hero + big type a touch smaller */
@media (max-width: 640px) {
  .hero-title { font-size: 3.2rem; }
  .reveal-text { font-size: 2.4rem; }
  .trust-title, .insight-title { font-size: 2.6rem; }
  .nav-link { font-size: 2.8rem; }
}

/* =====================================================================
   MOBILE / TABLET (< 1200px) — MEGA MENU TRONG HAMBURGER  (v04 · 28/09/2026)
   GIẢI PHÁP + THIẾT BỊ mở dạng accordion (dữ liệu: F2_MENU trong js/app.js).
   ===================================================================== */
@media (max-width: 1199px) {
  /* menu bắt đầu ngay dưới header (6.4rem) để nội dung cuộn không chạy dưới logo */
  .nav-links { inset: 6.4rem 0 0 0; justify-content: flex-start; gap: 0; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; padding: 2.4rem var(--grid-margin) 16rem; }
  /* dải nền mờ dần phía sau nút CTA cố định ở đáy, để chữ không bị đè lên nút */
  .site-header.menu-open::after { content: ''; position: fixed; left: 0; right: 0; bottom: 0; height: 14rem; z-index: 1002;
    pointer-events: none; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg) 40%); }
  .site-header.menu-open .nav-cta { z-index: 1003; }
  .nav-links > .nav-link { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--border); }
  .nav-link[data-mega] .chev { display: block; width: 2.4rem; height: 2.4rem; opacity: .5; flex: none; transition: transform .35s var(--ease); }
  .nav-link[aria-expanded="true"] { color: var(--primary); }
  .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); opacity: 1; }

  .m-sub { width: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
  .m-sub.is-open { grid-template-rows: 1fr; }
  .m-sub-inner { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
  .m-sub-item { display: flex; flex-direction: column; gap: .4rem; padding: 1.4rem 0 1.4rem 1.6rem; border-bottom: 1px solid var(--border); }
  .m-sub-item:active { background: var(--light-gray); }
  .m-sub-t { font-size: 1.8rem; font-weight: 600; color: var(--fg); line-height: 1.3; }
  .m-sub-s { font-size: 1.3rem; color: var(--fg-muted); line-height: 1.5; }
  .m-sub-all { padding: 1.6rem 0 2.4rem 1.6rem; font-family: var(--font-mono); font-size: 1.3rem; font-weight: 500;
    letter-spacing: .03em; text-transform: uppercase; color: var(--primary); border-bottom: 1px solid var(--border); }

  /* ẩn bong bóng chatbot khi menu mở để không che nội dung menu */
  body.menu-lock .chatbot,
  body.menu-lock .contact-dock { display: none; }   /* .contact-dock: dock Gọi · AI · Zalo (bản Web Final) */
}
@media (min-width: 1200px) { .m-sub { display: none; } }

/* =====================================================================
   MOBILE / TABLET (< 1200px) — NÚT "XEM TẤT CẢ" STORIES CANH TRÁI  (v06 · 28/09/2026)
   Desktop đặt ở cột 3–4 (.col-2.start-3); lưới mobile chỉ 4 cột nên nút bị đẩy sang phải.
   ===================================================================== */
@media (max-width: 1199px) {
  .stories-all-wrap { grid-column: 1 / -1; justify-content: flex-start; }
}

/* =====================================================================
   MOBILE / TABLET (< 1200px) — THIẾT BỊ TRONG MENU HAMBURGER  (v12 · 29/09/2026)
   Mỗi nhóm có tiêu đề (→ danh mục đã lọc) và danh sách từng máy (→ trang chi tiết).
   ===================================================================== */
@media (max-width: 1199px) {
  .m-sub-group { display: flex; flex-direction: column; padding: 1.2rem 0 1.2rem 1.6rem; border-bottom: 1px solid var(--border); }
  .m-sub-cat { font-size: 1.8rem; font-weight: 600; color: var(--fg); padding: .6rem 0 .8rem; }
  .m-sub-link { font-size: 1.4rem; line-height: 1.45; color: var(--fg-muted); padding: 1rem 0; }   /* ≥ 40px vùng chạm */
  .m-sub-link:active, .m-sub-cat:active { color: var(--primary); }
  .m-sub-link.is-current { color: var(--primary); font-weight: 500; }
}

/* =====================================================================
   v13.1 — TỈ LỆ THUMBNAIL DÙNG CHUNG (card + ảnh bìa bài viết)
   Ảnh thumbnail thật là 4:3 (1600×1200). Đổi tỉ lệ toàn site: sửa 1 biến này.
   ===================================================================== */
:root { --thumb-ratio: 4 / 3; }

/* v13.2 — KHOÁ KHUNG ẢNH: khung luôn đúng --thumb-ratio dù ảnh đưa vào là dọc, ngang,
   vuông hay kích thước bất kỳ. Ảnh được "rút" ra khỏi dòng chảy (position:absolute) nên
   không thể đẩy khung to/nhỏ ra; ảnh lấp đầy khung và tự cắt phần thừa (object-fit:cover),
   canh giữa. Chưa có ảnh → khung vẫn giữ nguyên kích thước với nền xám. */
.insight-media, .story-thumb, .article-cover, .product-main-img {
  position: relative; display: block; width: 100%;
  height: auto; min-height: 0; max-height: none;
  aspect-ratio: var(--thumb-ratio) !important;
  overflow: hidden;
}
.insight-media > img, .story-thumb > img, .article-cover > img, .product-main-img > img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  max-width: none; object-fit: cover; object-position: center; display: block;
}

/* v17 · menu mobile/tablet (< 1200px): accordion GIẢI PHÁP + SẢN PHẨM */
@media (max-width: 1199px) {
  .m-sub-head { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    color: var(--fg-muted); padding: .8rem 0 .4rem; }
  .m-sub-head--sec { padding: 1.6rem 0 0 1.6rem; }
  .m-sub-link, .m-sub-cat { display: block; }
  .m-sub-link.is-soon, .m-sub-cat.is-soon { cursor: default; }
  .m-badge { font-style: normal; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--primary); background: rgba(232, 38, 45, .08); padding: .2rem .6rem; border-radius: 99rem; margin-left: .4rem; vertical-align: middle; }
}
/* v17.1 · mobile: tiêu đề nhóm sản phẩm có thể là link */
@media (max-width: 1199px) { a.m-sub-head { display: block; } }

/* v2.35 · 07/10/2026 — iOS Safari tô chữ của nút mặc định màu xanh → icon hamburger trên mobile luôn màu đen */
@media (max-width: 1199px) {
  .nav-burger { color: #000; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
  .nav-burger span { background: #000; }
  .site-header.on-dark .nav-burger { background: rgba(15,27,45,.08); }
}

/* v2.36 · 07/10/2026 — footer mobile / tablet: "Công ty" và "Khám phá" cùng 1 hàng (2 cột); 3 link cuối footer xếp 3 hàng */
@media (max-width: 1199px) {
  .footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem 2.4rem; }
  .footer-top > [class*="col-"] { grid-column: auto; }
  .footer-top > .footer-connect, .footer-top > .footer-links:last-child { grid-column: 1 / -1; }
  .footer-bottom-links { flex-direction: column; gap: 1rem; }
}

/* =====================================================================
   v2.47 · 08/10/2026 — MENU HAMBURGER (mobile + tablet < 1200px)
   Chữ mục chính 16px · mục có dropdown dùng nút (+) → mở bottom sheet liệt kê các mục bên trong.
   ===================================================================== */
@media (max-width: 1199px) {
  .nav-links > .nav-link, .nav-link { font-size: 1.6rem; font-weight: 600; letter-spacing: 0; padding: 1.2rem 0; min-height: 5.6rem; align-items: center; }
  .nav-link[data-mega] .chev { display: none; }
  .nav-link[data-mega]::after { content: ''; display: block; position: static; flex: none; width: 3.2rem; transition: none; height: 3.2rem; border-radius: 50%; border: 1px solid var(--border);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 1.4rem no-repeat; }
  .nav-link[aria-expanded="true"] { color: var(--fg); }
  .m-sub { display: none !important; }

  .m-sheet { position: fixed; inset: 0; z-index: 1100; visibility: hidden; pointer-events: none; transition: visibility 0s linear .4s; }
  .m-sheet.is-open { visibility: visible; pointer-events: auto; transition: none; }
  .m-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s var(--ease); }
  .m-sheet.is-open .m-sheet-backdrop { opacity: 1; }
  .m-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; max-height: 85svh; display: flex; flex-direction: column;
    background: var(--bg); border-radius: 1.6rem 1.6rem 0 0; transform: translateY(100%); transition: transform .4s var(--ease);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -1rem 4rem rgba(0,0,0,.12); }
  .m-sheet.is-open .m-sheet-panel { transform: none; }
  .m-sheet-grab { display: block; width: 4rem; height: .4rem; border-radius: 1rem; background: #D9D9D9; margin: 1rem auto 0; flex: none; }
  .m-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1.2rem var(--grid-margin); border-bottom: 1px solid var(--border); flex: none; }
  .m-sheet-title { font-size: 1.6rem; font-weight: 600; letter-spacing: 0; }
  .m-sheet-x { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--light-gray); color: var(--fg); }
  .m-sheet-x svg { width: 1.8rem; height: 1.8rem; }
  .m-sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: .8rem var(--grid-margin) 3.2rem; }
  .m-sheet-body .m-sub-group { padding: 1.2rem 0; }
  .m-sheet-body .m-sub-group:last-child { border-bottom: 0; }
  .m-sheet-body .m-sub-head { padding-left: 0; }
  .m-sheet-body .m-sub-link { font-size: 1.5rem; color: var(--fg); padding: 1.1rem 0; }
  .m-sheet-body .m-sub-all { padding: 1.6rem 0 0; }
  .m-sub-link--ico { display: flex !important; align-items: center; gap: 1.2rem; }
  .m-ico { display: grid; place-items: center; flex: none; width: 3.2rem; height: 3.2rem; border-radius: .8rem; background: var(--light-gray); color: var(--fg); }
  .m-ico svg { width: 1.8rem; height: 1.8rem; }
  .m-sub-link--ico.is-current .m-ico { background: #FDEEEE; color: var(--primary); }
}
@media (min-width: 1200px) { .m-sheet { display: none; } }
@media (min-width: 768px) and (max-width: 1199px) {
  .m-sheet-panel { max-height: 70vh; max-height: 70svh; }
}

/* =====================================================================
   v2.47 · TABLET (768–1199px) — lưới 8 cột · margin 20px · gutter 20px
   ===================================================================== */
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --grid-columns: 8; --grid-margin: 2rem; --grid-gutter: 2rem; }
  .insight-card, .value-card, .feature-card, .award-item { grid-column: span 4 !important; }   /* 2 thẻ / hàng trên lưới 8 cột */

  /* Câu chuyện khách hàng: cuộn ngang, mỗi thẻ ~70% chiều ngang màn hình */
  .stories-track .stories-tagline { display: none; }
  .stories-tag-tab { display: block !important; padding-inline: var(--grid-margin); margin-bottom: 3.2rem; }
  .stories-track { display: flex; gap: var(--grid-gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--grid-margin); padding-inline: var(--grid-margin); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .stories-track::-webkit-scrollbar { display: none; }
  .stories-track::after { content: ''; flex: 0 0 1px; }
  .stories-track > .stories-row { flex: 0 0 70%; display: flex; flex-direction: column; gap: 2rem; padding-inline: 0; margin-bottom: 0; scroll-snap-align: start; }
  .stories-track .story-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1.2rem; }
  .stories-track .story-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .stories-all-wrap { margin-top: 4rem; }
}

/* v2.48 · 08/10/2026 — Footer mobile/tablet: 2 nút số điện thoại xếp ngang, rộng bằng nhau */
@media (max-width: 1199px) {
  .footer-links:has(.footer-phone) { display: grid; grid-template-columns: 1fr 1fr; column-gap: .8rem; }
  .footer-links:has(.footer-phone) h4 { grid-column: 1 / -1; }
  .footer-links .footer-phone { width: 100%; text-align: center; margin-bottom: 0 !important; white-space: nowrap; padding-inline: .8rem; }
}
