/* ========== Reset & Base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amarelo: #FFD100;
  --amarelo-claro: #FFE45C;
  --vermelho: #E30613;
  --vermelho-escuro: #B8000F;
  --branco: #FFFFFF;
  --preto: #1A1A1A;
  --cinza: #555;
  --cinza-claro: #F5F5F5;
  --sombra: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--preto);
  background: var(--amarelo);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Header ========== */
.site-header {
  background: var(--amarelo);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 70px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: var(--vermelho);
  color: var(--branco);
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--vermelho);
  color: var(--branco);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--vermelho-escuro);
  transform: translateY(-2px);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--branco);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--amarelo);
  text-shadow: 3px 3px 10px rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* ========== Botões ========== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--vermelho);
  color: var(--branco);
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--vermelho-escuro);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--vermelho);
  color: var(--vermelho);
}

.btn-outline:hover {
  background: var(--vermelho);
  color: var(--branco);
}

/* ========== Seções ========== */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--vermelho);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 800;
}

.section-yellow { background: var(--amarelo); }
.section-red { background: var(--vermelho); color: var(--branco); }
.section-red .section-title { color: var(--branco); }
.section-white { background: var(--branco); }

/* Prestação de Contas / Doações */
.prestacao-contas {
  background: var(--amarelo);
  text-align: center;
}

.prestacao-contas p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.doacoes {
  background: var(--amarelo-claro);
  text-align: center;
}

.doacoes .pix-box {
  background: var(--branco);
  display: inline-block;
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  margin-top: 1rem;
  border: 3px solid var(--vermelho);
}

.doacoes .pix-box strong {
  color: var(--vermelho);
  font-size: 1.3rem;
}

.doacoes .pix-box code {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* Nossa História split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split .red-side {
  background: var(--vermelho);
  color: var(--branco);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
}

.split .yellow-side {
  background: var(--amarelo);
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
}

.split h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.split p {
  font-size: 1.05rem;
}

/* ========== Contato + Formulário ========== */
.contato-section {
  background: var(--cinza-claro);
  padding: 4rem 0;
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contato-grid h3 {
  color: var(--vermelho);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.info-list {
  list-style: none;
}

.info-list li {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.8rem;
}

.info-list strong {
  min-width: 90px;
  color: var(--vermelho);
}

.socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--vermelho);
  color: var(--branco);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.2s;
}

.socials a:hover { background: var(--vermelho-escuro); }

/* ========== Footer ========== */
.site-footer {
  background: var(--amarelo);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  border-top: 3px solid var(--vermelho);
}

/* ========== Instituto ========== */
.instituto-historia {
  background: var(--amarelo);
  padding: 5rem 0 3rem;
}

.historia-texto {
  max-width: 900px;
  margin: 0 auto;
  background: var(--branco);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  border-left: 6px solid var(--vermelho);
}

.historia-texto p {
  margin-bottom: 1.2rem;
  text-align: justify;
  font-size: 1.05rem;
}

.historia-texto p:last-child { margin-bottom: 0; }

.galeria-section {
  background: var(--amarelo-claro);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.galeria-grid figure {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  aspect-ratio: 4/3;
}

.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.galeria-grid figure:hover img { transform: scale(1.05); }

.mvv-section {
  background: var(--vermelho);
  color: var(--branco);
}

.mvv-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mvv-bloco {
  margin-bottom: 2rem;
}

.mvv-bloco:last-child { margin-bottom: 0; }

.mvv-bloco h3 {
  color: var(--amarelo);
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  border-bottom: 3px solid var(--amarelo);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.mvv-bloco p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.valores-lista {
  list-style: none;
  counter-reset: val;
}

.valores-lista li {
  counter-increment: val;
  padding: 0.6rem 0 0.6rem 3rem;
  position: relative;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.valores-lista li:last-child { border-bottom: none; }

.valores-lista li::before {
  content: counter(val);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  background: var(--amarelo);
  color: var(--vermelho);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.mvv-imagem img {
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  width: 100%;
}

/* ========== Escola Sem Drogas ========== */
.esd-hero {
  background: var(--amarelo);
  padding: 4rem 0 2rem;
  text-align: center;
}

.esd-intro {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.esd-pdf-section {
  background: var(--amarelo-claro);
  padding: 2rem 0 4rem;
}

.pdf-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  background: var(--preto);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 4px solid var(--vermelho);
}

.pdf-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-actions {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Onde Estamos / Mapa */
.onde-estamos {
  background: var(--vermelho);
  color: var(--branco);
}

.onde-estamos .section-title { color: var(--branco); }

.mapa-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: stretch;
}

.mapa-info {
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--amarelo);
}

.mapa-info h3 {
  color: var(--amarelo);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.mapa-info p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.mapa-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  min-height: 380px;
}

.mapa-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* ========== Endereços / Casas ========== */
.enderecos-intro {
  background: var(--amarelo);
  padding: 4rem 0 2rem;
  text-align: center;
}

.intro-texto {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.casas-section {
  background: var(--amarelo-claro);
  padding: 3rem 0 5rem;
}

.casas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.casa-card {
  background: var(--branco);
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  position: relative;
  border-top: 6px solid var(--vermelho);
  transition: transform 0.25s, box-shadow 0.25s;
}

.casa-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.casa-tag {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--branco);
}

.casa-tag-masc { background: var(--vermelho); }
.casa-tag-fem { background: #C2185B; }

.casa-card h3 {
  color: var(--vermelho);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.casa-info {
  list-style: none;
}

.casa-info li {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.98rem;
  line-height: 1.5;
}

.casa-info li:last-child { border-bottom: none; }

.casa-info strong {
  display: block;
  color: var(--vermelho);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.casa-info a {
  color: var(--preto);
  font-weight: 600;
}

.casa-info a:hover { color: var(--vermelho); }

/* ========== Transparência ========== */
.transp-intro {
  background: var(--amarelo);
  padding: 4rem 0 2rem;
  text-align: center;
}

.transp-cnpj-section {
  background: var(--amarelo-claro);
  padding: 3rem 0 5rem;
}

.cnpj-card {
  background: var(--vermelho);
  color: var(--branco);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  max-width: 900px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cnpj-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.cnpj-num {
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.cnpj-reports {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-report {
  background: var(--amarelo);
  color: var(--vermelho);
  font-weight: 700;
}

.btn-report:hover {
  background: var(--branco);
  color: var(--vermelho-escuro);
}

.btn-outline-light {
  background: transparent;
  border: 2px solid var(--branco);
  color: var(--branco);
}

.btn-outline-light:hover {
  background: var(--branco);
  color: var(--vermelho);
}

/* Como consultar */
.transp-como-consultar {
  background: var(--amarelo);
  padding: 1rem 0 3rem;
}

.como-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--branco);
  border-left: 6px solid var(--vermelho);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--sombra);
}

.como-box h2 {
  color: var(--vermelho);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.como-box ol {
  padding-left: 1.2rem;
  line-height: 1.8;
}

.como-box li {
  margin-bottom: 0.4rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--preto);
  color: var(--branco);
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== Responsivo ========== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--amarelo);
    padding: 1rem;
    box-shadow: var(--sombra);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav a {
    display: block;
    text-align: center;
  }

  .split { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .hero { min-height: 55vh; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .mapa-grid { grid-template-columns: 1fr; }
  .pdf-wrapper { aspect-ratio: 1/1.2; }
  .casas-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 500px) {
  .galeria-grid { grid-template-columns: 1fr; }
}
