/* ============================================================
   Advance Richmond (ARCA) — Party Portal Stylesheet
   Palette drawn from the ARCA heron logo:
   deep navy #14456B · sky blue #5B9BD0 · maple red #C8102E
   ============================================================ */

:root {
  --navy: #14456b;
  --navy-deep: #0d3352;
  --navy-ink: #0a2740;
  --blue: #5b9bd0;
  --blue-soft: #e8f1f9;
  --red: #c8102e;
  --red-dark: #a30d26;
  --gold: #e8a33d;
  --ink: #1c2b3a;
  --muted: #5a6b7c;
  --line: #dde6ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(13, 51, 82, 0.08);
  --shadow-lg: 0 12px 34px rgba(13, 51, 82, 0.16);
  --font: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* clip (not hidden) keeps position:sticky working while killing sideways scroll */
html, body { overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:lang(zh-Hant) { letter-spacing: 0.01em; }

img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { color: var(--navy-ink); line-height: 1.25; font-weight: 800; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { border-color: rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--blue-soft); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfe2f2;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-links a { color: #cfe2f2; font-weight: 500; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.topbar-actions a { font-size: 13px; white-space: nowrap; }
.topbar-actions .topbar-donate {
  background: var(--red);
  padding: 3px 15px;
  border-radius: 999px;
  font-weight: 700;
}
.topbar-actions .topbar-donate:hover { background: var(--red-dark); text-decoration: none; }
.topbar-actions .topbar-lang {
  border: 1px solid rgba(255,255,255,.35);
  padding: 2px 12px;
  border-radius: 999px;
}
.topbar-actions .topbar-lang:hover { border-color: #fff; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 13px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover { background: var(--blue-soft); color: var(--navy); }
.nav a.active { color: var(--red); }
.nav a.nav-donate {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  margin-left: 6px;
}
.nav a.nav-donate:hover { background: var(--red-dark); }
.nav a.nav-lang {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--navy);
  font-weight: 700;
}
.nav a.nav-lang:hover { border-color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(.9);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,39,64,.94) 15%, rgba(13,51,82,.82) 48%, rgba(13,51,82,.45) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 84px;
  max-width: 700px;
}
.hero .kicker { color: #ffd9a0; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 58px);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero p { font-size: clamp(16px, 2vw, 19px); color: #dbe9f6; margin-bottom: 30px; max-width: 600px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-team-link {
  display: inline-block;
  margin-top: 20px;
  color: #dbe9f6;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.45);
  padding-bottom: 2px;
}
.hero-team-link:hover { color: #fff; border-color: #fff; }

/* External-form marker */
a.ext::after { content: " ↗"; font-size: .85em; opacity: .85; }

/* Compliance / preview notes */
.compliance-note { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 14px; }
.trust-note { padding-bottom: 16px; text-align: center; }
.trust-note .compliance-note { margin-top: 0; }

/* Countdown */
.countdown-bar {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.09);
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(5px);
}
.countdown-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.countdown-label { font-weight: 700; font-size: 15px; color: #fff; }
.countdown { display: flex; gap: 22px; }
.countdown .unit { text-align: center; min-width: 58px; }
.countdown .num { font-size: 28px; font-weight: 800; color: #ffd9a0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #cfe2f2; }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .t-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
}
.trust-item .t-icon svg { width: 22px; height: 22px; stroke: var(--navy); fill: none; stroke-width: 2; }
.trust-item h3 { font-size: 15.5px; margin-bottom: 3px; }
.trust-item p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Pillar cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar .p-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.pillar .p-icon svg { width: 23px; height: 23px; stroke: #fff; fill: none; stroke-width: 2; }
.pillar h3 { font-size: 17px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--muted); }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #1d5c8f);
  color: #fff;
  padding: 64px 0;
}
.stats-band h2 { color: #fff; text-align: center; font-size: clamp(24px, 3vw, 34px); margin-bottom: 40px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat .num { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; color: #ffd9a0; line-height: 1.1; }
.stat .label { font-size: 14.5px; color: #d7e7f5; margin-top: 8px; }

/* ---------- Team cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.member-card .photo {
  aspect-ratio: 5 / 5.4;
  background: var(--blue-soft);
  overflow: hidden;
}
.member-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.member-card .info { padding: 18px 18px 20px; }
.member-card h3 { font-size: 18px; }
.member-card .zh-name { color: var(--red); font-weight: 700; font-size: 15px; margin-left: 6px; }
.member-card .role { color: var(--navy); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 8px; }
.member-card .tagline { font-size: 13.5px; color: var(--muted); }
.member-card .more { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--red); }

.team-section-title { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 6px; }
.team-section-sub { color: var(--muted); margin-bottom: 28px; }

.team-group-title {
  font-size: 19px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
}
.section-head + .team-group-title { margin-top: 0; }

/* ---------- Profile page ---------- */
.profile-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.profile-hero .container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.profile-hero .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.profile-hero h1 { font-size: clamp(30px, 4vw, 42px); }
.profile-hero .zh-name { color: var(--red); font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-left: 10px; }
.profile-hero .role { color: var(--navy); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; margin: 10px 0 6px; }
.profile-hero .tagline { color: var(--muted); font-size: 17px; }
.profile-body { max-width: 820px; margin: 0 auto; }
.profile-body p { margin-bottom: 18px; font-size: 16.5px; color: #2a3a4a; }
.back-link { display: inline-block; margin-bottom: 26px; text-decoration: none; font-weight: 700; color: var(--navy); }
.back-link:hover { color: var(--red); }

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--blue-soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 12.5px; }
.news-tag {
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.news-tag.archive { background: #f3eee1; color: #7a5c1e; }
.news-date { color: var(--muted); }
.news-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.news-card p { font-size: 14px; color: var(--muted); flex: 1; }
.news-card .more { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--red); }

.brief-list { display: grid; gap: 14px; }
.brief {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.brief h3 { font-size: 16.5px; margin: 6px 0 6px; }
.brief p { font-size: 14.5px; color: var(--muted); }

.article { max-width: 780px; margin: 0 auto; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-lg); }
.article h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.article .news-meta { margin-bottom: 24px; }
.article p { margin-bottom: 18px; font-size: 16.5px; color: #2a3a4a; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--blue), var(--navy));
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--red);
  box-shadow: 0 0 0 4px rgba(200,16,46,.12);
}
.tl-item .tl-date { font-size: 13px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .07em; }
.tl-item h3 { font-size: 19px; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 15px; }

/* ---------- Platform page ---------- */
.plank {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 22px;
}
.plank-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.plank-head .p-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
}
.plank-head .p-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.plank-head h3 { font-size: 21px; }
.plank ul { list-style: none; }
.plank li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15.5px;
  color: #2a3a4a;
}
.plank li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--red);
}

/* ---------- Involve cards ---------- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.involve-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.involve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.involve-card .i-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.involve-card .i-icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 2; }
.involve-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.involve-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.involve-card .btn { margin-top: 18px; align-self: flex-start; }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--navy-deep) 10%, var(--navy) 55%, #1d5c8f);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-band p { color: #d7e7f5; max-width: 640px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .hero-ctas { justify-content: center; }

.callout {
  background: var(--blue-soft);
  border: 1px solid #cfe2f4;
  border-radius: var(--radius);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.callout h3 { font-size: 18px; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: 14.5px; }

/* ---------- Donate ---------- */
.section.donate-home { background: linear-gradient(180deg, #fdf4f5, #fff 78%); }
.donate-strip {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}
.donate-strip .etransfer-line { text-align: left; }
.donate-strip-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.donate-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.donate-box h3 { font-size: 20px; margin-bottom: 16px; }
.etransfer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px dashed var(--blue);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.etransfer-line .who { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.etransfer-line .addr { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; color: var(--red); font-size: 15px; }
.rule-list { list-style: none; }
.rule-list li { position: relative; padding: 7px 0 7px 30px; font-size: 15px; color: #2a3a4a; }
.rule-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 7px;
  font-weight: 800;
  color: var(--navy);
}
.warn-list li::before { content: "!"; color: var(--red); }

/* ---------- Contact / FAQ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.contact-card h3 { font-size: 19px; margin-bottom: 14px; }
.contact-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; flex-wrap: wrap; }
.contact-line:last-child { border-bottom: none; }
.contact-line .lbl { color: var(--muted); }
.contact-line a { font-weight: 700; text-decoration: none; }
.contact-line a:hover { color: var(--red); }

.social-row { display: flex; gap: 14px; margin-top: 6px; }
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  transition: background .15s;
}
.social-row a:hover { background: var(--blue); }
.social-row svg { width: 20px; height: 20px; fill: var(--navy); }
.social-row a:hover svg { fill: #fff; }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--red); font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Vote info ---------- */
.vote-box {
  background: #fff;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
}
.vote-box h3 { font-size: 21px; margin-bottom: 10px; }
.vote-box > p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #b9cede; }
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 38px;
  padding: 56px 0 40px;
}
.footer-main h4 { color: #fff; font-size: 15px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .07em; }
.footer-main ul { list-style: none; }
.footer-main li { margin-bottom: 9px; }
.footer-main a { color: #b9cede; text-decoration: none; font-size: 14.5px; }
.footer-main a:hover { color: #fff; }
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: 12.5px;
  color: #8ba7bf;
}
.footer-legal p { margin-bottom: 6px; }

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

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--navy-deep), var(--navy) 65%, #1d5c8f);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: #d7e7f5; max-width: 720px; font-size: 17px; }

/* ---------- Sticky mobile action bar ---------- */
.sticky-cta { display: none; }
@media (max-width: 820px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(13,51,82,.12);
  }
  .sticky-cta .btn { flex: 1; text-align: center; padding: 12px 10px; font-size: 15px; }
  body { padding-bottom: 66px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .profile-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .profile-hero .photo { max-width: 320px; }
  .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .topbar-actions a { display: none; }
  .topbar-actions .topbar-donate, .topbar-actions .topbar-lang { display: inline-block; }
}

@media (max-width: 820px) {
  /* backdrop-filter turns the header into a containing block for fixed
     children, trapping the drawer inside the header bar — disable it here */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 26px 30px;
    gap: 6px;
    box-shadow: -12px 0 40px rgba(13,51,82,.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s .28s;
    overflow-y: auto;
  }
  .nav-open .nav { transform: translateX(0); visibility: visible; transition: transform .28s ease; }
  .nav a { font-size: 16.5px; padding: 12px 14px; }
  .nav a.nav-donate, .nav a.nav-lang { text-align: center; margin-left: 0; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .topbar-links { display: none; }
  .topbar .container { justify-content: center; }
  .trust .container { grid-template-columns: 1fr; gap: 18px; }
  .trust-note { text-align: left; }
  .countdown-bar .container { justify-content: center; text-align: center; }
  .hero-inner { padding: 72px 0 60px; }
  .section { padding: 54px 0; }
}
