/* ================= RESPONSIVIDADE ================= */

/* Reset básico para evitar bug em mobile */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

/* Container geral */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Títulos */
h1, h2, h3 {
  line-height: 1.3;
  margin-bottom: 0.8rem;
  word-wrap: break-word;
}

/* Botões */
button, .btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  width: auto;
  cursor: pointer;
}

/* Imagens */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ================= Breakpoints ================= */

/* Tablets e menores */
@media (max-width: 991px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero img {
    margin: 1rem auto;
  }
  .progress-bar {
    height: 20px;
  }
  button, .btn {
    width: 100%; /* botões ocupam a largura inteira */
    margin-bottom: 0.5rem;
  }
}

/* Celulares */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }
  .images-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}


/* ---------- MOBILE-ONLY REFINEMENTS (<= 640px) ---------- */
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; }
  * { box-sizing: border-box; }
  img { max-width: 100%; height: auto; }

  /* Badge "Campanha urgente" centralizado */
  .hero .badge {
    display: inline-block;
    margin: 0 auto 10px;     /* espacinho abaixo do badge */
    text-align: center;
  }

  /* Título com respiro e leitura melhor no mobile */
  .hero .title {
    margin-top: 6px;         /* espaçozinho pedido entre badge e título */
    text-align: center;
    font-size: 1.45rem;
    line-height: 1.25;
    word-break: keep-all;
  }

  /* Subtítulo centralizado */
  .hero .subtitle {
    text-align: center;
    margin-top: 6px;
  }

  /* Cartão de stats mais respirado no celular */
  .hero .card {
    padding: 14px;
    border-radius: 16px;
  }

  /* A linha com Arrecadado/Meta/Corações vira coluna no mobile */
  .hero .card .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;                /* espaço entre os blocos */
  }

  /* Cada bloco de stat vira uma linha com label à esquerda e valor à direita */
  .hero .card .flex.items-center.justify-between > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hero .card .flex.items-center.justify-between > div:last-child {
    border-bottom: 0;
  }

  /* Números um pouco menores para caber melhor */
  .hero .card .text-2xl { font-size: 1.25rem; }

  /* Barra de progresso um pouquinho mais fina e com respiro */
  .progress { height: 12px; }
  .hero .card .progress + .text-right { margin-top: 6px; }

  /* Botões viram largura cheia e com espaço entre eles */
  .hero .flex.gap-3 {
    flex-direction: column;
    gap: 10px;
  }
  .hero .btn { width: 100%; }
}
@media (max-width: 640px){
  html{-webkit-text-size-adjust:100%}*{box-sizing:border-box}img{max-width:100%;height:auto}
  .hero .badge{display:inline-block;margin:0 auto 10px;text-align:center}
  .hero .title{margin-top:6px;text-align:center;font-size:1.45rem;line-height:1.25;word-break:keep-all}
  .hero .subtitle{text-align:center;margin-top:6px}
  .hero .card{padding:14px;border-radius:16px}
  .hero .card .flex.items-center.justify-between{flex-direction:column;align-items:stretch;gap:8px}
  .hero .card .flex.items-center.justify-between>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.06)}
  .hero .card .flex.items-center.justify-between>div:last-child{border-bottom:0}
  .hero .card .text-2xl{font-size:1.25rem}
  .progress{height:12px}
  .hero .card .progress + .text-right{margin-top:6px}
  .hero .flex.gap-3{flex-direction:column;gap:10px}
  .hero .btn{width:100%}
}
