/* Eat Green Vietnam — base styles */
:root {
  --leaf: #2f5d3a;
  --leaf-deep: #1f4029;
  --leaf-soft: #e4ede3;
  --rice: #faf6ee;
  --paper: #ffffff;
  --ink: #1d2620;
  --ink-soft: #55615a;
  --chili: #c8452c;
  --line: #e3ddd0;
  --radius: 14px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rice);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
a:hover { color: var(--leaf-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .4em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .5em; font-weight: 600; }
h3 { font-size: 1.25rem; margin: 0 0 .35em; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--rice); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--leaf); }
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 16px; width: 100%; overflow-x: auto; }
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--chili); margin-bottom: 14px; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -24px rgba(29,38,32,.45); }
.hero-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.credit { font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.btn-primary { background: var(--leaf); color: #fff; }
.btn-primary:hover { background: var(--leaf-deep); color: #fff; }
.btn-ghost { border: 1.5px solid var(--leaf); color: var(--leaf); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 32px; } }

/* Sections */
section { padding: 48px 0; }
.band { background: var(--leaf-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 36em; }

/* Promise row */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.promise .num { font-family: var(--serif); color: var(--chili); font-size: 1.1rem; font-weight: 600; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(29,38,32,.5); color: inherit; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card .body { padding: 18px 20px 22px; }
.card .meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--chili); font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card.soon { border-style: dashed; background: transparent; }
.card.soon .body { padding: 20px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--leaf); background: var(--leaf-soft); padding: 3px 10px; border-radius: 999px; margin-top: 10px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.region { padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.region ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--ink-soft); }
@media (max-width: 760px) { .regions { grid-template-columns: 1fr; } }

/* Phrasebook */
.phrases { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.phrases th, .phrases td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.phrases th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); background: var(--rice); }
.phrases td:first-child { font-weight: 600; color: var(--leaf-deep); white-space: nowrap; }
.phrases tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .phrases td:first-child { white-space: normal; } }

/* Article */
.article-hero { padding: 40px 0 8px; }
.article-hero .crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.article-hero .crumbs a { color: var(--ink-soft); }
.article-img { margin: 22px 0 6px; border-radius: var(--radius); overflow: hidden; }
.article-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.fact b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--chili); margin-bottom: 4px; }
.fact.green { background: var(--leaf-soft); border-color: transparent; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.say { font-family: var(--serif); font-size: 1.3rem; color: var(--leaf-deep); }
.note { font-size: .88rem; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: 14px; }
article h2 { margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--leaf-deep); color: #dfe8df; padding: 44px 0 30px; margin-top: 30px; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.fine { font-size: .82rem; color: #b8c7b9; max-width: var(--max); margin: 26px auto 0; padding: 18px 20px 0; border-top: 1px solid rgba(255,255,255,.15); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(29,38,32,.45); padding: 16px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .92rem; color: var(--ink-soft); flex: 1 1 280px; }
.consent div { display: flex; gap: 10px; }
.consent button { cursor: pointer; font-family: inherit; background: none; }
.consent .btn-primary { background: var(--leaf); border: 0; }
button.btn-ghost { background: none; cursor: pointer; font-family: inherit; }
