/* ==========================================================================
   base.css — NỀN TẢNG DÙNG CHUNG CHO MỌI TRANG
   Gồm: biến thiết kế (màu, font, bo góc), reset, chữ, bố cục cơ bản, nút,
   biểu tượng, tiêu đề mục, danh sách tick, hiệu ứng hiện dần.
   Muốn đổi màu thương hiệu → sửa các biến trong :root bên dưới.
   ========================================================================== */

:root {
  /* Màu thương hiệu (lấy từ logo: #2ECC40) */
  --green: #2ecc40;
  --green-600: #25b236;
  --green-700: #147a24;      /* xanh đậm: dùng cho chữ/link trên nền sáng (đủ tương phản) */
  --green-100: #e3f8e6;
  --green-50: #f1fbf2;

  --forest: #0b3320;         /* xanh rừng: nền tối, footer */
  --forest-900: #082417;
  --forest-700: #124a2c;

  --ink: #10241a;            /* màu chữ chính */
  --muted: #52645a;          /* chữ phụ */
  --line: #e2e6dc;           /* đường viền */
  --bg: #fbfaf6;             /* nền trang */
  --bg-alt: #f2f6ee;         /* nền mục xen kẽ */
  --white: #ffffff;

  /* Màu phụ theo nhóm sản phẩm */
  --teal: #0e7490;
  --teal-50: #e1f3f5;
  --amber: #f5b940;
  --amber-700: #a85a06;
  --amber-50: #fff1d6;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 51, 32, .06), 0 4px 14px -6px rgba(11, 51, 32, .12);
  --shadow: 0 1px 2px rgba(11, 51, 32, .05), 0 18px 40px -18px rgba(11, 51, 32, .22);

  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.22;               /* đủ cao để không cắt dấu tiếng Việt */
  letter-spacing: -.012em;
  text-wrap: balance;               /* cân bằng dòng, tránh 1 chữ lẻ cuối dòng */
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- Bố cục ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 40px, var(--container)); }
  .section { padding: 56px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Tiêu đề mục ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.eyebrow--light { color: var(--green); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-title--sm { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.section-title--light { color: #fff; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }

/* ---------- Biểu tượng (sprite: /assets/img/icons.svg) ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--tone-bg, var(--green-100)); color: var(--tone-fg, var(--green-700));
  font-size: 1.4rem;
}
.icon-tile--lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.7rem; }

/* Màu theo nhóm sản phẩm: thêm class tone-seafood | tone-food | tone-raw vào thẻ cha */
.tone-seafood { --tone-bg: var(--teal-50); --tone-fg: var(--teal); }
.tone-food { --tone-bg: var(--amber-50); --tone-fg: var(--amber-700); }
.tone-raw { --tone-bg: var(--green-100); --tone-fg: var(--green-700); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { transition: transform .2s ease; }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary { background: var(--green); color: var(--forest-900); box-shadow: 0 8px 22px -10px rgba(46, 204, 64, .9); }
.btn--primary:hover { background: #3ad94c; box-shadow: 0 12px 26px -10px rgba(46, 204, 64, 1); }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--forest-700); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); }
.btn--outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.04rem; }

/* ---------- Liên kết mũi tên, danh sách tick ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--green-700);
}
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

.checklist { display: grid; gap: 12px; margin: 24px 0 32px; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist .icon {
  width: 1.5rem; height: 1.5rem; padding: .28rem; margin-top: .1rem;
  background: var(--green-100); color: var(--green-700); border-radius: 50%; stroke-width: 3;
}
.checklist--sm { margin: 14px 0 0; gap: 8px; font-size: .96rem; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 600;
}
.chip .icon { color: var(--green-700); }

/* ---------- Hiện dần khi cuộn (js/common.js thêm class .is-visible) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
