/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:        #16a34a;
  --green-dark:   #14532d;
  --green-light:  #22c55e;
  --blue:         #2563eb;
  --blue-dark:    #1d4ed8;
  --orange:       #ea580c;
  --red:          #dc2626;
  --purple:       #7c3aed;
  --teal:         #0d9488;
  --navy:         #0f172a;
  --gray-bg:      #f8fafc;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --muted:        #64748b;
  --white:        #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

ul { list-style: none; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* =============================================
   HEADER / NAV
   ============================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-leaf {
  font-size: 1.6rem;
  line-height: 1;
}

.logo-text {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--green-dark);
  text-transform: none;
}

.logo-footer .logo-text {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  padding: 0.25rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.btn-outline {
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover { background: #f0fdf4; }

.btn-outline-white {
  border-color: rgba(255,255,255,0.75);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
}

.btn-full {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.4rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0b1e34 0%, #1a3a52 40%, #0d4a3a 100%);
  /* Subtle dot pattern to simulate crowd/people photo texture */
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13,148,136,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(22,163,74,0.2) 0%, transparent 40%),
    linear-gradient(135deg, #0b1e34 0%, #1a3a52 40%, #0d4a3a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 760px;
  padding: 2rem 1.5rem;
  margin-top: 4.5rem;
}

.hero-content h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-content p {
  font-size: 0.97rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* =============================================
   SECTION UTILITIES
   ============================================= */
.section { padding: 5rem 1.5rem; }
.section-gray { background: var(--gray-bg); }

.section-teal {
  background: linear-gradient(135deg, var(--teal) 0%, #059669 100%);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.65rem;
  color: var(--text);
}
.section-title.white { color: var(--white); }

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.section-subtitle.white { color: rgba(255,255,255,0.82); }

/* =============================================
   ICON BACKGROUNDS
   ============================================= */
.bg-blue   { background: #dbeafe; }
.bg-green  { background: #dcfce7; }
.bg-orange { background: #fed7aa; }
.bg-red    { background: #fee2e2; }
.bg-purple { background: #ede9fe; }
.bg-teal   { background: #ccfbf1; }

/* =============================================
   NOSSAS ATIVIDADES
   ============================================= */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.activity-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.09);
}

.activity-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.activity-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.activity-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   SOBRE NÓS
   ============================================= */
.sobre-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.sobre-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 1.75rem;
  backdrop-filter: blur(4px);
}

.sobre-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.sobre-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.sobre-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
}

/* =============================================
   NOSSA HISTÓRIA
   ============================================= */
.historia-section {
  padding: 0 1.5rem 4rem;
}

.historia-box {
  background: linear-gradient(135deg, #1e3a5f, #0d4a3a);
  border-radius: 18px;
  padding: 2.75rem 3rem;
  text-align: center;
  color: var(--white);
}

.historia-box h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.historia-box p {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.88;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =============================================
   ATIVIDADES E PROJETOS (alternados)
   ============================================= */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.project-item.reverse {
  direction: rtl;
}
.project-item.reverse > * {
  direction: ltr;
}

/* Image placeholder */
.project-img {
  border-radius: 14px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.img-class         { background: linear-gradient(135deg, #bfdbfe, #93c5fd); }
.img-doacao        { background: linear-gradient(135deg, #bbf7d0, #86efac); }
.img-limpeza       { background: linear-gradient(135deg, #fed7aa, #fdba74); }
.img-medicina      { background: linear-gradient(135deg, #fecaca, #fca5a5); }
.img-assembleia    { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); }
.img-assembleia-ext{ background: linear-gradient(135deg, #e9d5ff, #d8b4fe); }
.img-reunioes      { background: linear-gradient(135deg, #99f6e4, #5eead4); }

.img-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.img-label {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,0,0,0.2);
  color: var(--white);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.project-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.project-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
}

/* =============================================
   TRANSPARÊNCIA / PRESTAÇÃO DE CONTAS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.recursos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 3.5rem;
}

.recursos-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.recursos-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.recursos-title.green { color: var(--green); }
.recursos-title.red   { color: var(--red); }

.recursos-card li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.3rem 0;
}

/* =============================================
   GALERIA DE DOCUMENTOS
   ============================================= */
.gallery-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.gallery-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.1rem;
}

.doc-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.doc-card.hidden { display: none; }

.doc-thumb {
  height: 110px;
  background: linear-gradient(135deg, #f1f5f9, #e9eef5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.doc-thumb::before { content: '📄'; }

.doc-info { padding: 0.7rem 0.8rem 0.9rem; }

.doc-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.doc-desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.doc-link {
  font-size: 0.73rem;
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}
.doc-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* =============================================
   COMO AJUDAR
   ============================================= */
.ajuda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.ajuda-card {
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  color: var(--white);
}

.card-blue  { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.card-green { background: linear-gradient(135deg, #16a34a, #15803d); }

.ajuda-icon-wrap {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
}

.ajuda-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.ajuda-card p {
  font-size: 0.875rem;
  opacity: 0.88;
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.ajuda-card li {
  font-size: 0.85rem;
  opacity: 0.88;
  padding: 0.25rem 0;
}

.diretrizes-box {
  background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: 18px;
  padding: 2.75rem;
  text-align: center;
  color: var(--white);
}

.diretrizes-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.diretrizes-box p {
  max-width: 660px;
  margin: 0 auto 0.75rem;
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.75;
}

.diretrizes-buttons {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* =============================================
   CONTATO
   ============================================= */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contato-form-wrapper h3,
.info-block h3,
.social-block h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.form-group { margin-bottom: 0.9rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

.form-group textarea { resize: vertical; }

.info-block { margin-bottom: 1.75rem; }

.info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.info-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.9rem;
  color: var(--text);
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.4rem 1rem;
  background: #25d366;
  color: var(--white);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.whatsapp-btn:hover { background: #128c7e; }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: filter 0.2s;
}
.social-link:hover { filter: brightness(0.92); }

.social-link.instagram { background: #fce4ec; color: #c2185b; }
.social-link.facebook  { background: #e3f2fd; color: #1565c0; }
.social-link.whatsapp  { background: #e8f5e9; color: #2e7d32; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 1.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo-text { color: var(--white); }

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links-col li { padding: 0.3rem 0; }
.footer-links-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--white); }

.footer-missao-col p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-missao-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    gap: 0.8rem;
  }
  .nav-links.open { display: flex; }

  .project-item,
  .project-item.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .ajuda-grid,
  .recursos-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .historia-box { padding: 2rem 1.5rem; }
  .diretrizes-box { padding: 2rem 1.5rem; }
}

@media (max-width: 540px) {
  .activities-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 1.7rem; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
}

.doc-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

