/* ECO POS — shared stylesheet
   Design tokens sampled from the previous live build (Be Vietnam Pro font,
   navy/teal brand, blue CTA) so the visual identity carries over. */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  --bg: oklch(0.98 0.008 240);
  --surface: #ffffff;
  --text: oklch(0.22 0.02 250);
  --text-muted: oklch(0.45 0.02 250);
  --border: oklch(0.9 0.01 240);

  --navy: #1a3a6b;
  --teal: #4fd1a5;

  --primary: oklch(0.52 0.17 255);
  --primary-hover: oklch(0.46 0.17 255);
  --primary-contrast: #ffffff;

  --badge-bg: oklch(0.94 0.03 155);
  --badge-text: oklch(0.38 0.1 155);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 99px;

  --container: 1160px;
  --shadow-card: 0 1px 2px rgba(20, 30, 60, 0.04), 0 8px 24px rgba(20, 30, 60, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; color: var(--text); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; color: var(--text-muted); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 252, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.logo .eco { color: var(--navy); }
.logo .pos { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-desktop-only { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Badge / pill ---------- */
.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 20px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .badge { display: inline-block; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; }
.alt-bg { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  text-align: center;
  background:
    radial-gradient(circle at 14% 20%, oklch(0.9 0.06 165 / 45%), transparent 42%),
    radial-gradient(circle at 88% 12%, oklch(0.82 0.09 255 / 35%), transparent 45%),
    radial-gradient(circle at 50% 100%, oklch(0.94 0.02 230), transparent 60%),
    linear-gradient(180deg, oklch(0.96 0.015 230) 0%, var(--bg) 65%);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 380px; height: 380px;
  top: -160px; left: -110px;
  background: var(--teal);
  opacity: .3;
}
.hero::after {
  width: 460px; height: 460px;
  top: -140px; right: -160px;
  background: var(--primary);
  opacity: .22;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 52px; max-width: 820px; margin: 0 auto .5em; }
.hero .lead { font-size: 18px; max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-notes { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); font-weight: 600; }

@media (max-width: 640px) {
  .hero h1 { font-size: 36px; }
  section { padding: 56px 0; }
}

/* Hero with a blurred photo background (vmspos.net-style) — opt-in modifier,
   layered over the base .hero rules above via source-order (same specificity,
   declared later wins per-property). Only applied where a real product photo
   is available; other .hero sections keep the plain gradient. */
.hero-photo { padding: 108px 0 116px; }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -30px;
  width: auto;
  height: auto;
  border-radius: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center 32%;
  filter: blur(8px) brightness(.5) saturate(1.15);
  transform: scale(1.06);
  opacity: 1;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
  opacity: 1;
  background: linear-gradient(180deg, rgba(8,16,32,.62) 0%, rgba(8,16,32,.74) 55%, var(--bg) 100%);
}
.hero-photo .badge { background: rgba(255,255,255,.15); color: #eafff5; backdrop-filter: blur(4px); }
.hero-photo h1 { color: #fff; }
.hero-photo .lead { color: rgba(255,255,255,.88); }
.hero-photo .hero-notes span { color: rgba(255,255,255,.85); }
.hero-photo .btn-outline { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); }
.hero-photo .btn-outline:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
@media (max-width: 640px) {
  .hero-photo { padding: 88px 0 96px; }
  .hero-photo::before { background-position: center 25%; }
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 15px; }

/* Benefit list */
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .benefit-list { grid-template-columns: 1fr; } }
.benefit-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; font-weight: 600; font-size: 15px;
}
.benefit-list .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--badge-bg); color: var(--badge-text);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* Quote / philosophy */
.quote-block { text-align: center; max-width: 720px; margin: 0 auto; }
.quote-block blockquote { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 16px; font-style: italic; }
.quote-block cite { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--teal); font-style: normal; }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--text-muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer { padding: 0 22px 20px; margin: 0; font-size: 15px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: 32px; }
.cta-band .btn { min-width: 200px; }

/* Empty state (docs / store while content isn't ready yet) */
.empty-state {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-md);
  padding: 48px 32px;
}
.empty-state .icon { margin: 0 auto 16px; width: 48px; height: 48px; color: var(--teal); }
.empty-state h3 { font-size: 19px; margin-bottom: 8px; }

/* Contact card */
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 40px 32px; box-shadow: var(--shadow-card);
}
.contact-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }

/* Simple form */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-card); max-width: 440px;
}
.form-card h3 { font-size: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 15px;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg);
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill { position: relative; flex: 1; min-width: 100px; }
.radio-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: block; text-align: center; padding: 10px 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-muted);
}
.radio-pill input:checked + span { border-color: var(--primary); color: var(--primary); background: color-mix(in oklch, var(--primary) 10%, transparent); }
.form-note { font-size: 13px; text-align: center; margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 12px; border-radius: var(--radius-sm); background: var(--badge-bg); color: var(--badge-text); font-weight: 700; font-size: 14px; margin-top: 14px; }

/* Two-column layout (demo page) */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0f1b33; color: #cbd5e1; padding: 64px 0 32px; }
.site-footer .logo .eco { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer p { color: #93a1b8; font-size: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #cbd5e1; font-size: 14px; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #7c8aa0;
}

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; margin-bottom: 10px; display: block; }

/* ---------- Floating Zalo button ---------- */
.zalo-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}
.zalo-float:hover { transform: scale(1.08); }
.zalo-float svg { width: 100%; height: 100%; }
.zalo-float-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0068FF;
  opacity: .55;
  animation: zalo-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes zalo-ping {
  0% { transform: scale(1); opacity: .55; }
  75%, 100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) {
  .zalo-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
