/* public_html/assets/css/footer.css */

.site-footer{
  --accent: var(--pitanga-wine, #7b1f2c);
  --bg: #f6f5f5;          /* fundo geral mais suave */
  --card: #ffffff;        /* cards/áreas elevadas */
  --line: #e6e2e2;        /* divisórias */
  --ink: #171717;         /* texto forte */
  --muted: #5f5f5f;       /* texto secundário com bom contraste */
  --muted-2: #7a7a7a;

  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 40px 0 0;
  color: var(--ink);
}

.site-footer a{
  color: rgba(23,23,23,.86);
  text-decoration: none;
}

.site-footer a:hover{
  color: var(--accent);
  text-decoration: underline;
}

/* Layout principal */
.footer__wrap{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  padding-bottom: 30px;
  align-items: start;
}

/* Colunas */
.footer__cols{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px 22px;
  min-width: 0;
}

.footer__cols img{
  width: 64px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.footer__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 54ch;
  font-size: 14px;
}

/* Títulos */
.footer__title{
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__col a{
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: rgba(23,23,23,.82);
}

.footer__col a:hover{
  color: var(--accent);
}

/* Social */
.footer__social{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.footer__subtitle{
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.footer__icons{
  display: flex;
  gap: 1px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__icon{
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
 gap: 4px;
  border-radius: 12px;
  background: var(--bg);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.footer__icon:hover{
  transform: translateY(-1px);
  border-color: rgba(123,31,44,.35);
  background: #fff;
}

.footer__icon svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .92;
}

/* Newsletter (melhor contraste + aparência de card) */
.footer__newsletter{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;

}

.footer__newsTitle{
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.footer__newsText{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer__newsForm{
  display: grid;
  gap: 12px;
}

/* linha input+botão (elimina o hack do margin negativo) */
.footer__newsRow{
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer__newsInput{
  height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.footer__newsInput::placeholder{
  color: var(--muted-2);
}

.footer__newsInput:focus{
  border-color: rgba(123,31,44,.45);
  box-shadow: 0 0 0 4px rgba(123,31,44,.12);
}

.footer__newsBtn{
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(123,31,44,.18);
  transition: transform .12s ease, filter .12s ease;
}

.footer__newsBtn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.footer__newsBtn:active{
  transform: translateY(0);
}

.footer__newsBtn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.footer__check input{
  margin-top: 3px;
}

.footer__check a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.req{ color: #c62828; }

.footer__fine{
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}

.footer__fine a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Bottom (conserta contraste: antes o small ficava muted demais no fundo escuro) */
.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  background: #2f2f2f; /* mais elegante e consistente */
  padding: 14px 0;
  color: rgba(255,255,255,.92);
}

.footer__bottom-wrap{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer__bottom small{
  color: rgba(255,255,255,.85);
  font-size: 12px;
}

.footer__bottom a{
  color: rgba(255,255,255,.9);
}

.footer__bottom a:hover{
  color: #fff;
  text-decoration: underline;
}

.footer__bottom-right{
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer__dot{
  opacity: .55;
}

/* Acessibilidade */
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsivo */
@media (max-width: 1020px){
  .footer__wrap{
    grid-template-columns: 1fr;
  }

  .footer__newsletter{
    order: -1; /* newsletter sobe em tablet/mobile, costuma converter melhor */
  }

  .footer__cols{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px){
  .site-footer{
    padding-top: 28px;
  }

  .footer__cols{
    grid-template-columns: 1fr;
  }

  .footer__newsletter{
    padding: 18px;
  }

  .footer__newsTitle{
    font-size: 18px;
  }

  .footer__newsRow{
    flex-direction: column;
    align-items: stretch;
  }

  .footer__newsBtn{
    width: 100%;
    flex: 0 0 46px;
    border-radius: 12px; /* botão “full width” fica mais bonito quadradinho */
  }
}
