/* Ponto Solidário */

:root {
  --cor-fundo: #f8f1e6;
  --cor-texto: #2a2a2a;
  --cor-texto-suave: #4a4a4a;
  --cor-laranja: #d97737;
  --cor-laranja-escuro: #c2652a;
  /* laranja só para texto: garante 4.5:1 em corpo pequeno */
  --cor-laranja-texto: #a5521f;
  --cor-verde: #6b7d4a;
  /* verde só para texto: garante 4.5:1 sobre fundo e branco */
  --cor-verde-texto: #5a6a3d;
  --cor-verde-claro: #e8efe3;
  --cor-laranja-claro: #f7e8dc;
  --cor-branco: #fffdf9;
  --cor-whatsapp: #128c7e;
  --cor-whatsapp-escuro: #0f7267;
  --raio: 0.85rem;
  --espaco: 1.25rem;
  --nav-altura: 4rem;
  --rodape-seguro: env(safe-area-inset-bottom, 0px);
}

html {
  /* percentual, e não px: respeita quem aumentou a fonte padrão do navegador */
  font-size: 112.5%;
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--nav-altura) + var(--rodape-seguro) + 1rem);
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.5;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  /* espaço para a barra de navegação fixa do celular */
  padding-bottom: calc(var(--nav-altura) + var(--rodape-seguro));
  -webkit-tap-highlight-color: transparent;
}

img {
  width: 100%;
  height: auto;
}

a:focus-visible,
:focus-visible {
  outline: 3px solid var(--cor-laranja-escuro);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.pular {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  transform: translate(-50%, -150%);
  z-index: 50;
  background: var(--cor-branco);
  color: var(--cor-verde-texto);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 0.4rem 1rem rgba(42, 42, 42, 0.18);
}

.pular:focus {
  transform: translate(-50%, 0);
}

/* —— Hero —— */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: var(--espaco) var(--espaco) 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.hero__local {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cor-verde-texto);
  margin-bottom: 0.85rem;
}

.hero__pin {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: #1a1a1a;
  text-wrap: balance;
}

.hero__title-mark {
  position: relative;
  display: inline-block;
}

.hero__title-mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.08em;
  height: 0.28em;
  background: var(--cor-laranja);
  border-radius: 0.1em 0.35em 0.15em 0.4em / 0.2em 0.3em 0.4em 0.25em;
  opacity: 0.9;
  z-index: -1;
  transform: rotate(-1.5deg);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--cor-texto-suave);
  max-width: 28rem;
  margin-bottom: 1.35rem;
  text-wrap: pretty;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: var(--cor-laranja);
  padding: 0.9rem 1.6rem;
  border-radius: 0.65rem;
  box-shadow: 0 0.35rem 0.9rem rgba(217, 119, 55, 0.35);
  margin-bottom: 1.75rem;
  animation: cta-shake 3.5s ease-in-out infinite;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.hero__cta:active {
  animation: none;
  transform: scale(0.97);
  background: var(--cor-laranja-escuro);
}

.hero__cta-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

@keyframes cta-shake {
  0%,
  82%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  84% {
    transform: translateX(-0.35rem) rotate(-2deg);
  }
  86% {
    transform: translateX(0.35rem) rotate(2deg);
  }
  88% {
    transform: translateX(-0.3rem) rotate(-1.5deg);
  }
  90% {
    transform: translateX(0.3rem) rotate(1.5deg);
  }
  92% {
    transform: translateX(-0.2rem) rotate(-1deg);
  }
  94% {
    transform: translateX(0.2rem) rotate(1deg);
  }
  96% {
    transform: translateX(-0.1rem) rotate(-0.5deg);
  }
  98% {
    transform: translateX(0.1rem) rotate(0.5deg);
  }
}

/* três colunas iguais: no celular estreito nada fica órfão numa segunda linha */
.hero__feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 0.5rem;
}

.hero__feats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cor-verde-texto);
}

.hero__feat-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
}

.hero__feat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__feat-icon--green {
  background: var(--cor-verde-claro);
  color: var(--cor-verde-texto);
}

.hero__feat-icon--orange {
  background: var(--cor-laranja-claro);
  color: var(--cor-laranja-texto);
}

/* —— Navegação: barra fixa no rodapé (celular) —— */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--cor-branco);
  border-top: 1px solid rgba(107, 125, 74, 0.2);
  box-shadow: 0 -0.25rem 0.85rem rgba(42, 42, 42, 0.08);
  padding-bottom: var(--rodape-seguro);
}

.nav ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 72rem;
  margin: 0 auto;
}

.nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--nav-altura);
  padding: 0.4rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--cor-verde-texto);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__icone {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.nav a[aria-current="true"] {
  color: var(--cor-laranja-texto);
}

.nav a[aria-current="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 0.2rem;
  border-radius: 0 0 999px 999px;
  background: var(--cor-laranja);
}

.nav a:active {
  background: var(--cor-laranja-claro);
}

/* —— Layout geral —— */
main,
.site-footer {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--espaco);
  padding-right: var(--espaco);
}

.section {
  padding: 2.25rem 0;
  scroll-margin-top: 1rem;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-wrap: balance;
}

.section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.section__lead {
  color: var(--cor-texto-suave);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-wrap: pretty;
}

.section__foto,
.contato__foto {
  margin: 1.5rem 0;
  border-radius: var(--raio);
  overflow: hidden;
}

.section__foto img,
.contato__foto img {
  display: block;
}

/* —— Botões —— */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 0.65rem;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn__icone {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.btn--laranja {
  color: #fff;
  background: var(--cor-laranja);
  box-shadow: 0 0.3rem 0.8rem rgba(217, 119, 55, 0.3);
}

.btn--laranja:active {
  background: var(--cor-laranja-escuro);
}

.btn--outline {
  color: var(--cor-verde-texto);
  background: transparent;
  border-color: var(--cor-verde);
}

.btn--outline:active {
  background: var(--cor-verde-claro);
}

.btn--whatsapp {
  color: #fff;
  background: var(--cor-whatsapp);
  box-shadow: 0 0.3rem 0.8rem rgba(18, 140, 126, 0.3);
}

.btn--whatsapp:active {
  background: var(--cor-whatsapp-escuro);
}

/* hover só onde ele existe de verdade — no toque, quem manda é :active */
@media (hover: hover) {
  .hero__cta:hover,
  .hero__cta:focus-visible,
  .btn--laranja:hover,
  .btn--laranja:focus-visible {
    background: var(--cor-laranja-escuro);
  }

  .hero__cta:hover {
    animation: none;
  }

  .btn--outline:hover,
  .btn--outline:focus-visible {
    background: var(--cor-verde-claro);
  }

  .btn--whatsapp:hover,
  .btn--whatsapp:focus-visible {
    background: var(--cor-whatsapp-escuro);
  }

  .nav a:hover {
    background: var(--cor-verde-claro);
  }

  .card:hover {
    box-shadow: 0 0.5rem 1.2rem rgba(42, 42, 42, 0.1);
  }
}

.acoes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* —— Passos (Como doar) —— */
.passos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.passo {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--cor-branco);
  padding: 1rem;
  border-radius: var(--raio);
}

.passo__num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cor-laranja);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.passo p {
  margin: 0;
  color: var(--cor-texto-suave);
  font-size: 0.98rem;
}

/* —— Campanhas —— */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.card {
  position: relative;
  background: var(--cor-branco);
  border-radius: var(--raio);
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}

.card:active {
  transform: scale(0.985);
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.card__body p {
  color: var(--cor-texto-suave);
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.card__link {
  display: inline-block;
  font-weight: 800;
  color: var(--cor-laranja-texto);
  font-size: 1.05rem;
  padding: 0.35rem 0;
}

/* o cartão inteiro vira alvo de toque, não só a linha do link */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* —— Pontos —— */
.ponto {
  background: var(--cor-branco);
  border-radius: var(--raio);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.ponto__foto {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.ponto__info {
  padding: 1.15rem 1.1rem 1.35rem;
}

.ponto__status {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  background: var(--cor-verde-claro);
  color: var(--cor-verde-texto);
}

.ponto__status-luz {
  margin-top: 0.32em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ponto__status--fechado {
  background: var(--cor-laranja-claro);
  color: var(--cor-laranja-texto);
}

.ponto__dados {
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ponto__dados dt {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cor-verde-texto);
  margin-bottom: 0.15rem;
}

.ponto__dados dd {
  font-size: 1.05rem;
}

.horario {
  display: flex;
  gap: 0.5rem;
}

.horario + .horario {
  margin-top: 0.2rem;
}

.horario__dia {
  min-width: 4.6rem;
  font-weight: 800;
}

/* —— Contato —— */
.contato__acoes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contato__obs {
  font-size: 0.85rem;
  color: var(--cor-texto-suave);
  text-align: center;
  margin: 0;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem var(--espaco) 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(107, 125, 74, 0.15);
}

.site-footer > p:not(.site-footer__admin) {
  margin-bottom: 1rem;
  color: var(--cor-texto-suave);
}

.site-footer .btn {
  max-width: 18rem;
  margin: 0 auto;
}

.site-footer__espaco {
  height: 5rem;
}

.site-footer__admin {
  margin: 0;
  font-size: 0.75rem;
}

.site-footer__admin a {
  color: var(--cor-texto-suave);
  opacity: 0.55;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__admin a:hover,
.site-footer__admin a:focus-visible {
  opacity: 0.85;
}

/* —— Reveal ao rolar —— */
/* só esconde quando há JS para revelar: sem script, a página continua legível */
.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__cta,
  .js .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

/* —— Tablet —— */
@media (min-width: 48rem) {
  body {
    padding-bottom: 0;
  }

  html {
    scroll-padding-bottom: 0;
  }

  .hero {
    padding: 2rem 2rem 2.5rem;
    gap: 2rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__feats {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem 1.5rem;
  }

  .hero__feats li {
    flex: 1 1 5.5rem;
    max-width: 8rem;
  }

  main,
  .site-footer {
    max-width: 48rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  /* a partir daqui a navegação volta para o topo */
  .nav {
    position: sticky;
    top: 0;
    bottom: auto;
    background: rgba(248, 241, 230, 0.95);
    backdrop-filter: blur(6px);
    border-top: 0;
    border-bottom: 1px solid rgba(107, 125, 74, 0.15);
    box-shadow: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
  }

  .nav ul {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 2rem;
  }

  .nav a {
    flex-direction: row;
    gap: 0.45rem;
    min-height: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
  }

  .nav__icone {
    width: 1.15rem;
    height: 1.15rem;
  }

  .nav a[aria-current="true"] {
    background: var(--cor-laranja-claro);
  }

  .nav a[aria-current="true"]::before {
    display: none;
  }

  .section {
    scroll-margin-top: 4.5rem;
  }

  .acoes {
    flex-direction: row;
  }

  .acoes .btn {
    width: auto;
    flex: 1;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

/* —— PC —— */
@media (min-width: 64rem) {
  html {
    font-size: 125%;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    gap: 2rem 3rem;
    padding: 2.5rem 3rem 3rem;
    min-height: 85vh;
    max-width: 72rem;
  }

  .hero__content {
    flex: 1 1 42%;
  }

  .hero__visual {
    flex: 1 1 52%;
  }

  .hero__title {
    font-size: 3.4rem;
  }

  .hero__cta {
    font-size: 1.2rem;
    padding: 1rem 1.85rem;
  }

  main,
  .site-footer {
    max-width: 64rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .nav ul {
    justify-content: center;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .section__lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  /* Como doar: passos em linha */
  .passos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .passo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.35rem;
    height: 100%;
  }

  .section__foto {
    max-height: 22rem;
  }

  .section__foto img {
    max-height: 22rem;
    object-fit: cover;
  }

  .acoes {
    justify-content: flex-start;
    margin-top: 1.75rem;
  }

  .acoes .btn {
    flex: 0 0 auto;
    min-width: 15rem;
  }

  /* Campanhas: 4 colunas */
  .cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .card {
    display: flex;
    flex-direction: column;
  }

  .card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .card__link {
    margin-top: auto;
  }

  .ponto {
    margin-bottom: 0;
  }

  /* Contato: foto e ações lado a lado */
  .section--contato {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    align-items: center;
  }

  .section--contato > h2,
  .section--contato > .section__lead {
    grid-column: 1 / -1;
  }

  .contato__foto {
    margin: 0;
  }

  .contato__acoes {
    align-items: flex-start;
  }

  .contato__acoes .btn {
    width: auto;
    min-width: 16rem;
  }

  .contato__obs {
    text-align: left;
  }
}
