/* Emery – Gửi hàng đi nước ngoài */
:root {
  --ink: #14213D;
  --body: #3B4659;
  --muted: #4A5568;
  --bg: #F5F6F8;
  --line: #D9DDE4;
  --orange: #C2410C;
  --orange-ink: #9A3412;
  --orange-soft: #FFF1E6;
  --zalo: #0068FF;
  --navy-card: #1F2E52;
  --peach: #FDBA74;
  --link: #1D4ED8;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #1E3A8A; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #E2E5EA; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { font-size: 14px; color: var(--body); font-weight: 600; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: #EEF1F5; color: var(--ink); }
.main-nav a[aria-current="page"] { font-weight: 700; background: #E8ECF2; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; color: var(--ink); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 700; font-size: 17px; text-decoration: none; color: #fff; }
.btn:hover { color: #fff; filter: brightness(0.92); }
.btn-zalo { background: var(--zalo); }
.btn-call { background: var(--orange); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; min-height: 50px; }

/* Hero */
.hero { background: #fff; }
.hero .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 56px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--orange-ink); background: var(--orange-soft); padding: 6px 12px; border-radius: 999px; }
h1 { margin: 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: 18px; color: var(--body); max-width: 560px; }
.lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.small-note { margin: 0; font-size: 15px; color: var(--muted); }

/* Calculator */
.calc { flex: 1 1 360px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 12px 32px rgba(20, 33, 61, 0.08); display: flex; flex-direction: column; gap: 18px; }
.calc h2 { margin: 0; font-size: 22px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--body); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button, .chips button { min-height: 46px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 46px; height: 46px; flex: none; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper output { flex: 1 1 auto; text-align: center; font-size: 24px; font-weight: 800; }
.calc input[type="range"] { width: 100%; min-height: 28px; accent-color: var(--orange); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.result { background: var(--bg); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.result .label { font-size: 14px; color: var(--muted); }
.result .total { font-size: 32px; font-weight: 800; color: var(--orange-ink); line-height: 1.2; }
.result .note { font-size: 13px; color: var(--muted); }
.fine { margin: 0; font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section-white { background: #fff; }
.section > .container { display: flex; flex-direction: column; gap: 24px; }
.section-title { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.25; }
.section-head { display: flex; flex-direction: column; gap: 6px; }
.section-head p { margin: 0; color: var(--muted); }
.section-note { margin: 0; font-size: 14px; color: var(--muted); }
.section-link { margin: 0; font-size: 15px; color: var(--body); }
.section-link a { font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards-wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--body); }
.card svg { width: 32px; height: 32px; }
.fact { font-size: 28px; font-weight: 800; color: var(--orange-ink); line-height: 1.2; }

/* Price table */
.chips-row { display: flex; flex-wrap: wrap; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border-radius: 999px; padding: 0 18px; min-height: 44px; }
.price-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px; }
.price-grid li span { white-space: nowrap; }
.price-grid[hidden] { display: none; }
.price-grid li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.price-grid .kg { color: var(--body); }
.price-grid .vnd { font-weight: 700; }

/* Goods */
.goods { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.goods .card { padding: 24px; gap: 12px; }
.goods .ok { border-top: 4px solid #15803D; }
.goods .no { border-top: 4px solid #B91C1C; }
.goods h3 { font-size: 19px; }
.goods ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.goods .card .sub { font-size: 14px; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #E4E7EC; }
.gallery figcaption { font-size: 15px; color: var(--body); }

/* Steps */
.steps { background: var(--ink); color: #fff; }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { background: var(--navy-card); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step-no { font-size: 30px; font-weight: 800; color: var(--peach); }
.steps h3 { margin: 0; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; color: #D6DCE8; }

/* FAQ */
.faq > .container { max-width: 820px; gap: 16px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: #fff; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--body); }

/* CTA band */
.cta-band { background: var(--orange-soft); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band .copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.cta-band h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.25; }
.cta-band p { margin: 0; color: var(--body); }
.cta-band p a { font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #D6DCE8; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 40px; padding-bottom: 96px; }
.site-footer .col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #fff; }
.footer-brand { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: 0.04em; }
.footer-phone { font-weight: 700; }

/* Floating contact */
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; gap: 10px; }
.float-contact .btn { min-height: 50px; padding: 0 20px; border-radius: 999px; font-size: 16px; box-shadow: 0 6px 18px rgba(20, 33, 61, 0.25); }

/* Phones */
@media (max-width: 760px) {
  .site-header { position: static; }
  .site-header .container { gap: 4px; }
  .header-actions { display: none; }
  .main-nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-nav a { justify-content: center; text-align: center; white-space: normal; padding: 4px 6px; font-size: 14px; line-height: 1.25; }
  .hero .container { padding-top: 32px; padding-bottom: 40px; gap: 32px; }
  .calc { padding: 18px; }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .price-grid li { font-size: 13.5px; padding: 9px 10px; gap: 4px; }
  .section { padding: 48px 0; }
  .float-contact { left: 0; right: 0; bottom: 0; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -4px 16px rgba(20, 33, 61, 0.12); }
  .float-contact .btn { flex: 1; border-radius: 12px; box-shadow: none; }
  .site-footer .container { padding-bottom: 110px; }
}
