/* ============================================
   FOOTER PREMIUM MULTI-CAMADAS
   Muricy Consultoria - 2025
   Estrutura: CTA Final | Grid Principal (4 colunas) | Bottom Bar
   ============================================ */

/* ============================================
   VARIÁVEIS ESPECÍFICAS DO FOOTER
   ============================================ */
:root {
    --footer-bg-dark: #0f172a;
    --footer-bg-darker: #0b1120;
    --footer-bg-cta: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --footer-text: #94a3b8;
    --footer-text-light: #e2e8f0;
    --footer-border: rgba(148, 163, 184, 0.1);
    --footer-accent: var(--primary);
}

/* ============================================
   CONTAINER DO FOOTER
   ============================================ */
.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NÍVEL 1: CTA FINAL
   ============================================ */
.footer-cta-section {
    background: var(--footer-bg-cta);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--footer-border);
}

.footer-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.footer-cta-text {
    flex: 1;
    max-width: 600px;
}

.footer-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--footer-text-light);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.footer-cta-desc {
    font-size: 18px;
    color: var(--footer-text);
    margin: 0;
    line-height: 1.6;
}

/* Botão CTA Principal do Footer */
.btn-footer-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 173, 186, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-footer-cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 173, 186, 0.45);
}

.btn-footer-cta-main i {
    transition: transform 0.3s ease;
}

.btn-footer-cta-main:hover i {
    transform: translateX(4px);
}

/* ============================================
   NÍVEL 2: GRID PRINCIPAL
   ============================================ */
.footer-main-section {
    background: var(--footer-bg-dark);
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}

/* Título das colunas */
.footer-col-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--footer-text-light);
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========== Coluna 1: Institucional ========== */
.footer-col-brand {
    max-width: 320px;
}

.footer-logo-img {
    max-height: 55px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--footer-text-light);
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    font-size: 15px;
    color: var(--footer-text);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

/* Redes Sociais no Footer */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-label {
    font-size: 13px;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--footer-bg-darker);
    color: var(--footer-text);
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid var(--footer-border);
    transition: all 0.25s ease;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ========== Colunas 2 & 3: Navegação ========== */
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    margin: 0 0 12px 0;
}

.footer-nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 15px;
    padding: 4px 0;
    transition: all 0.25s ease;
    position: relative;
}

.footer-nav-list a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.footer-nav-list a:hover {
    color: var(--footer-text-light);
    transform: translateX(4px);
}

.footer-nav-list a:hover::before {
    width: 16px;
}

/* ========== Coluna 4: Contato ========== */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--footer-text);
    font-size: 15px;
    line-height: 1.6;
}

.contact-item i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--footer-text-light);
}

/* Horário de Funcionamento */
.footer-hours {
    padding: 16px;
    background: var(--footer-bg-darker);
    border-radius: 8px;
    border: 1px solid var(--footer-border);
}

.hours-label {
    display: block;
    font-size: 12px;
    color: var(--footer-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hours-text {
    font-size: 14px;
    color: var(--footer-text-light);
    font-weight: 500;
}

/* ============================================
   NÍVEL 3: BOTTOM BAR
   ============================================ */
.footer-bottom-bar {
    background: var(--footer-bg-darker);
    border-top: 1px solid var(--footer-border);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--footer-text);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--footer-text-light);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet (até 1024px) */
@media (max-width: 1024px) {
    .footer-cta-section {
        padding: 60px 0;
    }
    
    .footer-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .footer-cta-title {
        font-size: 28px;
    }
    
    .footer-cta-desc {
        font-size: 16px;
    }
    
    .footer-main-section {
        padding: 60px 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-col-brand {
        max-width: 100%;
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .footer-logo-img {
        margin: 0 auto 20px;
    }
    
    .footer-social {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav-list a:hover {
        transform: translateX(0);
    }
    
    .footer-nav-list a::before {
        display: none;
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    .footer-cta-section {
        padding: 50px 0;
    }
    
    .footer-cta-title {
        font-size: 24px;
    }
    
    .footer-cta-desc {
        font-size: 15px;
    }
    
    .btn-footer-cta-main {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .footer-main-section {
        padding: 50px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col-brand {
        text-align: center;
    }
    
    .footer-desc {
        font-size: 14px;
    }
    
    .footer-col-nav,
    .footer-col-services {
        padding-top: 20px;
        border-top: 1px solid var(--footer-border);
    }
    
    .footer-contact-info {
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-item i {
        margin-top: 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-bottom-links {
        gap: 16px;
    }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-cta-title {
        font-size: 22px;
    }
    
    .footer-cta-desc {
        font-size: 14px;
    }
    
    .btn-footer-cta-main {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .footer-logo-img {
        max-height: 45px;
    }
    
    .footer-logo-text {
        font-size: 22px;
    }
    
    .footer-col-title {
        font-size: 15px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ============================================
   ANIMAÇÕES E EFEITOS
   ============================================ */

/* Efeito hover nos links de navegação */
.footer-nav-list a {
    position: relative;
}

/* Pulse sutil no CTA */
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 173, 186, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(0, 173, 186, 0.5); }
}

.btn-footer-cta-main {
    animation: pulse 3s ease-in-out infinite;
}

.btn-footer-cta-main:hover {
    animation: none;
}

/* Focus states para acessibilidade */
.footer-nav-list a:focus-visible,
.social-icons a:focus-visible,
.btn-footer-cta-main:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Reduzir motion para quem prefere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn-footer-cta-main {
        animation: none;
    }
}
