/* =====================================================================
   Gambia China Business Council — design system
   Palette drawn from both national flags, resolved into one restrained
   editorial system: diplomatic navy, warm ivory paper, a single unifying
   red, antique gold, and a Gambian green used sparingly.
   ===================================================================== */

:root {
  /* colour */
  --navy:      #0A2A54;
  --navy-900:  #071d3b;
  --navy-700:  #12365f;
  --ink:       #17293f;
  --paper:     #f6f2e9;
  --paper-2:   #efe9db;
  --surface:   #ffffff;
  --red:       #c1121f;
  --red-deep:  #9d0d19;
  --gold:      #b4894a;
  --gold-soft: #cba86a;
  --green:     #1f6b4a;
  --muted:     #5b6675;
  --line:      #ddd6c6;
  --line-navy: rgba(255,255,255,.16);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Space Grotesk", "Inter", sans-serif;

  /* rhythm */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sp: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
ul { list-style: none; padding: 0; }
strong { font-weight: 600; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
p { max-width: 68ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 1.9rem; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: #34435a; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--sp); }
.band--navy { background: var(--navy); color: #e9eef3; }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }
.band--paper2 { background: var(--paper-2); }
.section-lead { max-width: 60ch; margin-top: 1.4rem; color: var(--muted); }
.band--navy .section-lead { color: #b9c6d8; }

.section-head { display: flex; align-items: baseline; gap: 1.25rem; }
.section-head .idx {
  font-family: var(--mono);
  font-size: .8rem; font-weight: 600;
  color: var(--gold);
  letter-spacing: .1em;
  padding-top: .6rem;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #1c1405; }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.band--navy .btn--ghost { border-color: var(--line-navy); color: #fff; }
.band--navy .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,233,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--navy); letter-spacing: -.01em; }
.brand__sub { font-family: var(--mono); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-size: .93rem; font-weight: 500; color: #33415a; position: relative; padding-block: .3rem; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .22s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav__cta { margin-left: .4rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero h1 { margin-top: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero__lead { margin-top: 1.7rem; max-width: 46ch; }
.hero__actions { margin-top: 2.2rem; }
.hero__meta { margin-top: 2.6rem; display: flex; gap: 2.2rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.hero__meta .n { font-family: var(--display); font-size: 1.9rem; color: var(--navy); line-height: 1; }
.hero__meta .k { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

.hero__art { position: relative; display: grid; place-items: center; }
.hero__seal { width: min(340px, 78%); height: auto; filter: drop-shadow(0 22px 40px rgba(10,42,84,.22)); }
.hero__rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.hero__rings span { position: absolute; border: 1px solid var(--gold); border-radius: 50%; opacity: .35; }
.hero__rings span:nth-child(1){ width: 78%; height: 78%; }
.hero__rings span:nth-child(2){ width: 96%; height: 96%; opacity:.2; }

/* thin flag rule */
.flag-rule { height: 4px; width: 100%; display: flex; }
.flag-rule i { flex: 1; }
.flag-rule .r{background:var(--red)} .flag-rule .b{background:#1E5F9E} .flag-rule .g{background:var(--green)} .flag-rule .w{background:#fff} .flag-rule .y{background:#C9A24B}

/* ---------- marquee strip ---------- */
.strip { background: var(--navy); color: #cdd8e6; border-block: 1px solid var(--navy-700); }
.strip__inner { display: flex; gap: 3rem; align-items: center; padding-block: 1rem; overflow-x: auto; scrollbar-width: none; }
.strip__inner::-webkit-scrollbar { display: none; }
.strip span { font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #9fb1c9; }
.strip span b { color: var(--gold-soft); font-weight: 600; }

/* ---------- feature / two-col ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--wide { grid-template-columns: .9fr 1.1fr; }
.stack > * + * { margin-top: 1.15rem; }

/* ---------- pillars / value list ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.pillar { background: var(--paper); padding: 2rem 1.7rem; }
.band--navy .pillars { background: var(--navy-700); border-color: var(--navy-700); }
.band--navy .pillar { background: var(--navy); }
.pillar .num { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; color: var(--gold); }
.pillar h3 { margin-top: .9rem; font-size: 1.25rem; }
.band--navy .pillar h3 { color: #fff; }
.pillar p { margin-top: .6rem; font-size: .96rem; color: var(--muted); }
.band--navy .pillar p { color: #aebbcd; }

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.sector {
  background: var(--surface); padding: 2.2rem 2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  transition: background .2s ease;
}
.sector:hover { background: #fffdf8; }
.sector__ic { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--navy); }
.sector__ic svg { width: 22px; height: 22px; }
.sector__no { font-family: var(--mono); font-size: .74rem; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.sector h3 { font-size: 1.28rem; margin-top: .35rem; }
.sector p { font-size: .95rem; color: var(--muted); margin-top: .55rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: #45566e; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: .28rem .7rem; }

/* ---------- projects ---------- */
.projects { margin-top: 3rem; border-top: 1px solid var(--line-navy); }
.project {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: 1.5rem; align-items: start;
  padding: 2rem 0; border-bottom: 1px solid var(--line-navy);
}
.project__no { font-family: var(--display); font-size: 2.4rem; color: var(--gold-soft); line-height: .9; }
.project h3 { color: #fff; font-size: 1.4rem; }
.project p { color: #b3c1d4; margin-top: .5rem; font-size: .98rem; }
.project__loc { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap; padding-top: .5rem; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 2.2rem 1.6rem; text-align: left; }
.stat .n { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1; }
.stat .n span { color: var(--red); }
.stat .k { margin-top: .7rem; font-size: .9rem; color: var(--muted); }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.member { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; background: var(--surface); }
.member__mono { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: -.02em; }
.member h3 { font-size: 1.12rem; margin-top: 1.1rem; }
.member .role { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-top: .5rem; }
.member .spec { font-size: .92rem; color: var(--muted); margin-top: .5rem; }

/* ---------- mission / event ---------- */
.event-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(10,42,84,.5); }
.event-card__top { background: var(--navy); color: #fff; padding: 1.7rem 1.9rem; }
.event-card__top .cn { font-size: .95rem; color: var(--gold-soft); letter-spacing: .2em; }
.event-card__top h3 { color: #fff; margin-top: .3rem; }
.event-card__body { padding: 1.7rem 1.9rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; color: var(--navy); text-align: right; }

.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.fee { border: 1px solid var(--line); border-radius: 6px; padding: 2rem; background: var(--surface); }
.fee.is-feature { border-color: var(--gold); background: linear-gradient(180deg,#fffdf7,#fff); position: relative; }
.fee.is-feature::before { content: "Members"; position: absolute; top: 1.2rem; right: 1.2rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 100px; padding: .2rem .6rem; }
.fee .amt { font-family: var(--display); font-size: 2.6rem; color: var(--navy); line-height: 1; margin-top: .4rem; }
.fee .amt small { font-size: 1rem; color: var(--muted); }
.fee .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fee ul { margin-top: 1.3rem; }
.fee li { display: flex; gap: .6rem; font-size: .93rem; color: #3a4a60; padding: .35rem 0; }
.fee li svg { width: 1.05rem; height: 1.05rem; color: var(--green); flex-shrink: 0; margin-top: .2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.field-list { border-top: 1px solid var(--line-navy); }
.field { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-navy); }
.field .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); padding-top: .2rem; }
.field .v { color: #e7eef6; font-size: 1.02rem; }
.field .v a:hover { color: #fff; text-decoration: underline; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.5rem, 3vw, 2.4rem); }
.form label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.form .row { margin-bottom: 1.2rem; }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,42,84,.1); background: #fff; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lead { margin: 1.3rem auto 2.2rem; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb1c9; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand .brand__name { color: #fff; }
.site-footer p { font-size: .92rem; color: #93a5bd; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { display: block; font-size: .93rem; color: #a9bad0; padding: .3rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-navy); font-size: .82rem; color: #7d90a9; }

/* ---------- reveal (progressive enhancement — only hides when JS is active) ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; }
  .split, .split--wide, .event-hero, .contact-grid { grid-template-columns: 1fr; }
  .sectors, .fees, .form .two { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 3rem 1fr; }
  .project__loc { grid-column: 2; padding-top: 0; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.4rem; padding: 5.5rem 2rem 2rem; transform: translateX(100%); transition: transform .28s ease; box-shadow: -20px 0 50px -30px rgba(10,42,84,.5); border-left: 1px solid var(--line); }
  .nav.open { transform: none; }
  .nav a { min-height: 44px; display: flex; align-items: center; width: 100%; }
  .nav__cta { margin-left: 0; justify-content: center; }
  .nav-toggle { display: block; z-index: 60; padding: .55rem; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .board { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.4rem; }
  .brand__sub { display: none; }
}
