/* =========================================================
   Linh Pham — Portfolio site
   Palette: linhfin (phương án A) — tỷ lệ ~60/30/10
   Quy tắc: vàng không dùng làm chữ trên nền sáng;
   chữ màu stone từ 14px trở lên.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600&display=swap');

:root {
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;

  --ink: #2E2E30;
  --gold: #D4A62A;
  --gold-deep: #7A5A14;
  --earth: #5C4326;
  --stone: #6E6E73;
  --silver: #C9C9CC;
  --mist: #F4F4F2;
  --white: #FFFFFF;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(46, 46, 48, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- language toggling ---------- */
[data-lang-block] { display: none !important; }
[data-lang-block].lang-active { display: block !important; }
span[data-lang-block].lang-active, strong[data-lang-block].lang-active, em[data-lang-block].lang-active, a[data-lang-block].lang-active { display: inline !important; }
button[data-lang-block].lang-active { display: inline-block !important; }
th[data-lang-block].lang-active, td[data-lang-block].lang-active { display: table-cell !important; }
.qf-text strong[data-lang-block].lang-active, .stat-label[data-lang-block].lang-active { display: block !important; }
span.cf-tag[data-lang-block].lang-active { display: inline-block !important; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 2.3rem; font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 10px; }
.role-lines { margin-top: 6px; }
.role-lines > [data-lang-block] { font-size: 1.05rem; font-weight: 600; color: var(--earth); line-height: 1.7; }

/* ---------- header / nav ---------- */
header.site-header { background: var(--white); border-bottom: 1px solid var(--silver); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--stone); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); }
nav.main-nav a.active { border-bottom-color: var(--gold); }
button#lang-toggle { border: 1px solid var(--silver); background: var(--mist); color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
button#lang-toggle:hover { border-color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ---------- sections ---------- */
section.tight { padding: 40px 0 24px; }
section.tight.hero { padding-top: 56px; }
section.tight.page-head { padding-bottom: 0; }
section.block { padding: 48px 0; }
section.block.flush { padding-top: 0; }
main section.block + section.block { border-top: 1px solid var(--silver); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; text-decoration: none; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--white); }

/* ---------- bio / quick facts ---------- */
.bio-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.quick-facts { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.quick-facts h3 { color: var(--gold); font-family: var(--sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.qf-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.16); }
.qf-row:first-of-type { border-top: none; padding-top: 0; }
.qf-row svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.qf-text { font-size: 0.9rem; line-height: 1.5; }
.qf-text strong { font-size: 0.75rem; color: var(--silver); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }

/* ---------- education / credentials ---------- */
.credential-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.credential-feature { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); padding: 20px; }
.cf-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.cf-title { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.cf-tag { display: inline-block; background: var(--mist); color: var(--gold-deep); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; line-height: 1.3; }
.credential-feature p { font-size: 0.9rem; color: var(--stone); margin: 0; }

/* ---------- Kinh nghiệm ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.filter-btn { border: 1px solid var(--silver); background: var(--white); color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 0.85rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 36px; }
.stat-tile { background: var(--white); border: 1px solid var(--silver); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 14px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold-deep); display: block; }
.stat-label { font-size: 0.875rem; color: var(--stone); font-weight: 600; }
.category-block { margin-bottom: 40px; }
.category-block h2 { margin-bottom: 14px; }
table.record-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.record-table th:first-child, table.record-table td:first-child { width: 76%; }
table.record-table th:last-child, table.record-table td:last-child { width: 24%; }
table.record-table th, table.record-table td { text-align: left; padding: 12px 16px; font-size: 0.92rem; border-bottom: 1px solid var(--silver); overflow-wrap: break-word; }
table.record-table th { background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.record-table tbody tr:last-child td { border-bottom: none; }

/* ---------- contact ---------- */
.contact-highlight { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact-highlight .eyebrow { color: var(--gold); }
.contact-highlight .email { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.form-embed { background: var(--white); border: 1px solid var(--silver); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.form-embed iframe { width: 100%; min-height: 760px; border: none; display: block; }

/* ---------- footer ---------- */
footer.site-footer { border-top: 1px solid var(--silver); padding: 28px 0 40px; margin-top: 40px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-row nav a { color: var(--stone); text-decoration: none; font-size: 0.875rem; }
.copyright { color: var(--stone); font-size: 0.875rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) and (min-width: 881px) {
  .credential-features { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
  .credential-features { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.8rem; }
  .contact-highlight { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  nav.main-nav { gap: 18px; }
  table.record-table th:first-child, table.record-table td:first-child { width: 62%; }
  table.record-table th:last-child, table.record-table td:last-child { width: 38%; }
  table.record-table th, table.record-table td { padding: 10px 12px; }
}
