/* --- Light-only, business-professional theme --- */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #e5e7eb;
  --primary: #1f6feb;
  --primary-2: #0ea5e9;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1080px; margin: 0 auto; padding: 24px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 12px; width: auto; height: auto; padding: 8px 12px;
  background: #111; color: #fff; border-radius: 8px; z-index: 1000;
}

/* Header */
.site-header{
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.navbar-brand .brand-badge{
  display:inline-grid; place-items:center; width:36px; height:36px; border-radius:10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color:#fff; font-weight:800; letter-spacing:.2px;
}
.nav-link{ color: var(--muted); font-weight: 500; text-decoration: none; padding: .5rem .75rem; }
.nav-link:hover, .nav-link:focus{ color: var(--text); }

/* Cards / sections */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 18px 0;
}
.section-alt{ background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Footer */
.site-footer{
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.site-footer .footer-link{ color: var(--muted); text-decoration: none; }
.site-footer .footer-link:hover, .site-footer .footer-link:focus{ color: var(--text); text-decoration: underline; }
.site-footer .tagline{ color: var(--muted); }

/* Buttons & controls */
.btn-accent{
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #155bd6;
  --bs-btn-hover-border-color: #155bd6;
  --bs-btn-font-weight: 700;
}
.btn-outline-primary{
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}

a { color: var(--primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Forms */
input, select, textarea{
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
}
input:focus, select:focus, textarea:focus{
  outline: 2px solid rgba(31,111,235,.25);
  border-color: #c7d2fe;
}

/* Typography */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: clamp(28px, 2.2vw + 18px, 38px); font-weight: 700; }
h2 { font-size: clamp(22px, 1.6vw + 14px, 28px); font-weight: 600; }
h3 { font-size: clamp(18px, 1.2vw + 12px, 22px); font-weight: 600; }
.text-muted { color: var(--muted) !important; }

/* Landing page specifics */
.lead { font-size: 1.125rem; }
.hero-wrap { padding: 56px 0 24px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
@media (max-width: 920px){ .hero-grid { grid-template-columns: 1fr; } }
.hero-copy h1 { letter-spacing: -0.3px; }
.hero-card .checklist { list-style: none; padding-left: 0; margin: 0; }
.hero-card .checklist li { padding-left: 28px; position: relative; margin: 8px 0; }
.hero-card .checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; line-height: 1.2; color: var(--primary); }

/* Ensures even breathing room when nesting cards inside a card */
.group-card { padding: 16px 20px 20px; }        /* extra bottom padding for shadows */
.group-card .card { margin: 0; }                /* inner cards rely on row gutter, not outer margins */
.group-card .row { --bs-gutter-y: 1.25rem; }    /* a touch more vertical gap between inner cards */

/* Donation goal meter */
.goal-meter .meter-wrap{
  position: relative;
  margin-top: 14px;
  height: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
}
.goal-meter .meter-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-right: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 6px rgba(31,111,235,.25);
}

/* Chat layout */
.chat-log{
  min-height: 240px;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface-2);
}
.chat-msg{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px 12px; margin:10px 0; box-shadow: var(--shadow); }
.chat-user{ border-left:3px solid var(--primary-2); }
.chat-assistant{ border-left:3px solid var(--primary); }
.chat-role{ font-size:.75rem; color:var(--muted); margin-bottom:4px; text-transform:uppercase; letter-spacing:.08em; }
.chat-text{ white-space:pre-wrap; }
.chat-input textarea{ resize: vertical; }
