﻿/* =============================================================
   DONATE.CSS
   Hillside Hope | hillsidehope.org
   ============================================================= */

/* ── Donate hero strip ──────────────────────────────────────── */
.donate-page {
  background: var(--bg-light);
  padding: 64px var(--pad-page);
}

/* ── Main donate card ───────────────────────────────────────── */
.donate-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 44px 48px;
}

.donate-card__heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.donate-card__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Designation banner — shown when arriving via a program CTA (?cause=) */
.donate-cause {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 12px 16px;
  margin: -12px 0 24px;
  font-size: 13px;
  color: var(--navy);
}

.donate-cause[hidden] { display: none; }

.donate-cause svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Frequency toggle */
.freq-toggle {
  display: flex;
  background: var(--bg-light);
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.freq-toggle__btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.freq-toggle__btn.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* Amount grid */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.amount-btn {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Montserrat', sans-serif;
}

.amount-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.amount-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Impact text */
.donate-impact {
  background: var(--blue-pale);
  border-left: 3px solid var(--green);
  border-radius: 0 4px 4px 0;
  padding: 12px 16px;
  margin-bottom: 20px;
  min-height: 44px;
}

.donate-impact p {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* Custom amount row */
.custom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.custom-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.custom-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

.custom-row input[type="number"] {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
  display: none;
}

.custom-row input[type="number"]:focus {
  border-color: var(--navy);
}

.custom-row input[type="number"].visible {
  display: block;
}

/* Donate CTA */
.donate-submit {
  width: 100%;
  padding: 16px;
  background: #F5AB1C;
  color: #3B1F00;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}

.donate-submit:hover { background: #D4920F; color: #fff; }

.donate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.donate-secure svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

/* ── Giving options cards ────────────────────────────────────── */
.giving-options {
  padding: 64px var(--pad-page);
  background: #fff;
}

.giving-options__header {
  text-align: center;
  margin-bottom: 40px;
}

.giving-options__header h2 { font-size: 34px; }

.giving-options__script {
  font-family: 'Dancing Script', cursive;
  font-size: 36px;
  font-weight: 700;
  color: var(--blue-bright);
  display: block;
}

.giving-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.giving-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.giving-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.giving-card--featured {
  background: var(--navy);
  border-color: var(--navy);
}

.giving-card--featured .action-card__title,
.giving-card--featured .action-card__script,
.giving-card--featured .action-card__desc { color: rgba(255,255,255,0.9); }

.giving-card--featured .action-card__script { color: var(--gold); }

.giving-card--featured .btn-arrow { background: var(--gold); }
.giving-card--featured .btn-arrow svg { stroke: #1A4A0F; }

/* ── Transparency strip ─────────────────────────────────────── */
.transparency {
  background: var(--bg-light);
  padding: 64px var(--pad-page);
}

.transparency__header {
  text-align: center;
  margin-bottom: 36px;
}

.transparency__header h2 { font-size: 30px; }

.transparency__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.transparency-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
}

.transparency-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--navy);
}

.transparency-item__icon svg {
  width: 48px;
  height: 48px;
}

.transparency-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
  display: block;
  margin-bottom: 6px;
}

.transparency-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq {
  padding: 64px var(--pad-page);
  background: #fff;
  max-width: 760px;
  margin: 0 auto;
}

.faq h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 36px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s;
}

.faq-item__question:hover { color: var(--navy); }

.faq-item__question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--navy);
}

.faq-item.open .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  padding-bottom: 20px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .donate-page { padding: 40px 24px; }
  .donate-card { padding: 32px 24px; }
  .amount-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .giving-options { padding: 48px 24px; }
  .giving-cards { grid-template-columns: 1fr; }
  .transparency { padding: 48px 24px; }
  .transparency__grid { grid-template-columns: 1fr 1fr; }
  .faq { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .transparency__grid { grid-template-columns: 1fr; }
}
