/* agoma.vn — màu lấy từ logo (xanh lá + cam) */
:root {
  --green-800: #3d6410;
  --green-700: #4c7a12;
  --green-600: #6a9a17;
  --green-100: #eef5dc;
  --green-50: #f6faec;
  --orange-500: #f39a1e;
  --orange-100: #fff1dc;
  --zalo: #0068ff;
  --ink: #1d2614;
  --muted: #59634e;
  --line: #e3e8d6;
  --bg: #fffdf7;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(29, 38, 20, .06), 0 6px 20px rgba(29, 38, 20, .06);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; border-radius: 6px; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- topbar + header --- */
.topbar { background: var(--green-800); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.topbar b { color: #ffd38a; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 247, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--green-700); }
.nav-toggle, .nav-burger { display: none; }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.nav a.btn-primary { color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: #fff; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); }

/* --- hero --- */
.hero { background: linear-gradient(180deg, var(--green-50), var(--bg)); padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--green-700); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--green-700); }
.lead { font-size: 18px; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink); font-weight: 600; font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .ic { color: var(--orange-500); }
.hero-media { justify-self: center; position: relative; width: min(480px, 100%); }
.hero-media::before { content: ""; position: absolute; inset: 8% -6% -4% 10%; background: var(--orange-100); border-radius: 32px; transform: rotate(4deg); }
.hero-media img { position: relative; border-radius: 24px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* --- sections --- */
.group, .why, .howto { padding: 64px 0 8px; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 32px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.grid-n3, .grid-n2 { max-width: 760px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { background: #fff; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.card-link { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--green-700); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.cat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.cat-imgs img { aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; }
.cat h3 { font-size: 19px; font-weight: 800; }
.cat p { color: var(--muted); font-size: 15px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 22px; }
.why-item .ic { width: 34px; height: 34px; color: var(--green-700); margin-bottom: 12px; }
.why-item h3 { font-size: 18px; font-weight: 800; }
.why-item p { color: var(--muted); font-size: 15px; margin: 0; }

.howto-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.howto-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 8px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--orange-500); color: #2b1800; font-weight: 800; display: grid; place-items: center; }

/* --- CTA band + footer --- */
.cta-band { margin-top: 72px; background: var(--green-700); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-band p { margin: 0; opacity: .92; max-width: 40rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: #1f2a14; color: #d8decf; padding: 48px 0 0; font-size: 15px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 36px; }
.foot-logo { background: #fff; border-radius: 12px; padding: 8px 12px; width: 150px; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.foot-list .ic { margin-top: 3px; color: #b6d36d; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding: 18px 20px 22px; font-size: 14px; color: #a9b39d; }

.mobile-bar { display: none; }

/* --- page hero (trang con) --- */
.page-hero { background: linear-gradient(180deg, var(--green-50), var(--bg)); padding: 52px 0 24px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.page-hero.error { padding: 80px 0 40px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.toc a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.toc a:hover { border-color: var(--green-600); color: var(--green-700); }
.group { scroll-margin-top: 90px; }

/* --- liên hệ --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 0 8px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--muted); }
.contact-card .ic { width: 28px; height: 28px; color: var(--green-700); }
.contact-card span { display: flex; flex-direction: column; }
.contact-card b { color: var(--ink); font-size: 16px; }
.contact-card.zalo { border-color: var(--zalo); }
.contact-card.zalo .ic { color: var(--zalo); }
a.contact-card:hover { box-shadow: var(--shadow); }
.quote-box { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 20px; padding: 28px; }
.quote-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.map { padding: 36px 0 0; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: 20px; background: var(--green-50); }

/* --- responsive --- */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; margin-right: -10px; }
  .nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { width: min(380px, 88%); }
  .howto-grid { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .howto-img { max-width: 260px; margin: 0 auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar span { display: none; }
  .topbar .wrap { justify-content: center; }
  .nav-row { min-height: 62px; }
  .brand img { width: 124px; }
  .lead { font-size: 16.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .group, .why, .howto { padding-top: 48px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .card h3 { font-size: 15px; }
  .card p { font-size: 13.5px; }
  .card-link { font-size: 13.5px; }
  .cats, .why-grid, .foot-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { flex: 1 1 100%; }
  .map iframe { height: 300px; }
  body { padding-bottom: 64px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; font-weight: 700; text-decoration: none; color: var(--green-800); }
  .mobile-bar a.zalo { background: var(--zalo); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .cat { transition: none; }
}
