/* ============================================================
   FIX FORWARD — style.css
   Purpose: help with utility bills, home repairs, car repairs,
   and fuel/gas for people unemployed or stretched thin.
   Tone: bright, hopeful, energetic, encouraging — happy vibes.
   Palette: tangerine #F5751F | sunshine #FFC53D | sky #2AA7DE
            denim #10314A | cream #FFF8EC | grape #7A5AF0 accent
   Type: Baloo 2 (friendly headings) + Nunito Sans (body)
   ============================================================ */

:root {
  --tang: #F5751F;
  --tang-dk: #D65C0C;
  --sun: #FFC53D;
  --sun-dk: #F0AE10;
  --sky: #2AA7DE;
  --sky-dk: #1B87B8;
  --grape: #7A5AF0;
  --denim: #10314A;
  --denim-2: #1C466A;
  --cream: #FFF8EC;
  --cream-2: #FDEFD6;
  --ink: #22323F;
  --ink-soft: #5F6E79;
  --line: #F0E2C9;
  --white: #fff;
  --ok: #2C9E5A;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 8px 26px rgba(16, 49, 74, 0.12);
  --head: "Baloo 2", -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
}

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

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

/* ---------- help bar ---------- */
.help-bar { background: var(--denim); color: #E4EEF5; text-align: center; padding: 9px 16px; font-size: 0.93rem; font-weight: 700; }
.help-bar strong { color: var(--sun); }
.help-bar a { color: #fff; text-decoration: underline; }

/* ---------- header ---------- */
.hdr { background: var(--cream); border-bottom: 2px 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(--denim); font-family: var(--head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand .mark { width: 40px; height: 40px; border-radius: 13px; background: var(--tang); 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(--tang); }
.nav { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--denim); text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 9px 12px; border-radius: 999px; transition: background .15s; }
.nav a:hover, .nav a.on { background: var(--cream-2); }
.nav a.cta { background: var(--tang); color: #fff; }
.nav a.cta:hover { background: var(--tang-dk); }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 1rem; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; text-align: center; transition: all .15s; }
.btn:active { transform: translateY(1px); }
.btn-tang { background: var(--tang); color: #fff; }
.btn-tang:hover { background: var(--tang-dk); }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-dk); }
.btn-sun { background: var(--sun); color: var(--denim); }
.btn-sun:hover { background: var(--sun-dk); }
.btn-denim { background: var(--denim); color: #fff; }
.btn-denim:hover { background: var(--denim-2); }
.btn-line { background: transparent; color: var(--denim); border: 2px solid var(--denim); }
.btn-line:hover { background: var(--denim); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: 0.88rem; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(circle at 85% 12%, rgba(255,197,61,0.5), transparent 40%), radial-gradient(circle at 10% 95%, rgba(42,167,222,0.25), transparent 45%), var(--tang); color: #fff; padding: 56px 20px 62px; position: relative; overflow: hidden; }
.hero-inner { max-width: 1120px; margin: 0 auto; position: relative; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 15px; border-radius: 999px; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.05em; margin-bottom: 16px; }
.hero h1 { font-family: var(--head); font-size: clamp(2.2rem, 5.6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; max-width: 780px; text-shadow: 0 2px 0 rgba(0,0,0,0.06); }
.hero h1 .u { color: var(--denim); }
.hero p.lede { margin-top: 14px; font-size: 1.16rem; max-width: 620px; color: #FFF3E0; font-weight: 600; }

/* ---------- solidarity band (shared idea across all sites) ---------- */
.solidarity { background: var(--sun); color: var(--denim); padding: 30px 20px; text-align: center; }
.solidarity .in { max-width: 780px; margin: 0 auto; }
.solidarity h2 { font-family: var(--head); font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; }
.solidarity p { font-weight: 600; margin-top: 8px; font-size: 1.04rem; }
.solidarity .heart { font-size: 1.6rem; }

/* ---------- search card ---------- */
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 24px; }
.search-card h2 { font-family: var(--head); font-size: 1.15rem; color: var(--denim); 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.76rem; 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(--body); font-size: 1rem; background: var(--cream); color: var(--ink); font-weight: 600; }
.fld input:focus, .fld select:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }

/* ---------- sections ---------- */
.section { padding: 54px 0; }
.section.alt { background: #fff; }
.sec-head { margin-bottom: 26px; }
.sec-head .k { color: var(--sky-dk); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.sec-head h2 { font-family: var(--head); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; 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(165px,1fr)); gap: 14px; }
.cat { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-decoration: none; color: var(--denim); transition: all .16s; }
.cat:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--shadow); border-color: var(--sun); }
.cat .ci { font-size: 1.9rem; display: block; margin-bottom: 8px; }
.cat .ct { font-family: var(--head); font-weight: 700; display: block; font-size: 1rem; }
.cat .cs { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- resource cards ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,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(-3px); }
.res-card.urgent-card { border-left: 6px solid var(--tang); }
.res-card h3 { font-family: var(--head); font-size: 1.18rem; font-weight: 700; line-height: 1.25; }
.res-card h3 a { color: var(--denim); text-decoration: none; }
.res-card h3 a:hover { color: var(--tang-dk); }
.res-where { color: var(--ink-soft); font-weight: 700; font-size: 0.88rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.73rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--cream-2); color: var(--tang-dk); }
.tag.cat-t { background: #DEF1FA; color: var(--sky-dk); }
.tag.urgent { background: #FCE3D3; color: var(--tang-dk); }
.tag.apphelp { background: #EBE5FD; color: #5B3FD0; }
.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.77rem; color: var(--ink-soft); font-weight: 700; }
.sample-flag { display: inline-block; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tang-dk); background: #FCE3D3; border: 1px dashed var(--tang); padding: 2px 8px; border-radius: 6px; }

/* ---------- filters ---------- */
.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(--denim); background: var(--cream); border: 2px solid var(--line); border-radius: 999px; padding: 8px 15px; cursor: pointer; user-select: none; }
.chip input { accent-color: var(--tang); cursor: pointer; width: 16px; height: 16px; }
.chip:has(input:checked) { background: var(--tang); border-color: var(--tang); color: #fff; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.count { font-weight: 800; color: var(--ink-soft); }

/* ---------- detail ---------- */
.d-hero { background: var(--denim); color: #fff; padding: 44px 20px; }
.d-hero h1 { font-family: var(--head); font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800; line-height: 1.1; }
.d-hero .where { color: #BCD3E2; 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-family: var(--head); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--denim); }
.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(--tang); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.side h3 { font-family: var(--head); font-weight: 700; margin-bottom: 12px; color: var(--denim); }
.side .btn { width: 100%; margin-bottom: 9px; }
.mini { font-size: 0.83rem; color: var(--ink-soft); background: var(--cream); border-radius: 10px; padding: 11px 13px; font-weight: 600; }

/* ---------- notices ---------- */
.notice { background: var(--cream-2); border-left: 5px solid var(--sun); border-radius: 10px; padding: 15px 18px; font-weight: 600; color: #7A5510; margin: 18px 0; }
.notice.sky { background: #DEF1FA; border-color: var(--sky); color: #10556E; }
.notice.tang { background: #FCE3D3; border-color: var(--tang); color: #8A3C10; }

/* ---------- prose / checklist ---------- */
.prose { max-width: 800px; }
.prose h2 { font-family: var(--head); font-size: 1.5rem; font-weight: 800; color: var(--denim); margin: 30px 0 10px; }
.prose h3 { font-size: 1.14rem; font-weight: 700; margin: 20px 0 8px; color: var(--denim); }
.prose p, .prose li { color: #37454E; font-weight: 600; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding: 11px 0 11px 38px; border-bottom: 1px solid var(--line); font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; top: 10px; width: 24px; height: 24px; background: #DBF0E3; color: var(--ok); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- steps ---------- */
.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: 42px; height: 42px; border-radius: 13px; background: var(--sky); color: #fff; font-family: var(--head); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; }
.step h3 { font-family: var(--head); font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }

/* ---------- community board (shared idea across all sites) ---------- */
.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(--sky); border-style: dashed; }
.note-card .n-text { font-weight: 600; 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: #DBF0E3; color: var(--ok); }
.note-badge.mine { background: #DEF1FA; color: var(--sky-dk); }

/* ---------- 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: 800; color: var(--denim); list-style: none; position: relative; font-family: var(--head); }
.faq summary::after { content: "+"; position: absolute; right: 22px; color: var(--tang); font-size: 1.5rem; }
.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.8rem; 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(--body); 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(--sky); border-color: var(--sky); }

.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 { background: var(--sky); color: #fff; padding: 48px 20px; text-align: center; }
.cta h2 { font-family: var(--head); font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
.cta p { max-width: 560px; margin: 10px auto 20px; font-weight: 600; color: #E3F4FC; }

.ftr { background: var(--denim); color: #A9C0D0; 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-family: var(--head); font-weight: 700; margin-bottom: 12px; font-size: 0.98rem; }
.ftr a { color: #A9C0D0; text-decoration: none; display: block; padding: 3px 0; font-weight: 600; }
.ftr a:hover { color: var(--sun); }
.ftr-legal { max-width: 1120px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--denim-2); font-size: 0.82rem; color: #7C93A4; font-weight: 600; }

.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; }
}

/* ---------- map page (added) ---------- */
:root { --map-accent: #F5751F; }
#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; } }
