/* ============================================================
   Nosei B'Ol — "Functional Modern"
   High-end logistics tool transformed into a charitable engine.
   Palette:  Action Blue #116DFF · Ground #FAF9F6
             Trust Navy #1A2B3C  · Honor Gold #C5A059
   Type:     Archivo (Neue Haas Grotesk substitute) / Inter /
             JetBrains Mono
   ============================================================ */

:root {
  --blue: #116DFF;
  --blue-deep: #0D56C9;
  --ground: #FAF9F6;
  --navy: #1A2B3C;
  --navy-deep: #12202E;
  --navy-ink: #0D1722;
  --gold: #C5A059;
  --gold-soft: #E8D9BC;
  --parchment: #F3EEE3;
  --line: #E4DFD3;
  --muted: #5B6B7B;
  --white: #FFFFFF;
  --danger: #C0392B;
  --ok: #2E7D52;

  --font-head: "Archivo", "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Wix Madefor Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(26, 43, 60, .10);
  --shadow-lg: 0 24px 60px rgba(26, 43, 60, .18);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
section { padding: 96px 0; scroll-margin-top: calc(var(--header-h) + 12px); }

.kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons & chips ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(17, 109, 255, .32); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost { background: transparent; color: #fff; border: 1.6px solid rgba(255, 255, 255, .55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--gold { background: var(--gold); color: var(--navy-ink); }
.btn--gold:hover { filter: brightness(1.06); }

.chip {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-block;
}
.chip--critical { background: var(--gold); color: var(--navy-ink); }
.chip--high { background: var(--blue); color: #fff; }
.chip--standard { background: rgba(26, 43, 60, .10); color: var(--navy); }
.chip--miles { background: var(--navy); color: var(--gold-soft); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease;
  background: linear-gradient(180deg, rgba(13, 23, 34, .62), rgba(13, 23, 34, 0));
}
#site-header.solid {
  background: rgba(18, 32, 46, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(13, 23, 34, .35);
}
.header-inner { display: flex; align-items: center; gap: 26px; width: min(1240px, 94vw); margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 auto; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.06rem; letter-spacing: .02em; color: #fff; line-height: 1.05;
}
.logo-word small {
  display: block;
  font-family: var(--font-mono); font-weight: 500; font-size: .58rem;
  letter-spacing: .3em; color: var(--gold);
}

#site-nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
#site-nav a {
  color: rgba(255, 255, 255, .85);
  font-weight: 600; font-size: .9rem;
  text-decoration: none;
}
#site-nav a:hover { color: #fff; }

#cart-open {
  position: relative;
  background: rgba(255, 255, 255, .1);
  border: 1.4px solid rgba(255, 255, 255, .35);
  color: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 9px;
}
#cart-open:hover { background: rgba(255, 255, 255, .18); }
#cart-badge {
  background: var(--gold); color: var(--navy-ink);
  min-width: 22px; height: 22px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
#cart-badge.empty { background: rgba(255, 255, 255, .25); color: #fff; }
#cart-badge.pop { animation: badge-pop .45s cubic-bezier(.2, 2.2, .4, 1); }
@keyframes badge-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }

#nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
}
#nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  color: #fff;
  isolation: isolate;
}
#hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: url("../assets/img/hero-town-aerial.jpg") center 30% / cover no-repeat;
}
#hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 23, 34, .88) 6%, rgba(13, 23, 34, .55) 46%, rgba(13, 23, 34, .28) 100%),
    linear-gradient(0deg, rgba(13, 23, 34, .9) 0%, rgba(13, 23, 34, 0) 38%);
}
.hero-inner h1 { color: #fff; max-width: 760px; }
.hero-inner h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 1.16rem; color: rgba(255, 255, 255, .85); max-width: 620px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 74px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 860px;
  backdrop-filter: blur(6px);
}
.hero-stat { background: rgba(13, 23, 34, .55); padding: 22px 24px; }
.hero-stat .num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff; line-height: 1;
}
.hero-stat .lbl {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-soft); margin-top: 8px;
}

/* ============================================================
   THESIS + PILLARS
   ============================================================ */
#mission { padding-bottom: 60px; }
.thesis-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.thesis-quote {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25;
  border-left: 4px solid var(--gold);
  padding-left: 26px;
  margin: 0 0 22px;
}
.how-cards { display: grid; gap: 16px; }
.how-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow);
}
.how-num {
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
  color: var(--blue); background: rgba(17, 109, 255, .1);
  border-radius: 8px; padding: 6px 9px; flex: 0 0 auto;
}
.how-card h3 { margin-bottom: 4px; }
.how-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.pillars {
  margin-top: 70px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.pillar {
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  position: relative; overflow: hidden;
}
.pillar::after {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 3px;
  background: var(--gold); border-radius: 0 0 4px 4px;
}
.pillar .big {
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--gold);
  line-height: 1; margin-bottom: 10px;
}
.pillar h3 { color: #fff; }
.pillar p { color: rgba(255, 255, 255, .78); font-size: .93rem; margin: 0; }

/* ============================================================
   NEEDS CATALOG + MATCHING ENGINE
   ============================================================ */
#needs { background: var(--parchment); }
.needs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }

#zip-form {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border: 1.6px solid var(--line);
  padding: 8px 8px 8px 18px; border-radius: 999px;
  box-shadow: var(--shadow);
}
#zip-form:focus-within { border-color: var(--blue); }
#zip-input {
  border: 0; outline: 0; background: none;
  font-family: var(--font-mono); font-size: 1rem; width: 120px;
  color: var(--navy);
}
#sort-select {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  border: 1.6px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy);
  padding: 12px 18px; cursor: pointer;
}
.needs-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
#match-note { width: 100%; color: var(--muted); font-size: .9rem; margin: 10px 0 0; }

#needs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}
.need-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.need-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.need-media {
  position: relative; height: 168px;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(17, 109, 255, .16), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; align-items: center; justify-content: center;
}
.need-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.need-media.missing img { display: none; }
.need-icon { width: 72px; height: 72px; color: var(--gold); opacity: 0; }
.need-media.missing .need-icon { opacity: 1; }
.need-icon svg { width: 100%; height: 100%; }
.need-media .chip--urgency { position: absolute; top: 14px; left: 14px; }
.need-media .chip--miles { position: absolute; top: 14px; right: 14px; background: rgba(13,23,34,.78); }
.need-media.missing::after {
  content: "add " attr(data-hint);
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .38);
  opacity: 0; transition: opacity .2s ease;
}
.need-media.missing:hover::after { opacity: 1; }

.need-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.need-name { margin-bottom: 2px; }
.need-org { color: var(--gold); margin: 0 0 10px; font-weight: 600; }
.need-desc { color: var(--muted); font-size: .93rem; flex: 0 0 auto; }
.need-progress { margin: 6px 0 4px; }
.bar {
  height: 8px; background: var(--parchment);
  border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line);
}
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4E93FF); border-radius: 999px; }
.progress-label { color: var(--muted); margin: 8px 0 0; }
.progress-label strong { color: var(--navy); }
.need-procure { color: #9AA6B2; margin: 8px 0 16px; }

.need-actions { margin-top: auto; display: flex; gap: 12px; align-items: stretch; }
.qty {
  display: flex; align-items: center;
  border: 1.6px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.qty-btn {
  width: 38px; height: 100%; min-height: 44px;
  border: 0; background: none; cursor: pointer;
  font-size: 1.15rem; color: var(--navy); font-family: var(--font-mono);
}
.qty-btn:hover { background: var(--parchment); }
.qty-input {
  width: 44px; border: 0; outline: 0; text-align: center;
  font-family: var(--font-mono); font-size: .95rem; color: var(--navy);
  -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn--add { flex: 1; justify-content: center; padding: 12px 18px; white-space: nowrap; }

/* ============================================================
   CHESED-MATCH
   ============================================================ */
#chesed { background: #fff; }
.chesed-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-bottom: 10px;
}
.chesed-head .btn { flex: 0 0 auto; margin-top: 8px; }

#chesed-form-wrap { margin: 18px 0 8px; }
#chesed-form {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cm-grid label {
  display: flex; flex-direction: column; gap: 7px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.cm-full { grid-column: 1 / -1; }
#chesed-form input, #chesed-form select, #chesed-form textarea {
  font-family: var(--font-body); font-size: .95rem;
  border: 1.6px solid var(--line); border-radius: 10px;
  padding: 12px 15px; background: #fff; color: var(--navy);
  outline: none; width: 100%; resize: vertical;
}
#chesed-form input:focus, #chesed-form select:focus, #chesed-form textarea:focus { border-color: var(--blue); }
.cm-consent {
  flex-direction: row !important; align-items: center; gap: 12px !important;
  text-transform: none !important; letter-spacing: 0 !important;
  font-family: var(--font-body) !important; font-size: .9rem !important; color: var(--navy) !important;
}
.cm-consent input { width: 19px !important; height: 19px; flex: 0 0 auto; accent-color: var(--blue); }
.cm-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.cm-fine { color: var(--muted); margin: 0; font-size: .64rem; letter-spacing: .08em; }

.chesed-filters {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin: 30px 0 10px; align-items: start;
}
.chesed-filters .fchip[data-type="all"] { grid-column: 1 / -1; justify-self: start; }
.fcard {
  padding: 0 !important; overflow: hidden;
  border-radius: var(--radius) !important;
  background: #fff; text-align: left;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.fcard img { width: 100%; height: 120px; object-fit: cover; display: block; }
.fcard span {
  display: block; padding: 11px 15px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; color: var(--navy);
}
.fcard.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 109, 255, .22), var(--shadow-lg); }
.fcard.active span { background: var(--navy); color: #fff; }
.fchip {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  background: #fff; color: var(--navy);
  border: 1.6px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.fchip:hover { border-color: var(--navy); }
.fchip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
#chesed-zip-note { color: var(--muted); font-size: .88rem; margin: 0 0 26px; }

#chesed-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.chesed-empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; text-align: center; }

.chesed-card {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chesed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.chesed-card.pending { border-style: dashed; border-color: var(--gold); }

.cc-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.cc-icon {
  width: 42px; height: 42px; color: var(--blue);
  background: rgba(17, 109, 255, .09); border-radius: 12px;
  padding: 8px; flex: 0 0 auto; margin-right: 2px;
}
.cc-icon svg { width: 100%; height: 100%; display: block; }
.chip--type { background: rgba(17, 109, 255, .1); color: var(--blue-deep); }
.chip--pendingrev { background: var(--gold-soft); color: var(--navy-ink); }

.cc-title { font-size: 1.08rem; margin-bottom: 4px; }
.cc-meta { color: var(--muted); margin: 0 0 10px; }
.cc-desc { color: var(--muted); font-size: .92rem; flex: 1 0 auto; }
.cc-actions { margin-top: 16px; }
.btn--claim {
  width: 100%;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem;
  background: transparent; color: var(--navy);
  border: 1.7px solid var(--navy); border-radius: 999px;
  padding: 12px 20px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn--claim:hover { background: var(--navy); color: #fff; }
.cc-pending-note { color: var(--gold); font-size: .62rem; letter-spacing: .08em; margin: 0; }

.cc-contact {
  background: #fff; border: 1.6px dashed var(--gold); border-radius: var(--radius-sm);
  padding: 15px 17px;
}
.cc-thanks { color: var(--gold); font-size: .62rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 8px; }
.cc-phone { margin: 0 0 6px; font-size: .93rem; }
.cc-phone .tel { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--navy); }
.cc-small { font-size: .78rem; color: var(--muted); margin: 0; }

.chesed-privacy {
  margin-top: 40px; color: var(--muted);
  font-size: .64rem; letter-spacing: .08em; line-height: 1.9;
  border-top: 1px solid var(--line); padding-top: 22px;
}

/* ============================================================
   TRANSPARENCY DASHBOARD
   ============================================================ */
#transparency .lede { margin-bottom: 48px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 54px; }
.dash-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.dash-stat .num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--navy);
}
.dash-stat .num .unit { color: var(--gold); }
.dash-stat .lbl { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

.calc-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--navy); color: #fff;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.calc-left { padding: 44px 46px; }
.calc-left h3 { color: #fff; font-size: 1.5rem; }
.calc-left p { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.calc-input-row {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .08);
  border: 1.6px solid rgba(255, 255, 255, .25);
  border-radius: 12px; padding: 10px 18px; margin: 22px 0 14px;
}
.calc-input-row:focus-within { border-color: var(--gold); }
.calc-input-row .sym { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--gold); }
#calc-amount {
  background: none; border: 0; outline: 0; color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem;
  width: 100%;
  -moz-appearance: textfield; appearance: textfield;
}
#calc-amount::-webkit-outer-spin-button, #calc-amount::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-chip {
  font-family: var(--font-mono); font-size: .78rem;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
.calc-chip:hover { border-color: var(--gold); color: var(--gold); }
#calc-buys { margin-top: 20px; font-size: .9rem; color: var(--gold-soft); }

.calc-right { padding: 44px 46px; background: var(--navy-deep); }
.calc-row { margin-bottom: 26px; }
.calc-row .lbl {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 9px;
}
.calc-row .lbl strong { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0; color: #fff; }
.calc-track { height: 14px; background: rgba(255, 255, 255, .1); border-radius: 999px; overflow: hidden; }
.calc-track span { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
#calc-bar-nb { background: linear-gradient(90deg, var(--gold), #E3C88C); }
#calc-bar-ty { background: rgba(255, 255, 255, .32); }
.calc-gain {
  margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.calc-gain .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.calc-gain strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--gold); display: block; margin-top: 4px; }
.calc-gain p { color: rgba(255,255,255,.7); font-size: .85rem; margin: 8px 0 0; }

.pipeline { margin-top: 54px; }
.pipeline h3 { margin-bottom: 22px; }
.pipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pipe-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); position: relative;
}
.pipe-step .mono { color: var(--blue); }
.pipe-step h4 { font-size: 1.02rem; margin: 8px 0 6px; }
.pipe-step p { color: var(--muted); font-size: .9rem; margin: 0; }

.roadmap {
  margin-top: 46px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.roadmap .mono { color: var(--muted); margin-right: 6px; }
.roadmap .chip { background: #fff; border: 1px solid var(--line); color: var(--navy); }

/* ============================================================
   NESIVOS — dark portal
   ============================================================ */
#nesivos { background: var(--navy-ink); color: #fff; }
#nesivos .kicker { color: var(--gold); }
#nesivos h2, #nesivos h3 { color: #fff; }
#nesivos .lede { color: rgba(255, 255, 255, .72); }

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  margin: 44px 0 14px;
}
.video-frame video { display: block; width: 100%; height: auto; }
#video-unmute {
  position: absolute; right: 18px; bottom: 62px;
  background: var(--gold); color: var(--navy-ink);
  border: 0; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  padding: 12px 22px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
#video-unmute:hover { filter: brightness(1.08); }
#video-unmute.hidden { display: none; }
.video-caption { color: rgba(255, 255, 255, .55); font-size: .82rem; font-family: var(--font-mono); margin-bottom: 62px; }

.plan-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: stretch; margin-bottom: 20px; }
.plan-map {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.plan-map svg { display: block; width: 100%; height: auto; }

.parcel { cursor: pointer; outline: none; }
.parcel .zone {
  fill: #DDE7D6; stroke: #B9C9AE; stroke-width: 1.5;
  transition: fill .18s ease, stroke .18s ease;
}
.parcel[data-parcel="camp"] .zone { fill: #D8E6DA; }
.parcel[data-parcel="yeshiva"] .zone { fill: #E4E0D2; }
.parcel[data-parcel="shul"] .zone { fill: #EFE6CF; }
.parcel[data-parcel="mainst"] .zone { fill: #E9DFCB; }
.parcel:hover .zone, .parcel:focus .zone, .parcel.active .zone { fill: #C7DBFF; stroke: var(--blue); stroke-width: 2.4; }
.parcel .plabel {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; fill: var(--navy); text-transform: uppercase;
  pointer-events: none;
}
.parcel .psub { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); pointer-events: none; }
.home { fill: none; stroke: #8FA083; stroke-width: 1.4; }
.home--filled { fill: var(--blue); stroke: var(--blue); opacity: .82; }
.parcel .bldg { fill: #C9BFA6; stroke: #A5987A; stroke-width: 1.4; }
.parcel .bldg--done { fill: var(--gold); stroke: #A5854A; }
.map-road { fill: #E7E1D2; stroke: #CFC7B2; stroke-width: 1; }
.map-lake { fill: #BCD7EC; stroke: #9FC2DE; stroke-width: 1.5; }
.map-legend { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted); }

.plan-detail {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column;
}
#parcel-chip {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em;
  background: var(--gold); color: var(--navy-ink);
  border-radius: 999px; padding: 5px 11px; font-weight: 700;
  margin-bottom: 14px;
}
#parcel-title { font-size: 1.45rem; margin-bottom: 8px; }
#parcel-desc { color: rgba(255, 255, 255, .72); font-size: .95rem; }
#parcel-facts { margin: 6px 0 22px; padding: 0 0 0 18px; color: rgba(255, 255, 255, .82); font-size: .92rem; }
#parcel-facts li { margin-bottom: 7px; }
.parcel-progress { margin-top: auto; }
.parcel-progress .lbl {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 8px;
}
.parcel-progress .track { height: 10px; background: rgba(255, 255, 255, .12); border-radius: 999px; overflow: hidden; }
.parcel-progress .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #E3C88C); border-radius: 999px; transition: width .4s ease; }
.map-hint { color: rgba(255, 255, 255, .45); font-family: var(--font-mono); font-size: .72rem; margin: 14px 0 60px; }

.founding {
  display: flex; align-items: center; gap: 26px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 24px 30px; margin-bottom: 70px; flex-wrap: wrap;
}
.founding .num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--gold); line-height: 1; }
.founding .lbl { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.founding .track { flex: 1; min-width: 220px; height: 12px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.founding .track span { display: block; height: 100%; width: 46.6%; background: linear-gradient(90deg, var(--blue), #4E93FF); }

.nesivos-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.n-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.n-card figure { margin: 0; height: 190px; position: relative; }
.n-card figure img { width: 100%; height: 100%; object-fit: cover; }
.n-card .n-body { padding: 22px 24px 26px; }
.n-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.n-card p { color: rgba(255, 255, 255, .7); font-size: .9rem; margin: 0; }
.n-card .mono { color: var(--gold); display: block; margin-bottom: 8px; }

.winter-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin: 22px 0 70px;
  box-shadow: var(--shadow-lg);
}
.winter-banner img { width: 100%; height: auto; display: block; }
.winter-banner figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 30px 22px;
  background: linear-gradient(0deg, rgba(13, 23, 34, .85), transparent);
  font-family: var(--font-mono); font-size: .78rem; color: rgba(255, 255, 255, .85);
}

.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.milestone {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, .04);
  position: relative;
}
.milestone .phase { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.milestone h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.milestone p { color: rgba(255, 255, 255, .68); font-size: .9rem; margin: 0 0 16px; }
.milestone .status { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; font-weight: 700; }
.status--open { background: var(--ok); color: #fff; }
.status--build { background: var(--gold); color: var(--navy-ink); }
.status--next { background: rgba(255, 255, 255, .16); color: #fff; }

/* ============================================================
   IMAGE DROP-IN INVITES (dashed placeholder tiles)
   ============================================================ */
.imgslot--invite { position: relative; }
.imgslot--invite.missing img { display: none; }
.imgslot--invite.missing {
  border: 1.8px dashed rgba(127, 140, 154, .55);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(17, 109, 255, .07), transparent 70%);
  display: flex; align-items: center; justify-content: center;
  min-height: 190px;
}
.imgslot--invite.missing::after {
  content: "recommended image — drop file at " attr(data-hint);
  position: absolute; inset: auto 14px 12px 14px;
  text-align: center;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .03em;
  color: rgba(127, 140, 154, .95);
}
.imgslot--invite.missing::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 2.4rem; font-weight: 300;
  color: rgba(127, 140, 154, .6);
}

/* ============================================================
   VOLUNTEER
   ============================================================ */
#volunteer { background: var(--parchment); }
.vol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 46px; }
.vol-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 200px 1fr;
}
.vol-card .imgslot--invite { min-height: 100%; }
.vol-card .imgslot--invite img { width: 100%; height: 100%; object-fit: cover; }
.vol-body { padding: 26px 28px; }
.vol-body h3 { margin-bottom: 6px; }
.vol-body p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.vol-body .mono { color: var(--blue); display: block; margin-bottom: 8px; }

#volunteer-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
#volunteer-form input, #volunteer-form select {
  font-family: var(--font-body); font-size: .95rem;
  border: 1.6px solid var(--line); border-radius: 10px;
  padding: 13px 16px; background: var(--ground); color: var(--navy);
  outline: none; width: 100%;
}
#volunteer-form input:focus, #volunteer-form select:focus { border-color: var(--blue); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-ink); color: rgba(255, 255, 255, .72);
  padding: 64px 0 40px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-tag {
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff;
  margin: 14px 0 6px;
}
.footer-tag em { font-style: normal; color: var(--gold); }
footer .mono { color: rgba(255, 255, 255, .45); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.footer-note {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 26px;
  font-size: .8rem; color: rgba(255, 255, 255, .45);
}

/* ============================================================
   CART DRAWER
   ============================================================ */
#cart-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(13, 23, 34, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
#cart-overlay.show { opacity: 1; pointer-events: auto; }

#cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(460px, 100vw);
  background: var(--ground);
  box-shadow: -18px 0 50px rgba(13, 23, 34, .3);
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.3, .9, .3, 1);
  display: flex; flex-direction: column;
}
#cart-drawer.open { transform: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid var(--line);
}
.cart-head h3 { margin: 0; }
#cart-close {
  border: 0; background: var(--parchment); border-radius: 999px;
  width: 38px; height: 38px; cursor: pointer; font-size: 1.05rem; color: var(--navy);
}
#cart-items { flex: 1; overflow-y: auto; padding: 10px 26px; }
#cart-empty { padding: 60px 26px; text-align: center; color: var(--muted); }

.cart-row {
  display: flex; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-icon { width: 40px; height: 40px; color: var(--gold); flex: 0 0 auto; margin-top: 4px; }
.cart-icon svg { width: 100%; height: 100%; }
.cart-info { flex: 1; min-width: 0; }
.cart-name { font-family: var(--font-head); font-weight: 700; font-size: .98rem; margin: 0; }
.cart-org { color: var(--muted); margin: 2px 0 4px; }
.cart-unit { color: #9AA6B2; margin: 0; }
.cart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.qty--sm .qty-btn { min-height: 32px; width: 30px; font-size: 1rem; }
.qty--sm .qty-input { width: 36px; font-size: .85rem; }
.cart-line { font-weight: 600; color: var(--navy); margin: 0; font-size: .88rem; }
.cart-remove {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: .68rem; text-decoration: underline; padding: 0;
}
.cart-remove:hover { color: var(--danger); }

#cart-footer { border-top: 1px solid var(--line); padding: 20px 26px 26px; background: #fff; }
#cart-impact { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
#cart-impact strong { color: var(--navy); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px;
}
.cart-total-row .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#cart-total { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.cart-direct-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
#cart-direct { color: var(--ok); font-weight: 600; }
#cart-checkout { width: 100%; justify-content: center; }
.cart-fine { font-size: .72rem; color: #9AA6B2; text-align: center; margin: 12px 0 0; }

/* ---------- Checkout modal ---------- */
#checkout-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 23, 34, .6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  padding: 20px;
}
#checkout-modal.show { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #fff; border-radius: var(--radius);
  max-width: 480px; width: 100%;
  padding: 42px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.modal-card .check {
  width: 66px; height: 66px; border-radius: 999px;
  background: rgba(46, 125, 82, .12); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 20px;
}
.modal-card h3 { font-size: 1.4rem; }
.modal-card p { color: var(--muted); font-size: .94rem; }
.modal-card .btn { margin-top: 10px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 110;
  transform: translate(-50%, 80px);
  background: var(--navy); color: #fff;
  font-size: .9rem; font-weight: 500;
  padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: transform .3s ease, opacity .3s ease;
  max-width: 90vw; text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .thesis-grid, .calc-panel, .plan-grid { grid-template-columns: 1fr; }
  .pillars, .pipe-grid, .nesivos-cards, .milestones { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  #volunteer-form { grid-template-columns: 1fr 1fr; }
  .cm-grid { grid-template-columns: 1fr 1fr; }
  .vol-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .pillars, .pipe-grid, .nesivos-cards, .milestones, .dash-grid { grid-template-columns: 1fr; }
  #volunteer-form { grid-template-columns: 1fr; }
  .cm-grid { grid-template-columns: 1fr; }
  .chesed-head { flex-direction: column; align-items: stretch; }
  .chesed-filters { grid-template-columns: 1fr 1fr; }
  .fcard img { height: 96px; }
  .vol-card { grid-template-columns: 1fr; }
  .vol-card .imgslot--invite { min-height: 160px; }
  .needs-head { flex-direction: column; align-items: stretch; }
  .calc-left, .calc-right { padding: 32px 26px; }

  #cart-open { margin-left: auto; }
  #nav-toggle { display: block; }
  #site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(18, 32, 46, .98);
    flex-direction: column; gap: 0; padding: 10px 0 16px;
    display: none;
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 13px 28px; width: 100%; }
  .header-inner { gap: 14px; }
}
