/**
 * FOOTER.CSS
 * Estilos do rodapé do Portal de Ferramentas Financeiras
 */

/* ========================================
   1. CONTAINER PRINCIPAL DO FOOTER
======================================== */

.footer {
  background: #033333;
  color: #FFF;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;

  /* Ajusta para acompanhar a sidebar expandida */
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));

  /* Transição suave ao expandir/colapsar sidebar */
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer quando sidebar está colapsada (desktop) */
body:has(.sidebar.collapsed) .footer {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* Footer dentro do main-content não precisa de margem adicional */
.main-content .footer {
  margin-left: 0 !important;
  width: 100% !important;
}

/* ========================================
   2. FOOTER TOP (INFO BOXES)
======================================== */

.footer-top {
  display: block;
  width: 100%;
  background-color: #062725;
  padding: 20px 10px;
  box-sizing: border-box;
}

.footer-top .footer-cont {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  box-sizing: border-box;
  padding: 0 10px;
}

.footer-info-box {
  flex: 1 1 280px;
  max-width: 350px;
  min-width: 250px;
  margin: 10px;
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.footer-info-box h4 {
  margin: 8px 0;
  font-size: 1.2rem;
  color: #58AD65;
}

.footer-info-box p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #FFF;
}

/* ========================================
   3. ÍCONES E BOTÕES
======================================== */

.icon-circle {
  background-color: rgba(255, 255, 255, 0.08);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.icon-circle:hover {
  transform: scale(1.05);
}

.icon-circlesvg {
  width: 30px;
  height: 30px;
  fill: #3FA110;
  filter: invert(33%) sepia(78%) saturate(500%) hue-rotate(90deg) brightness(1.2) !important;
}

.whatsapp-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.95rem;
  color: #58AD65;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.whatsapp-link:hover {
  color: #3FA110;
  text-decoration: none;
}

.botao-contato {
  display: inline-block;
  background-color: #1c3f2e;
  font-size: 0.8rem;
  color: #c9f3d1;
  text-decoration: none;
  padding: 5px 15px;
  margin: 5px 8px;
  border-radius: 30px;
  border: 1px solid #00ff91;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.botao-contato:hover {
  background-color: #00ff91;
  color: #062725;
  transform: scale(1.05);
}

.botao-contato i {
  margin-right: 6px;
}

/* ========================================
   4. FOOTER COLUMNS (LINKS E FORMULÁRIO)
======================================== */

.footer-columns {
  display: block;
  width: 100%;
  background-color: #033333;
  padding: 30px 10px;
  box-sizing: border-box;
}

.footer-columns .footer-cont {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  box-sizing: border-box;
  padding: 0 10px;
}

.footer-col {
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 350px;
  margin: 10px;
  box-sizing: border-box;
}

.footer-col:last-child {
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin: 0 0 15px 0;
  color: #58AD65;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 0 0px 8px 5px;
  font-size: 1rem;
}

.footer-col ul li a {
  color: #FFF;
  text-decoration: none;
  transition: color 0.3s ease, margin-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: #3FA110;
  margin-left: 5px;
}

/* Formulário do Footer */
.footer-form input,
.footer-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: var(--radius-lg);
  color: #FFF;
  font-size: 1rem;
  font-family: 'Rubik', sans-serif;
}

.footer-form textarea {
  min-height: 100px;
  resize: vertical;
}

.footer-form input:focus,
.footer-form textarea:focus {
  background: rgba(0, 63, 44, 0.863);
  box-shadow: 0 0 5px rgba(88, 173, 101, 0.8);
  outline: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(227, 255, 149, 0.3);
}

.footer-form input:hover:not(:disabled):not([readonly]),
.footer-form textarea:hover:not(:disabled):not([readonly]),
.footer-form select:hover:not(:disabled):not([readonly]) {
  border-color: var(--border-focus);
  background-color: #022020;
}

.footer-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #58AD65;
  color: #033333;
  padding: 12px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Rubik', sans-serif;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.1s;
}

.footer-form button:hover {
  background-color: #40804B;
}

.footer-form button:active {
  transform: scale(0.95);
}

/* ========================================
   5. FOOTER BOTTOM (COPYRIGHT)
======================================== */

.footer-bottom {
  background: #062725;
  padding: 20px 80px;
  text-align: center;
  color: rgba(226, 255, 149, 0.3);
  font-size: 1rem;
}

.footer-bottom p {
  color: rgba(226, 255, 149, 0.3);
  font-size: 1rem;
  margin: 0;
}

/* ========================================
   6. TEMA ESCURO
======================================== */

[data-theme="dark"] .icon-circlesvg {
  filter: brightness(0) saturate(100%) invert(100%);
}

[data-theme="dark"] .icon-circle:hover {
  background-color: rgba(88, 173, 101, 0.3);
}

/* ========================================
   7. RESPONSIVIDADE
======================================== */

/* Tablet e Mobile - 768px */
@media (max-width: 768px) {
  /* Footer ocupa 100% da largura em mobile (sidebar fica em overlay) */
  .footer {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Footer Top */
  .footer-top {
    padding: 20px 10px;
  }

  .footer-top .footer-cont {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    gap: 15px;
  }

  .footer-info-box {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  .footer-info-box h4 {
    font-size: 1.1rem;
  }

  .footer-info-box p {
    font-size: 0.8rem;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .icon-circlesvg {
    width: 35px;
    height: 35px;
  }

  .botao-contato {
    font-size: 0.9rem;
    padding: 5px 15px;
    margin: 10px 0;
  }

  /* Footer Columns */
  .footer-columns {
    padding: 30px 10px;
  }

  .footer-columns .footer-cont {
    flex-direction: column;
    align-items: center;
    padding: 0 var(--spacing-6);
    gap: 25px;
  }

  .footer-col {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin: 0;
    text-align: left;
  }

  .footer-col:last-child {
    max-width: 100%;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .footer-col ul li {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .footer-col ul li a:hover {
    margin-left: 0;
    color: #3FA110;
  }

  /* Footer Form */
  .footer-form {
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-form input,
  .footer-form textarea {
    font-size: 0.95rem;
    padding: 12px;
  }

  .footer-form button {
    font-size: 1rem;
    padding: 14px;
  }

  /* Footer Bottom */
  .footer-bottom {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.9rem;
  }

  .footer-bottom small {
    font-size: 0.75rem;
    display: block;
    margin-top: 8px;
  }
}

