/* ===========================================================
   CGA · 国际美食家大中华协会  —  Shared Design System
   =========================================================== */

:root {
  /* Palette */
  --cream: #f7f1e2;
  --cream-2: #f3ead4;
  --paper: #fbf7ec;
  --paper-soft: #fcf9f1;
  --gold: #b6892f;
  --gold-2: #caa14d;
  --gold-3: #d8b86a;
  --gold-deep: #9a701f;
  --brown: #3b2e1f;
  --brown-2: #2a2017;
  --brown-3: #241b12;
  --ink: #3b2f23;
  --ink-soft: #6b5c46;
  --line: #e6dabb;
  --line-soft: #efe6cf;
  --white: #ffffff;

  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --shadow-card: 0 10px 30px rgba(80, 58, 20, 0.08);
  --shadow-soft: 0 6px 18px rgba(80, 58, 20, 0.06);
  --radius: 14px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- decorative ---------- */
.serif { font-family: var(--serif); }

.gold-text { color: var(--gold); }

/* Section heading with flourish */
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head .cn {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  padding: 0 26px;
}
.sec-head .cn::before,
.sec-head .cn::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3));
}
.sec-head .cn::before { right: 100%; transform: scaleX(-1); }
.sec-head .cn::after { left: 100%; }
.sec-head .en {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: capitalize;
}
.sec-head.light .cn { color: var(--cream); }
.sec-head.light .en { color: var(--gold-3); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  font-size: 14px;
  font-family: var(--sans);
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(154,112,31,.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(154,112,31,.36); }
.btn-dark {
  background: linear-gradient(135deg, #4a3a26, #2c2117);
  color: var(--gold-3);
  border-color: rgba(216,184,106,.35);
}
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-deep);
}
.btn-outline:hover { background: rgba(182,137,47,.08); }
.btn-ghost-light {
  background: rgba(255,255,255,.08);
  border-color: rgba(216,184,106,.4);
  color: var(--gold-3);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,236,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(80,58,20,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
/* real CGA logo image (replaces the text mark) */
.brand .logo-mark {
  text-indent: -9999px;
  overflow: hidden;
  width: 168px;
  height: 54px;
  border: none;
  padding: 0;
  background: url('../assets/logos/cga-logo.png') left center / contain no-repeat;
}
.brand .logo-txt { display: none; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 6px;
  transition: color .2s;
  position: relative;
}
.main-nav a .en { font-size: 10px; color: var(--ink-soft); letter-spacing: .5px; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-deep); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--gold);
}

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  font-size: 13px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
}
.lang-toggle b { color: var(--gold-deep); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 24px; color: var(--brown); }

/* ============== FOOTER ============== */
.site-footer {
  background: linear-gradient(180deg, #2c2117, #1f170f);
  color: #d9cdb6;
  padding: 56px 0 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.3fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-brand .logo-mark {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold-3);
  border: 2px solid var(--gold);
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 2px;
}
.footer-brand .fb-cn { font-family: var(--serif); font-size: 15px; color: #f0e6cf; margin-top: 12px; letter-spacing: 1px;}
.footer-brand .fb-en { font-size: 10px; color: #a8966f; letter-spacing: 1px; text-transform: uppercase; }
.footer-brand p { font-size: 12.5px; color: #a8966f; margin-top: 16px; max-width: 280px; line-height: 1.9; }
.footer-col h4 { font-family: var(--serif); color: var(--gold-3); font-size: 15px; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col li { margin-bottom: 11px; font-size: 13px; color: #b7a784; }
.footer-col li a:hover { color: var(--gold-3); }
.footer-col .ic-line { display:flex; gap:8px; align-items:flex-start; }
.footer-col .ic-line span:first-child { color: var(--gold); }
.newsletter input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(216,184,106,.25);
  border-radius: 6px 0 0 6px;
  padding: 11px 14px;
  color: #f0e6cf;
  font-size: 13px;
}
.newsletter input::placeholder { color: #8a7a59; }
.newsletter .row { display: flex; margin-top: 8px; }
.newsletter button {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #fff; border: none; padding: 0 22px; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 13px;
}
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--gold-3);
  border: 1px solid rgba(216,184,106,.2);
  transition: all .2s;
}
.social-row a:hover { background: var(--gold); color: #2c2117; }
.footer-bottom {
  border-top: 1px solid rgba(216,184,106,.15);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8a7a59;
}
.footer-bottom a { color: #8a7a59; }
.footer-bottom a:hover { color: var(--gold-3); }

/* ============== generic sections ============== */
section { position: relative; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }

/* portrait placeholder */
.portrait {
  background: linear-gradient(160deg, #6a584180, #3a2e1f);
  position: relative;
  overflow: hidden;
}
.portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.12), transparent 60%);
}
.avatar {
  border-radius: 50%;
  background: linear-gradient(160deg, #8a745180, #463524);
  display: grid; place-items: center;
  color: rgba(255,255,255,.5); font-family: var(--serif);
}

/* fade-in */
.reveal { opacity: 0; transform: translateY(26px); transition: all .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head .cn { font-size: 24px; }
  /* long bilingual CTAs must wrap instead of being clipped on phones */
  .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.35; }
}

/* ============== i18n EN mode ============== */
html.en .main-nav a { font-size: 0; }
html.en .main-nav a .en { font-size: 12.5px; color: var(--ink); letter-spacing: .3px; }
html.en .main-nav a.active .en, html.en .main-nav a:hover .en { color: var(--gold-deep); }
html.en .sec-head .cn { display: none; }
html.en .sec-head .en { font-size: 25px; color: var(--brown); font-style: normal; letter-spacing: 2px; font-weight: 700; margin-top: 0; }
html.en .sec-head.light .en { color: var(--cream); }
html.en .page-hero h1 { font-size: 0 !important; }
html.en .page-hero h1 .en { font-size: 42px; color: #fff; margin-top: 0; }
html.en .brand .logo-txt .cn { display: none; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31,23,15,.97);
  display: none; flex-direction: column;
  padding: 80px 30px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #e9dcc0; font-family: var(--serif); font-size: 20px; padding: 14px 0; border-bottom: 1px solid rgba(216,184,106,.12); }
.mobile-nav .close { position: absolute; top: 24px; right: 28px; font-size: 30px; color: var(--gold-3); background: none; border: none; cursor: pointer; }
