/* ==========================================================================
   DSB VIETNAM — one-page stylesheet (tối ưu, chỉ chứa CSS đang được sử dụng)
   Token system: ink navy + paper + customs-stamp amber, industrial/manifest tone
   ========================================================================== */

:root {
  --ink-950: #0a1f33;
  --ink-900: #0e2740;
  --ink-800: #14385f;
  --steel-500: #6f8ba6;
  --steel-300: #a9c0d4;
  --paper-000: #f7f5ee;
  --paper-100: #efece2;
  --paper-line: rgba(10, 31, 51, 0.12);
  --amber-500: #e9a23b;
  --amber-600: #cf8a26;
  --text-ink: #12202f;
  --text-muted: #4b5c6b;
  --white: #ffffff;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --header-h: 72px;
  --footer-h: 68px;
  --container: 1180px;
  --radius: 10px;
  --shadow-card: 0 12px 28px -16px rgba(10, 31, 51, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-ink);
  background: var(--paper-000);
  line-height: 1.55;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--footer-h) + 8px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-950); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }
.uppercase { text-transform: uppercase; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink-950); color: var(--white); padding: 10px 16px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--amber-500); color: var(--ink-950); box-shadow: 0 10px 20px -10px rgba(233, 162, 59, 0.6); }
.btn--primary:hover { background: var(--amber-600); }
.btn--outline { border-color: var(--ink-800); color: var(--ink-900); background: transparent; }
.btn--outline:hover { background: var(--ink-950); color: var(--white); }
.btn--ghost { border-color: var(--paper-line); color: var(--ink-900); background: var(--amber-500); }
.btn--ghost:hover { background: var(--paper-line); }

/* ==========================================================================
   HEADER — fixed
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: rgba(247, 245, 238, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--paper-line);
  z-index: 500;
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(10, 31, 51, 0.45); }
.site-header__inner {
  max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-950); }
.brand__mark { color: var(--amber-600); display: inline-flex; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.02em; }
.brand__name em { font-style: normal; color: var(--amber-600); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-800); position: relative; padding: 6px 2px; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--amber-500); transition: right 0.2s ease;
}
.site-nav a:hover::after { right: 0; }

.site-header__cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; width: 38px; height: 38px; border: 1px solid var(--paper-line);
  border-radius: 8px; background: var(--paper-100); position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   SECTION HEAD (shared)
   ========================================================================== */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head__lead { color: var(--text-muted); font-size: 1rem; }
.section-head__lead a { color: var(--amber-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   1. HERO / BANNER
   ========================================================================== */
.hero {
  background: radial-gradient(1100px 520px at 78% -10%, rgba(233, 162, 59, 0.16), transparent 60%), var(--ink-950);
  color: var(--white);
  padding: 72px 24px 88px;
}
.hero__inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.hero h1 em { font-style: normal; color: var(--amber-500); }
.hero__lead { color: var(--steel-300); font-size: 1.05rem; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }
.hero .btn--outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.hero .btn--outline:hover { background: var(--white); color: var(--ink-950); }

.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin: 0; }
.hero__stats div { border-left: 2px solid rgba(233, 162, 59, 0.5); padding-left: 12px; }
.hero__stats dt { font-family: var(--font-display); font-size: 1.6rem; color: var(--amber-500); }
.hero__stats dd { margin: 2px 0 0; font-size: 0.78rem; color: var(--steel-300); }

/* Signature element: route map */
.route-map { position: relative; height: 320px; }
.route-map__svg { width: 100%; height: 100%; }
.route-map__path { stroke: rgba(169, 192, 212, 0.45); stroke-width: 2; stroke-dasharray: 6 8; }
.route-map__dot { fill: var(--amber-500); }
.route-map__node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.route-map__node::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-950); border: 2px solid var(--amber-500); }
.route-map__code { font-family: var(--font-mono); font-size: 0.68rem; color: var(--amber-500); letter-spacing: 0.04em; margin-top: 6px; }
.route-map__label { font-size: 0.74rem; color: var(--steel-300); }

/* ==========================================================================
   2. PRICE LIST
   ========================================================================== */
.pricing { background: var(--paper-100); padding: 96px 24px; }
.price-table-wrap {
  max-width: var(--container); margin: 0 auto 32px; overflow-x: auto;
  border-radius: var(--radius); border: 1px solid var(--paper-line); background: var(--white);
}
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th {
  text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white); background: var(--ink-950); padding: 14px 16px;
}
.price-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--paper-line); font-size: 0.95rem; font-weight: 600; }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: var(--paper-100); }
.price-table tbody tr:hover { background: rgba(233, 162, 59, 0.1); }
.pricing__cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   3. OUR VALUE
   ========================================================================== */
.ourvalue { background: url(./Ban-do-the-gioi.png); padding: 96px 24px; }

.value-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  text-align: center; 
}
.value-box { text-align: center; transition: transform 0.2s ease; }
.value-box:hover { transform: translateY(-4px); }
.value-box__icon { margin: 0 auto 16px; }
.value-box h4 { font-size: 1.05rem; }
.value-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ==========================================================================
   4. WHY CHOOSE US (stat band)
   ========================================================================== */
.why { background: var(--ink-950); padding: 72px 24px; }
.why-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  text-align: center; color: var(--white);
}
.why-stat h2 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 8px; }
.why-stat h3 { color: var(--white); font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   5. PARTNERS
   ========================================================================== */
.partners { padding: 96px 24px 108px; overflow: hidden; }
.partners__marquee {
  max-width: var(--container); margin: 0 auto; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners__track { display: flex; align-items: center; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   FOOTER — fixed
   ========================================================================== */
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--footer-h);
  background: var(--ink-950); color: var(--steel-300);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 400;
}
.site-footer__inner {
  max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-footer__brand { font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1rem; flex-shrink: 0; }
.site-footer__brand em { font-style: normal; color: var(--amber-500); }
.site-footer__contact { display: flex; gap: 20px; flex-shrink: 0; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--white); font-weight: 500; }
.site-footer__contact a:hover { color: var(--amber-500); }
.footer__disclaimer { margin: 0; font-size: 0.72rem; color: var(--steel-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   POPUP ARENA — floating quick contact
   ========================================================================== */
.popuparena { position: fixed; right: 24px; bottom: calc(var(--footer-h) + 20px); z-index: 450; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.popuparena__toggle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--amber-500); color: var(--ink-950); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(233, 162, 59, 0.7);
  transition: transform 0.2s ease;
}
.popuparena__toggle:hover { transform: scale(1.06); }
.popuparena__panel {
  display: none; flex-direction: column; gap: 10px; background: var(--white);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-card);
  min-width: 220px; border: 1px solid var(--paper-line);
}
.popuparena__panel.show { display: flex; }
.popuparena__title { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.popuparena__panel a { font-weight: 600; font-size: 0.95rem; color: var(--ink-950); padding: 8px 10px; border-radius: 6px; background: var(--paper-100); }
.popuparena__panel a:hover { background: var(--amber-500); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .route-map { height: 240px; order: -1; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; --footer-h: 96px; }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper-000); border-bottom: 1px solid var(--paper-line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-nav.show { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
  .nav-toggle { display: inline-block; }
  .site-header__cta .btn--ghost span { display: none; }

  .hero { padding: 52px 20px 64px; }
  .hero__stats { grid-template-columns: repeat(2, auto); row-gap: 20px; }

  .value-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }

  .site-footer__inner { flex-wrap: wrap; align-items: flex-start; padding: 10px 20px; gap: 6px 20px; }
  .footer__disclaimer { white-space: normal; width: 100%; order: 3; }
  .popuparena { right: 16px; bottom: calc(var(--footer-h) + 16px); }
}
