/* AreaFix GH — mobile-first UI. Ghana-inspired green/gold/red accents. */
:root {
  --green: #0a7d3f; --green-d: #075e2f; --green-l: #e7f4ec;
  --gold: #f4b400; --gold-d: #b9860b; --red: #ce1126;
  --ink: #14201a; --muted: #5f6f67; --line: #e4e9e6; --bg: #f6f8f7; --card: #fff;
  --radius: 14px; --shadow: 0 1px 3px rgba(20,32,26,.08), 0 6px 18px rgba(20,32,26,.05);
  --maxw: 1040px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 28px 0; }

/* Header */
header.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.brand .gh { color: var(--gold-d); }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 10px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.nav a:hover, .nav a.active { background: var(--green-l); color: var(--green-d); }
.nav .who { color: var(--muted); font-weight: 600; font-size: .85rem; padding: 0 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 1.1rem; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: #fff; flex-direction: column;
         align-items: stretch; padding: 8px 12px 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
  border: 1px solid transparent; border-radius: 11px; padding: 11px 16px; font-weight: 700; font-size: .95rem;
  background: var(--green); color: #fff; transition: filter .12s, transform .02s; text-align: center; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: #3a2c00; }
.btn.outline { background: #fff; color: var(--green-d); border-color: var(--green); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 9px; }
.btn.block { display: flex; width: 100%; }
.btn.danger { background: #fff; color: var(--red); border-color: #f0c2c8; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid.cols3, .grid.cols4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols2, .grid.cols3, .grid.cols4 { grid-template-columns: 1fr; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green-d), var(--green)); color: #fff; border-radius: 0 0 26px 26px; }
.hero .wrap { padding: 34px 16px 40px; }
.hero h1 { font-size: 2.15rem; max-width: 15ch; }
.hero p { color: #dff0e6; max-width: 46ch; font-size: 1.05rem; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pill { display: inline-block; background: rgba(255,255,255,.15); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; margin-bottom: 14px; }

/* Category / task cards */
.cat { padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.cat .ic { font-size: 1.9rem; }
.cat h3 { margin: 0; }
.cat .subs { color: var(--muted); font-size: .84rem; }
.tile { padding: 16px; text-align: center; }
.tile .n { font-size: 1.7rem; font-weight: 800; color: var(--green-d); }
.tile .l { color: var(--muted); font-size: .85rem; }

.task { padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.task .row { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.task .title { font-weight: 700; }
.task .meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.task .budget { font-weight: 800; color: var(--green-d); white-space: nowrap; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em; }
.badge.green { background: var(--green-l); color: var(--green-d); }
.badge.gold { background: #fdf3d6; color: var(--gold-d); }
.badge.red { background: #fbe3e6; color: var(--red); }
.badge.gray { background: #eef1ef; color: var(--muted); }
.badge.blue { background: #e4eefb; color: #1c5bb8; }
.badge.status { text-transform: capitalize; }

/* Forms */
label.f { display: block; font-weight: 700; font-size: .85rem; margin: 12px 0 5px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-l); border-color: var(--green); }
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field-row { display: flex; gap: 10px; } .field-row > * { flex: 1; }
.chip { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600; background: #fff; margin: 0 6px 6px 0; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }

/* Steps */
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps .s { flex: 1; min-width: 40px; height: 6px; border-radius: 999px; background: var(--line); }
.steps .s.done { background: var(--green); }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { background: none; border: none; border-bottom: 3px solid transparent; padding: 10px 12px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: .92rem; }
.tabs button.on { color: var(--green-d); border-color: var(--green); }

/* Misc */
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 200; box-shadow: var(--shadow); max-width: 90%; }
.toast.err { background: var(--red); }
.spin { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--green-l); border-top-color: var(--green); border-radius: 50%; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.list > * + * { border-top: 1px solid var(--line); }
.safety { background: #fff8e6; border: 1px solid #f2e3b0; border-radius: var(--radius); padding: 14px 16px; font-size: .9rem; }
.safety b { color: var(--gold-d); }
.how { counter-reset: step; }
.how .step { display: flex; gap: 12px; align-items: start; }
.how .step .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
footer.foot { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; padding: 22px 0; color: var(--muted); font-size: .88rem; }
.modal-bg { position: fixed; inset: 0; background: rgba(10,20,15,.45); display: grid; place-items: center; z-index: 150; padding: 16px; }
.modal { background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%; padding: 20px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
