/* ==============================
   SISTEMA DE DESIGN
================================*/
:root {
  --cor-primaria: #2a6f97;
  --cor-secundaria: #014f86;
  --cor-terciaria: #89c2d9;
  --cor-clara: #e0f7fa;
  --cor-escura: #012a4a;
  --cor-sucesso: #2e8b57;
  --cor-alerta: #ff9800;
  --cor-erro: #d32f2f;

  --fonte-base: "Segoe UI", Roboto, sans-serif;
  --fs-pequena: 0.875rem;
  --fs-media: 1rem;
  --fs-grande: 1.25rem;
  --fs-titulo: 2rem;
  --fs-destaque: 2.5rem;

  --esp-1: 8px;
  --esp-2: 16px;
  --esp-3: 24px;
  --esp-4: 32px;
  --esp-5: 48px;
  --esp-6: 64px;
}

/* ==============================
   RESET E BASE
================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--fonte-base);
  font-size: var(--fs-media);
  color: var(--cor-escura);
  background-color: #fff;
  line-height: 1.6;
}

/* ==============================
   CABEÇALHO E NAVEGAÇÃO
================================*/
header {
  background-color: var(--cor-primaria);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--esp-2) var(--esp-4);
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

header .logo img {
  height: 50px;
  width: 50px;
  margin-right: var(--esp-2);
}

header h1 {
  font-size: var(--fs-grande);
  font-weight: 600;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--esp-3);
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--cor-terciaria);
}

/* ==============================
   MENU MOBILE
================================*/
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
}

/* ==============================
   ESTRUTURA GERAL
================================*/
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--esp-5) var(--esp-4);
}

section {
  margin-bottom: var(--esp-5);
}

/* ==============================
   SEÇÃO DE APRESENTAÇÃO
================================*/
#apresentacao {
  text-align: center;
  background: var(--cor-clara);
  padding: var(--esp-5);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#apresentacao h2 {
  font-size: var(--fs-destaque);
  margin-bottom: var(--esp-3);
  color: var(--cor-secundaria);
}

#apresentacao p {
  font-size: var(--fs-grande);
  margin-bottom: var(--esp-3);
}

#apresentacao figure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--esp-2);
  margin-bottom: var(--esp-3);
}

#apresentacao img {
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

#apresentacao a.button {
  background-color: var(--cor-secundaria);
  color: #fff;
  padding: var(--esp-2) var(--esp-3);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

#apresentacao a.button:hover {
  background-color: var(--cor-terciaria);
  color: var(--cor-escura);
}

/* ==============================
   MISSÃO / VISÃO
================================*/
#missao-valores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-3);
  justify-content: space-around;
}

#missao-valores article {
  flex: 1 1 45%;
  background-color: var(--cor-terciaria);
  padding: var(--esp-3);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 300px;
}

/* ==============================
   CONTATO
================================*/
#contato {
  background: var(--cor-clara);
  padding: var(--esp-4);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#contato address {
  font-style: normal;
  line-height: 1.8;
}

/* ==============================
   PÁGINA PROJETOS
================================*/
#projetos-sociais, #voluntariado, #doacao {
  text-align: center;
}

#projetos-sociais h2, #voluntariado h2, #doacao h2 {
  color: var(--cor-secundaria);
  margin-bottom: var(--esp-3);
}

#projetos-sociais article {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: var(--esp-3);
  margin-bottom: var(--esp-3);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

#projetos-sociais ul {
  list-style: none;
  margin-top: var(--esp-2);
}

#voluntariado img {
  max-width: 100%;
  border-radius: 12px;
  margin: var(--esp-3) 0;
}

#voluntariado .button,
#doacao .button {
  display: inline-block;
  margin-top: var(--esp-2);
}

/* ==============================
   FORMULÁRIO DE CADASTRO
================================*/
form {
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  background: var(--cor-clara);
  padding: var(--esp-4);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 0 auto;
}

fieldset {
  border: 2px solid var(--cor-terciaria);
  border-radius: 10px;
  padding: var(--esp-3);
}

legend {
  font-weight: bold;
  color: var(--cor-secundaria);
  padding: 0 8px;
}

label {
  display: block;
  margin-top: var(--esp-2);
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: var(--esp-2);
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: var(--esp-1);
}

button {
  background-color: var(--cor-primaria);
  color: #fff;
  border: none;
  padding: var(--esp-2) var(--esp-3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

button:hover {
  background-color: var(--cor-secundaria);
}

/* ==============================
   RODAPÉ
================================*/
footer {
  background-color: var(--cor-escura);
  color: #fff;
  text-align: center;
  padding: var(--esp-3);
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--esp-2);
  margin-bottom: var(--esp-2);
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: var(--cor-terciaria);
}

/* ==============================
   RESPONSIVIDADE
================================*/
@media (max-width: 992px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: var(--esp-2);
  }

  #missao-valores article {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  #apresentacao figure {
    flex-direction: column;
  }

  form {
    padding: var(--esp-3);
  }

  button {
    width: 100%;
  }
}

/* ==============================
   MODAL DE CONFIRMAÇÃO
================================*/
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  color: var(--cor-escura);
  margin: 10% auto;
  padding: 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: aparecer 0.3s ease;
}

@keyframes aparecer {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}
