/* =========================================================
   Yechai – Thu mua ve chai tận nơi
   Phong cách: editorial, ấm áp, tối giản (tham chiếu Coverly)
   Mobile-first: CSS gốc cho mobile, mở rộng ở 768px, 1000px, 1200px
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --color-bg:        #F7F4EE;
  --color-surface:   #ECE8E1;
  --color-text:      #1C1C1C;
  --color-muted:     #6B6B6B;
  --color-accent:    #E8590C;
  --color-accent-dark: #C2470A;
  --color-eco:       #2F7D4F;
  --color-dark:      #121212;
  --color-dark-hover: #2A2A2A;
  --color-on-dark:   #F7F4EE;
  --color-on-dark-muted: #A8A39A;
  --color-white:     #FFFFFF;
  --color-border:    #DDD8CF;
  --color-border-dark: #2C2C2C;
  --color-zalo:      #0068FF;
  --color-overlay:   rgba(247, 244, 238, 0.92);
  --shadow-soft:     0 20px 50px rgba(0, 0, 0, 0.12);

  --font-heading: "Lora", Georgia, serif;
  --font-body:    "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-section: clamp(48px, 5vw, 64px);
  --gutter: 20px;
  --max-width: 1200px;
  --frame-width: 1440px;
  --split-gap: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 700ms;
}

/* ---------- Reset & nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Kiểu chữ & khung section dùng chung ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 18px;
}
.section { padding: var(--space-section) 0; }
.section--first { padding-top: 32px; }
.section__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.section__lead {
  color: var(--color-muted);
  margin-top: 18px;
  max-width: 54ch;
}
/* Header section 1 cột (Dịch vụ) */
.section__stack { margin-bottom: 48px; }
.section__stack .btn { margin-top: 28px; }
/* Header section tách: nhãn trái · tiêu đề phải (các phần dưới của Coverly) */
.section__split { margin-bottom: 44px; }
.section__btn { margin-top: 28px; }

.placeholder-note { color: var(--color-muted); font-size: 14px; margin-top: 12px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--primary, .btn--dark { background: var(--color-dark); color: var(--color-on-dark); }
.btn--primary:hover, .btn--dark:hover { background: var(--color-dark-hover); }
.btn--block-mobile { width: 100%; }

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-more:hover { color: var(--color-accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--color-border); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.logo__img { height: 34px; width: auto; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 14px 14px;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.menu-toggle {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-size: 17px;
  cursor: pointer;
}
.menu-toggle__icon { width: 24px; height: 24px; }
.header-cta { display: none; }

/* Menu thả xuống (dùng cho mọi kích thước, giống nút "Menu" của Coverly) */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 8px var(--gutter) 28px;
  border-bottom: 1px solid var(--color-border);
  display: none;
}
.nav.is-open { display: block; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-heading);
  font-size: 24px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.nav__link:hover { color: var(--color-accent-dark); }

/* ---------- Hero ---------- */
.hero__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero__side { margin-top: 22px; }
.hero__lead { color: var(--color-muted); max-width: 44ch; }
.hero__title + .hero__lead { margin-top: 20px; font-size: 19px; }
.hero__side .btn { margin-top: 28px; }



/* Thẻ mã QR cài app */
.qr-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 460px;
  padding: 16px;
  background: var(--color-surface);
  text-decoration: none;
  transition: background-color 250ms ease;
}
.qr-card:hover { background: var(--color-border); }
.qr-card__img {
  flex: none;
  width: 120px;
  height: 120px;
  background: var(--color-white);
  image-rendering: pixelated;
}
.qr-card__text { display: grid; gap: 6px; font-size: 15px; color: var(--color-muted); }
.qr-card__text strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--color-text);
}

/* Thanh "Xem giá" theo nhóm */
.hero-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
  padding: 8px;
  background: var(--color-surface);
  border-radius: 24px;
}
.hero-pill__label { font-size: 14px; font-weight: 500; padding: 0 10px 0 14px; }
.hero-pill__item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
  border-radius: 999px;
}
.hero-pill__item:hover { color: var(--color-text); background: var(--color-bg); }
.hero-pill__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-dark);
  background: var(--color-dark);
  border-radius: 999px;
  text-decoration: none;
}
.hero-pill__btn:hover { background: var(--color-dark-hover); }

/* ---------- Con số ---------- */
.stats__inner { display: grid; gap: 48px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.stat { display: flex; flex-direction: column; justify-content: space-between; }
.stat__label { font-size: 14px; line-height: 1.4; }
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 11vw, 5rem);
  line-height: 1;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.stat__value sup {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  color: var(--color-muted);
  margin-top: 10px;
}
.stats__media { overflow: hidden; }
.stats__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 40% 50%; }
/* Ảnh chụp ngang 3:2: hiện trọn khung, không cắt người */
.stats__media.stats__media--photo img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
.why__media.why__media--wide img { height: auto; aspect-ratio: 1400 / 788; }

/* ---------- Dịch vụ ---------- */
.services__grid { display: grid; gap: 16px; }
.services__head { display: grid; gap: 20px; margin-bottom: 32px; }
.services__head-side .btn { margin-top: 20px; }
/* Thẻ ngang: hình trái · tiêu đề + mô tả phải → 6 thẻ gọn trong 1 khung hình */
.service-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--color-surface);
  padding: 16px;
  transition: background-color 250ms ease;
}
.service-card:hover { background: var(--color-border); }
.icon-box {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 2px;
}
.icon-box svg { width: 22px; height: 22px; }
.service-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
}
.service-card__title .icon-box { flex: none; width: 30px; height: 30px; }
.service-card__title .icon-box svg { width: 17px; height: 17px; }
.service-card__media { overflow: hidden; aspect-ratio: 1 / 1; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__text { color: var(--color-muted); margin-top: 8px; font-size: 15px; }
.service-card__text a,
.fee-panel a { color: var(--color-accent-dark); }

/* Bảng phí dịch vụ · phí cồng kềnh · cách tính giá bậc thang */
.fees { display: grid; gap: 16px; margin-top: 16px; }
.fee-panel { padding: 22px; background: var(--color-surface); border-top: 3px solid var(--color-accent); }
.fee-panel__title { font-family: var(--font-heading); font-weight: 400; font-size: 21px; }
.fee-list { margin: 12px 0 0; padding: 0; list-style: none; }
.fee-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  border-top: 1px solid var(--color-border);
}
.fee-list strong { font-weight: 600; text-align: right; }
.fee-list .fee-list__free { color: var(--color-eco); }
.fee-panel__note { margin-top: 12px; font-size: 14px; color: var(--color-muted); }
.fee-panel__example { margin-top: 12px; padding: 12px; font-size: 14px; background: var(--color-bg); border-radius: 4px; }
.ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.ladder__step { display: grid; gap: 2px; padding: 10px 8px; background: var(--color-bg); border-radius: 4px 4px 0 0; }
.ladder__step:nth-child(1) { min-height: 72px; }
.ladder__step:nth-child(2) { min-height: 92px; }
.ladder__step:nth-child(3) { min-height: 112px; color: var(--color-white); background: var(--color-eco); }
.ladder__name { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.ladder__kg { font-size: 13px; opacity: 0.8; }
.ladder__step strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.ladder__keep { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--color-eco); }

/* ---------- Bảng giá ---------- */
.prices__tools { display: grid; gap: 16px; margin-bottom: 28px; }
.prices__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 4px;
}
.prices__tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.tab:hover { border-color: var(--color-text); }
.tab[aria-selected="true"] { background: var(--color-dark); border-color: var(--color-dark); color: var(--color-on-dark); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}
.search svg { width: 20px; height: 20px; color: var(--color-muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search:focus-within { border-color: var(--color-text); }

.prices__groups { display: grid; gap: 16px; }
.price-group { background: var(--color-surface); overflow: hidden; }
.price-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 22px;
  color: var(--color-white);
  background: var(--color-eco); /* dải xanh lá theo logo: tên nhóm nổi bật */
}
.price-group__name { font-family: var(--font-heading); font-weight: 500; font-size: 24px; }
.price-group__count {
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-eco);
  background: var(--color-white);
  border-radius: 999px;
}
.price-group__list { display: grid; padding: 4px 22px 8px; }
.price-item:first-child { border-top: 0; }
.price-item {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.price-item__name { font-size: 17px; font-weight: 600; }
/* 3 mức giá: mức sau giá cao hơn */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tier {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 6px 6px 8px;
  background: var(--color-bg);
  border-radius: 4px;
}
.tier__label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.tier__price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tier__unit { display: inline-block; font-size: 13px; font-weight: 400; color: var(--color-muted); } /* xuống dòng được khi ô hẹp */
.tier__kg { font-size: 13px; color: var(--color-muted); }
.tier:last-child .tier__price { color: var(--color-accent-dark); }

/* Rác thu miễn phí / rác không thu */
.waste-lists { display: grid; gap: 16px; margin-top: 16px; }
.waste-list { padding: 22px; background: var(--color-surface); border-top: 3px solid var(--color-eco); }
.waste-list--rejected { border-top-color: var(--color-accent); }
.waste-list__title { font-family: var(--font-heading); font-weight: 400; font-size: 22px; }
.waste-list__text { margin-top: 6px; font-size: 15px; color: var(--color-muted); }
.waste-list__items { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.waste-list__items li { padding: 6px 12px; font-size: 14px; background: var(--color-bg); border-radius: 999px; }
.prices__empty { color: var(--color-muted); padding: 24px 0; }
.prices__note { margin-top: 24px; font-size: 14px; color: var(--color-muted); }

/* ---------- Vì sao chọn ---------- */
.why__inner { display: grid; gap: 40px; }
.why__media { overflow: hidden; }
.why__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.why__list { display: grid; gap: 24px; margin-top: 40px; }
.why-item { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-content: start; }
.why-item::before {
  content: "";
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--color-dark);
}
.why-item__title { font-family: var(--font-heading); font-weight: 400; font-size: 20px; line-height: 1.35; }
.why-item__text { color: var(--color-muted); margin-top: 6px; font-size: 15px; }

/* ---------- Quy trình (panel tab xám + ảnh) ---------- */
.process__panel { display: grid; gap: 16px; }
.steps {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  padding: 24px;
  min-height: 300px;
}
.step-tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-muted);
  cursor: pointer;
}
.step-tab::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 200ms ease;
}
.step-tab:hover { color: var(--color-text); }
.step-tab[aria-selected="true"] { color: var(--color-text); font-weight: 500; }
.step-tab[aria-selected="true"]::before { background: var(--color-accent); }
.steps__panel { margin-top: auto; padding-top: 32px; }
.steps__text { font-size: 15px; color: var(--color-muted); max-width: 40ch; }

.process__media {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
  height: 420px;
}
/* 4 hình bước xếp chồng, chỉ hình đang chọn hiện (đổi bằng opacity) */
.process__media img {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 260px;
  height: auto;
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 400ms ease;
}
.process__media img.is-active { opacity: 1; }

/* ---------- Phân biệt phế liệu (4 ô thẳng hàng) ---------- */
.sorting__grid { display: grid; gap: 16px; }
.sort-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 20px;
  background: var(--color-surface);
  text-decoration: none;
  transition: background-color 250ms ease;
}
.sort-card:hover { background: var(--color-border); }
.sort-card__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--color-white); }
.sort-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sort-card__num { margin-top: 16px; padding: 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--color-accent-dark); }
.sort-card__title { margin-top: 6px; padding: 0 8px; font-family: var(--font-heading); font-weight: 400; font-size: 21px; line-height: 1.3; }
.sort-card__text { margin-top: 8px; padding: 0 8px; font-size: 15px; color: var(--color-muted); }
.sort-card .link-more { margin-top: auto; padding: 16px 8px 0; }

/* ---------- Ứng dụng (lưới 3 thẻ như bài viết Coverly) ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-btn svg { width: 20px; height: 20px; }



/* ---------- Hỏi đáp ---------- */
.faq__list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item h3 { font-weight: 400; }
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.35;
  cursor: pointer;
}
.faq-item__pic {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-accent-dark);
  background: var(--color-surface);
  border-radius: 10px;
}
.faq-item__pic svg { width: 22px; height: 22px; }
.faq-item__text { flex: 1; }
.faq-item__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 300ms var(--ease);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__a { padding: 0 32px 24px 60px; color: var(--color-muted); font-size: 16px; }

/* ---------- CTA cuối ---------- */
.cta { padding-bottom: var(--space-section); }
.cta__frame { max-width: var(--frame-width); margin: 0 auto; }
.cta__media { overflow: hidden; }
.cta__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 35%; }
.cta__wrap { position: relative; margin-top: -96px; }
.cta__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 28px 24px;
  max-width: 400px;
}
.cta__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}
.cta__icon svg { width: 20px; height: 20px; }
.cta__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  margin-top: 28px;
}
.cta__text { margin-top: 12px; font-size: 16px; }
.cta__box .btn { margin-top: 40px; }
.cta__qr {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 10px 18px 10px 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 4px;
  text-decoration: none;
}
.cta__qr img { flex: none; width: 112px; height: 112px; image-rendering: pixelated; }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; }
.site-footer__card {
  background: var(--color-dark);
  color: var(--color-on-dark);
  padding: 56px 0 24px;
}
.site-footer__top { display: grid; gap: 40px; }
.logo--light { color: var(--color-on-dark); }
.site-footer__desc { margin-top: 18px; max-width: 36ch; font-size: 15px; color: var(--color-on-dark-muted); }
.site-footer__copy { margin-top: 18px; font-size: 13px; color: var(--color-on-dark-muted); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 15px; }
.footer-cols__title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
  margin-bottom: 12px;
}
.footer-cols li { padding: 6px 0; color: var(--color-on-dark-muted); }
.footer-cols a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; color: var(--color-on-dark); }
.footer-cols a:hover { color: var(--color-accent); }
.footer-contact { grid-column: 1 / -1; }
.footer-cols .footer-fb { display: grid; gap: 10px; max-width: 360px; margin-top: 8px; }
.footer-fb img { width: 100%; height: auto; border-radius: 6px; }
.site-footer__brand {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 27vw, 24rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-top: 64px;
  padding-bottom: 0.08em;
}

/* ---------- Nút nổi (mobile) ---------- */
.float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-actions__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.float-actions__btn svg { width: 24px; height: 24px; }
.float-actions__btn--call { background: var(--color-accent-dark); }
.float-actions__btn--zalo { background: var(--color-zalo); }

/* =========================================================
   Trang Phân biệt phế liệu (phan-biet.html)
   ========================================================= */
.nav__link[aria-current="page"] { color: var(--color-accent-dark); }

/* Hero: mục lục 4 cặp so sánh */
.guide-hero { padding-bottom: 24px; }
.guide-nav {
  display: grid;
  gap: 12px;
  margin-top: 44px;
}
.guide-nav__item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  background: var(--color-surface);
  text-decoration: none;
  transition: background-color 250ms ease;
}
.guide-nav__item:hover { background: var(--color-border); }
.guide-nav__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
}
.guide-nav__text { font-family: var(--font-heading); font-size: 20px; line-height: 1.3; }
.guide-nav__text em { font-style: italic; color: var(--color-muted); }

/* Một cặp so sánh */
.compare { scroll-margin-top: 48px; }
.compare__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.material {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  padding: 12px 12px 18px;
}
.material__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-white);
}
.material__media img { width: 100%; height: 100%; object-fit: cover; }
.material__media--empty {
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
}
.material__placeholder { font-size: 14px; color: var(--color-muted); text-align: center; }
.material__name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.material__code {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.material__examples { color: var(--color-muted); margin-top: 8px; font-size: 15px; line-height: 1.5; }

/* Bảng cách thử: mobile dạng list, desktop dạng bảng 3 cột */
.compare__tests { margin-top: 40px; border-top: 1px solid var(--color-text); }
.test {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.test--head { display: none; }
.test__name {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}
.test__cell { font-size: 16px; line-height: 1.5; }
.test__cell strong { font-weight: 600; }
.test__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Mẹo nhanh */
.compare__tip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  background: var(--color-surface);
  font-size: 16px;
}
.compare__tip .icon-box { flex: none; }

/* An toàn khi phân loại */
.guide-safety__list { margin-top: 0; }

/* =========================================================
   Animation khi cuộn (quy tắc bắt buộc 12)
   Chỉ ẩn khi <html class="js">, nội dung luôn hiện nếu JS lỗi.
   ========================================================= */
.js [data-animate] {
  opacity: 0;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-animate="fade-up"] { transform: translateY(24px); }
.js [data-animate="zoom-in"] { transform: scale(0.96); }
.js [data-animate="stagger"] { opacity: 1; }
.js [data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-animate].is-visible,
.js [data-animate="stagger"].is-visible > * {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-animate],
  .js [data-animate="stagger"] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .process__media img { transition: none; }
}

/* =========================================================
   Tablet ≥ 768px
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }

  .btn--block-mobile { width: auto; }

  /* Header: Menu trái · logo giữa · nút phải */
  .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 76px; }
  .menu-toggle { order: 0; justify-self: start; }
  .logo { justify-self: center; }
  .logo__img { height: 40px; }
  .header-cta { display: inline-flex; justify-self: end; }
  .nav__list { display: flex; flex-wrap: wrap; gap: 8px 40px; }
  .nav__link { border: 0; font-size: 26px; }


  .hero-pill { border-radius: 999px; }
  .hero-pill__btn { margin-left: auto; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .prices__tools { grid-template-columns: 1fr 300px; align-items: center; }
  .prices__tabs { margin: 0; padding: 0; flex-wrap: wrap; }
  .waste-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }

  .process__media { height: 460px; }

  .sorting__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  .cta__frame { padding: 0 16px; }
  .cta__media img { aspect-ratio: 16 / 7; }
  .cta__wrap { margin-top: -160px; }
  .cta__box { padding: 36px 32px; min-height: 320px; }
  .cta__box .btn,
  .cta__qr { margin-top: auto; }
  .cta__box .cta__text { margin-bottom: 24px; }

  .site-footer { padding: 0 16px 16px; }
  .site-footer__card { border-radius: var(--radius-lg); padding-top: 64px; }
  .site-footer__top { grid-template-columns: 1fr auto; align-items: start; }
  .footer-cols { grid-template-columns: 200px 280px; }
  .footer-contact { grid-column: auto; }

  /* Trang phân biệt */
  .guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .compare__pair { gap: 16px; }
  .material { padding: 16px 16px 24px; }
  .material__name { font-size: 24px; margin-top: 20px; }
  .material__examples { font-size: 16px; }
  .compare__tip { padding: 24px 28px; }
}

/* =========================================================
   Laptop ≥ 1000px: các bố cục 2 cột
   ========================================================= */
@media (min-width: 1000px) {
  /* Header: menu luôn hiện thành hàng ngang dưới logo, bỏ nút "Menu" */
  html { scroll-padding-top: 136px; } /* neo # không bị header che */
  .site-header__inner { grid-template-rows: 80px auto; min-height: 0; }
  .menu-toggle { display: none; }
  .logo { grid-column: 2; }
  .header-cta { grid-column: 3; }
  .nav,
  .nav.is-open {
    position: static;
    display: block;
    grid-column: 1 / -1;
    padding: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 0;
    background: none;
  }
  .nav__list { justify-content: center; gap: 0 36px; }
  .nav__link { min-height: 52px; font-size: 18px; }

  /* Bảng giá: tên trái · 3 mức giá phải */
  .price-group__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .price-item:nth-child(2) { border-top: 0; }
  .price-item { padding: 12px 0; gap: 8px; }

  /* Dịch vụ: header 2 cột, 3 thẻ mỗi hàng, bảng phí 3 cột */
  .services__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; }
  .service-card { grid-template-columns: 120px minmax(0, 1fr); }
  .fees { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }

  /* Phân biệt phế liệu: 4 ô thẳng một hàng */
  .sorting__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .section__split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--split-gap);
    align-items: start;
    margin-bottom: 56px;
  }
  .section__split .eyebrow { margin-top: 10px; }

  .hero__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--split-gap);
    align-items: end;
  }
  .hero__side { margin-top: 0; }

  .stats__inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
  .stats__content { display: flex; flex-direction: column; justify-content: space-between; }
  .stats__media img { height: 100%; aspect-ratio: 4 / 4.4; }
  .stats__media--photo { align-self: center; }
  .stats__media--photo img { height: auto; aspect-ratio: 3 / 2; }

  .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .why__inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
  .why__media img { height: 100%; }
  .why__media--wide { align-self: center; }
  .why__media.why__media--wide img { height: auto; }
  .why__content { display: flex; flex-direction: column; justify-content: space-between; }

  .process__panel { grid-template-columns: 1fr 2fr; }
  .steps { padding: 32px; min-height: 0; }
  .process__media { height: 480px; }

  .faq__list { margin-left: calc((100% - var(--split-gap)) / 3 + var(--split-gap)); }

  .cta__media img { aspect-ratio: 1440 / 520; object-position: 50% 30%; }
  .cta__wrap { margin-top: -260px; }
  .cta__box { max-width: 420px; min-height: 360px; padding: 40px 36px; }

  /* Trang phân biệt: bảng cách thử 3 cột, căn theo cột phải của section__split */
  .guide-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-nav__item { flex-direction: column; align-items: flex-start; min-height: 160px; padding: 24px; }
  .guide-nav__text { margin-top: auto; }
  .compare__pair,
  .compare__tests,
  .compare__tip,
  .guide-safety__list { margin-left: calc((100% - var(--split-gap)) / 3 + var(--split-gap)); }
  .test { grid-template-columns: 1fr 1.3fr 1.3fr; gap: 24px; align-items: baseline; }
  .test--head {
    display: grid;
    padding: 14px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
  }
  .test__name { grid-column: auto; font-size: 19px; }
  .test__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* =========================================================
   Desktop ≥ 1200px
   ========================================================= */
@media (min-width: 1200px) {
  .section--first { padding-top: 56px; }
  .float-actions { display: none; }
}
