/* Saigon OEM — shared styles. Mobile first, no external fonts. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d1f1c;
  --muted: #5d615a;
  --line: #e7e2d8;
  --brand: #22413a;
  --brand-2: #2f5a50;
  --sand: #efe9df;
  --accent: #a8814f;
  --zalo: #0068ff;
  --radius: 14px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the mobile action bar */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(1.85rem, 5.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--sand { background: var(--sand); }
.section--brand { background: var(--brand); color: #fff; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.lead { font-size: 1.08rem; color: var(--muted); }
.section--brand .lead, .section--brand .muted { color: rgba(255,255,255,.78); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { background: #0057d6; }
.btn--light { background: #fff; color: var(--brand); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.92); backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: none; }
.nav a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; font-weight: 600; }
.lang a { padding: 5px 10px; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.menu-btn {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }

@media (min-width: 960px) {
  .nav { display: flex; gap: 26px; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 32px; }
.hero p.lead { max-width: 560px; }
.hero-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.hero-note span::before { content: "✓"; color: var(--brand); margin-right: 6px; font-weight: 700; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
}

/* Placeholder images (swap for real <img> later) */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(145deg, #e9e2d5, #d8cfbf);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; color: rgba(29,31,28,.45); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }
.ph .bottle {
  width: 28%; aspect-ratio: 1 / 2.4; border-radius: 18px 18px 14px 14px;
  background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.35));
  box-shadow: 0 18px 40px rgba(34,65,58,.12);
  position: relative;
}
.ph .bottle::before {
  content: ""; position: absolute; left: 30%; right: 30%; top: -14%; height: 14%;
  background: var(--brand); border-radius: 6px 6px 0 0; opacity: .85;
}
.ph-label { position: absolute; bottom: 12px; left: 14px; }

/* USP cards */
.usp-grid { display: grid; gap: 14px; }
.usp {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.usp-num { font-size: 2rem; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.usp p { color: var(--muted); margin: 0; }
@media (min-width: 760px) { .usp-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Product cards */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .ph { border-radius: 0; aspect-ratio: 1 / 1; }
.card-body { padding: 14px 16px 18px; }
.card-body h3 { font-size: 1rem; margin-bottom: 4px; }
.card-body p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (min-width: 760px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card--more { justify-content: center; align-items: center; text-align: center; padding: 24px; background: var(--sand); border-style: dashed; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 26px 56px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}
.steps li::after {
  content: ""; position: absolute; left: 18.5px; top: 42px; bottom: 4px; width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; }
.steps p { color: var(--muted); margin: 0; font-size: .94rem; }
.tag { display: inline-block; font-size: .75rem; background: var(--sand); color: var(--brand); padding: 2px 10px; border-radius: 999px; margin-left: 6px; font-weight: 600; vertical-align: middle; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps li { padding: 54px 0 0; }
  .steps li::after { left: 46px; right: -14px; top: 19px; bottom: auto; width: auto; height: 1px; }
}

/* Two-column feature blocks */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--rev > :first-child { order: 2; } }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.badges li { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 24px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }
.cta-band h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
.site-footer h4 { color: var(--ink); font-size: .9rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.action-bar .btn { min-height: 46px; padding: 0 12px; font-size: .92rem; }
@media (min-width: 960px) { .action-bar { display: none; } body { padding-bottom: 0; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Hero image: shorter on phones so the USPs come sooner */
.hero .ph { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .hero .ph { aspect-ratio: 4 / 5; } }

/* ---------- Inner pages ---------- */
.page-head { padding: 24px 0 32px; }
@media (min-width: 900px) { .page-head { padding: 40px 0 48px; } }
.page-head .split { margin-top: 4px; }
.page-head .btn-row { margin-top: 8px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { margin: 0 6px; opacity: .5; }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 0; }
.mini-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mini-grid { grid-template-columns: repeat(5, 1fr); } }
.mini-grid .usp { padding: 20px; }
.mini-grid .usp p { font-size: .9rem; }
.two-col { display: grid; gap: 16px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 20px; } }
.two-col .checklist { margin-bottom: 0; }
.card-grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
figure.card { margin: 0; }
figure.card:hover { transform: none; border-color: var(--line); }
.gallery { display: grid; gap: 12px; }
.cert h3 { font-size: 1.4rem; color: var(--brand); }

/* Spec table */
.spec { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.spec th, .spec td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 40%; color: var(--muted); font-weight: 600; }

/* Vertical steps (process page) */
.steps--vertical { grid-template-columns: 1fr !important; gap: 0 !important; }
.steps--vertical li { padding: 0 0 34px 56px !important; }
.steps--vertical li::after { left: 18.5px !important; top: 42px !important; bottom: 4px !important; right: auto !important; width: 1px !important; height: auto !important; }
.steps--vertical h3 { font-size: 1.15rem; }
.step-result { margin-top: 8px !important; font-size: .9rem !important; color: var(--brand) !important; font-weight: 600; }

/* Contact */
.contact-card { display: flex; flex-direction: column; }
.contact-card .contact-val { color: var(--ink); font-weight: 600; margin: 8px 0 16px; }
.contact-card .btn { margin-top: auto; }
.btn--wa { background: #1f8f4e; color: #fff; }
.btn--wa:hover { background: #187a42; }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
@media (min-width: 640px) { .form { padding: 32px; } }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,65,58,.12); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-weight: 600; color: var(--brand); }
.form-status:empty { display: none; }
.form-fallback { background: var(--sand); border-radius: 10px; padding: 16px; }
.form-fallback textarea { font-size: .88rem; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blog */
.post-list { display: grid; gap: 0; }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { color: var(--brand); }
.post-meta { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; height: auto; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose a { color: var(--brand); }
@media (max-width: 899px) { .page-head .ph--square { aspect-ratio: 16 / 10; } }
