/* ============================================================
   Centro Espirita em Busca da Verdade — estilos globais
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: #FAF7F2;
  color: #241F1B;
  font-family: 'Mulish', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: #6E325C; text-decoration: none; transition: color .2s ease; }
a:hover { color: #45203C; }

img { display: block; max-width: 100%; }

::selection { background: #6E325C; color: #FAF7F2; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floatUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Estados interativos ---------- */
.nav-link:hover { color: #6E325C; }
.btn-primary:hover { background: #45203C; color: #FAF7F2; }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost:hover { background: rgba(250,247,242,.14); }
.card-activity { transition: transform .18s ease, box-shadow .18s ease; }
.card-activity:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(69,32,60,.55); }
.tier-btn { transition: transform .18s ease; }
.tier-btn:hover { transform: translateY(-3px); }
.field:focus { outline: none; border-color: #6E325C !important; box-shadow: 0 0 0 3px rgba(110,50,92,.12); }

/* ---------- Slider de texto (marquee) ---------- */
.marquee-wrap { background: #45203C; overflow: hidden; padding: 16px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; color: #e7c9dd; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* ---------- Abas de doacao no estilo "pastas" ---------- */
.tabs-folder { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 820px; margin: 44px auto 0; padding: 0 6px; position: relative; z-index: 2; }
.tab-folder {
  border: 1px solid rgba(36,31,27,.12); border-bottom: none;
  background: #EDE4D8; color: #6b625a;
  padding: 15px 30px; border-radius: 14px 14px 0 0;
  font-family: 'Mulish', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: all .2s ease; position: relative; top: 1px;
}
.tab-folder:hover { background: #F3ECE1; color: #45203C; }
.tab-folder.active {
  background: #FAF7F2; color: #45203C;
  box-shadow: 0 -6px 20px -12px rgba(69,32,60,.35);
}
.tab-folder.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: #FAF7F2; }

.donation-body {
  background: #FAF7F2; border: 1px solid rgba(36,31,27,.12); border-radius: 0 18px 18px 18px;
  padding: clamp(28px,4vw,48px); box-shadow: 0 40px 80px -50px rgba(69,32,60,.5);
  position: relative; z-index: 1;
}
.donation-panel { display: none; }
.donation-panel.active { display: block; animation: floatUp .4s ease; }

/* ---------- Placeholder de imagem ---------- */
.img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 18px;
  background: linear-gradient(135deg, rgba(110,50,92,.10), rgba(180,137,76,.12)), #ece4d8;
  color: #8a7f74; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.5;
}

/* ---------- Flash ---------- */
.flash { border-radius: 12px; padding: 16px 20px; margin-bottom: 22px; font-size: .98rem; font-weight: 600; line-height: 1.5; }
.flash-sucesso { background: #E6F0E1; color: #3f5a34; border: 1px solid #b9d3ab; }
.flash-erro    { background: #F6E4E1; color: #8a3b30; border: 1px solid #e0b4ab; }

/* ---------- Botao copiar PIX ---------- */
.copy-btn { border: none; background: #6E325C; color: #fff; padding: 0 22px; border-radius: 10px; font-family: 'Mulish', sans-serif; font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: all .2s ease; }
.copy-btn.copied { background: #5C7A4E; }

.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ============================================================
   Header / menu responsivo
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(16px,5vw,72px); background: rgba(250,247,242,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(36,31,27,.10); }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-logo { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(12px,1.8vw,26px); }
.nav-link { font-size: .92rem; font-weight: 600; color: #4a423b; white-space: nowrap; }
.nav-link.is-active { color: #6E325C; font-weight: 700; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: #6E325C; color: #FAF7F2; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(110,50,92,.7); }
.nav-cta:hover { background: #45203C; color: #FAF7F2; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 40px; padding: 0 11px; background: #FAF7F2; border: 1px solid rgba(36,31,27,.18); border-radius: 10px; cursor: pointer; }
.menu-toggle-bar { display: block; height: 2px; width: 100%; background: #45203C; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .brand-logo { height: 44px; }
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #FAF7F2; border-bottom: 1px solid rgba(36,31,27,.12);
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.3);
    padding: 6px 0; display: none;
  }
  .site-nav.open { display: flex; animation: floatUp .25s ease; }
  .site-nav .nav-link { padding: 14px clamp(20px,5vw,40px); font-size: 1rem; border-bottom: 1px solid rgba(36,31,27,.06); }
  .site-nav .nav-cta { margin: 12px clamp(20px,5vw,40px); justify-content: center; }
}

/* ============================================================
   Modal de evento
   ============================================================ */
.modal-evento { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(30,18,26,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-evento.open { display: flex; animation: fadeIn .25s ease; }
.modal-evento-box { position: relative; max-width: 520px; width: 100%; max-height: 92vh; overflow: auto; background: #FAF7F2; border-radius: 16px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.modal-evento-box > a { display: block; }
.modal-evento-box img { width: 100%; height: auto; display: block; border-radius: 16px 16px 0 0; }
.modal-evento-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-evento-close:hover { background: rgba(0,0,0,.75); }
.modal-evento-actions { padding: 18px 22px 22px; text-align: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
