/* ============================================================
   B2B Việt Nam — shared base for company landing pages
   Theme-agnostic scaffold; each company themes via its own CSS.
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* Shared container (a company may override the max-width) */
.container {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

/* Reveal-on-scroll (driver in busan::layout.company) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in,
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Floating "home" pill (rendered once by the shared layout) */
.home-btn {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 40px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Floating VI/EN switch — stacks above the home pill (rendered by the shared layout) */
.b2b-lang {
  position: fixed;
  left: 18px;
  bottom: 64px;
  z-index: 9999;
  display: flex;
  gap: 3px;
  background: #fff;
  padding: 4px;
  border-radius: 40px;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.b2b-lang a {
  padding: 6px 13px;
  border-radius: 40px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  color: #64748b;
}

.b2b-lang a.on {
  background: #0f172a;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }
}