/* ============================================================
   VNGG TECHNOLOGY — Shared site stylesheet
   Used by: navbar, footer, floating CTA, shared buttons, base layout
   Loaded via <link rel="stylesheet" href="/assets/site.css">
   ============================================================ */

/* --- Base reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', Inter, system-ui, sans-serif;
  color: #1F2937;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section spacing --- */
.section { padding: 96px 0; }
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 640px)  { .section { padding: 48px 0; } }

/* --- Navbar --- */
.navbar { transition: box-shadow 0.3s; }
.navbar.scrolled { box-shadow: 0 2px 16px rgba(15,37,71,0.12); }

/* --- Nav links --- */
.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.15s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: #F5B91F;
  transition: width 0.2s;
}
.nav-link:hover { color: #1E3A6B; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #1E3A6B; font-weight: 600; }
.nav-link.active::after { width: 100%; }

/* --- Mobile menu — hidden by default, shown when .open --- */
#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }
@media (min-width: 1024px) { #mobile-menu { display: none !important; } }

/* --- Gold CTA button --- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5B91F;
  color: #0F2547;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-gold:hover { background: #D89E0E; transform: translateY(-1px); }

/* Shine sweep effect */
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-gold:hover::before { left: 150%; }

/* --- Ghost Navy button --- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1E3A6B;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid #1E3A6B;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: #F5B91F;
  background: rgba(30,58,107,0.05);
  color: #1E3A6B;
}

/* --- Footer links --- */
.footer-link {
  color: #94a3b8;
  font-size: 15px;
  transition: color 0.15s;
  text-decoration: none;
}
.footer-link:hover { color: #F5B91F; }

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.floating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  background: #1E3A6B;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15,37,71,0.25);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.floating-btn:hover {
  background: #0F2547;
  box-shadow: 0 6px 24px rgba(245,185,31,0.35);
  transform: translateY(-2px);
}
.floating-btn .fb-icon { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 640px) {
  .floating-cta { bottom: 16px; right: 16px; gap: 8px; }
  .floating-btn { padding: 9px 12px; font-size: 13px; }
  .floating-btn .fb-label { display: none; }
}

/* --- Skeleton — avoid FOUC layout shift while partials load --- */
#site-header { display: block; min-height: 72px; }
#site-footer { display: block; min-height: 360px; background: #0F2547; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   SHARED DESIGN SYSTEM — Cards, Typography, Animations
   Extended from index.html + san-pham/index.html patterns
   ============================================================ */

/* --- Card base --- */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(15,37,71,0.08);
  border: 1px solid #E2E8F0;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: #F5B91F;
  box-shadow: 0 12px 32px rgba(15,37,71,0.16);
  transform: translateY(-4px);
}

/* --- Feature card — extends .card with top-line accent --- */
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5B91F, #1E3A6B);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.feature-card:hover::before { opacity: 1; }

/* --- Eyebrow labels — NO pill/badge, always line + uppercase --- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1E3A6B;
  padding-bottom: 6px;
  border-bottom: 2px solid #F5B91F;
  margin-bottom: 16px;
}
.eyebrow-white {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F5B91F;
  padding-bottom: 6px;
  border-bottom: 2px solid #F5B91F;
  margin-bottom: 16px;
}

/* --- Section headings --- */
.section-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #0F2547;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-h2-white {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

/* --- Hero H1 --- */
.hero-h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: #0F2547;
}
.hero-h1.on-dark { color: #fff; }

/* --- Text gradient --- */
.text-gradient {
  background-image: linear-gradient(120deg, #F5B91F 0%, #D89E0E 60%, #1E3A6B 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Gold divider --- */
.gold-divider {
  width: 64px;
  height: 4px;
  background: #F5B91F;
  border-radius: 2px;
  margin: 0 0 24px 0;
}

/* --- Hero background animations --- */
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 32px 32px; }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(30,58,107,0.12) 1px, transparent 0);
  background-size: 32px 32px;
  animation: gridDrift 14s linear infinite;
  pointer-events: none;
}

.hero-tech-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(245,185,31,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  animation: gridDrift 14s linear infinite;
  pointer-events: none;
}

/* --- Hero glow blob --- */
.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,185,31,0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Ghost White button (for dark backgrounds) --- */
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-ghost-white:hover {
  border-color: #F5B91F;
  background: rgba(255,255,255,0.08);
}

/* --- Logo marquee — infinite horizontal scroll (ticker style) --- */
.logo-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fade edges so chips appear/disappear softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: logoMarquee 30s linear infinite;
}
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-chip {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 10px 20px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect reduced motion for reveal and hero animations */
@media (prefers-reduced-motion: reduce) {
  .hero-grid-bg,
  .hero-tech-bg { animation: none !important; }
  .logo-marquee-track { animation: none !important; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
