/* Footer - estilos apenas para mobile */

@media (max-width: 768px) {
  /* Footer inteiro alinhado à esquerda */
  #footer.ct-footer {
    text-align: left;
  }

  /* Empilhar as linhas e colunas, tudo à esquerda */
  #footer.ct-footer [data-row] .ct-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 15px 0;
  }

  #footer.ct-footer [data-column] {
    text-align: left;
    width: 100%;
    margin: 0 !important;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px !important;
  }

  /* Menus do footer alinhados à esquerda */
  #footer.ct-footer .footer-menu-inline .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 24px;
    padding-left: 0;
    --theme-line-height: 2;
    margin: 0 !important;
    margin-left: -12px !important;
    flex-direction: column;
    align-items: flex-start;
  }

  #footer.ct-footer .footer-menu-inline .menu li {
    list-style: none;
    font-weight: 300 !important;
  }

  /* Social icons alinhados à esquerda */
  #footer.ct-footer .ct-footer-socials,
  #footer.ct-footer .ct-social-box {
    display: flex;
    justify-content: flex-start;
  }

  /* Copyright também à esquerda */
  #footer.ct-footer .ct-footer-copyright {
    text-align: left;
    font-size: 12px;
  }

  /* Menu secundário (footer-menu-2) sem margens em mobile */
  #footer-menu-2,
  #footer-menu-2 .menu {
    margin: 0 !important;
  }

  /* Logo principal no topo do footer sem margens nem paddings */
  #footer.ct-footer [data-row="top"] [data-column="widget-area-4"] .ct-widget,
  #footer.ct-footer [data-row="top"] [data-column="widget-area-4"] .stk-block-image,
  #footer.ct-footer [data-row="top"] [data-column="widget-area-4"] figure,
  #footer.ct-footer [data-row="top"] [data-column="widget-area-4"] .stk-img-wrapper,
  #footer.ct-footer [data-row="top"] [data-column="widget-area-4"] img {
    margin-top: 5px !important;
    width: 60vw;
  }

  /* Colunas "ghost" não ocupam espaço em mobile */
  #footer.ct-footer [data-row] [data-column="ghost"] {
    display: none !important;
  }

  /* -----------------------------------
     Logo "mainpage" e ordem final
     ----------------------------------- */

  /* Esconde o widget original no topo em mobile */
  #footer.ct-footer [data-row="top"] [data-column="widget-area-5"] {
    display: none;
  }

  /*
   * Ordem no fim do footer em mobile:
   * - antepenúltimo: row "bottom" (menu + copyright)
   * - penúltimo: row "footer-socials-mobile" (redes sociais)
   * - último: logo mainpage, logo abaixo das redes
   */

  /* Row "bottom" já vem antes no HTML, não precisamos de order extra */

  /* Socials ficam na row criada via JS: [data-row="footer-socials-mobile"] */
  #footer.ct-footer [data-row="footer-socials-mobile"] .ct-container::after {
    content: "";
    display: block;
    margin-top: 10px;
    margin-bottom: 50px;
    width: 150px;
    height: 40px;
    background-image: url("https://arcondicionado.brandit.ws/wp-content/uploads/2026/02/mainpage.webp");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
  }
}

