/* Footer Styles */
footer {
    background: #111;
    color: white;
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* Add margin to prevent overlap */
    clear: both; /* Ensure it clears any floated elements */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e53e3e, #c53030);
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.footer-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-section h3 {
    margin-bottom: 25px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e53e3e, #c53030);
    border-radius: 3px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(229, 62, 62, 0.2);
    color: white;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    transform: scale(1.1);
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #e53e3e, #c53030);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-links li,
.footer-services li {
    margin-bottom: 14px;
    position: relative;
    text-align: left;
}

.footer-links a,
.footer-services a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    position: relative;
    padding-left: 0;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.9;
    text-align: left;
}

.footer-links a::before,
.footer-services a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: #e53e3e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    text-shadow: none;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #fff;
    padding-left: 22px;
    transform: translateX(5px);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-links a:hover::before,
.footer-services a:hover::before {
    opacity: 1;
    left: 0;
}

.contact-info {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    min-height: 200px; /* Adjust based on content */
    text-align: left;
}

.contact-info p {
    display: flex;
    align-items: center;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 0;
    opacity: 0.9;
    text-align: left;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info p:hover {
    color: #fff;
    transform: translateX(5px);
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.contact-info i {
    color: #e53e3e;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.contact-info p:hover i {
    color: white;
    transform: scale(1.1);
}

.contact-info br {
    display: block;
    margin: 4px 0;
    content: "";
}

/* Add subtle separator between contact items except the last one */
.contact-info p:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e53e3e, transparent);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    opacity: 0.9;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: none;
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px 30px;
        padding: 0 40px;
    }
    
    .footer-section p {
        max-width: 100%;
    }
    
    .footer-bottom {
        padding: 25px 40px;
    }
    
    .footer-section:last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .footer-section {
        height: auto;
        min-height: auto;
    }
    
    .contact-info {
        min-height: auto;
        height: auto;
        padding-top: 0;
    }
    footer {
        padding: 80px 0 0;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 25px;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h3::after {
        left: 0;
        transform: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 20px 25px;
    }
    
    .footer-section {
        margin-bottom: 0;
    }
    
    .footer-logo img {
        max-width: 160px;
    }
}

/* Força alinhamento à esquerda para todas as seções do footer */
.footer-links,
.footer-services {
    text-align: left;
}

.footer-links li,
.footer-services li {
    text-align: left;
}

.footer-links a,
.footer-services a {
    text-align: left;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order) * 0.1s);
}

/* Adicionando atrasos de animação específicos para cada seção */
.footer-section:nth-child(1) { --animation-order: 1; }
.footer-section:nth-child(2) { --animation-order: 2; }
.footer-section:nth-child(3) { --animation-order: 3; }
.footer-section:nth-child(4) { --animation-order: 4; }
