/* ============================================================
   VIET THANG ENVIRO - Quan trắc môi trường
   Style chung toàn website
   ============================================================ */
/* Be Vietnam Pro (self-hosted, subset tiếng Việt + Latin) */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bvp-400-vietnamese.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bvp-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/bvp-500-vietnamese.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/bvp-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/bvp-600-vietnamese.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/bvp-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/bvp-700-vietnamese.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/bvp-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/bvp-800-vietnamese.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/bvp-800-latin.woff2') format('woff2'); }
:root {
  --green-950: #052e12;
  --green-900: #073d19;
  --green-800: #0b4d1f;
  --green-700: #0e6a2c;
  --green-600: #128a3a;
  --green-500: #20a84f;
  --green-100: #e3f3e8;
  --green-50: #f2faf4;
  --amber: #f5a623;
  --ink: #14281b;
  --text: #41523f;
  --muted: #6b7a68;
  --line: #e3eae3;
  --bg-soft: #f5f8f5;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(8, 60, 30, .08);
  --shadow-md: 0 8px 28px rgba(8, 60, 30, .14);
  --radius: 14px;
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', 'system-ui', -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .2px;
  background: var(--white);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
ul { list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; letter-spacing: -.2px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: #dbe7dc;
  font-size: 13.5px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #eaf6ec; }
.topbar a:hover { color: var(--amber); }
.topbar .sep { opacity: .35; margin: 0 10px; }

/* ---------- Header ---------- */
.header { background: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 90; }
.header .container { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { width: 52px; height: 52px; flex: 0 0 auto; }
.brand-name { font-size: 21px; font-weight: 800; color: var(--green-800); letter-spacing: .3px; line-height: 1.1; }
.brand-name em { color: var(--amber); font-style: normal; }
.brand-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .4px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.hotline-box { display: flex; align-items: center; gap: 10px; }
.hotline-box .hic { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; flex: 0 0 auto; }
.hotline-label { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.hotline-num { font-size: 18px; font-weight: 800; color: var(--green-800); display: block; line-height: 1.1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-weight: 700; font-size: 15px; letter-spacing: .3px;
  padding: 12px 26px; transition: all .2s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--amb); background: var(--amber); color: #3a2700; }
.btn-primary:hover { background: #e29515; color: #3a2700; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Navbar ---------- */
.navbar { background: var(--green-700); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.menu { display: flex; }
.menu > li { position: relative; }
.menu > li > a {
  display: flex; align-items: center; gap: 6px;
  color: #eef7f0; font-weight: 600; font-size: 15px; letter-spacing: .2px;
  padding: 14px 18px; border-bottom: 3px solid transparent;
}
.menu > li > a:hover { color: #fff; border-bottom-color: var(--amber); }
.menu > li.active > a { color: #fff; border-bottom-color: var(--amber); background: rgba(0,0,0,.08); }
.menu .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-dropdown .dropdown {
  position: absolute; top: 100%; left: 0; min-width: 288px;
  background: #fff; box-shadow: var(--shadow-md); border-radius: 0 0 10px 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 60;
  overflow: hidden;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: 11px 18px; color: var(--text); font-size: 14.5px; font-weight: 500;
  border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--green-50); color: var(--green-700); border-left-color: var(--green-600); }

.nav-cta { display: flex; gap: 8px; }
.nav-cta a {
  color: #fff; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,.12);
}

/* Mobile toggle */
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; }
.hero-slider { position: relative; overflow: hidden; }
.slide { display: none; min-height: clamp(420px, 58vw, 620px); align-items: center; }
.slide.on { display: flex; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.slide-1 { background: linear-gradient(120deg, #06250f 0%, var(--green-800) 55%, #148a42 100%); }
.slide-2 { background: linear-gradient(120deg, #0a3d24 0%, #0b6a33 55%, #1aa04c 100%); }
.slide-3 { background: linear-gradient(120deg, #0b2336 0%, #0c3f5a 55%, #157a9c 100%); }
.slide-inner { width: min(1180px, 100% - 40px); margin-inline: auto; padding-block: 70px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.slide-kicker { display: inline-block; background: rgba(255,255,255,.16); padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; margin-bottom: 18px; }
.slide-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.slide-title em { color: var(--amber); font-style: normal; }
.slide-text { font-size: 16.5px; color: #d9ecdd; max-width: 560px; margin-bottom: 26px; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.slide-art { display: flex; justify-content: center; }
.slide-art svg, .slide-art img { width: min(380px, 90%); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s; }
.hero-dots button.on { background: var(--amber); width: 30px; }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.kicker { display: inline-block; color: var(--green-600); font-weight: 800; letter-spacing: 2px; font-size: 12.5px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* Stats strip */
.stats-strip { background: var(--green-900); color: #fff; padding: 30px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 32px; font-weight: 800; color: var(--amber); }
.stat span { font-size: 14px; color: #cfe3d3; }

/* About intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.split-media svg { width: 100%; height: auto; }
.split-media img { width: 100%; height: auto; }
.split-text h2 { margin-bottom: 14px; }
.split-text p { margin-bottom: 12px; }
.check-list li { display: flex; gap: 10px; margin-bottom: 10px; }
.check-list .ck { color: var(--green-600); font-weight: 800; flex: 0 0 auto; }

/* Category cards */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .22s ease; position: relative;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-media { height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-800), var(--green-600)); overflow: hidden; }
.cat-media svg { width: 92px; height: 92px; }
.cat-media img { width: 92px; height: 92px; }
.cat-body { padding: 20px; }
.cat-body h3 { font-size: 17px; margin-bottom: 6px; }
.cat-body p { font-size: 14px; color: var(--muted); }
.cat-body .more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--green-600); }

/* Product cards */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: all .22s ease;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pcard-media { height: 150px; display: grid; place-items: center; background: var(--green-50); overflow: hidden; }
.pcard-media svg { width: 84px; height: 84px; }
.pcard-media img { width: 84px; height: 84px; }
.pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard-tag { font-size: 11.5px; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .9px; margin-bottom: 8px; }
.pcard h3 { font-size: 16px; margin-bottom: 8px; }
.pcard p { font-size: 14px; color: var(--muted); flex: 1; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pcard-foot .price { font-weight: 800; color: var(--green-700); }
.pcard-foot .lnk { font-size: 14px; font-weight: 700; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 300px at 92% -30%, rgba(245, 166, 35, .28), transparent 62%),
    radial-gradient(700px 300px at -5% 125%, rgba(56, 189, 248, .16), transparent 60%),
    linear-gradient(120deg, #0a2340, #11385c 52%, #0e4f55);
  color: #fff;
  max-width: min(1220px, 100% - 40px);
  margin: 12px auto 64px;
  padding: clamp(32px, 5vw, 58px) clamp(24px, 5vw, 56px);
  border-radius: 30px;
  box-shadow: 0 32px 70px rgba(10, 40, 78, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.cta-band::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; border: 1px solid rgba(245, 166, 35, .35); pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; width: 100%; max-width: 1180px; }
.cta-title { font-size: clamp(22px, 3vw, 31px); font-weight: 800; color: #fff; line-height: 1.3; }
.cta-title small { display: block; font-size: 15px; font-weight: 500; color: #cfe6ef; margin-top: 8px; }
.cta-phone {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  padding: 13px 26px 13px 20px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all .25s var(--ease-bounce);
}
.cta-phone:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(3, 16, 32, .35); }
.cta-phone b { font-size: clamp(22px, 2.6vw, 28px); color: #fff; letter-spacing: .4px; }
.cta-phone svg { width: 26px; height: 26px; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ncard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .22s ease; }
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ncard-media { height: 190px; display: grid; place-items: center; background: linear-gradient(135deg, #14532d, #1f9d4f); overflow: hidden; }
.ncard-media svg { width: 90px; height: 90px; }
.ncard-media img { width: 96px; height: 96px; }
.ncard-body { padding: 20px; }
.ncard-date { font-size: 13px; color: var(--green-600); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.ncard h3 { font-size: 17px; margin-bottom: 8px; }
.ncard p { font-size: 14px; color: var(--muted); }

/* Testimonials */
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.tcard .avatar { width: 74px; height: 74px; border-radius: 50%; background: var(--green-100); display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--green-700); margin: 0 auto 14px; }
.tcard .stars { color: var(--amber); letter-spacing: 3px; margin-bottom: 12px; }
.tcard p { font-size: 14px; color: var(--text); font-style: italic; margin-bottom: 14px; }
.tcard .tname { font-weight: 800; color: var(--ink); }
.tcard .trole { font-size: 13px; color: var(--muted); }

/* Partners */
.pwrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pchip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 22px; font-weight: 700; color: var(--muted); font-size: 14px; }
.pchip:hover { border-color: var(--green-600); color: var(--green-700); }

/* ---------- Page head (inner pages) ---------- */
.page-head { background: linear-gradient(115deg, var(--green-950), var(--green-800)); color: #fff; padding: 54px 0 40px; }
.page-head h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.page-head p { color: #cfe3d3; max-width: 700px; }
.crumbs { color: #9fcaa6; font-size: 14px; margin-top: 12px; }
.crumbs a { color: #fff; }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Generic tools ---------- */
.lead { font-size: 17.5px; color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 14px; } .mt-2 { margin-top: 26px; } .mt-3 { margin-top: 42px; }
.mb-1 { margin-bottom: 14px; } .mb-2 { margin-bottom: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: all .2s; }
.svc:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.svc .sic { width: 58px; height: 58px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 16px; }
.svc h3 { font-size: 17px; margin-bottom: 8px; }
.svc p { font-size: 14px; color: var(--muted); }

/* Info feature rows */
.feature { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.feature .fic { width: 56px; height: 56px; border-radius: 14px; background: var(--green-100); display: grid; place-items: center; }
.feature h3 { font-size: 17.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* Numbers steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; padding: 26px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step .num { width: 64px; height: 64px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; margin: 0 auto 16px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; background: #fff; margin-bottom: 14px; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::after { content: "+"; float: right; font-size: 22px; color: var(--green-600); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }

/* Table */
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tbl th { background: var(--green-700); color: #fff; font-weight: 700; }
.tbl tr:nth-child(even) td { background: var(--green-50); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-row .iic { width: 46px; height: 46px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; flex: 0 0 auto; }
.info-row b { display: block; color: var(--ink); }
.info-row span { font-size: 14.5px; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-card h3 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--bg-soft); outline: none; transition: border .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-600); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }

.map-frame { border: 0; width: 100%; height: 310px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.footer { background: #06250f; color: #b9d3bd; margin-top: 0; }
.footer-top { padding: 56px 0 36px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; letter-spacing: .5px; }
.footer .f-about p { font-size: 14px; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer .f-brand .logo { width: 42px; height: 42px; }
.footer .f-brand b { color: #fff; font-size: 17px; }
.f-links a { display: block; color: #b9d3bd; padding: 5px 0; font-size: 14.5px; }
.f-links a:hover { color: var(--amber); }
.f-info li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 12px; align-items: flex-start; }
.f-info svg { flex: 0 0 auto; }
.f-info a { color: #b9d3bd; }
.f-info a:hover { color: var(--amber); }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; }
.foot-social a:hover { background: var(--green-600); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13.5px; text-align: center; color: #7ea689; }

/* ---------- Floating contact ---------- */
.floatbar { position: fixed; right: 16px; bottom: 90px; display: flex; flex-direction: column; gap: 10px; z-index: 80; }
.float-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); transition: transform .15s; }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-phone { background: #22c55e; }
.float-zalo { background: #0068ff; }
.float-facebook { background: #1877f2; }
.float-email { background: var(--green-700); }
.backtop { position: fixed; right: 16px; bottom: 22px; width: 46px; height: 46px; border-radius: 12px; background: var(--green-800); color: #fff; display: none; place-items: center; z-index: 80; box-shadow: var(--shadow-md); cursor: pointer; }
.backtop.show { display: grid; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cats-grid, .products-grid, .services-grid, .tgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .slide-inner { grid-template-columns: 1fr; text-align: center; }
  .slide-art { display: none; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .navbar .container { justify-content: space-between; }
  .menu {
    position: fixed; inset: 0 auto 0 0; width: 300px; max-width: 84vw; background: #fff; flex-direction: column;
    transform: translateX(-102%); transition: transform .28s ease; z-index: 120; overflow-y: auto; padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .menu.open { transform: none; }
  .menu > li > a { color: var(--ink); padding: 13px 8px; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .menu > li.active > a { border-bottom-color: var(--green-600); color: var(--green-700); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: var(--muted); padding: 10px 14px; }
  .menu-toggle { display: block; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(5,30,15,.5); z-index: 110; opacity: 0; visibility: hidden; transition: .25s; }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .hotline-box .hic { display: none; }
}
@media (max-width: 620px) {
  .cats-grid, .products-grid, .services-grid, .tgrid, .news-grid, .stats-grid, .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr; }
  .header-right, .nav-cta { display: none; }
  .brand-name { font-size: 17px; }
  .grid-2 { grid-template-columns: 1fr; }
}

a.ncard-media { display: block; }
.ncard h3 a { color: inherit; text-decoration: none; }
.ncard h3 a:hover { color: var(--green-700); }
.ncard-more { display: inline-block; margin-top: 10px; color: var(--green-700); font-weight: 700; font-size: 13px; text-decoration: none; }
.ncard-more:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.article { max-width: 860px; margin: 0 auto; }
.article-cover { border-radius: 16px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 14px 34px rgba(6,37,15,.18); }
.article-cover img { width: 100%; display: block; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.article-body { font-size: 16.5px; line-height: 1.85; color: #2b3a2e; }
.article-body p { margin-bottom: 16px; }
.article-back { display: inline-block; margin-top: 8px; color: var(--green-700); font-weight: 700; text-decoration: none; }
.article-back:hover { text-decoration: underline; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 6px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }

/* ============================================================
   NÂNG CẤP HIỆU ỨNG & THẨM MỸ (v2)
   ============================================================ */
:root {
  --grad-brand: linear-gradient(120deg, var(--green-800), var(--green-600));
  --grad-amber: linear-gradient(120deg, #ffc65c, #f5a623 55%, #e89112);
  --shadow-up: 0 22px 46px rgba(8, 60, 30, .16), 0 6px 16px rgba(8, 60, 30, .08);
  --shadow-glow-green: 0 10px 24px rgba(16, 138, 58, .35);
  --shadow-glow-amber: 0 10px 24px rgba(245, 166, 35, .38);
  --ease-bounce: cubic-bezier(.2, .75, .3, 1.05);
}

/* Selection + scrollbar */
::selection { background: var(--green-700); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #edf4ee; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--green-500), var(--green-800)); border-radius: 99px; border: 3px solid #edf4ee; }
:focus-visible { outline: 3px solid rgba(245, 166, 35, .75); outline-offset: 2px; border-radius: 6px; }

/* Header: mờ + đổ bóng khi cuộn */
.header { transition: background .3s ease, box-shadow .3s ease; }
.header.scrolled { background: rgba(255, 255, 255, .92); box-shadow: 0 8px 26px rgba(8, 60, 30, .13); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand .logo { transition: transform .3s var(--ease-bounce), filter .3s ease; filter: drop-shadow(0 4px 10px rgba(8, 60, 30, .28)); }
.brand:hover .logo { transform: rotate(-4deg) scale(1.06); }

/* Navbar gradient + underline mượt */
.navbar { background: linear-gradient(92deg, var(--green-950), var(--green-700) 42%, var(--green-600)); box-shadow: 0 4px 14px rgba(8, 60, 30, .22); }
.menu > li > a { position: relative; transition: background-color .2s ease, color .2s ease; }
.menu > li > a:hover { background-color: rgba(255, 255, 255, .09); }
.dropdown { padding-block: 6px; }
.dropdown a { border-left-color: transparent; transition: all .18s ease; }
.has-dropdown .dropdown { transform: translateY(12px); }
.dropdown .dcaret { position: absolute; top: 0; left: 24px; width: 12px; height: 12px; background: #fff; transform: translateY(-6px) rotate(45deg); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

/* Hero: ambient glow + art bay lơ lửng + text lên theo tầng */
.hero-slider::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(46% 52% at 82% 18%, rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(40% 44% at 12% 88%, rgba(245, 166, 35, .20), transparent 60%);
}
.slide-1, .slide-2, .slide-3 { background-size: 145% 145%; background-position: 0% 50%; animation: vtePan 16s ease-in-out infinite alternate; }
.slide-inner { position: relative; z-index: 2; }
.slide-art { animation: vteFloat 6s ease-in-out infinite; }
.slide.on .slide-kicker, .slide.on .slide-title, .slide.on .slide-text, .slide.on .slide-actions,
.slide.on .slide-art, .slide.on .slide-kicker { animation-delay: 0s, .06s, .14s, .22s; }
.slide.on .slide-kicker { animation: vteUp .55s ease both; }
.slide.on .slide-title { animation: vteUp .6s .08s ease both; }
.slide.on .slide-text { animation: vteUp .6s .16s ease both; }
.slide.on .slide-actions { animation: vteUp .6s .24s ease both; }
.hero-dots button:hover { transform: scale(1.18); background: rgba(255, 255, 255, .85); }
@keyframes vteFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes vtePan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes vteUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Buttons: gradient + glow + bật lên */
.btn { will-change: transform; }
.btn-primary {
  background: var(--grad-amber); color: #3a2700;
  box-shadow: var(--shadow-glow-amber), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(245, 166, 35, .46), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-green { background: linear-gradient(135deg, #1ca655, var(--green-700)); box-shadow: var(--shadow-glow-green), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(14, 106, 44, .45); }
.btn-green:active { transform: translateY(0); }
.btn-ghost { transition: all .22s var(--ease-bounce); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .7); }

/* Section head: kicker gradient + vạch trang trí dưới tiêu đề */
.kicker { background: linear-gradient(90deg, var(--green-700), var(--green-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--amber); margin-right: 9px; transform: rotate(45deg); vertical-align: 2px; }
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ""; display: block; width: 66px; height: 4px; margin: 15px auto 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--green-600), var(--amber));
}
.section-head p { font-size: 15.5px; }

/* Cards: nâng lên, đổ bóng đậm, viền đổi màu, zoom ảnh, tia sáng */
.cat-card, .pcard, .ncard, .svc, .step, .tcard { transition: transform .3s var(--ease-bounce), box-shadow .3s ease, border-color .3s ease; }
.cat-card:hover, .pcard:hover, .ncard:hover, .svc:hover { transform: translateY(-9px); box-shadow: var(--shadow-up); border-color: #cde9d7; }
.cat-card, .pcard, .ncard, .svc, .step { position: relative; }
.cat-card::before, .pcard::before, .ncard::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease; opacity: .9;
}
.cat-card:hover::before, .pcard:hover::before, .ncard:hover::before { transform: scaleX(1); }
.cat-media, .pcard-media, .ncard-media { position: relative; }
.cat-media svg, .cat-media img, .pcard-media svg, .pcard-media img, .ncard-media svg, .ncard-media img { transition: transform .45s var(--ease-bounce); }
.cat-card:hover .cat-media svg, .cat-card:hover .cat-media img,
.pcard:hover .pcard-media svg, .pcard:hover .pcard-media img,
.ncard:hover .ncard-media svg, .ncard:hover .ncard-media img { transform: scale(1.14) rotate(2deg); }
.pcard-media { background: linear-gradient(135deg, #eef8f1, #dff2e6); }
.ncard-media { background: linear-gradient(135deg, #14532d, #1f9d4f); }
.tcard { transition: transform .3s var(--ease-bounce), box-shadow .3s ease, border-color .3s ease; }
.tcard:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-up); border-color: #cde9d7; }
.tcard .avatar { font-size: 26px; }

/* Steps + features: icon bật nhẹ */
.step { transition: transform .3s var(--ease-bounce), box-shadow .3s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.step:hover .num { animation: vtePop .5s var(--ease-bounce); background: linear-gradient(135deg, var(--green-500), var(--green-700)); }
.svc .sic, .feature .fic { transition: transform .3s var(--ease-bounce), background .3s ease; }
.svc:hover .sic { transform: translateY(-4px) scale(1.07); background: linear-gradient(135deg, #e8f6ee, var(--green-100)); }
.feature:hover .fic { transform: translateY(-3px) scale(1.06); }
@keyframes vtePop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Stats: số gradient + vạch chia + đếm mượt */
.stat b {
  display: inline-block; font-size: 34px;
  background: linear-gradient(120deg, #ffd171, #f5a623 55%, #f0870c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { letter-spacing: .4px; }
.stats-grid .stat { position: relative; }
.stats-grid .stat + .stat::before {
  content: ""; position: absolute; left: -10px; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .3), transparent);
}

/* CTA band: glow nhấp nháy cho icon điện thoại */
.cta-band .container { position: relative; z-index: 2; }
.cta-phone svg { filter: drop-shadow(0 4px 10px rgba(245, 166, 35, .55)); animation: vtePulseGlow 2.6s ease-in-out infinite; }

/* Partners + bảng */
.pchip { transition: all .25s var(--ease-bounce); }
.pchip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green-500); }
.tbl th { background: linear-gradient(135deg, var(--green-800), var(--green-600)); }

/* Nút nổi: điện thoại nhấp nháy nhẹ */
.float-phone { animation: vtePulseGlow 2.4s ease-in-out infinite; }
.float-btn { transition: transform .2s var(--ease-bounce), box-shadow .2s ease; }
.float-btn:hover { transform: translateY(-3px) scale(1.1); }
.backtop { background: linear-gradient(135deg, var(--green-500), var(--green-800)); transition: transform .2s var(--ease-bounce); }
.backtop:hover { transform: translateY(-3px) scale(1.06); }
@keyframes vtePulseGlow {
  0%, 100% { box-shadow: 0 6px 18px rgba(245, 166, 35, .45); }
  50% { box-shadow: 0 6px 26px rgba(245, 166, 35, .75), 0 0 0 8px rgba(245, 166, 35, .15); }
}
.float-phone { animation-name: vtePulseGlowGreen; }
@keyframes vtePulseGlowGreen {
  0%, 100% { box-shadow: 0 6px 18px rgba(34, 197, 94, .45); }
  50% { box-shadow: 0 6px 26px rgba(34, 197, 94, .78), 0 0 0 8px rgba(34, 197, 94, .16); }
}

/* Footer: vạch gradient trên cùng + link trượt nhẹ */
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--green-500), var(--amber));
}
.f-links a { transition: padding-left .2s ease, color .2s ease; }
.f-links a:hover { padding-left: 8px; }

/* Reveal: hiện theo tầng cho các lưới */
.cats-grid .reveal:nth-child(2), .products-grid .reveal:nth-child(2), .services-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .tgrid .reveal:nth-child(2), .news-grid .reveal:nth-child(2) { transition-delay: .07s; }
.cats-grid .reveal:nth-child(3), .products-grid .reveal:nth-child(3), .services-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .tgrid .reveal:nth-child(3), .news-grid .reveal:nth-child(3) { transition-delay: .14s; }
.cats-grid .reveal:nth-child(4), .products-grid .reveal:nth-child(4), .services-grid .reveal:nth-child(4), .steps .reveal:nth-child(4), .tgrid .reveal:nth-child(4) { transition-delay: .21s; }
.cats-grid .reveal:nth-child(5), .products-grid .reveal:nth-child(5) { transition-delay: .28s; }
.cats-grid .reveal:nth-child(6), .products-grid .reveal:nth-child(6) { transition-delay: .35s; }
.cats-grid .reveal:nth-child(7), .products-grid .reveal:nth-child(7) { transition-delay: .42s; }
.cats-grid .reveal:nth-child(8), .products-grid .reveal:nth-child(8) { transition-delay: .49s; }

/* Phát triển nhẹ cho nội dung dài */
.article h2 { margin-top: 34px; font-size: clamp(22px, 2.8vw, 28px); }

@media (max-width: 620px) {
  .cta-band { margin-inline: 16px; border-radius: 24px; }
  .cta-phone { width: 100%; justify-content: center; }
}

/* Giảm chuyển động theo cài đặt hệ thống */
@media (prefers-reduced-motion: reduce) {
  .slide-art, .float-phone, .cta-phone svg, .slide-1, .slide-2, .slide-3 { animation: none; }
  .cat-card, .pcard, .ncard, .svc, .step, .tcard { transition: none; }
}