/* Hoa Kiều Đắk Lắk — stylesheet dùng chung cho 3 ngôn ngữ (vi / en / zh) */

:root {
  --bg: #ffffff;
  --bg-2: #f4f5f1;
  --bg-3: #e8ebe5;
  --ink: #151a18;
  --ink-2: #4d5552;
  --ink-3: #5f6864;
  --line: #e2e6e0;
  --line-2: #c9d0c8;
  --green: #054d29;
  --green-2: #0b6a3a;
  --green-deep: #03351c;
  --green-tint: #e6f1ea;
  --gold: #eb9c14;
  --gold-2: #f3b43c;
  --on-dark: #f3f5f0;
  --on-dark-2: rgba(243, 245, 240, 0.78);
  --line-dark: rgba(243, 245, 240, 0.14);
  --font: "Hanken Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --r: 6px;
  --r-lg: 12px;
  --dur: 0.22s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; }
ul, ol { list-style: none; }
dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--green-deep); color: var(--on-dark); }
.section--dark .h2 { color: #fff; }
.section--dark .prose { color: var(--on-dark-2); }
.section--dark .label { color: var(--gold-2); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.split--tight { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.label {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h2 + .prose, .h2 + .sub { margin-top: 18px; }
.sub { color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.prose { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.prose p + p { margin-top: 16px; }
.link {
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
  transition: border-color var(--dur), color var(--dur);
}
.link:hover { color: var(--green); border-color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-2); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--green-tint); }
.btn svg { width: 16px; height: 16px; }

/* key / value list */
.kv { border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.kv dt { color: var(--ink-3); font-weight: 500; }
.kv dd { color: var(--ink); }
.kv--compact > div { grid-template-columns: 120px minmax(0, 1fr); padding: 11px 0; font-size: 14.5px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 46px; height: auto; flex: none; }
.footer .brand__mark .vein { fill: var(--green-deep); }
.brand__name { font-weight: 700; font-size: 16.5px; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.05; display: block; color: var(--green); }
.brand__sub { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 0; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header__right { display: flex; align-items: center; gap: 14px; flex: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang a { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); text-decoration: none; padding: 8px 11px; border-radius: 999px; line-height: 1; transition: color var(--dur), background var(--dur); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.header .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.nav__mobile { display: none; }
.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid var(--line-2); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .x { display: none; }
.header.is-open .menu-btn .x { display: block; }
.header.is-open .menu-btn .bars { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.hero h1 { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.06; letter-spacing: -0.024em; margin: 18px 0 22px; text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 32px; }
.hero__cta .link { padding: 10px 0 8px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-3); }
.hero__cap { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.facts { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 22px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__l { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.fact__v { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--ink); }

/* ---------- about ---------- */
.about .kv { margin-top: 32px; }

/* ---------- products ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--bg-3); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; letter-spacing: -0.012em; line-height: 1.25; }
.card__desc { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.spec { margin-top: auto; padding-top: 20px; }
.spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.spec dt { color: var(--ink-3); flex: none; }
.spec dd { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.products__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin-top: 28px; font-size: 14.5px; color: var(--ink-3); }

/* ---------- capability (dark) ---------- */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; align-self: start; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.checks strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.checks span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--gold-2); margin-top: 2px; }
.dfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-dark); }
.dfact__l { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2); }
.dfact__v { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--on-dark); }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.process__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-3); }
.process__media figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.steps { counter-reset: step; margin-top: 36px; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: 0.04em; padding-top: 4px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }

/* ---------- origin ---------- */
.origin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.origin__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-3); }
.origin .kv { margin-top: 28px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.addr { margin-top: 32px; font-style: normal; color: var(--ink-2); line-height: 1.7; font-size: 15.5px; }
.addr strong { color: var(--ink); font-weight: 600; }
.addr a { display: inline-block; margin-top: 8px; }
.channels { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.channel { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background var(--dur); }
.channel:first-child { border-top: 0; }
.channel[hidden] { display: none; }
a.channel:hover { background: var(--bg-2); }
.channel__l { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.channel__v { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.channel__v small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.channel svg { width: 18px; height: 18px; color: var(--ink-3); }
.channel--qr img { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--green-deep); color: var(--on-dark-2); padding: 56px 0 32px; font-size: 14px; line-height: 1.6; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--on-dark-2); }
.footer__desc { margin-top: 18px; max-width: 40ch; }
.footer .footer__h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer li + li { margin-top: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; font-size: 13px; }
.footer__bottom p { max-width: 70ch; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 0.15em; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise 0.7s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hero__media { animation: rise 0.9s var(--ease) 0.1s both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy > *, .hero__media { animation: none; }
}

/* ---------- Chinese typography ---------- */
html[lang="zh-Hans"] body { font-size: 16px; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.28; letter-spacing: 0; }
html[lang="zh-Hans"] .h2 { letter-spacing: 0; line-height: 1.3; }
html[lang="zh-Hans"] .hero h1, html[lang="zh-Hans"] .h2 { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="zh-Hans"] .prose, html[lang="zh-Hans"] .hero__lead, html[lang="zh-Hans"] .sub { line-height: 1.85; }
html[lang="zh-Hans"] .card h3, html[lang="zh-Hans"] .steps h3 { letter-spacing: 0; line-height: 1.4; }
html[lang="zh-Hans"] .label, html[lang="zh-Hans"] .fact__l, html[lang="zh-Hans"] .dfact__l,
html[lang="zh-Hans"] .channel__l, html[lang="zh-Hans"] .kicker, html[lang="zh-Hans"] .footer .footer__h { letter-spacing: 0.12em; }
html[lang="zh-Hans"] .brand__sub { letter-spacing: 0.2em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .split, .split--tight { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .header__in { height: 64px; }
  .header__right { margin-left: auto; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 64px;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 20px;
    box-shadow: 0 24px 40px -28px rgba(21, 26, 24, 0.35);
  }
  .header.is-open .nav > a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .header.is-open .nav > a::after { display: none; }
  .header.is-open .nav__mobile { display: block; padding-top: 18px; }
  .header.is-open .nav__mobile .btn { display: inline-flex; width: 100%; height: 48px; padding: 0 22px; font-size: 15px; color: #fff; }
  .header.is-open .nav__mobile .btn::after { display: none; }
  .header__right .btn--primary { display: none; }
  .process, .origin, .contact { grid-template-columns: minmax(0, 1fr); }
  .origin__media { order: -1; }
  .process__media img { aspect-ratio: 16 / 10; }
  .dfacts { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 800px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__media img { aspect-ratio: 4 / 3; }
  .facts__in { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n + 2) { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .checks { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .channel { grid-template-columns: 90px minmax(0, 1fr) auto; padding: 16px 18px; }
  .kv > div, .kv--compact > div { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .header__in { gap: 10px; }
  .lang a { padding: 8px 8px; }
  .brand__mark { width: 40px; }
  .hero__cta .btn { width: 100%; }
  .dfacts { grid-template-columns: 1fr; }
  .channel { grid-template-columns: minmax(0, 1fr) auto; }
  .channel__l { grid-column: 1 / -1; margin-bottom: -8px; }
  .channel--qr img { width: 80px; height: 80px; }
}
@media (max-width: 400px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 15px; }
  .lang a { padding: 8px 7px; font-size: 12px; }
}
