/* ============================================
   LEANFLY - Footer Styles
   Professional, Animated, 40:20:20:20 Layout
   ============================================ */

/* Footer Main */
.site-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 50%, #0B0C10 100%);
    padding: 70px 0 35px;
    border-top: 2px solid rgba(218, 65, 65, 0.2);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(218, 65, 65, 0.5) 50%, 
        transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* ============================================
   COLUMN 1: BRAND (40%)
   ============================================ */
.footer-brand {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-logo-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    color: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #999;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 400px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #D0D0D0;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.footer-contact-item i {
    color: var(--color-secondary);
    font-size: 1rem;
    width: 18px;
}

/* ============================================
   COLUMN 2,3,4: LINKS (20% each)
   ============================================ */
.footer-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #da4141 0%, transparent 100%);
    transition: width 0.4s ease;
}

.footer-column:hover .footer-heading::after {
    width: 50px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.footer-links li {
    position: relative;
}

.footer-links a {
    color: #999;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 65, 65, 0.1);
    border: 1px solid rgba(218, 65, 65, 0.2);
    border-radius: 10px;
    color: var(--color-secondary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-link:hover {
    background: linear-gradient(135deg, #da4141 0%, #b83434 100%);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(218, 65, 65, 0.4);
}

/* Certifications */
.footer-certifications {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-cert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(218, 65, 65, 0.05);
    border: 1px solid rgba(218, 65, 65, 0.1);
    border-radius: 6px;
    color: #D0D0D0;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.footer-cert-badge:hover {
    background: rgba(218, 65, 65, 0.1);
    border-color: rgba(218, 65, 65, 0.3);
    transform: translateX(5px);
}

.footer-cert-badge i {
    color: var(--color-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(218, 65, 65, 0.15);
}

.footer-copyright {
    font-size: 0.875rem;
    color: #666;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1;
        text-align: center;
        align-items: center;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-contact-info {
        align-items: center;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-certifications {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
}
