/* ===================================
   X-TREME HVAC PAY - Footer Styles
   ================================== */

/* ===================================
   Footer Container
   ================================== */
.site-footer {
    position: relative;
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 80, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(253, 197, 0, 0.12) 0%, transparent 50%),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 50px,
            rgba(0, 212, 255, 0.03) 50px,
            rgba(0, 212, 255, 0.03) 100px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 50px,
            rgba(157, 0, 255, 0.03) 50px,
            rgba(157, 0, 255, 0.03) 100px);
    opacity: 0.8;
    z-index: 1;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-blue),
            var(--neon-cyan),
            var(--primary-yellow),
            var(--neon-purple),
            var(--primary-blue));
    background-size: 200% 100%;
    animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* ===================================
   Footer Content
   ================================== */
.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===================================
   Footer Top Section
   ================================== */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-8);
}

/* ===================================
   Footer Brand Section
   ================================== */
.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.footer-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-cyan));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--white);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: var(--text-base);
    color: var(--primary-yellow);
    margin-bottom: var(--space-6);
    font-weight: 500;
    line-height: 1.6;
}

.footer-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ===================================
   Footer Links Sections
   ================================== */
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--neon-gradient-1);
    border-radius: var(--radius-full);
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-block;
    position: relative;
    padding-left: var(--space-4);
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
    color: var(--primary-yellow);
}

.footer-link:hover {
    color: var(--white);
    padding-left: var(--space-5);
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   Footer Contact Section
   ================================== */
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-size: var(--text-sm);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.footer-address {
    font-style: normal;
}

/* ===================================
   Footer Bottom Section
   ================================== */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-company-name {
    color: var(--primary-yellow);
    font-weight: 600;
}

/* ===================================
   Footer Legal Links
   ================================== */
.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    position: relative;
}

.footer-legal-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-yellow);
    transition: width var(--transition-base);
}

.footer-legal-link:hover {
    color: var(--primary-yellow);
}

.footer-legal-link:hover::after {
    width: 100%;
}

/* ===================================
   Service Model Banner
   ================================== */
.footer-service-banner {
    background: rgba(0, 80, 157, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: bannerShine 3s infinite;
}

@keyframes bannerShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.service-banner-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: var(--space-2);
}

.service-banner-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ===================================
   Responsive Design
   ================================== */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-service-banner {
        margin-bottom: var(--space-8);
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: var(--space-12) 0 var(--space-6);
    }

    .footer-logo-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-2xl);
    }

    .footer-logo-text {
        font-size: var(--text-xl);
    }

    .footer-links-title {
        font-size: var(--text-base);
    }

    .footer-copyright,
    .footer-legal-link {
        font-size: var(--text-xs);
    }
}