/* ============================================================
   GFEA — Golden Financial Exploration Association
   Shared stylesheet · modern-fintech + friendly
   ============================================================ */

:root {
  --gold:        #C9A227;
  --gold-light:  #E5C158;
  --gold-soft:   #F6EBC7;
  --gold-tint:   #FBF6E8;
  --ink:         #1A1F2B;   /* charcoal / navy */
  --ink-soft:    #2A3142;
  --slate:       #5A6377;
  --line:        #ECE7DA;
  --cream:       #FCFAF4;
  --white:       #FFFFFF;
  --shadow-sm:   0 4px 14px rgba(26,31,43,.06);
  --shadow-md:   0 14px 40px rgba(26,31,43,.10);
  --shadow-gold: 0 18px 45px rgba(201,162,39,.22);
  --radius:      22px;
  --radius-lg:   30px;
  --maxw:        1180px;
  --font:        'Inter', system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head:   'Sora', 'Inter', system-ui, "PingFang SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 700; color: var(--ink); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.center { text-align: center; }

/* ---------- multilingual toggle (EN / 中文 / ES) ---------- */
[data-lang] { display: none; }
body.lang-en [data-lang="en"],
body.lang-zh [data-lang="zh"],
body.lang-es [data-lang="es"] { display: revert; }
/* inline variants keep flow */
body.lang-en span[data-lang="en"],
body.lang-zh span[data-lang="zh"],
body.lang-es span[data-lang="es"] { display: inline; }
body.lang-en br[data-lang="en"],
body.lang-zh br[data-lang="zh"],
body.lang-es br[data-lang="es"] { display: block; }

/* segmented language switch */
.lang-seg { display: inline-flex; border: 1.5px solid var(--gold); border-radius: 999px; overflow: hidden; }
.lang-seg button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft); padding: 7px 12px; transition: .18s; line-height: 1;
}
.lang-seg button:hover { background: var(--gold-tint); }
.lang-seg button.active { background: var(--gold); color: #fff; }

/* ---------- prominent official-domain banner (every page) ---------- */
.domain-banner {
  background: linear-gradient(90deg, #11151f, #1A1F2B);
  border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  color: #fff;
}
.domain-banner .wrap {
  display: flex; align-items: center; gap: 16px; padding: 14px 24px; flex-wrap: wrap; justify-content: center; text-align: center;
}
.domain-banner .flag {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(201,162,39,.18);
  border: 1px solid rgba(201,162,39,.5); display: flex; align-items: center; justify-content: center; color: var(--gold-light);
}
.domain-banner .flag svg { width: 18px; height: 18px; }
.domain-banner p { color: #E7EAF1; font-size: .95rem; margin: 0; }
.domain-banner p b { color: var(--gold-light); }
.domain-banner .tagword { text-transform: uppercase; letter-spacing: 1.2px; font-size: .72rem; color: var(--gold-light); font-weight: 700; margin-right: 4px; }
.domain-banner a.more { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }
.domain-banner a.more:hover { color: var(--gold-light); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,250,244,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .2px; }
.brand-text small { font-size: .64rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--slate); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); transition: .2s;
}
.nav-links a:hover { background: var(--gold-tint); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--white); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1.5px solid var(--gold); color: var(--ink); background: transparent;
  border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: .2s; white-space: nowrap;
}
.lang-btn:hover { background: var(--gold); color: var(--white); }
.btn-donate {
  background: var(--gold); color: var(--white); padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-gold); transition: .2s;
}
.btn-donate:hover { transform: translateY(-2px); background: var(--gold-light); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: .22s; border: 0;
}
.btn-primary { background: var(--gold); color: var(--white); box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-3px); background: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); background: var(--ink-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(201,162,39,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(201,162,39,.10), transparent 60%),
    linear-gradient(180deg, #11151f 0%, #1A1F2B 60%, #1A1F2B 100%);
  color: #fff; padding: 92px 0 110px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,162,39,.16); color: var(--gold-light);
  border: 1px solid rgba(201,162,39,.35);
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .4px; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -.5px; }
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead { color: #C7CDDA; font-size: 1.12rem; margin: 22px 0 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .coin {
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2A3142, #11151f);
  border: 1px solid rgba(201,162,39,.3);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 60px rgba(201,162,39,.08);
  animation: float 6s ease-in-out infinite;
}
.hero-art .coin svg { width: 190px; height: 190px; }
.hero-art .spark {
  position: absolute; border-radius: 50%; background: var(--gold-light); opacity: .8;
  animation: float 5s ease-in-out infinite;
}
.hero-art .spark.s1 { width: 14px; height: 14px; top: 8%; left: 14%; animation-delay: .4s; }
.hero-art .spark.s2 { width: 9px; height: 9px; bottom: 14%; left: 6%; animation-delay: 1.1s; }
.hero-art .spark.s3 { width: 18px; height: 18px; bottom: 6%; right: 10%; animation-delay: .7s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* wave divider */
.hero-wave { display: block; width: 100%; height: 60px; margin-top: -1px; }

/* ============================================================
   SECTIONS
   ============================================================ */
section.block { padding: 84px 0; }
section.tint { background: var(--gold-tint); }
section.dark { background: var(--ink); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #C7CDDA; }

.sec-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.sec-head .tag {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.sec-head p { color: var(--slate); margin-top: 14px; font-size: 1.05rem; }
section.dark .sec-head p { color: #C7CDDA; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.stat {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 22px; text-align: center;
  transition: .25s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(201,162,39,.5); }
.stat .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--gold-light); }
.stat .lbl { color: #C7CDDA; font-size: .98rem; margin-top: 6px; }

/* ---------- card grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm); transition: .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card .ic {
  width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-tint); color: var(--gold); margin-bottom: 18px;
}
.card .ic svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }

/* numbered offer cards */
.offer .step { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--gold);
  border: 2px solid var(--gold-soft); width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ---------- disclaimer / notice ---------- */
.notice {
  background: var(--white); border: 1px solid var(--gold-soft);
  border-left: 6px solid var(--gold); border-radius: var(--radius);
  padding: 34px 36px; box-shadow: var(--shadow-sm); max-width: 920px; margin: 0 auto;
}
.notice .badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gold-tint); color: var(--gold);
  font-weight: 700; font-size: .82rem; letter-spacing: .5px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.notice h3 { font-size: 1.4rem; margin-bottom: 12px; }
.notice p { color: var(--ink-soft); font-size: 1rem; }
.notice strong { color: var(--gold); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split .kv { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.split .kv li { display: flex; gap: 12px; align-items: flex-start; color: var(--slate); }
.split .kv li::before {
  content: "✦"; color: var(--gold); font-size: .9rem; margin-top: 4px; flex: none;
}

/* ---------- event gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; transition: .4s; width: 100%; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  background: linear-gradient(transparent, rgba(17,21,31,.82));
  color: #fff; font-size: .85rem; font-weight: 500;
}

/* ---------- posters / events ---------- */
.poster-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .25s; }
.poster-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.poster-card .ph { background: var(--gold-tint); }
.poster-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.poster-card .body { padding: 20px 22px; }
.poster-card .date { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .5px; }
.poster-card h3 { font-size: 1.2rem; margin: 6px 0 14px; }

/* ---------- article archive ---------- */
.articles { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.article-tile {
  display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--white); box-shadow: var(--shadow-sm); transition: .25s; position: relative;
}
.article-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-tile img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.article-tile .meta { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.article-tile .meta span { font-size: .85rem; color: var(--slate); font-weight: 500; }
.article-tile .meta .go { color: var(--gold); font-weight: 700; font-size: .85rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-item .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-tint); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item .ic svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--slate); font-size: .96rem; word-break: break-word; }
.contact-item a:hover { color: var(--gold); }
.tagpill { display: inline-block; font-size: .72rem; background: var(--gold-tint); color: var(--gold);
  padding: 2px 9px; border-radius: 999px; font-weight: 600; margin-left: 6px; }

.socials { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.socials a { width: 50px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  color: #fff; transition: .22s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-4px); }
.socials svg { width: 22px; height: 22px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; color: #fff;
  box-shadow: var(--shadow-gold);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.4rem); }
.cta-banner p { color: rgba(255,255,255,.92); margin: 12px auto 26px; max-width: 540px; }
.cta-banner .btn-dark { background: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  background: #11151f; color: #9AA3B5; padding: 60px 0 30px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site .brand-text b { color: #fff; }
footer.site h5 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
footer.site ul { list-style: none; display: grid; gap: 10px; }
footer.site a:hover { color: var(--gold-light); }
footer.site .fineprint { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  font-size: .82rem; color: #6E7689; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site .fineprint .domains b { color: var(--gold-light); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art .coin { width: 230px; height: 230px; }
  .hero-art .coin svg { width: 140px; height: 140px; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .articles { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }

  .burger { display: flex; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 14px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 16px; }
}
@media (max-width: 560px) {
  .stats, .grid-3, .grid-2, .articles, .gallery { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .brand-text small { display: none; }
  .nav-tools .btn-donate { display: none; }
  .cta-banner { padding: 40px 24px; }
}
