/* ============================================================
   ReGive — Brand Identity v1
   Colors: Deep Teal #1B5E58 | Sage #7FA28F | Charcoal #33363A | Off White #F2F4F3
   Typography: Poppins (primary), Inter (fallback)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #F2F4F3;
  --text: #33363A;
  --text-muted: #787B7E;
  --teal: #154844;
  --teal-bright: #1B5E58;
  --teal-soft: #E4EDEB;
  --sage: #7FA28F;
  --sage-soft: #EFF4F2;
  --charcoal: #33363A;
  --border: #DDE0DE;
  --max-width: 1140px;
  --radius: 14px;
  --font-body: 'Poppins', 'Inter', Arial, Helvetica, sans-serif;
  --font-head: 'Poppins', 'Inter', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-bright); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--charcoal);
  font-size: 13px;
  color: #c8cac9;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

nav.main-nav { display: flex; align-items: center; gap: 28px; }

nav.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s ease;
}
nav.main-nav a:hover { color: var(--teal-bright); }
nav.main-nav a.active { color: var(--teal-bright); }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--teal-bright);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 94, 88, 0.22);
}
.btn-primary:hover { background: var(--teal); box-shadow: 0 4px 16px rgba(21, 72, 68, 0.3); }
.btn-secondary {
  background: #fff;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.btn-block { width: 100%; text-align: center; }
.btn-large { padding: 16px 34px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 78px;
  text-align: center;
  background: var(--bg-alt);
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--teal-bright);
}
.hero p.sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.trust-line { font-size: 13.5px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 700px; margin: 0 auto 46px; text-align: center; }
.section-head h2 {
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--charcoal);
}
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(22, 33, 58, 0.04);
}
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--charcoal); }
.card p { margin: 0; color: var(--text-muted); }
.card .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-bright);
  margin: 0 0 8px;
}
.card.center { text-align: center; }

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--teal-bright);
}

/* ---------- Lists ---------- */
ul.check-list, ul.plain-list { list-style: none; padding: 0; margin: 0; }
ul.check-list li { position: relative; padding-left: 32px; margin-bottom: 16px; color: var(--text); }
ul.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-bright);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ul.plain-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
ul.plain-list li::before { content: "—"; position: absolute; left: 0; color: var(--sage); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-bright);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 15px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; color: var(--charcoal); }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--teal-bright);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  padding: 64px 32px;
}
.cta-banner h2 { margin: 0 0 24px; font-size: 32px; font-weight: 700; }
.cta-banner .small { margin-top: 20px; font-size: 13.5px; color: rgba(255,255,255,0.75); }
.cta-banner .btn-primary { background: #fff; color: var(--teal-bright); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--bg-alt); }

/* ---------- Page header ---------- */
.page-header {
  padding: 60px 0 44px;
  background: var(--bg-alt);
  text-align: center;
}
.page-header h1 { font-size: 40px; font-weight: 700; margin: 0 0 14px; color: var(--teal-bright); }
.page-header p { color: var(--text-muted); font-size: 18px; max-width: 700px; margin: 0 auto; }

/* ---------- Doc list ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg);
}
.doc-list .doc-name { font-weight: 700; color: var(--charcoal); }
.doc-list .doc-status { color: var(--text-muted); font-size: 14px; }
.doc-note {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--teal-soft);
  border-radius: var(--radius);
  color: var(--teal-bright);
  font-size: 14.5px;
  font-weight: 600;
}

/* ---------- Forms (Donate) ---------- */
.donate-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 6px 28px rgba(22, 33, 58, 0.05);
}
.form-card h3 { margin-top: 0; font-weight: 700; color: var(--charcoal); }

.toggle-group {
  display: flex;
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}
.toggle-group button {
  flex: 1; padding: 12px; border: none; background: transparent;
  border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px;
  color: var(--text-muted); font-family: var(--font-body);
}
.toggle-group button.active {
  background: var(--teal-bright);
  color: #fff;
}

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.amount-grid button {
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  color: var(--charcoal);
  font-family: var(--font-body);
}
.amount-grid button.active {
  border-color: var(--teal-bright);
  background: var(--teal-soft);
  color: var(--teal-bright);
}

label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--text);
}
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-bright); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.aside-card {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.aside-card h4 { margin-top: 0; font-size: 16px; font-weight: 700; color: var(--charcoal); }
.aside-card p { color: var(--text-muted); font-size: 14.5px; }

.processor-logos { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.processor-logos span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: var(--bg);
}

.tax-note {
  font-size: 13.5px;
  color: var(--teal-bright);
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 18px;
}

/* ---------- Confirmation ---------- */
.confirm-wrap { max-width: 560px; margin: 0 auto; text-align: center; padding: 96px 24px; }
.confirm-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-bright);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.confirm-wrap h1 { font-size: 34px; font-weight: 700; margin-bottom: 14px; color: var(--charcoal); }
.confirm-wrap p { color: var(--text-muted); font-size: 17px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Legal page ---------- */
.legal-section { border-bottom: 1px solid var(--border); padding: 42px 0; }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 25px; font-weight: 700; margin: 0 0 16px; color: var(--charcoal); }
.legal-section h3 { font-size: 17px; margin: 22px 0 8px; color: var(--text); }
.legal-section p, .legal-section li { color: var(--text-muted); }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ---------- Governance ---------- */
.gov-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.gov-item:last-child { border-bottom: none; }
.gov-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--charcoal); }
.gov-item p { margin: 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
footer { background: var(--charcoal); color: #b0b4b2; padding: 58px 0 26px; font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #4a4d51;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 38px; width: auto; display: block; }
.footer-legal, .footer-statement { font-size: 13px; line-height: 1.75; }
.footer-statement { margin-top: 14px; color: #8a8d8b; }
.footer-col h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b0b4b2; text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 20px; font-size: 12.5px; color: #8a8d8b;
}
.footer-bottom a { color: #8a8d8b; }

/* ---------- Site Notes (internal review only) ---------- */
.site-note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 13px 18px;
  font-size: 13.5px;
  color: #78350f;
  font-weight: 600;
  margin: 16px 0;
  line-height: 1.55;
}
.site-note::before {
  content: "📝 ";
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero h1 { font-size: 34px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .donate-layout { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
