/**
 * Estilos para Footer
 * 
 * @package Blocksy Child
 */

/* Animação de sublinhado no link brandit (geral) */
footer .stk-block-text__text a[href*="brandit"],
[data-row] .stk-block-text__text a[href*="brandit"] {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

footer .stk-block-text__text a[href*="brandit"]::after,
[data-row] .stk-block-text__text a[href*="brandit"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #49B9C4;
    transition: width 0.4s ease;
}

footer .stk-block-text__text a[href*="brandit"]:hover::after,
[data-row] .stk-block-text__text a[href*="brandit"]:hover::after {
    width: 100%;
}

/* Estilos para Footer - Mobile */
@media (max-width: 768px) {
    /* Apenas footer - usar seletor mais específico */
    footer .ct-container-fluid[data-columns-divider],
    [data-row] .ct-container-fluid[data-columns-divider] {
        padding: 30px 20px !important;
    }
    
    .stk-img-wrapper.stk-image--shape-stretch .stk-img.wp-image-1123 {
        width: 400px !important;
        max-width: 400px;
        height: auto;
    }

    /* Footer Bottom - Desktop (tudo centrado) */
    footer .ct-container-fluid[data-row="bottom"],
    [data-row="bottom"] .ct-container-fluid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 24px !important;
        text-align: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Widget areas empilhadas no mobile - apenas no footer */
    footer .ct-container-fluid[data-columns-divider] [data-column],
    [data-row] .ct-container-fluid[data-columns-divider] [data-column] {
        margin-bottom: 40px !important;
        width: 100% !important;
    }
    
    footer .ct-container-fluid[data-columns-divider] [data-column]:last-child,
    [data-row] .ct-container-fluid[data-columns-divider] [data-column]:last-child {
        margin-bottom: 0 !important;
        display: flex;
        align-items: center;
    }
    
    /* Logo do footer - centralizado e menor */
    footer .ct-container-fluid[data-columns-divider] [data-column="widget-area-1"],
    [data-row] .ct-container-fluid[data-columns-divider] [data-column="widget-area-1"] {
        text-align: center !important;
        margin-bottom: 40px !important;
        padding-bottom: 30px !important;
        border-bottom: 1px solid rgba(11, 74, 79, 0.15) !important;
    }
    
    footer .stk-bbeb89f,
    [data-row] .stk-bbeb89f {
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    
    footer .stk-bbeb89f .stk-img-wrapper,
    [data-row] .stk-bbeb89f .stk-img-wrapper {
        width: 150px !important;
        max-width: 100% !important;
    }
    
    /* Colunas Stackable empilhadas - apenas no footer */
    footer .stk-block-columns,
    [data-row] .stk-block-columns {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    footer .stk-block-columns .stk-row,
    [data-row] .stk-block-columns .stk-row {
        margin-top: 20px !important;
    }
    
    footer .stk-block-columns .stk-block-column,
    [data-row] .stk-block-columns .stk-block-column {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 40px !important;
        padding: 0 !important;
    }
    
    footer .stk-block-columns .stk-block-column:last-child,
    [data-row] .stk-block-columns .stk-block-column:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Headings do footer */
    footer .stk-block-heading,
    [data-row] .stk-block-heading {
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid #49B9C4 !important;
    }
    
    footer .stk-block-heading__text,
    [data-row] .stk-block-heading__text {
        font-size: 20px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        color: #0B4A4F !important;
        line-height: 1.3 !important;
        font-family: 'Poppins', sans-serif !important;
    }
    
    /* Links do footer - melhor espaçamento e legibilidade */
    footer .wp-block-group,
    [data-row] .wp-block-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    footer .wp-block-group p,
    [data-row] .wp-block-group p {
        margin: 0 0 0 0 !important;
        padding: 0 !important;
    }
    
    footer .wp-block-group a,
    [data-row] .wp-block-group a {
        font-size: 16px !important;
        line-height: 1.8 !important;
        display: block !important;
        padding: 14px 0 !important;
        color: #0B4A4F !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        border-bottom: 1px solid rgba(11, 74, 79, 0.08) !important;
        position: relative !important;
    }
    
    footer .wp-block-group a::after,
    [data-row] .wp-block-group a::after {
        content: '→';
        position: absolute;
        right: 0;
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateX(-5px);
        color: #49B9C4;
    }
    
    footer .wp-block-group a:hover,
    [data-row] .wp-block-group a:hover {
        color: #49B9C4 !important;
        padding-left: 8px !important;
    }
    
    footer .wp-block-group a:hover::after,
    [data-row] .wp-block-group a:hover::after {
        opacity: 1;
        transform: translateX(0);
    }
    
    footer .wp-block-group p:last-child a,
    [data-row] .wp-block-group p:last-child a {
        border-bottom: none !important;
    }
    
    /* Imagens do footer */
    footer .stk-block-image,
    [data-row] .stk-block-image {
        margin-top: 24px !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    
    footer .stk-block-image .stk-img-wrapper,
    [data-row] .stk-block-image .stk-img-wrapper {
        max-width: 100% !important;
        width: auto !important;
    }
    
    footer .stk-69561ba,
    [data-row] .stk-69561ba {
        margin-top: 24px !important;
    }
    
    footer .stk-69561ba .stk-img-wrapper,
    [data-row] .stk-69561ba .stk-img-wrapper {
        width: 140px !important;
        max-width: 100% !important;
    }
    
    /* Espaçamento geral - apenas footer */
    footer .ct-widget,
    [data-row] .ct-widget {
        margin-bottom: 0 !important;
    }
    
    /* Container wrapper - apenas footer */
    footer .stk-column-wrapper,
    [data-row] .stk-column-wrapper {
        padding: 0 !important;
    }
    
    /* Footer Bottom - Copyright e Links */
    footer .ct-container-fluid[data-row="bottom"],
    [data-row="bottom"] .ct-container-fluid {
        padding: 30px 20px !important;
        border-top: 1px solid rgba(11, 74, 79, 0.15) !important;
        margin-top: 40px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    footer .ct-container-fluid[data-row="bottom"] [data-column],
    [data-row="bottom"] .ct-container-fluid [data-column] {
        width: 100% !important;
        margin-bottom: 16px !important;
        text-align: center !important;
    }
    
    footer .ct-container-fluid[data-row="bottom"] [data-column]:last-child,
    [data-row="bottom"] .ct-container-fluid [data-column]:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Copyright */
    footer .ct-footer-copyright,
    [data-row] .ct-footer-copyright {
        margin: 0 auto !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    footer .ct-footer-copyright p,
    [data-row] .ct-footer-copyright p {
        font-size: 14px !important;
        color: #0B4A4F !important;
        margin: 0 auto !important;
        padding: 0 !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }
    
    /* Texto "Desenvolvido por" */
    footer .stk-block-text,
    [data-row] .stk-block-text {
        text-align: center !important;
    }
    
    footer .stk-block-text__text,
    [data-row] .stk-block-text__text {
        font-size: 14px !important;
        color: #0B4A4F !important;
        margin: 0 auto !important;
        padding: 0 !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }
    
    footer .stk-block-text__text a,
    [data-row] .stk-block-text__text a {
        color: #0B4A4F !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        transition: color 0.2s ease !important;
        position: relative !important;
        display: inline-block !important;
    }
    
    /* Animação de sublinhado da esquerda para a direita no link brandit */
    footer .stk-block-text__text a::after,
    [data-row] .stk-block-text__text a::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 0 !important;
        height: 2px !important;
        background-color: #49B9C4 !important;
        transition: width 0.4s ease !important;
    }
    
    footer .stk-block-text__text a:hover,
    [data-row] .stk-block-text__text a:hover {
        color: #0B4A4F !important;
        text-decoration: none !important;
    }
    
    footer .stk-block-text__text a:hover::after,
    [data-row] .stk-block-text__text a:hover::after {
        width: 100% !important;
    }
    
    /* Links de política */
    footer .widget_text,
    [data-row] .widget_text {
        text-align: center !important;
    }
    
    footer .widget_text p,
    [data-row] .widget_text p {
        font-size: 14px !important;
        color: #0B4A4F !important;
        margin: 0 auto !important;
        padding: 0 !important;
        line-height: 1.8 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }
    
    footer .widget_text a,
    [data-row] .widget_text a {
        color: #0B4A4F !important;
        text-decoration: none !important;
        font-size: 14px !important;
        padding: 0 !important;
        transition: color 0.2s ease !important;
        display: inline-block !important;
    }
    
    footer .widget_text a:hover,
    [data-row] .widget_text a:hover {
        color: #49B9C4 !important;
        text-decoration: underline !important;
    }
    
    /* Separador | mantido no desktop, removido no mobile */
    footer .widget_text p::before,
    footer .widget_text p::after,
    [data-row] .widget_text p::before,
    [data-row] .widget_text p::after {
        display: none !important;
    }
    
    /* Remover separadores inline no mobile */
    footer .widget_text p br,
    [data-row] .widget_text p br {
        display: none !important;
    }
    
    footer .ct-container-fluid[data-row="bottom"] [data-column],
    [data-row="bottom"] .ct-container-fluid [data-column] {
        display: flex;
        align-items: center;
    }
    
    footer .ct-footer-copyright p,
    [data-row] .ct-footer-copyright p {
        text-align: center !important;
        margin: 0 !important;
    }
    
    footer .ct-footer-copyright,
    [data-row] .ct-footer-copyright {
        text-align: center !important;
    }
    
    footer .stk-block-text__text,
    [data-row] .stk-block-text__text {
        text-align: left !important;
    }
    
    footer .widget_text p,
    [data-row] .widget_text p {
        text-align: center !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }
}