/* ============================================================
   Fourways Crossing Community Stewards — stylesheet
   Palette: deep green + gold.  Fonts: Fraunces (display) / Inter (body)
   ============================================================ */

:root {
  --g950: #04100c;
  --g900: #07110e;
  --g850: #0a1a15;
  --g800: #0d241d;
  --g700: #123328;
  --g600: #17493a;
  --g500: #1d5c48;
  --gold: #d8b558;
  --gold-bright: #f0d489;
  --gold-deep: #a8842f;
  --cream: #f6f1e5;
  --cream-dim: #e6ddc9;
  --ink: #0a1712;
  --muted: #9db3a9;
  --muted-2: #7c948a;
  --line: rgba(216, 181, 88, 0.22);
  --line-soft: rgba(246, 241, 229, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--g900);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- eyebrow / small caps ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .7em;
}
.eyebrow.on-light { color: var(--gold-deep); }

.lede { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }
.on-light, .on-light .lede { color: #3f5349; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 17, 14, .88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 42px; height: 42px; flex: none; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wm-1 { font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .26em; color: var(--gold); }
.brand .wm-2 { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .18em; color: var(--cream-dim); }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--cream-dim);
  font-size: .93rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.nav a:hover { background: rgba(246, 241, 229, .07); color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold-bright); background: rgba(216, 181, 88, .12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .12s ease, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--g950); }
.btn-gold:hover { background: var(--gold-bright); text-decoration: none; }
.btn-outline { border-color: var(--line); color: var(--cream); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); text-decoration: none; }
.btn-ghost { background: rgba(246,241,229,.08); color: var(--cream); }
.btn-ghost:hover { background: rgba(246,241,229,.15); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: 8px 11px; font-size: 1rem; cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--g900); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; }
  .nav .btn { margin-top: 8px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--g900); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover; background-position: center right;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4,16,12,.97) 0%, rgba(5,20,15,.92) 34%, rgba(6,26,20,.66) 62%, rgba(6,26,20,.42) 100%),
    radial-gradient(120% 90% at 12% 20%, rgba(4,16,12,.55), transparent 65%);
}
.hero .inner { position: relative; z-index: 2; padding: 72px 22px 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 48px; align-items: center; }
@media (max-width: 880px) {
  .hero .inner { padding: 46px 22px 58px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero .lede { max-width: none; }
}
.hero h1 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.hero .lede { color: rgba(246,241,229,.82); font-size: 1.1rem; max-width: 34ch; }

.hero-cards { display: grid; gap: 16px; }

.card {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card .card-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; margin-bottom: 14px; color: var(--ink); }
.card .card-title svg { width: 20px; height: 20px; flex: none; color: var(--gold-deep); }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.amount {
  border: 1.5px solid #d8cfb6; background: #fff; color: var(--ink);
  border-radius: 11px; padding: 12px 4px; font: inherit; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; transition: .15s;
}
.amount:hover { border-color: var(--gold-deep); }
.amount[aria-pressed="true"] { background: var(--g800); border-color: var(--g800); color: var(--gold-bright); }
.amount-custom { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.amount-custom .r { font-weight: 700; color: var(--ink); }
.amount-custom input {
  flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 11px;
  border: 1.5px solid #d8cfb6; background: #fff; color: var(--ink);
}
.amount-custom input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.card .btn-gold { margin-top: 14px; }

.tracker {
  background: linear-gradient(160deg, rgba(18,51,40,.92), rgba(7,24,19,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--cream);
}
.tracker .ring { width: 46px; height: 46px; margin-bottom: 10px; }
.tracker .big { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--gold-bright); line-height: 1; }
.tracker .cap { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.tracker .sub { font-size: .92rem; color: var(--cream-dim); margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 56px 0; }
.section.g850 { background: var(--g850); }
.section.g800 { background: var(--g800); }
.section.g950 { background: var(--g950); }
.section.light { background: var(--cream); color: var(--ink); }
.section-head { max-width: 62ch; margin-bottom: 34px; }

/* community split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- steward cards ---------- */
.steward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.steward-card {
  background: linear-gradient(165deg, rgba(19,53,41,.75), rgba(10,32,25,.9));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s;
}
.steward-card:hover { transform: translateY(-3px); border-color: var(--line); }
.steward-card .photo { aspect-ratio: 4 / 3.4; background: var(--g700); position: relative; overflow: hidden; }
.steward-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 3rem; color: var(--gold-bright);
  background: radial-gradient(120% 120% at 30% 20%, var(--g600), var(--g850));
  letter-spacing: .02em;
}
.steward-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.steward-card h3 { margin: 0 0 .15em; font-size: 1.22rem; color: #fff; }
.steward-card .area { font-size: .87rem; color: var(--gold); margin-bottom: .6em; }
.steward-card .bio { font-size: .93rem; color: var(--cream-dim); flex: 1; }
.steward-card .actions { display: flex; gap: 8px; margin-top: 14px; }
.steward-card .actions .btn { flex: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(216,181,88,.14);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip {
  font-size: .74rem; color: var(--muted); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 2px 9px;
}

/* ---------- wall ---------- */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.quote {
  background: linear-gradient(165deg, rgba(19,53,41,.6), rgba(8,26,20,.85));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--serif); font-size: 3.4rem; line-height: .6;
  color: var(--gold); opacity: .45; display: block; margin-bottom: 6px;
}
.quote p { color: var(--cream); font-size: 1.03rem; }
.quote .who { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.quote .who .dot {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: .82rem;
  background: var(--g600); color: var(--gold-bright);
}
.quote .who .n { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); }
.quote .who .n small { display: block; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.quote .amt { margin-top: 10px; font-size: .82rem; color: var(--gold); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .84rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; color: var(--cream-dim); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--cream);
  border: 1.5px solid transparent; border-radius: 11px; padding: 12px 13px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--muted); }

.notice { border-radius: 12px; padding: 12px 14px; font-size: .92rem; margin-bottom: 14px; }
.notice.ok { background: rgba(29,92,72,.35); border: 1px solid var(--line); color: var(--cream); }
.notice.err { background: rgba(120,40,40,.32); border: 1px solid rgba(220,120,120,.35); color: #ffdede; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(2,8,6,.72); backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal .panel {
  background: var(--g850); border: 1px solid var(--line);
  border-radius: var(--radius-lg); max-width: 520px; width: 100%;
  padding: 26px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto;
}
.modal h3 { color: #fff; margin-top: 0; }
.modal .close {
  float: right; background: none; border: 0; color: var(--muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.modal .close:hover { color: #fff; }

.paybox { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 18px 0; }
.paybox .qr { background: #fff; padding: 10px; border-radius: 12px; width: 168px; height: 168px; }
.paybox .qr img, .paybox .qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
@media (max-width: 520px) { .paybox { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- footer ---------- */
.site-footer { background: var(--g950); border-top: 1px solid var(--line); padding: 52px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--cream-dim); font-size: .93rem; }
.site-footer .fine { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: .84rem; color: var(--muted-2); }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- utilities ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.spacer { height: 34px; }
.loading { color: var(--muted); font-size: .95rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem; color: var(--g950); background: var(--gold);
}
.step h3 { margin: 6px 0 4px; }
.step p { margin: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; }
.kv dt { color: var(--gold); }
.kv dd { margin: 0; color: var(--cream-dim); }
