/* Variáveis de Cores e Tipografia Emocionais */
:root {
  --primary-color: #1a5f7a; /* Verde-azulado: serenidade e confiança */
  --secondary-color: #e8f1f5; /* Fundo suave */
  --accent-color: #e26d5c; /* Coral: calor humano, atenção, coração */
  --text-color: #2c3e50; /* Cinza escuro para suavizar a leitura */
  --bg-color: #fafafa;
  --white: #ffffff;
  --border-radius: 12px; /* Bordas mais redondas geram empatia visual */
}

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

body {
  /* Nova fonte padrão para textos: limpa e super legível */
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Nova fonte para os títulos: Serifada, digna e que conta uma história */
h1,
h2,
h3,
.subtitle,
.time-box span,
.cost-card h3 {
  font-family: 'Lora', serif;
}

/* Acessibilidade: Foco visível na navegação por teclado */
*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
header {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  border-bottom: 5px solid var(--accent-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 30px;
}

/* Contador Regressivo */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.time-box {
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  min-width: 80px;
}

.time-box span {
  display: block;
  font-size: 2.2rem;
  font-weight: 600;
}

.time-box small {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Conteúdo Principal */
main {
  padding: 40px 0;
}

section {
  background: var(--white);
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.highlight {
  font-weight: 600;
  color: var(--accent-color);
}

/* Metas e Custos */
.costs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.cost-card {
  background: var(--secondary-color);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.cost-card h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-top: 5px;
}

/* BARRA DE PROGRESSO */
.progress-container {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px dashed #ccc;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.progress-bar-bg {
  background-color: var(--secondary-color);
  border-radius: 20px;
  height: 28px;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  background-color: #2e8b57; /* Verde suave de sucesso */
  height: 100%;
  border-radius: 20px;
  /* Transição de 1.5s para fazer o preenchimento animado ao carregar */
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Listras diagonais bem sutis */
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

.progress-disclaimer {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.progress-container {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px dashed #ccc;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.progress-bar-bg {
  background-color: var(--secondary-color);
  border-radius: 20px;
  height: 28px;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  background-color: #2e8b57; /* Verde suave de sucesso */
  height: 100%;
  border-radius: 20px;
  /* Transição de 1.5s para fazer o preenchimento animado ao carregar */
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Listras diagonais bem sutis */
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

.progress-disclaimer {
  font-size: 0.85rem;
  color: #7f8c8d;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Área de Doação */
.donate-section {
  text-align: center;
  border: 3px solid var(--secondary-color);
}

.donate-section img {
  max-width: 320px;
  height: auto;
  margin: 20px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pix-container {
  margin: 25px 0;
}

.pix-key {
  background: var(--bg-color);
  padding: 15px;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-family: monospace;
  word-break: break-all;
  margin-bottom: 15px;
  display: inline-block;
  border: 1px solid #ddd;
}

button {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 16px 35px;
  font-size: 1.1rem;
  border-radius: 30px; /* Botão arredondado amigável */
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.3s,
    box-shadow 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(226, 109, 92, 0.3);
}

button:hover {
  background-color: #c95646; /* Coral um pouco mais escuro */
  transform: translateY(-2px); /* Efeito de flutuar o botão ao passar o mouse */
  box-shadow: 0 6px 12px rgba(226, 109, 92, 0.4);
}

.whatsapp-disclaimer {
  background-color: #fff8e1; /* Amarelo bem suave para atenção */
  border: 1px solid #ffe082;
  color: #5d4037;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 30px;
  text-align: left;
  font-size: 1rem;
}

.whatsapp-disclaimer strong {
  color: #f57f17;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.whatsapp-link {
  margin: auto;
  display: block;
  width: fit-content;
  background-color: #25d366; /* Cor oficial do WhatsApp */
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.whatsapp-link:hover {
  background-color: #128c7e;
}

/* Responsividade */
@media (max-width: 600px) {
  h1 {
    font-size: 2.1rem;
  }
  .costs {
    grid-template-columns: 1fr;
  }
  .countdown {
    flex-wrap: wrap;
  }
  .progress-labels {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  .whatsapp-disclaimer {
    text-align: center;
  }
}
