/* =====================================================================
   Help Bright — styles.css
   Compassionate, clean, mobile-first. Warm palette: navy, cream, gold, green.
   ===================================================================== */

:root {
  /* Palette */
  --navy: #16243f;
  --navy-700: #21365c;
  --cream: #fbf7ef;
  --cream-deep: #f3ead9;
  --card: #ffffff;
  --gold: #c79a3f;
  --gold-dark: #ad8230;
  --gold-soft: #f0e2bf;
  --green: #2f7d54;
  --green-soft: #e4f1e9;
  --ink: #25303f;
  --muted: #5e6878;
  --line: #e9d2;
  --line: #eae3d6;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Shape */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(22, 36, 63, 0.08);
  --shadow-sm: 0 4px 14px rgba(22, 36, 63, 0.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--gold-dark); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.section { padding: 3rem 0; }
.section-tint { background: var(--cream-deep); }
.section-lead { color: var(--muted); margin: -0.25rem 0 1.75rem; }

@media (min-width: 768px) {
  .section { padding: 4.5rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 6px 18px rgba(199, 154, 63, 0.35);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Outline variant on light backgrounds */
.section .btn-outline,
.donate-success .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.section .btn-outline:hover,
.donate-success .btn-outline:hover { background: rgba(22, 36, 63, 0.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-mark { font-size: 1.3rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(199, 154, 63, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 3.25rem 0 3.75rem;
  text-align: center;
}
.hero h1 { color: #fff; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 0.9rem;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero-progress {
  margin: 2.25rem auto 0;
  max-width: 560px;
  text-align: left;
  padding: 1.1rem 1.25rem;
}
.hero-progress-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-progress-stats strong { color: var(--navy); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .usage-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Story ---------- */
.story-card p:last-of-type { margin-bottom: 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem 1.5rem;
  margin: 1.5rem 0 0.5rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
}
@media (min-width: 560px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
.detail-item dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.detail-item dd { margin: 0; font-weight: 500; color: var(--ink); }
.verify-line {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--green);
  font-weight: 500;
}

/* ---------- Donation ---------- */
.donate-card { padding: 1.5rem; }
@media (min-width: 560px) { .donate-card { padding: 2rem; } }

.amount-fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.amount-fieldset legend {
  font-weight: 600;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.7rem;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 480px) {
  .amount-grid { grid-template-columns: repeat(4, 1fr); }
}
.amount-chip {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 0.5rem;
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.amount-chip:hover { border-color: var(--gold); }
.amount-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.custom-amount { margin-top: 0.9rem; }
.custom-amount label,
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.optional { color: var(--muted); font-weight: 400; }

.input-prefix {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.input-prefix span {
  padding: 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--cream);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.input-prefix input { border: 0; }

.field { margin-bottom: 1rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

input, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 63, 0.18);
}
textarea { resize: vertical; }

.form-error {
  background: #fdecec;
  color: #9b2c2c;
  border: 1px solid #f3c9c9;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.secure-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.donate-success { text-align: center; padding: 1rem 0.5rem; }
.success-badge {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}
.donate-success h3 { color: var(--green); }
.ref-line { font-size: 0.82rem; color: var(--muted); }

/* ---------- Usage cards ---------- */
.usage-card { text-align: left; }
.usage-card h3 { margin-bottom: 0.35rem; }
.usage-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.usage-icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--gold-soft);
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

/* ---------- Progress ---------- */
.progress-track {
  height: 14px;
  background: var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
}
.hero-progress .progress-track { background: rgba(255, 255, 255, 0.25); }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #3a9a67);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-card .progress-amounts {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.big-num { display: block; font-family: var(--serif); font-size: 2.1rem; color: var(--navy); font-weight: 600; }
.big-label { color: var(--muted); font-size: 0.9rem; }
.goal-side { text-align: right; }
.goal-num { display: block; font-weight: 600; color: var(--ink); }
.goal-label { color: var(--muted); font-size: 0.85rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.progress-meta strong { color: var(--navy); }
.progress-note { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Transparency ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 1.4rem; height: 1.4rem;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--cream-deep);
}
.timeline-item { position: relative; padding: 0 0 1.1rem 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cream-deep);
}
.timeline-item.is-done .timeline-dot { border-color: var(--green); background: var(--green); }
.timeline-card { padding: 1rem 1.1rem; }
.timeline-card h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.timeline-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  padding: 0 1.1rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- Share ---------- */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.btn-share {
  background: #fff;
  border: 2px solid var(--line);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-share:hover { border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-heart { font-size: 1.5rem; margin: 0 0 0.5rem; }
.site-footer p { margin: 0 auto 0.6rem; max-width: 560px; }
.footer-fine { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill, .btn { transition: none; }
}
