/* Care Center App — warm, church-friendly, mobile-first. Navy + gold on cream. */
:root {
  --brand: #1e3a5f;
  --accent: #c9a227;
  --cream: #faf7f1;
  --ink: #20242b;
  --muted: #6b7280;
  --line: #e5ddd0;
  --card: #ffffff;
  --ok: #2f7d4f;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30,58,95,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 880px; margin: 0 auto; padding: 20px 16px 48px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--brand); color: #fff;
  padding: 12px 16px;
}
.topbar a { color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 1.3rem; }
.brand-text em { font-style: normal; opacity: .85; font-weight: 500; }
.topbar nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a { font-size: .95rem; }
.topbar .muted { opacity: .75; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #1a1a1a;
  padding: 11px 18px; border-radius: 999px; font-weight: 600;
  border: none; cursor: pointer; font-size: 1rem; text-align: center;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.btn-danger { background: #fff; border: 1.5px solid #c2410c; color: #c2410c; }
.btn-block { display: block; width: 100%; }

/* Banners */
.banner { max-width: 880px; margin: 12px auto 0; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.flash { background: #e8f4ec; color: var(--ok); border: 1px solid #bfe0cb; }
.error { background: #fdeceb; color: #b91c1c; border: 1px solid #f3c6c1; }

/* Hero / home */
.hero { text-align: center; padding: 18px 0 8px; }
.hero h1 { font-size: 1.8rem; margin: .2em 0; color: var(--brand); }
.hero p.lead { color: var(--muted); max-width: 36em; margin: 0 auto; }

.team-cards { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 22px 0; }
@media (max-width: 620px) { .team-cards { grid-template-columns: 1fr; } }
.team-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; text-align: center; border-top: 4px solid var(--accent);
}
.team-card .emoji { font-size: 2.2rem; }
.team-card h2 { margin: .3em 0 .1em; color: var(--brand); }
.team-card .count { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }

.home-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* Cards / generic */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 16px; border: 1px solid var(--line);
}
.card h3 { margin-top: 0; }
.section-title { color: var(--brand); border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password],
select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; background: #fff; font-family: inherit;
}
textarea { min-height: 96px; resize: vertical; }
.help { font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0 0 16px; }
legend { font-weight: 700; color: var(--brand); padding: 0 6px; }

/* Checkbox / radio grids */
.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff;
}
.choice:hover { border-color: var(--accent); }
.choice input { margin-top: 3px; }
.choice .ttl { font-weight: 600; }
.choice .desc { font-size: .82rem; color: var(--muted); }
.inline-check { display: flex; gap: 10px; align-items: flex-start; }
.inline-check input { margin-top: 4px; }

/* Prayer / service boards */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; color: var(--ink);
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.board { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .board { grid-template-columns: 1fr; } }
.req-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
       background: #eef2f7; color: var(--brand); }
.badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge.active { background: #e8f4ec; color: var(--ok); }
.badge.answered { background: #fdf3d7; color: var(--warn); }
.badge.ongoing { background: #eef2f7; color: var(--brand); }
.badge.pending { background: #f3f4f6; color: var(--muted); }
.badge.scheduled { background: #e0ecfb; color: #1d4ed8; }
.badge.completed { background: #e8f4ec; color: var(--ok); }
.req-body { font-size: 1rem; }
.scripture { background: #faf6ea; border-left: 3px solid var(--accent); padding: 10px 12px;
             border-radius: 6px; font-size: .92rem; }
.scripture .ref { font-weight: 700; color: var(--brand); display: block; font-size: .82rem; }
.req-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.link-pill { font-size: .75rem; background: #faf6ea; color: var(--warn); border: 1px solid #ecd9a0;
             border-radius: 999px; padding: 2px 8px; font-weight: 600; }

/* Stats grid (admin) */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat .n { font-size: 1.8rem; font-weight: 800; color: var(--brand); }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.alert .n { color: var(--warn); }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
th { background: #f4f1ea; color: var(--brand); }

footer { text-align: center; color: var(--muted); padding: 28px 16px; border-top: 1px solid var(--line); margin-top: 24px; }
footer .verse { font-style: italic; max-width: 32em; margin: 8px auto 0; font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
