/* ==============================================================
   TUTUTU — Estilos Globais do Rodapé (Footer)
   Estrutura Moderna de 4 Colunas + Sub-footer RioMarca & Legal
   ============================================================== */

:root {
  --tututu-footer-bg: #0a1120;
  --tututu-footer-ink: #cfcdd1;
  --tututu-footer-muted: #a6a5aa;
  --tututu-footer-orange: #de5823;
  --tututu-footer-red: #ec2c00;
}

footer.tututu-footer,
footer#contato {
  position: relative;
  width: 100%;
  background-color: var(--tututu-footer-bg);
  background-image: linear-gradient(rgba(10, 17, 32, 0.70), rgba(10, 17, 32, 0.70)), url('footer-background.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--tututu-footer-ink);
  overflow: hidden;
  margin-top: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Container Principal do Footer */
footer.tututu-footer .footer-wrap,
footer#contato .footer-wrap {
  width: 100% !important;
  max-width: 1440px;
  margin: 0 auto;
  background: transparent;
  box-sizing: border-box;
}

/* Grid de 4 Colunas */
.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 64px 32px 48px;
  box-sizing: border-box;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* 1. Coluna Brand (Logo | Texto) */
.footer-col-brand .f-logo-img {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  width: 140px;
  max-width: 140px;
}

.footer-col-brand .f-logo-img img,
.f-logo-img img,
footer.tututu-footer .f-logo-img img,
footer#contato .f-logo-img img {
  width: 140px !important;
  max-width: 140px !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

.f-about {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 22px;
  color: #d0cfd3;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-strip a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfcdd1;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-strip a:hover {
  background: var(--tututu-footer-orange);
  color: #ffffff;
  border-color: var(--tututu-footer-orange);
  transform: translateY(-2px);
}

/* 2 & 3. Colunas de Links (Navegue & Links Rápidos) */
footer.tututu-footer h4,
footer#contato h4 {
  font-family: 'Literata', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.f-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.f-col-links a {
  font-family: 'Work Sans', sans-serif;
  font-size: 14.5px;
  color: #cfcdd1;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.f-col-links a:hover {
  color: #ffffff;
  padding-left: 3px;
}

/* 4. Coluna Newsletter */
.f-news-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: #a6a5aa;
  margin-bottom: 14px;
}

.f-news-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-news-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 340px;
}

.f-input {
  width: 100%;
  height: 46px;
  border: 2px solid rgba(110, 110, 114, 0.55);
  background: rgba(65, 64, 70, 0.55);
  color: #ffffff;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 0 46px 0 16px;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.f-input::placeholder {
  color: #c0bec4;
}

.f-input:focus {
  border-color: var(--tututu-footer-orange);
  background: rgba(65, 64, 70, 0.75);
}

.btn-news-submit {
  position: absolute;
  right: 6px;
  top: 5px;
  bottom: 5px;
  width: 36px;
  background: var(--tututu-footer-orange);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 13px;
}

.btn-news-submit:hover {
  background: #b8380e;
}

.f-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  line-height: 19px;
  color: #a6a5aa;
  cursor: pointer;
  max-width: 340px;
}

.f-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.f-check i {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 3px;
  background: var(--tututu-footer-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.f-check input:not(:checked) + i {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #a6a5aa;
}

.f-check input:not(:checked) + i svg {
  display: none;
}

/* ==============================================================
   SUB-FOOTER INFERIOR (NOVA SECTION):
   Logo RioMarca à esquerda | Políticas e Ajuda à direita
   ============================================================== */
.footer-bottom-bar {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  padding: 18px 0;
  box-sizing: border-box;
}

footer.tututu-footer .footer-bottom-inner,
footer#contato .footer-bottom-inner {
  width: 100% !important;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  flex-wrap: wrap;
  gap: 16px;
}

.bottom-brand-left a {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.bottom-brand-left a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.bottom-brand-left img,
.footer-bottom-bar .bottom-brand-left img,
footer.tututu-footer .bottom-brand-left img,
footer#contato .bottom-brand-left img {
  height: 17px !important;
  max-height: 17px !important;
  width: auto !important;
  display: block;
}

.bottom-links-right {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Work Sans', sans-serif;
  font-size: 13.5px;
  color: #a6a5aa;
  flex-wrap: wrap;
}

.bottom-links-right a {
  color: #a6a5aa;
  transition: color 0.2s ease;
  text-decoration: none;
}

.bottom-links-right a:hover {
  color: #ffffff;
}

/* Responsividade do Footer */
@media (max-width: 1024px) {
  .footer-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 50px 24px 40px;
  }
}

@media (max-width: 640px) {
  .footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 30px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 20px;
  }
  .bottom-links-right {
    gap: 10px;
    font-size: 12.5px;
  }
}
