/* Gia Phú — design system */
:root {
  --green: #03502a;
  --green-900: #02371e;
  --green-700: #0a6a3c;
  --gold: #d6a00e;
  --gold-light: #e6b523;
  --gold-soft: #f3dc8f;
  --cream: #f8f0e0;
  --paper: #fffaf1;
  --white: #ffffff;
  --red: #df2920;
  --ink: #1b2a21;
  --muted: #5d6b62;
  --line: #e4d9bf;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(3, 55, 30, .10);
  --font-body: "Be Vietnam Pro", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Playfair Display", "Noto Serif SC", Georgia, serif;
}
html[lang="zh"] { --font-body: "Noto Sans SC", "Be Vietnam Pro", system-ui, sans-serif; --font-head: "Noto Serif SC", "Playfair Display", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--green-900); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.placeholder { background: repeating-linear-gradient(45deg, #fff3cf, #fff3cf 6px, #ffecb0 6px, #ffecb0 12px); color: #7a5600; padding: 1px 8px; border-radius: 6px; font-size: .92em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 241, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { width: min(1360px, 100% - 40px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img.icon { height: 46px; width: auto; }
.brand img.word { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; padding: 8px 9px; white-space: nowrap; border-radius: 999px; }
.nav a:hover { background: var(--cream); }
.nav a[aria-current="page"] { color: var(--green); background: var(--cream); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.lang { flex: none; white-space: nowrap; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang button { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.lang a { display: inline-block; padding: 7px 12px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--green); color: var(--cream); }
.lang a:not([aria-current="true"]):hover { background: var(--cream); color: var(--green); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--green); margin: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; left: 0; }
.menu-btn span::after { position: absolute; top: 6px; left: 0; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--green-900); box-shadow: 0 6px 16px rgba(214, 160, 14, .35); }
.btn-gold:hover { background: var(--gold-light); color: var(--green-900); }
.btn-green { background: var(--green); color: var(--cream); }
.btn-green:hover { background: var(--green-700); color: var(--white); }
.btn-ghost { border-color: rgba(248, 240, 224, .6); color: var(--cream); }
.btn-ghost:hover { background: rgba(248, 240, 224, .12); color: var(--white); }
.btn-line { border-color: var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--cream); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 38px; height: 4px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.dark .section-head p { color: #d6e6db; }
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Hero */
.hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after, .page-hero::before { content: ""; position: absolute; border-radius: 50%; background: #0a6a3c; z-index: -1; }
.hero::before { width: 640px; height: 640px; right: -180px; top: -260px; opacity: .8; }
.hero::after { width: 520px; height: 520px; left: -240px; bottom: -300px; background: #08542f; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 92px) 0; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero .lead { font-size: 1.12rem; color: #e1ede5; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .slogan { margin-top: 36px; display: flex; align-items: center; gap: 14px; color: var(--gold-soft); font-family: var(--font-head); font-style: italic; font-size: 1.1rem; }
.hero .slogan::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 220px 220px 28px 28px; overflow: hidden; aspect-ratio: 4/5; border: 6px solid rgba(243, 220, 143, .85); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .seal { position: absolute; left: -22px; bottom: 54px; width: 62px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.hero-media .badge { position: absolute; right: -10px; top: 44px; background: var(--cream); color: var(--green); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; max-width: 190px; line-height: 1.35; }
.caption { font-size: .8rem; color: var(--muted); margin-top: 10px; font-style: italic; }
.hero .caption { color: #b9d3c3; }

.page-hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; padding: clamp(44px, 6vw, 76px) 0; }
.page-hero::before { width: 460px; height: 460px; right: -120px; top: -220px; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero p { max-width: 720px; color: #dcebe1; font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; color: #b9d3c3; margin-bottom: 14px; }
.crumbs a { color: var(--gold-soft); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -42px; position: relative; z-index: 2; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.pillar h3 { margin-bottom: .3em; }
.pillar p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-left: 3px solid var(--gold); padding: 6px 0 6px 20px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-light); line-height: 1.1; }
.stat > span { color: #d6e6db; font-size: .95rem; display: block; margin-top: 6px; }
.note { font-size: .84rem; color: var(--muted); margin-top: 24px; }
.dark .note { color: #b9d3c3; }
.dark .note a { color: var(--gold-soft); }

/* Cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 0 rgba(214, 160, 14, .15); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .92rem; }
.icon-bubble { width: 54px; height: 54px; border-radius: 16px; background: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.icon-bubble svg { width: 28px; height: 28px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 2.2rem; line-height: 1; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media img { border-radius: var(--radius); width: 100%; height: auto; box-shadow: var(--shadow); }
.split-media .tall { aspect-ratio: 5/4; object-fit: cover; object-position: center 60%; }
.split-media .wide { aspect-ratio: 3/2; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2302371e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.dark .ticks li { color: #e1ede5; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step .n { position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--green-900); font-weight: 800; display: grid; place-items: center; font-family: var(--font-head); box-shadow: 0 4px 10px rgba(214, 160, 14, .4); }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); font-size: .96rem; }
.step .confirm { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--cream); font-size: .9rem; color: var(--green-900); border-left: 3px solid var(--gold); }
.step .confirm b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8a6200; }
.timeline { display: grid; gap: 22px; }
.timeline .step { display: grid; grid-template-columns: 92px 1fr 1fr; gap: 24px; align-items: start; }
.timeline .step .n { position: static; width: 64px; height: 64px; font-size: 1.6rem; margin: 0; }
.timeline .step .confirm { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--green); color: var(--cream); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; color: var(--green); width: 28%; }
td small { display: block; color: var(--muted); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { background: var(--cream); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--green-900); }
.callout { border: 1px solid var(--gold); background: #fff6dc; border-radius: var(--radius); padding: 20px 24px; color: #5b4300; font-size: .96rem; }
.callout b { color: var(--green-900); }

/* Map */
.map { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.map { overflow-x: auto; }
.map svg { width: 100%; min-width: 720px; height: auto; }
.map text { font-family: var(--font-body); paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .86rem; color: var(--muted); margin: 12px 6px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; color: var(--green); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band { background: var(--green); border-radius: 28px; padding: clamp(32px, 5vw, 60px); color: var(--cream); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #0a6a3c; right: -120px; top: -140px; z-index: -1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dcebe1; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Form */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .9rem; color: var(--green); padding: 0; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(214, 160, 14, .35); border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; color: var(--ink); cursor: pointer; background: var(--paper); }
.checks input { width: auto; accent-color: var(--green); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; }
.form-status { font-size: .9rem; color: var(--green); font-weight: 600; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.contact-item .icon-bubble { margin: 0; flex: none; width: 46px; height: 46px; border-radius: 14px; }
.contact-item .icon-bubble svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-item div > :last-child { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe0d5; padding: 64px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: var(--gold-light); font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #cfe0d5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer .f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .f-logo .icon { height: 54px; }
.site-footer .f-logo .word { height: 46px; }
.site-footer .slogan { max-width: 280px; }
.site-footer .legal { border-top: 1px solid rgba(248, 240, 224, .15); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #9fb8a9; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer .placeholder { background: rgba(243, 220, 143, .15); color: var(--gold-soft); }

/* Motion */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1360px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .header-tools .btn { display: none; }
  .site-header { position: sticky; }
  .site-header .bar { position: relative; }
}
@media (max-width: 900px) {
  .hero .grid, .split, .cta-band { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-inline: auto; }
  .split.rev .split-media { order: 0; }
  .g3, .steps, .stats, .pillars { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .timeline .step { grid-template-columns: 1fr; gap: 14px; }
  .cta-band .actions { justify-content: flex-start; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .pillars { margin-top: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g2, .g4, .form-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .brand img.word { height: 32px; }
  .brand img.icon { height: 38px; }
  .hero-media .seal { left: -8px; }
  .hero-media .badge { right: 0; }
}

/* Bài viết / trang nội dung */
.prose-wrap { max-width: 800px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.04rem; color: #2b3a31; }
.prose ul.ticks li { color: #2b3a31; }
.prose .callout { margin: 1.2em 0; }
.prose .faq { margin-top: 8px; }
.prose a { font-weight: 600; }
.prose-img { margin: 0 0 32px; }
.prose-img img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
/* Bản tổng (dynamic): chỉ hiện khối ngôn ngữ đang chọn */
[data-lb] { display: none; }
html[lang="vi"] [data-lb="vi"], html[lang="en"] [data-lb="en"], html[lang="zh"] [data-lb="zh"] { display: block; }
