/* ==========================================================================
   FOOTER GERAL (PC / DESKTOP) - ESTILO "FAIXAS" (REFERENCE)
   Arquivo: /assets/css/pc/footer.css
   ========================================================================== */

@media (min-width: 1025px) {

    .site-footer {
        background-color: var(--cor-background-fundo); /* Azul Principal */
        color: var(--cor-branco);
        padding-top: 60px;
        padding-bottom: 0; /* O padding inferior fica na barra de copyright */
        width: 100%;
        font-family: var(--fonte-principal);
        overflow-x: hidden; /* Evita rolagem horizontal devido ao truque de largura */
    }

    .site-footer .container-width {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 40px;
        box-sizing: border-box;
    }

    /* --- 1. CABEÇALHO (LOGO + ENDEREÇO | BOTÕES) --- */
    .footer-header {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Centraliza verticalmente */
        margin-bottom: 60px;
        gap: 40px;
    }

    /* ÁREA DA MARCA (Esquerda) */
    .footer-brand { 
        flex: 1; 
    }

    .brand-flex { 
        display: flex; 
        flex-direction: row; /* Logo ao lado do texto */
        align-items: center; 
        gap: 30px; 
    }

    .footer-brand img { 
        height: 60px; 
        width: auto; 
        display: block; 
    }

    /* Endereço com a linha vertical separadora */
    .brand-address {
        color: var(--cor-branco);
        font-size: 13px;
        line-height: 1.5;
        margin: 0;
        font-weight: 400;
        
        /* A Linha Vertical */
        border-left: 1px solid rgba(255,255,255,0.4);
        padding-left: 30px;
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    
    /* Esconde o ícone de mapa antigo se houver, pois o design pede texto limpo */
    .brand-address i { display: none; } 

    /* GRID DE BOTÕES (Direita) */
    .footer-action-grid {
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
        width: 100%; 
        max-width: 600px; 
    }

    /* Estilo dos Botões (Brancos com texto Azul) */
    .btn-footer-blue {
        height: 55px; 
        width: 100%;
        display: flex; 
        align-items: center; 
        justify-content: center; 
        gap: 10px;
        
        background-color: var(--cor-branco);
        color: var(--cor-background-fundo); /* Texto Azul */
        
        font-weight: 800; 
        font-size: 12px; 
        text-transform: uppercase; 
        text-decoration: none; 
        border-radius: 4px; 
        cursor: pointer; 
        transition: all 0.2s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .btn-footer-blue:hover {
        background-color: #f0f0f0; 
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }
    
    /* O botão de catálogo é igual aos outros na imagem */
    .btn-catalogo {
        border: none;
        background-color: var(--cor-branco);
        color: var(--cor-background-fundo);
    }


    /* --- 2. BARRA SOCIAL (Faixa Transparente/Escura) --- */
    .footer-social-bar {
        display: flex; 
        align-items: center;
        justify-content: center;
        
        /* Truque para ocupar a largura total da tela (Full Width) */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        
        background: rgba(0, 0, 0, 0.1); /* Fundo levemente mais escuro */
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0; /* Cola na barra inferior */
    }
    
    /* Ajuste para centralizar o conteúdo da barra social na largura do container */
    .footer-social-bar::before, .footer-social-bar::after {
        /* Elementos fantasmas para ajudar no alinhamento se necessário, 
           mas aqui vamos usar padding nos itens */
    }

    .social-tab {
        width: 100%; /* Distribui igualmente */
        max-width: 300px; /* Limita largura */
        height: 80px;
        display: flex; 
        align-items: center; 
        justify-content: center;
        
        color: var(--cor-branco); 
        border-right: 1px solid rgba(255,255,255,0.1);
        text-decoration: none; 
        font-size: 24px; 
        transition: all 0.3s;
    }
    
    /* Borda esquerda no primeiro item para fechar o design */
    .social-tab:first-child { border-left: 1px solid rgba(255,255,255,0.1); }
    .social-tab:last-child { border-right: 1px solid rgba(255,255,255,0.1); }
    
    .social-tab:hover { 
        background: rgba(255,255,255,0.15); 
    }


    /* --- 3. RODAPÉ INFERIOR (Faixa Azul Escura) --- */
    .footer-bottom {
        display: flex; 
        justify-content: space-between; 
        align-items: center;
        
        /* Truque Full Width */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 25px max(40px, calc((100vw - 1200px) / 2)); /* Padding dinâmico para alinhar com container */
        
        background-color: var(--cor-background-contraste); /* Azul mais escuro que o principal */
        font-size: 12px;
        color: rgba(255,255,255,0.8);
    }

    .footer-links-area { 
        display: flex; 
        gap: 30px; 
    }
    
    .footer-links-area a {
        color: var(--cor-branco); 
        text-decoration: none; 
        font-weight: 700; 
        transition: color 0.2s;
    }
    .footer-links-area a:hover { text-decoration: underline; }

    .footer-copy-area p { margin: 0; opacity: 0.7; }


    /* =========================================
       4. MODAIS E FORMULÁRIOS
       ========================================= */
    .modal-container {
        display: none; 
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.85); 
        z-index: 10000; 
        align-items: center; justify-content: center;
        backdrop-filter: blur(5px);
        opacity: 0; transition: opacity 0.3s;
    }
    
    .modal-container[style*="display: flex"] { opacity: 1; }

    .modal-content {
        position: relative; border-radius: 8px; overflow: hidden;
        box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
        transform: translateY(20px); 
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .modal-container[style*="display: flex"] .modal-content { transform: translateY(0); }

    /* Modal Mapa */
    .map-content {
        background: #000; width: 90%; max-width: 900px; height: 500px;
        border: 4px solid var(--cor-branco);
    }
    .map-content iframe { width: 100%; height: 100%; border: none; }

    /* Modal Contato */
    .form-content {
        background: var(--cor-branco); width: 100%; max-width: 450px; padding: 40px;
        border-top: 5px solid var(--cor-principal);
    }

    .form-header { text-align: center; margin-bottom: 25px; }
    .form-header h3 { color: var(--cor-texto-forte); margin: 0 0 5px 0; font-size: 22px; font-weight: 800; }
    .form-header p { color: var(--cor-texto-medio); font-size: 14px; margin: 0; }

    .cardan-form .form-group { margin-bottom: 15px; }
    
    .cardan-form input, .cardan-form textarea {
        width: 100%; padding: 12px 15px; 
        border: 1px solid var(--cor-borda); border-radius: 4px;
        font-size: 14px; background: #fcfcfc; box-sizing: border-box;
        font-family: inherit; color: var(--cor-texto-forte);
        transition: 0.3s;
    }
    .cardan-form input:focus, .cardan-form textarea:focus {
        border-color: var(--cor-principal); background: #fff;
        outline: none; box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.1);
    }

    .btn-enviar-form {
        width: 100%; background: var(--cor-principal); color: var(--cor-branco);
        padding: 15px; border: none; border-radius: 4px;
        font-weight: 800; font-size: 14px; text-transform: uppercase;
        cursor: pointer; transition: 0.3s; margin-top: 10px;
    }
    .btn-enviar-form:hover { background: #005a8d; }

    /* Botão Fechar */
    .fechar-modal-btn {
        position: absolute; top: 15px; right: 15px;
        background: transparent; border: none; font-size: 24px;
        color: #999; cursor: pointer; transition: 0.2s;
        width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    }
    .fechar-modal-btn:hover { color: #d00; transform: rotate(90deg); }

    .map-content .fechar-modal-btn {
        top: -15px; right: -15px; background: var(--cor-branco);
        color: var(--cor-principal); opacity: 1; border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .mobile-sidebar-toggle, .btn-fechar-inferior, .mobile-only { display: none !important; }
}