/* ============================================================
   0. RESET + ROOT VARIABLES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

:root {
  --primary:      #962E1D;
  --primary-dark: #7A2517;
  --accent:       #C2541C;
  --ink:          #2B2724;
  --ink-soft:     #3A2E28;
  --bg:           #FAF6F1;
  --surface:      #FFFFFF;
  --surface-tint: #F1E9DF;
  --border:        rgba(43,39,36,0.10);
  --border-strong: rgba(43,39,36,0.18);
  --muted:        #8C8378;

  --fh: 'Be Vietnam Pro', sans-serif;
  --fb: 'Be Vietnam Pro', sans-serif;
  --subtitle-size: clamp(1rem, 1.3vw, 1.25rem);

  --sec:   clamp(4.5rem, 8vw, 8rem);
  --sp-xl: clamp(3rem, 5vw, 5rem);
  --sp-l:  clamp(2rem, 3vw, 3rem);
  --sp-m:  1.5rem;
  --sp-s:  0.75rem;

  --r-s:  6px;
  --r-m:  10px;
  --r-l:  16px;
  --r-xl: 24px;

  --fast:     180ms;
  --mid:      320ms;
  --slow:     500ms;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --maxw:  1200px;
  --nav-h: 72px;
}

/* ============================================================
   1. GLOBAL — body, typography, utility classes
   ============================================================ */
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--fh); font-weight: 700; color: var(--ink); margin: 0; }
p { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 1.5rem;
  background: var(--primary); color: #fff;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--r-s); border: none; white-space: nowrap;
  transition: background var(--fast) var(--ease);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 1.5rem;
  background: transparent; color: var(--ink);
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--r-s); border: 1px solid var(--border-strong); white-space: nowrap;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.btn-secondary:hover { background: var(--surface-tint); }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--fh);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; letter-spacing: 0.03em; line-height: 1.25;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}
.sec-title {
  font-family: var(--fb);
  font-size: var(--subtitle-size);
  font-weight: 600; line-height: 1.5; margin-bottom: 1rem; color: var(--ink);
}
.sec-sub { font-size: 1.05rem; line-height: 1.7; color: var(--muted); }

/* ============================================================
   2. LANGUAGE SYSTEM (i18n)
   ============================================================ */
.vi { display: none; }
.en { display: inline; }
html.lang-vi .vi { display: inline; }
html.lang-vi .en { display: none; }
html.lang-en .en { display: inline; }
html.lang-en .vi { display: none; }

/* ============================================================
   3. NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(250,246,241,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--mid) var(--ease);
}
#nav.is-scrolled { box-shadow: 0 1px 0 var(--border-strong); }

.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-main { font-family: var(--fh); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--primary); }
.nav-logo-sub { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.nav-logo-img { height: 108px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color var(--fast) var(--ease); }
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lang-toggle .lang-opt { transition: color var(--fast) var(--ease); }
.lang-toggle .lang-opt.is-active { color: var(--ink); }
.lang-toggle .lang-sep { color: var(--border-strong); }

.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease); }

.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: var(--sp-m) 1.25rem; flex-direction: column; gap: var(--sp-m);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile-links { display: flex; flex-direction: column; gap: var(--sp-s); }
.nav-mobile-links a { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.nav-mobile-lang {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-s) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.nav-mobile-lang-label { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.nav-mobile-lang .lang-toggle { font-size: 0.9rem; }

/* ============================================================
   4. SECTION ANCHORS
   ============================================================ */
main section { scroll-margin-top: var(--nav-h); }

/* ============================================================
   5. HERO
   ============================================================ */
#hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + var(--sp-l)) 2rem var(--sec);
}
#hero::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  filter: blur(1px);
  opacity: 1;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250,246,241,0.92) 0%,
    rgba(250,246,241,0.85) 40%,
    rgba(250,246,241,0.5) 65%,
    rgba(250,246,241,0.15) 100%
  );
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-xl); align-items: center; }
.hero-eyebrow { font-family: var(--fh); font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: 0.03em; line-height: 1.15; text-transform: uppercase; color: var(--primary); margin-bottom: 1.25rem; }
.hero-h1 { font-family: var(--fb); font-size: var(--subtitle-size); font-weight: 600; line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.hero-sub { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); max-width: 46ch; margin-bottom: var(--sp-l); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; margin-bottom: var(--sp-l); }

.metrics-row { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: var(--sp-m); border-top: 1px solid var(--border-strong); }
.metric-pill { display: flex; flex-direction: column; gap: 0.15rem; align-items: center; text-align: center; }
.metric-pill + .metric-pill { padding-left: 2rem; border-left: 1px solid var(--border-strong); }
.pill-val { font-family: var(--fh); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; color: var(--primary); }
.pill-lbl { font-size: 0.78rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; }

.hero-visual { display: flex; justify-content: center; }
.network-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: var(--sp-l); box-shadow: 0 20px 40px -20px rgba(43,39,36,0.15); }
.network-card-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-m); }
.network-list { display: flex; flex-direction: column; gap: 0.85rem; }
.network-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.network-flag { font-size: 2.5rem; line-height: 1; width: 48px; flex-shrink: 0; }
.network-card-foot { margin-top: var(--sp-m); padding-top: var(--sp-m); border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   6. ABOUT
   ============================================================ */
#about { padding: var(--sec) 2rem; background: var(--surface-tint); }
.about-inner { max-width: var(--maxw); margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-xl); align-items: start; }
.about-body { margin-top: var(--sp-l); display: flex; flex-direction: column; gap: 1rem; }
.about-body p { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }

.pillars-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
  padding: var(--sp-l); box-shadow: 0 20px 40px -20px rgba(43,39,36,0.12);
  display: flex; flex-direction: column; gap: var(--sp-l);
}
.pillar { display: flex; flex-direction: column; gap: 0.6rem; }
.pillar + .pillar { padding-top: var(--sp-l); border-top: 1px solid var(--border); }
.pillar-head { display: flex; align-items: center; gap: 0.75rem; }
.pillar-icon { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.pillar-title { font-family: var(--fh); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0; }
.pillar-desc { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

/* ============================================================
   7. PRODUCTS — Ngành hàng / Catalog
   ============================================================ */
#products { padding: var(--sec) 2rem; background: var(--bg); }
.products-inner { max-width: var(--maxw); margin: 0 auto; }
.products-inner .sec-hdr { max-width: 680px; margin: 0 auto; text-align: center; }

.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-l); margin-top: var(--sp-xl); }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); padding: var(--sp-l);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(43,39,36,0.18); }
.product-card-title { font-family: var(--fh); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.product-card-desc { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin-bottom: 1.1rem; }
.product-tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.product-tags li { display: contents; }
.product-tag-btn {
  display: flex; align-items: center; gap: 0.65rem; text-align: left;
  font-family: var(--fb); background: var(--surface-tint); border: none; border-radius: var(--r-m);
  padding: 0.5rem; cursor: pointer; transition: background var(--fast) var(--ease);
}
.product-tag-btn:hover { background: var(--border-strong); }
.product-tag-img {
  width: 44px; height: 44px; border-radius: var(--r-s); object-fit: cover; flex-shrink: 0;
  background: var(--border-strong);
}
.product-tag-info { min-width: 0; display: flex; flex-direction: column; }
.product-tag-name { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.product-tag-view { display: block; font-size: 0.7rem; font-weight: 700; color: var(--primary); margin-top: 0.2rem; }

.products-cta {
  margin-top: var(--sp-xl);
  padding: var(--sp-l) var(--sp-l);
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.products-cta p { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.products-cta .btn-primary {
  box-shadow: 0 10px 22px -10px rgba(150,46,29,0.45);
  animation: cta-pulse 2.6s ease-in-out infinite;
}
.products-cta .btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgba(150,46,29,0.55);
  animation-play-state: paused;
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 22px -10px rgba(150,46,29,0.45); }
  50% { transform: scale(1.045); box-shadow: 0 14px 30px -8px rgba(150,46,29,0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .products-cta .btn-primary { animation: none; }
}

/* ============================================================
   8. PARTNERS — Đối tác quốc tế
   ============================================================ */
#partners { padding: var(--sec) 2rem; background: var(--surface-tint); }
.partners-inner { max-width: var(--maxw); margin: 0 auto; }
.partners-inner .sec-hdr { max-width: 860px; margin: 0 auto; text-align: center; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-l); margin-top: var(--sp-xl); }
.partner-card {
  position: relative; overflow: hidden; min-height: 230px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); text-align: center;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.partner-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: rgba(255,255,255,0);
  transition: background var(--mid) var(--ease);
  pointer-events: none;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(43,39,36,0.18); }
.partner-flag-bg { position: absolute; inset: 0; z-index: 0; }
.partner-flag-bg svg { width: 100%; height: 100%; display: block; }
.partner-card-content {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-m);
  padding: 1rem 1.1rem;
  margin: 1.25rem;
}
@media (hover: hover) and (pointer: fine) {
  .partner-card-content {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
  }
  .partner-card:hover .partner-card-content { opacity: 1; transform: translateY(0); }
  .partner-card:hover::before { background: rgba(255,255,255,0.55); }
}
.partner-card-title { font-family: var(--fh); font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.partner-card-desc { font-size: 0.88rem; line-height: 1.6; color: var(--muted); }

/* ============================================================
   9. PROCESS — Quy trình nhập khẩu — cung ứng
   ============================================================ */
#process { padding: var(--sec) 2rem; background: var(--bg); }
.process-inner { max-width: var(--maxw); margin: 0 auto; }
.process-inner .sec-hdr { max-width: 1040px; margin: 0 auto; text-align: center; }

.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-l); margin-top: var(--sp-xl); }
.process-step {
  position: relative; overflow: hidden; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l);
}
.process-step-photo { position: absolute; inset: 0; z-index: 0; }
.process-step-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process-step-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(250,246,241,0.97) 0%, rgba(250,246,241,0.9) 40%, rgba(250,246,241,0.45) 100%);
}
.process-step-content { position: relative; z-index: 1; padding: 1rem 0.5rem; min-height: 8rem; }
.process-num {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--fh); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 6px 14px -6px rgba(43,39,36,0.4);
}
.process-step-title { font-family: var(--fh); font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.5rem; white-space: nowrap; }
.process-step-desc { font-size: 0.8rem; line-height: 1.6; color: var(--muted); }

/* ============================================================
   10. GALLERY — Hình ảnh thực tế + Khách hàng hợp tác
   ============================================================ */
#gallery { padding: var(--sec) 2rem; background: var(--surface-tint); }
.gallery-inner { max-width: var(--maxw); margin: 0 auto; }
.gallery-inner .sec-hdr { max-width: 1080px; margin: 0 auto; text-align: center; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-l); margin-top: var(--sp-xl); }
.gallery-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(43,39,36,0.18); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item figcaption { padding: var(--sp-s) var(--sp-m); font-size: 0.82rem; line-height: 1.4; color: var(--muted); text-align: center; }

.clients-block { margin-top: var(--sp-xl); padding-top: var(--sp-l); border-top: 1px solid var(--border); text-align: center; }
.clients-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-m);
}
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.client-logo {
  aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m);
  padding: 0.75rem; overflow: hidden;
}
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============================================================
   11. CONTACT — Liên hệ / Báo giá
   ============================================================ */
#contact { padding: var(--sec) 2rem; background: var(--bg); }
.contact-inner { max-width: var(--maxw); margin: 0 auto; }
.contact-inner .sec-hdr { max-width: 680px; margin: 0 auto; text-align: center; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-xl); margin-top: var(--sp-xl); }

.contact-info { display: flex; flex-direction: column; gap: var(--sp-l); }
.contact-info-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.contact-info-value { font-size: 1.05rem; font-weight: 600; color: var(--ink); }

.contact-map { margin-top: var(--sp-s); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form { display: flex; flex-direction: column; gap: var(--sp-m); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-m); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-lbl { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.form-inp, .form-textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-m);
  color: var(--ink); font-size: 0.95rem; font-family: var(--fb);
  outline: none; transition: border-color var(--fast) var(--ease);
}
.form-inp:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; margin-top: 0.5rem; }
.form-error { display: none; font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.form-error.is-visible { display: block; }
.form-success { display: none; font-size: 0.98rem; font-weight: 600; color: var(--primary); padding: 1rem 0; }

/* ============================================================
   12. REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.footer-map {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250,246,241,0.12);
}
.footer-map-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(250,246,241,0.5);
  margin-bottom: 0.85rem;
}
.footer-map iframe {
  width: 100%; height: 200px; border: 1px solid rgba(250,246,241,0.15);
  border-radius: var(--r-m); display: block;
}
/* ============================================================
   13. FOOTER
   ============================================================ */
#footer { background: var(--ink); padding: var(--sp-xl) 2rem var(--sp-l); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-l);
  padding-bottom: var(--sp-l);
  border-bottom: 1px solid rgba(250,246,241,0.12);
  margin-bottom: var(--sp-m);
}
.footer-logo { font-family: var(--fh); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.85rem; color: rgba(250,246,241,0.6); max-width: 32ch; }
.footer-col-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,246,241,0.5); margin-bottom: 0.85rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a, .footer-contact li { font-size: 0.88rem; color: rgba(250,246,241,0.75); }
.footer-links a:hover { color: #fff; }

.footer-bottom { padding-top: var(--sp-m); }
.footer-copy { font-size: 0.85rem; color: rgba(250,246,241,0.6); }

/* ============================================================
   14. RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .nav-links { gap: 1.25rem; }
  .hero-inner { gap: var(--sp-l); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   15. RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 0 1.25rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: var(--sp-l); }
  .hero-sub { max-width: 100%; }
  #hero::after { background: rgba(250,246,241,0.82); }
  .network-card { max-width: 100%; padding: 1.5rem; }
  .network-list { gap: 0.6rem; }
  .network-list li { font-size: 0.88rem; gap: 0.6rem; }
  .network-flag { font-size: 1.6rem; width: 32px; }
  .network-card-label { margin-bottom: 0.6rem; }
  .network-card-foot { margin-top: 0.75rem; padding-top: 0.75rem; font-size: 0.78rem; }

  .about-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .product-tags { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .product-tag-btn { align-items: center; padding: 0.5rem; }
  .product-tag-img { width: 40px; height: 40px; }
  .product-tag-name { font-size: 0.76rem; line-height: 1.3; }
  .product-tag-view { font-size: 0.66rem; }
  .product-tags li:last-child:nth-child(odd) button { grid-column: 1 / -1; }
  .products-cta { flex-direction: column; align-items: flex-start; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step-title { font-size: 1.05rem; white-space: normal; }
  .process-step-desc { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }
  .process-step-content { padding: 1.25rem 0.75rem; min-height: auto; }
  .process-num { width: 50px; height: 50px; font-size: 1.05rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-m); }
  .contact-map { display: none; }
  .footer-map { display: block; }
  #contact { padding: 2.5rem 1.25rem; }
  .contact-grid { margin-top: 1.5rem; gap: 1.5rem; }
  .contact-info { gap: 1rem; }
  .contact-form { gap: 0.85rem; }
  .form-textarea { min-height: 80px; }
  .form-submit { width: 100%; }
  .footer-links-col { display: none; }
}

/* ============================================================
   16. RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  #gallery { padding-left: 1.25rem; padding-right: 1.25rem; }
  .metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .metric-pill {
    padding-left: 0.5rem;
    border-left: 1px solid var(--border-strong);
  }
  .metric-pill:first-child { padding-left: 0; border-left: none; }
  .pill-val { font-size: 1.3rem; }
  .pill-lbl { font-size: 0.66rem; line-height: 1.25; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-item figcaption { color: var(--ink-soft); font-weight: 500; font-size: 0.88rem; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   17. FLOATING QUICK-CONTACT — Zalo / Hotline / Email
   (Khối độc lập, không thuộc page section nào — đặt cuối file để
   không phải renumber các block 5-16. Responsive gộp luôn ở đây.)
   ============================================================ */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999; /* dưới #nav (1000) để không che lên mobile drawer khi mở */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(43,39,36,0.4);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.float-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -10px rgba(43,39,36,0.45);
}

.float-icon { width: 20px; height: 20px; flex-shrink: 0; }
.float-label { line-height: 1; }

.float-zalo    { background: #0068FF; } /* xanh nhận diện Zalo, để user thấy ngay đây là nút Zalo */
.float-hotline { background: var(--primary); }
.float-email   { background: var(--ink); }

@media (max-width: 768px) {
  .float-cta { right: 12px; bottom: 12px; gap: 10px; }
  .float-cta-btn {
    width: 46px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .float-label { display: none; }
}

/* ============================================================
   18. PRODUCT DETAIL MODAL — popup khi bấm 1 sản phẩm trong tag
   ============================================================ */
.product-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.product-modal[hidden] { display: none; }

.product-modal-backdrop {
  position: absolute; inset: 0; background: rgba(43,39,36,0.55);
}

.product-modal-card {
  position: relative; z-index: 1;
  background: var(--surface); border-radius: var(--r-l);
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  padding: var(--sp-l);
  box-shadow: 0 30px 60px -20px rgba(43,39,36,0.35);
}

.product-modal-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--surface-tint); color: var(--ink); font-size: 1.2rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.product-modal-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-m); background: var(--surface-tint); margin-bottom: var(--sp-m);
}

.product-modal-category {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 0.4rem;
}
.product-modal-name { font-family: var(--fh); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 0 0 0.2rem; }
.product-modal-altname { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.9rem; }
.product-modal-altname:empty { display: none; }
.product-modal-desc { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 1rem; }

.product-modal-note { background: var(--surface-tint); border-radius: var(--r-m); padding: 0.75rem 1rem; margin-bottom: 1.1rem; }
.product-modal-note p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

.product-modal-cta { width: 100%; }
