/* ============================================================
   CAMPANHA SOLIDÁRIA — style.css
   Paleta editável via variáveis CSS
   ============================================================ */

:root {
  --color-action:       #22c55e;   /* verde — botões de ação */
  --color-action-dark:  #16a34a;
  --color-action-light: #dcfce7;
  --color-emotion:      #f43f5e;   /* rosa/vermelho suave — emoção */
  --color-emotion-light:#ffe4e6;
  --color-bg:           #fafaf9;   /* off-white fundo */
  --color-surface:      #ffffff;
  --color-border:       #e7e5e4;
  --color-text:         #1c1917;   /* cinza escuro */
  --color-text-muted:   #78716c;
  --color-text-light:   #a8a29e;
  --color-progress-bg:  #e7e5e4;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', 'Helvetica Neue', sans-serif;
  --transition:   .2s ease;
  --max-w: 720px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-action-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: var(--font-body); border: none; }
ul { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; color: var(--color-text); }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p  { font-size: 1rem; color: var(--color-text-muted); }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 48px 0; }
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-emotion);
  background: var(--color-emotion-light);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 8px; }
.section-sub   { margin-bottom: 32px; font-size: .95rem; }

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }

/* ─── Top bar ─── */
.topbar {
  background: var(--color-emotion);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 20px;
  letter-spacing: .03em;
}
.topbar span { opacity: .85; font-weight: 400; }

/* ─── Sticky Donate CTA ─── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 12px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.10);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-text { flex: 1; min-width: 0; }
.sticky-cta-text strong { font-size: .9rem; display: block; }
.sticky-cta-text small  { font-size: .75rem; color: var(--color-text-muted); }
.sticky-cta-btn {
  flex-shrink: 0;
  background: var(--color-action);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.sticky-cta-btn:hover { background: var(--color-action-dark); transform: scale(1.02); }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(160deg, #fff7f8 0%, #f0fdf4 100%);
  padding: 32px 0 0;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-emotion-light);
  color: var(--color-emotion);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.hero-badge svg { width: 12px; height: 12px; fill: currentColor; }
.hero h1 { margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--color-emotion); }
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 28px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.trust-item svg { width: 14px; height: 14px; color: var(--color-action); }
.hero-img-wrap {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 50%);
}
.hero-img-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ─── Donation Card ─── */
.donation-section {
  background: var(--color-surface);
  padding: 40px 0;
}
.donation-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.donation-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
  text-align: center;
}
.donation-card-sub {
  font-size: .85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 22px;
}
.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.donation-value-btn {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--color-text);
  transition: all var(--transition);
  text-align: center;
}
.donation-value-btn:hover {
  border-color: var(--color-action);
  background: var(--color-action-light);
  color: var(--color-action-dark);
}
.donation-value-btn.selected {
  border-color: var(--color-action);
  background: var(--color-action);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(34,197,94,.35);
}
.donation-custom-wrap {
  position: relative;
  margin-bottom: 20px;
}
.donation-custom-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--color-text-muted);
  pointer-events: none;
}
.donation-custom-input {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 13px 14px 13px 38px;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  outline: none;
  transition: border-color var(--transition);
}
.donation-custom-input:focus {
  border-color: var(--color-action);
  background: var(--color-surface);
}
.donation-custom-input::placeholder { color: var(--color-text-light); font-weight: 400; }

/* PIX badge */
.pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: var(--color-action-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

/* Main donate button */
.btn-donate-main {
  width: 100%;
  background: var(--color-action);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(34,197,94,.4);
  position: relative;
  overflow: hidden;
  letter-spacing: .01em;
}
.btn-donate-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.btn-donate-main:hover:not(:disabled) {
  background: var(--color-action-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34,197,94,.45);
}
.btn-donate-main:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn-donate-main .btn-inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative; z-index: 1;
}
.btn-donate-main .spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-donate-main.loading .spinner { display: block; }
.btn-donate-main.loading .btn-text { opacity: .8; }

@keyframes spin { to { transform: rotate(360deg); } }

.donation-micro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--color-text-light);
}
.donation-micro svg { width: 13px; height: 13px; color: var(--color-action); }

/* ─── Progress / Goal ─── */
.goal-section { padding: 0 0 40px; background: var(--color-surface); }
.goal-card {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-xl);
  padding: 24px;
}
.goal-numbers {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.goal-raised strong { font-size: 1.5rem; color: var(--color-action-dark); font-family: var(--font-display); }
.goal-raised span   { font-size: .78rem; color: var(--color-text-muted); display: block; }
.goal-target strong { font-size: 1rem; color: var(--color-text); font-weight: 700; }
.goal-target span   { font-size: .78rem; color: var(--color-text-muted); display: block; text-align: right; }
.progress-bar {
  height: 12px;
  background: var(--color-progress-bg);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-action) 0%, #4ade80 100%);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
  width: 0;
}
.goal-meta {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--color-text-muted);
}

/* ─── Story ─── */
.story-section { background: var(--color-bg); }
.story-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.story-img img { width: 100%; height: 240px; object-fit: cover; }
.story-body p { margin-bottom: 16px; line-height: 1.8; font-size: 1rem; }

/* ─── Use of Funds ─── */
.funds-section { background: var(--color-surface); }
.funds-list { display: flex; flex-direction: column; gap: 14px; }
.fund-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--color-border);
}
.fund-number {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 99px;
  background: var(--color-action);
  color: #fff;
  font-weight: 900;
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.fund-item h3 { font-size: 1rem; margin-bottom: 4px; }
.fund-item p  { font-size: .88rem; margin: 0; }

/* ─── Testimonials ─── */
.testimonials-section { background: var(--color-bg); }
.testimonials-list { display: flex; flex-direction: column; gap: 16px; }
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-action-light);
  position: absolute;
  top: 8px; left: 16px;
}
.testimonial-text {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-top: 24px;
}
.testimonial-author {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ─── Updates ─── */
.updates-section { background: var(--color-surface); }
.updates-list { display: flex; flex-direction: column; gap: 0; }
.update-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.update-item:last-child { border-bottom: none; }
.update-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.update-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-action);
  margin-top: 6px;
}
.update-line { flex: 1; width: 2px; background: var(--color-border); margin-top: 4px; }
.update-date { font-size: .72rem; font-weight: 700; color: var(--color-text-light); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; }
.update-item h3 { font-size: 1rem; margin-bottom: 4px; }
.update-item p  { font-size: .88rem; }

/* ─── Transparency ─── */
.transparency-section { background: var(--color-bg); }
.transparency-box {
  background: var(--color-action-light);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}
.transparency-box p { color: var(--color-text); font-size: .9rem; }

/* ─── Gallery ─── */
.gallery-section { background: var(--color-surface); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-progress-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: var(--color-text-light);
}
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FAQ ─── */
.faq-section { background: var(--color-bg); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.faq-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-action-light);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
  color: var(--color-action-dark);
  font-size: 1.1rem;
  line-height: 1;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-action);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 20px 18px; font-size: .9rem; color: var(--color-text-muted); line-height: 1.7; }

/* ─── Share section ─── */
.share-section { background: var(--color-emotion-light); padding: 36px 0; }
.share-card { text-align: center; }
.share-card h2 { color: var(--color-emotion); margin-bottom: 8px; }
.share-card p  { margin-bottom: 22px; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 800;
  transition: all var(--transition);
}
.btn-share-wa  { background: #25d366; color: #fff; }
.btn-share-wa:hover  { background: #1eb358; }
.btn-share-copy { background: var(--color-surface); color: var(--color-text); border: 2px solid var(--color-border); }
.btn-share-copy:hover { border-color: var(--color-action); color: var(--color-action-dark); }
.btn-share svg { width: 18px; height: 18px; }

/* ─── Footer ─── */
footer {
  background: #1c1917;
  color: #a8a29e;
  padding: 36px 0 24px;
  font-size: .82rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #e7e5e4;
  margin-bottom: 6px;
}
.footer-desc { margin-bottom: 24px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; }
.footer-links a { color: #a8a29e; font-size: .8rem; transition: color var(--transition); }
.footer-links a:hover { color: #e7e5e4; text-decoration: none; }
.footer-disclaimer { font-size: .75rem; line-height: 1.6; border-top: 1px solid #292524; padding-top: 16px; }
.footer-copy { margin-top: 12px; font-size: .72rem; color: #57534e; }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.modal-sheet {
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 480px;
  transform: translateY(30px);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 40px; height: 4px;
  background: var(--color-border);
  border-radius: 99px;
  margin: 0 auto 22px;
}
.modal-title { font-size: 1.15rem; margin-bottom: 6px; }
.modal-sub   { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 22px; }
.form-group  { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group label span.opt { font-weight: 400; color: var(--color-text-light); }
.form-input {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
  background: var(--color-bg);
}
.form-input:focus { border-color: var(--color-action); background: #fff; }
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--color-text-muted);
  cursor: pointer;
}
.form-check input { margin-top: 3px; accent-color: var(--color-action); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.btn-confirm {
  width: 100%;
  background: var(--color-action);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(34,197,94,.35);
  transition: all var(--transition);
}
.btn-confirm:hover { background: var(--color-action-dark); transform: translateY(-1px); }
.btn-skip {
  width: 100%;
  background: none;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: .9rem;
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all var(--transition);
}
.btn-skip:hover { border-color: var(--color-action); color: var(--color-action-dark); }

/* ─── Error / Alert ─── */
.alert {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 700;
  margin-top: 10px;
}
.alert-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.alert-success { background: var(--color-action-light); color: var(--color-action-dark); border: 1px solid #bbf7d0; }
.alert.visible { display: block; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1c1917;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 99px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Contact chip ─── */
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 99px;
  padding: 8px 18px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition);
}
.contact-chip:hover { border-color: var(--color-action); color: var(--color-action-dark); text-decoration: none; }
.contact-chip svg { width: 16px; height: 16px; color: var(--color-action); }

/* ─── Responsive ─── */
@media (min-width: 480px) {
  .donation-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-img-wrap img { height: 380px; }
}
@media (min-width: 600px) {
  section { padding: 64px 0; }
  .donation-card { padding: 36px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-img-wrap img { height: 420px; }
}
@media (min-width: 768px) {
  .donation-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
.fade-up-d4 { animation-delay: .4s; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
