/* ============================================================
   PANTRY PATH — style.css
   Purpose: find free food & nutrition support. Warm, practical,
   dignified — never pitying.
   Palette: forest #1F4D3A | fresh green #3FA34D | apricot #F2A65A
            cream #FBF7EF | tomato #E4572E | ink #24312B
   Type: Nunito (rounded, warm)
   ============================================================ */

:root {
  --forest: #1F4D3A;
  --forest-2: #2A6349;
  --green: #3FA34D;
  --green-dk: #2F8A3E;
  --apricot: #F2A65A;
  --apricot-dk: #E08C3A;
  --cream: #FBF7EF;
  --cream-2: #F3EEE1;
  --tomato: #E4572E;
  --ink: #24312B;
  --ink-soft: #5E6B63;
  --line: #E4DCCB;
  --white: #FFFFFF;
  --ok: #2F8A3E;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(31, 77, 58, 0.12);
  --font: "Nunito", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; }
a { color: var(--green-dk); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--apricot); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-weight: 800; border-radius: 8px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- emergency top bar ---------- */
.help-bar {
  background: var(--tomato);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.94rem;
}
.help-bar a { color: #fff; text-decoration: underline; }

/* ---------- header ---------- */
.hdr {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.hdr-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--forest);
  font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em;
}
.brand .mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.brand .p2 { color: var(--green); }
.nav { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--forest); text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 9px 13px; border-radius: 999px; transition: background .15s;
}
.nav a:hover, .nav a.on { background: var(--cream-2); }
.nav a.cta { background: var(--forest); color: #fff; }
.nav a.cta:hover { background: var(--forest-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font); font-weight: 800;
  font-size: 1rem; padding: 13px 24px; border-radius: 999px; border: none;
  cursor: pointer; text-decoration: none; text-align: center; transition: all .15s;
}
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dk); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-2); }
.btn-apricot { background: var(--apricot); color: var(--ink); }
.btn-apricot:hover { background: var(--apricot-dk); }
.btn-line { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-line:hover { background: var(--forest); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 88% 8%, rgba(242,166,90,0.30), transparent 42%),
    radial-gradient(circle at 8% 96%, rgba(63,163,77,0.18), transparent 44%),
    var(--forest);
  color: #fff;
  padding: 54px 20px 60px;
}
.hero-inner { max-width: 1120px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,0.14);
  padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.06em; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.02em; max-width: 760px;
}
.hero h1 .u { color: var(--apricot); }
.hero p.lede { margin-top: 14px; font-size: 1.14rem; max-width: 600px; color: #E7EFE9; font-weight: 600; }

/* ---------- urgent callout ---------- */
.urgent {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin-top: 26px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-left: 6px solid var(--tomato);
}
.urgent .u-ico { font-size: 2rem; }
.urgent .u-text { flex: 1; min-width: 220px; }
.urgent .u-text h2 { font-size: 1.15rem; color: var(--tomato); }
.urgent .u-text p { font-size: 0.96rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- search card ---------- */
.search-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-top: 20px;
}
.search-card h2 { font-size: 1.1rem; color: var(--forest); margin-bottom: 14px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; }
.fld label { display: block; font-weight: 800; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.fld input, .fld select {
  width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; background: var(--cream); color: var(--ink); font-weight: 600;
}
.fld input:focus, .fld select:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--white); }
.sec-head { margin-bottom: 26px; }
.sec-head .k { color: var(--green-dk); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; letter-spacing: -0.01em; margin-top: 4px; }
.sec-head p { color: var(--ink-soft); max-width: 640px; margin-top: 6px; font-weight: 600; }

/* ---------- category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; }
.cat {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-decoration: none; color: var(--forest); text-align: center; transition: all .16s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.cat .ci { font-size: 2rem; display: block; margin-bottom: 8px; }
.cat .ct { font-weight: 900; display: block; }
.cat .cs { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- resource cards ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 18px; }
.res-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: all .16s; position: relative;
}
.res-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.res-card h3 { font-size: 1.18rem; font-weight: 900; line-height: 1.25; }
.res-card h3 a { color: var(--forest); text-decoration: none; }
.res-card h3 a:hover { color: var(--green-dk); }
.res-where { color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.74rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  background: var(--cream-2); color: var(--forest);
}
.tag.type { background: #E4F2E4; color: var(--green-dk); }
.tag.open { background: #DFF3E2; color: var(--ok); }
.tag.barrier { background: #FCEBD9; color: var(--apricot-dk); }
.tag.closed { background: #F1E6E2; color: var(--ink-soft); }
.res-note { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.res-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; }
.sample-flag {
  display: inline-block; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--apricot-dk); background: #FCEBD9; border: 1px dashed var(--apricot-dk); padding: 2px 8px; border-radius: 6px;
}

/* ---------- filter panel ---------- */
.filters { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 800;
  color: var(--forest); background: var(--cream); border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 15px; cursor: pointer; user-select: none;
}
.chip input { accent-color: var(--green); cursor: pointer; width: 16px; height: 16px; }
.chip:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.count { font-weight: 900; color: var(--ink-soft); }

/* ---------- detail page ---------- */
.d-hero { background: var(--forest); color: #fff; padding: 44px 20px; }
.d-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 900; line-height: 1.1; }
.d-hero .where { color: #CFE0D6; font-weight: 700; margin-top: 6px; }
.d-grid { display: grid; grid-template-columns: 1fr 330px; gap: 26px; align-items: start; }
@media (max-width: 880px) { .d-grid { grid-template-columns: 1fr; } }
.d-block { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.d-block h2 { font-size: 1.2rem; font-weight: 900; margin-bottom: 12px; color: var(--forest); }
.facts { list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.facts li:last-child { border-bottom: none; }
.facts .k { color: var(--ink-soft); font-weight: 800; }
.facts .v { text-align: right; }
.side { background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.side h3 { font-weight: 900; margin-bottom: 12px; color: var(--forest); }
.side .btn { width: 100%; margin-bottom: 9px; }
.mini { font-size: 0.84rem; color: var(--ink-soft); background: var(--cream); border-radius: 10px; padding: 11px 13px; font-weight: 600; }

/* ---------- notices ---------- */
.notice { background: #FCEBD9; border-left: 5px solid var(--apricot); border-radius: 10px; padding: 15px 18px; font-weight: 600; color: #6E4A16; margin: 18px 0; }
.notice.green { background: #E4F2E4; border-color: var(--green); color: #1E4A2A; }
.notice.red { background: #F7E4DE; border-color: var(--tomato); color: #7A2A15; }

/* ---------- steps / guide ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.step { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--apricot); color: var(--ink); font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 12px; }
.step h3 { font-weight: 900; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; font-weight: 900; color: var(--forest); margin: 30px 0 10px; }
.prose h3 { font-size: 1.14rem; font-weight: 800; margin: 20px 0 8px; }
.prose p, .prose li { color: #3B463F; font-weight: 600; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }
.prose a { font-weight: 800; }

/* ---------- checklist ---------- */
.check-list { list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 38px; border-bottom: 1px solid var(--line); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 6px; top: 9px; width: 24px; height: 24px; background: #E4F2E4; color: var(--green-dk); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 900; color: var(--forest); list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 22px; color: var(--green); font-size: 1.4rem; }
.faq[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 18px; color: var(--ink-soft); font-weight: 600; }

/* ---------- form ---------- */
.form-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 720px; }
.frow { margin-bottom: 16px; }
.frow label { display: block; font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 6px; }
.frow input, .frow select, .frow textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem; background: var(--cream); font-weight: 600; }
.frow textarea { min-height: 110px; resize: vertical; }
.frow input:focus, .frow select:focus, .frow textarea:focus { outline: 3px solid var(--green); border-color: var(--green); }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-soft); background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta { background: var(--green); color: #fff; padding: 48px 20px; text-align: center; }
.cta h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 900; }
.cta p { max-width: 560px; margin: 10px auto 20px; font-weight: 600; color: #EAF6EB; }

/* ---------- footer ---------- */
.ftr { background: var(--forest); color: #C6D6CC; padding: 46px 20px 30px; font-size: 0.92rem; }
.ftr-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.ftr h4 { color: #fff; font-weight: 900; margin-bottom: 12px; font-size: 0.95rem; }
.ftr a { color: #C6D6CC; text-decoration: none; display: block; padding: 3px 0; font-weight: 600; }
.ftr a:hover { color: var(--apricot); }
.ftr-legal { max-width: 1120px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--forest-2); font-size: 0.82rem; color: #9DB2A5; font-weight: 600; }

/* ---------- utilities ---------- */
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; }
.center { text-align: center; }

@media (max-width: 640px) {
  .hdr-inner { justify-content: center; }
  .nav { justify-content: center; }
  body { font-size: 16px; }
}

/* ---------- solidarity band + community board (added) ---------- */
.solidarity { background: var(--apricot); color: var(--ink); padding: 30px 20px; text-align: center; }
.solidarity .in { max-width: 780px; margin: 0 auto; }
.solidarity h2 { font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.solidarity p { font-weight: 700; margin-top: 8px; font-size: 1.04rem; }
.solidarity .heart { font-size: 1.6rem; }
.note-card { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.note-card.mine { border-color: var(--green); border-style: dashed; }
.note-card .n-text { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.note-card .n-meta { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }
.note-badge { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 9px; border-radius: 999px; }
.note-badge.tip { background: #E4F2E4; color: var(--green-dk); }
.note-badge.mine { background: #FCEBD9; color: var(--apricot-dk); }

/* ---------- map page (added) ---------- */
:root { --map-accent: #3FA34D; }
#map { height: 62vh; min-height: 420px; border-radius: 16px; border: 2px solid var(--line); z-index: 1; }
.map-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.leaflet-popup-content { font-family: inherit; font-size: 0.92rem; line-height: 1.5; }

/* ---------- 988 lifeline button (added — do not remove) ---------- */
.lifeline-btn {
  position: fixed; right: 14px; bottom: 14px; z-index: 999;
  display: inline-flex; align-items: center; gap: 7px;
  background: #4A2A8A; color: #fff; text-decoration: none;
  font-weight: 800; font-size: 0.86rem; line-height: 1;
  padding: 11px 16px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  border: 2px solid rgba(255,255,255,0.85);
}
.lifeline-btn:hover { background: #5C3AA6; color: #fff; }
.lifeline-btn .lb-sub { font-weight: 600; font-size: 0.72rem; opacity: 0.9; }
@media (max-width: 640px) { .lifeline-btn .lb-sub { display: none; } }
