/**
 * Footer — design elegante e completo
 * Paleta: preto, vermelho #c51f40, branco, cinzas
 */

.footer {
  font-family: var(--font-sans, "Roboto", sans-serif);
  color: #fff;
  margin-bottom: 0;
}

/* Remove espaço abaixo do rodapé */
html, body {
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
}

/* === Topo do footer — conteúdo principal === */
.footer__top {
  background: linear-gradient(165deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 56px 24px 48px;
}

.footer__dentro {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr;
  gap: 48px 40px;
}

/* === Brand / Logo === */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  display: inline-block;
  max-width: 140px;
}

.footer__logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__slogan {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 280px;
}

/* === Títulos das seções === */
.footer__titulo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red, #c51f40);
  margin: 0 0 20px;
}

/* === Navegação === */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer__links a:hover {
  color: #fff;
  padding-left: 0;
  opacity: 0.78;
}

/* === Newsletter === */
.footer__form-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 0;
  font-size: 15px;
  font-family: inherit;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  outline: none;
  box-shadow: none;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.footer__form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__form input[type="email"]:focus {
  border-color: var(--brand-red, #c51f40);
  background: transparent;
  box-shadow: none;
}

.footer__btn-enviar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  background: var(--brand-red, #c51f40);
  border: none;
  border-radius: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.footer__btn-enviar:hover {
  background: var(--brand-red-dark, #a01933);
  opacity: 0.92;
}

.footer__btn-enviar:active {
  transform: none;
}

.footer__btn-enviar i {
  font-size: 14px;
}

.footer__form-feedback {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.footer__form-feedback--success,
.footer__form-feedback--info {
  color: rgba(255, 255, 255, 0.72);
}

.footer__form-feedback--error {
  color: #ff9cac;
}

/* === Contato === */
.footer__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.footer__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__item span {
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__item:hover {
  color: var(--brand-red, #c51f40);
  text-decoration: none;
}

.footer__item:hover span {
  color: var(--brand-red, #c51f40);
  text-decoration: none;
}

.footer__item i {
  flex-shrink: 0;
  width: 18px;
  margin-top: 2px;
  color: var(--brand-red, #c51f40);
}

/* === Redes sociais === */
.footer__redes {
  display: flex;
  gap: 10px;
}

.footer__rede {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-size: 18px;
  box-shadow: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer__rede:hover {
  color: #fff;
  background: transparent;
  transform: none;
  opacity: 0.78;
}

.footer__form input[type="email"]:focus,
.footer__btn-enviar:focus,
.footer__btn-enviar:focus-visible,
.footer__rede:focus,
.footer__rede:focus-visible,
.footer__links a:focus,
.footer__links a:focus-visible {
  outline: none;
  box-shadow: none;
}

/* === Barra inferior === */
.footer__bottom {
  background: #000;
  padding: 20px 24px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer__dev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.footer__dev:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 0.85);
}

.footer__dev-texto {
  font-size: 13px;
}

.footer__dev img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* === Responsividade === */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer__top {
    padding: 48px 20px 40px;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__slogan {
    text-align: center;
  }

  .footer__links {
    align-items: center;
  }

  .footer__form-wrap {
    flex-direction: column;
  }

  .footer__form input[type="email"] {
    min-width: 100%;
  }

  .footer__btn-enviar {
    width: 100%;
    justify-content: center;
  }

  .footer__info {
    align-items: center;
    text-align: center;
  }

  .footer__item {
    flex-direction: column;
    align-items: center;
  }

  .footer__redes {
    justify-content: center;
  }

  .footer__top {
    padding: 40px 16px 36px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__copyright {
    font-size: 12px;
  }
}
