/* ========================================
   FOOTER BUSINESS B2B - CAROLINE LEONE
   Otimizado para conversão escolar
   Performance: <15KB | Accessibility: AA
   ======================================== */

/* Base Styles */
.footer-business {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #f8fafc;
    padding: var(--space-16) 0 var(--space-8) 0;
    margin-top: var(--space-20);
    position: relative;
    overflow: hidden;
}

.footer-business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 171, 252, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Grid Principal */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 2;
}

/* ========================================
   COLUNA 1: IDENTIDADE PROFISSIONAL
   ======================================== */

.footer-identity {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Logo */
.footer-logo svg {
    filter: drop-shadow(0 4px 8px rgba(94, 234, 212, 0.2));
    transition: all 0.3s ease;
}

.footer-logo:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(94, 234, 212, 0.3));
}

/* Branding */
.footer-branding {
    margin-bottom: var(--space-2);
}

.footer-name {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #5eead4;
    margin: 0 0 var(--space-1) 0;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.footer-title {
    font-size: var(--text-base);
    color: #cbd5e1;
    margin: 0 0 var(--space-2) 0;
    font-weight: 600;
}

.footer-credentials {
    font-size: var(--text-sm);
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

/* Bio */
.footer-bio {
    line-height: 1.6;
}

.footer-bio p {
    color: #e2e8f0;
    font-size: var(--text-sm);
    margin: 0 0 var(--space-3) 0;
}

.footer-bio p:last-child {
    margin-bottom: 0;
}

.footer-bio strong {
    color: #5eead4;
    font-weight: 700;
}

/* Trust Indicators */
.footer-trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: #cbd5e1;
    font-weight: 500;
}

.trust-badge svg {
    color: #5eead4;
    flex-shrink: 0;
}

/* ========================================
   COLUNA 2: NAVEGAÇÃO
   ======================================== */

.footer-navigation h4,
.footer-cta h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #f0abfc;
    margin: 0 0 var(--space-4) 0;
    font-family: var(--font-heading);
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: var(--space-1) 0;
    display: block;
    border-left: 2px solid transparent;
    padding-left: var(--space-2);
}

.footer-link:hover,
.footer-link:focus {
    color: #5eead4;
    border-left-color: #5eead4;
    transform: translateX(4px);
    outline: none;
}

/* ========================================
   COLUNA 3: CTA & CONTATO
   ======================================== */

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Botão WhatsApp Principal */
.footer-whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    will-change: transform;
}

.footer-whatsapp-btn:hover,
.footer-whatsapp-btn:focus {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    outline: 2px solid rgba(37, 211, 102, 0.5);
    outline-offset: 2px;
}

.footer-whatsapp-btn:active {
    transform: translateY(0) scale(0.98);
}

.footer-whatsapp-btn svg {
    flex-shrink: 0;
}

/* Contatos */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: #cbd5e1;
    font-size: var(--text-sm);
}

.contact-item svg {
    color: #5eead4;
    flex-shrink: 0;
}

.footer-email {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-email:hover,
.footer-email:focus {
    color: #5eead4;
    outline: none;
    text-decoration: underline;
}

/* Link de Agendamento */
.footer-schedule-link {
    color: #f0abfc;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.2s ease;
    padding: var(--space-2) 0;
    border-bottom: 1px solid transparent;
}

.footer-schedule-link:hover,
.footer-schedule-link:focus {
    color: #fbbf24;
    border-bottom-color: #fbbf24;
    outline: none;
}

.footer-schedule-link svg {
    flex-shrink: 0;
}

/* ========================================
   CAMALEÃO INTERATIVO
   ======================================== */

.footer-separator {
    border-top: 1px solid rgba(203, 213, 225, 0.1);
    padding: var(--space-8) 0;
    margin: var(--space-8) 0;
    position: relative;
}

.chameleon-walking-zone {
    height: 60px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, 
        rgba(94, 234, 212, 0.05) 0%, 
        rgba(240, 171, 252, 0.05) 50%, 
        rgba(94, 234, 212, 0.05) 100%);
    transition: background 0.3s ease;
}

.chameleon-walking-zone:hover {
    background: linear-gradient(90deg, 
        rgba(94, 234, 212, 0.1) 0%, 
        rgba(240, 171, 252, 0.1) 50%, 
        rgba(94, 234, 212, 0.1) 100%);
}

.chameleon-walking-zone:focus {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

.chameleon-svg {
    position: absolute;
    top: 50%;
    left: -80px;
    transform: translateY(-50%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: chameleon-walk 15s linear infinite;
    will-change: transform, filter;
}

/* Camaleão - Elementos */
.chameleon-body,
.chameleon-head,
.chameleon-tail {
    transition: fill 0.8s ease-in-out, stroke 0.8s ease-in-out;
    animation: chameleon-hue-rotate 8s linear infinite;
}

.chameleon-shadow {
    animation: shadow-sway 3s ease-in-out infinite;
}

.chameleon-tail {
    animation: tail-wag 2.5s ease-in-out infinite;
    transform-origin: 70px 35px;
}

/* Língua Interativa */
.chameleon-svg:hover #chameleonTongue {
    opacity: 1 !important;
    transform: scaleX(1) !important;
    animation: tongue-shoot 0.35s ease-out;
}

/* ========================================
   ANIMAÇÕES DO CAMALEÃO
   ======================================== */

@keyframes chameleon-walk {
    0% {
        left: -80px;
    }
    100% {
        left: calc(100% + 80px);
    }
}

@keyframes chameleon-hue-rotate {
    0% { filter: hue-rotate(0deg) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
    25% { filter: hue-rotate(90deg) drop-shadow(0 2px 4px rgba(94, 234, 212, 0.2)); }
    50% { filter: hue-rotate(180deg) drop-shadow(0 2px 4px rgba(240, 171, 252, 0.2)); }
    75% { filter: hue-rotate(270deg) drop-shadow(0 2px 4px rgba(196, 38, 211, 0.2)); }
    100% { filter: hue-rotate(360deg) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
}

@keyframes shadow-sway {
    0%, 100% { 
        transform: scaleX(1); 
        opacity: 0.1; 
    }
    50% { 
        transform: scaleX(1.2); 
        opacity: 0.15; 
    }
}

@keyframes tail-wag {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(8deg); 
    }
    75% { 
        transform: rotate(-8deg); 
    }
}

@keyframes tongue-shoot {
    0% {
        transform: scaleX(0.1) translateX(10px);
        opacity: 0;
    }
    50% {
        transform: scaleX(1.2) translateX(-5px);
        opacity: 1;
    }
    100% {
        transform: scaleX(1) translateX(0);
        opacity: 1;
    }
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(203, 213, 225, 0.1);
    gap: var(--space-8);
}

.footer-bottom-left p,
.footer-bottom-right p {
    margin: 0 0 var(--space-2) 0;
    color: #94a3b8;
    font-size: var(--text-sm);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.legal-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: var(--text-xs);
    transition: color 0.2s ease;
}

.legal-link:hover,
.legal-link:focus {
    color: #5eead4;
    outline: none;
}

.separator {
    color: #64748b;
}

.footer-tagline {
    font-style: italic;
    color: #cbd5e1;
    text-align: right;
}

.footer-certifications {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

.cert-badge {
    background: rgba(94, 234, 212, 0.1);
    color: #5eead4;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid rgba(94, 234, 212, 0.2);
}

/* ========================================
   COOKIE CONSENT
   ======================================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-4);
    border-top: 1px solid rgba(94, 234, 212, 0.2);
    z-index: 1000;
    animation: slide-up 0.3s ease-out;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: var(--space-6);
}

.cookie-content p {
    color: #cbd5e1;
    font-size: var(--text-sm);
    margin: 0;
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: var(--space-3);
}

.cookie-accept,
.cookie-decline {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid;
}

.cookie-accept {
    background: #5eead4;
    color: #0f172a;
    border-color: #5eead4;
}

.cookie-accept:hover {
    background: #14b8a6;
    border-color: #14b8a6;
}

.cookie-decline {
    background: transparent;
    color: #94a3b8;
    border-color: #475569;
}

.cookie-decline:hover {
    color: #cbd5e1;
    border-color: #64748b;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@media (max-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .footer-bottom-right {
        width: 100%;
    }
    
    .footer-tagline {
        text-align: left;
    }
    
    .footer-certifications {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-business {
        padding: var(--space-12) 0 var(--space-6) 0;
    }
    
    .footer-main-grid {
        gap: var(--space-6);
    }
    
    .footer-name {
        font-size: var(--text-xl);
    }
    
    .footer-whatsapp-btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .chameleon-svg {
        width: 60px;
        height: 40px;
    }
    
    .chameleon-walking-zone {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-certifications {
        flex-direction: column;
        gap: var(--space-1);
    }
    
    .footer-legal-links {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }
    
    .separator {
        display: none;
    }
}

/* ========================================
   ACESSIBILIDADE
   ======================================== */

/* Screen readers only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .chameleon-svg,
    .chameleon-body,
    .chameleon-head,
    .chameleon-tail,
    .chameleon-shadow,
    .footer-logo svg,
    .footer-whatsapp-btn {
        animation: none !important;
        transition: none !important;
    }
    
    .chameleon-svg {
        left: 20px;
        position: absolute;
        transform: translateY(-50%);
    }
    
    .chameleon-svg:hover #chameleonTongue {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .footer-business {
        background: #000000;
        color: #ffffff;
        border-top: 2px solid #ffffff;
    }
    
    .footer-name {
        color: #00ff00;
    }
    
    .footer-whatsapp-btn {
        background: #00ff00;
        color: #000000;
        border: 2px solid #ffffff;
    }
    
    .footer-link:hover,
    .footer-link:focus {
        color: #ffff00;
        background: #000000;
    }
}

/* Focus indicators */
.footer-link:focus,
.footer-email:focus,
.footer-schedule-link:focus,
.footer-whatsapp-btn:focus {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .footer-business {
        background: none !important;
        color: #000000 !important;
        page-break-inside: avoid;
    }
    
    .chameleon-walking-zone,
    .cookie-consent,
    .footer-whatsapp-btn {
        display: none !important;
    }
}