/* Modern Footer Styles */

/* Pre-Footer CTA Section */
.pre-footer-cta {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
    overflow: hidden;
}

.pre-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.pre-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pre-footer-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pre-footer-text p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
}

.pre-footer-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pre-footer-cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}

.pre-footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modern Footer with Blue Gradient */
.modern-footer,
.site-footer {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 60px 0 0 !important;
    margin: 0 !important;
    border: none !important;
    border-top: none !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.footer-logo svg {
    margin-bottom: 20px;
}

.footer-logo svg path {
    fill: #ffffff !important;
}

.footer-logo svg .continuous-outline {
    stroke: #ffffff !important;
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 30px 0;
}

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

.footer-legal {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-legal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pre-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .pre-footer-cta-buttons {
        align-items: center;
        justify-content: center;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .pre-footer-cta {
        padding: 60px 0;
    }
    
    .pre-footer-text h2 {
        font-size: 2rem;
    }
    
    .pre-footer-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pre-footer-text h2 {
        font-size: 1.75rem;
    }
    
    .pre-footer-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .pre-footer-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pre-footer-cta-buttons .ft-cta-primary,
    .pre-footer-cta-buttons .ft-cta-secondary {
        width: 100%;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-certifications {
        justify-content: center;
    }
}

/* CTA Button Enhancements for Footer */
.pre-footer-cta-buttons .ft-cta-primary {
    padding: 16px 32px;
    font-size: 1.125rem;
    min-width: 200px;
    justify-content: center;
}

.pre-footer-cta-buttons .ft-cta-secondary {
    padding: 16px 32px;
    font-size: 1.125rem;
    min-width: 200px;
    justify-content: center;
    background: transparent;
    border: 2px solid #16a34a;
    color: #16a34a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.pre-footer-cta-buttons .ft-cta-secondary:hover {
    background: #16a34a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}


/* WordPress Footer Overrides */
#colophon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    padding: 60px 0 0 !important;
    margin: 0 !important;
    border: none !important;
}

#colophon * {
    color: inherit !important;
}

#colophon a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

#colophon a:hover {
    color: #ffffff !important;
}

#colophon .footer-column h4 {
    color: #ffffff !important;
}

#colophon .footer-tagline {
    color: rgba(255, 255, 255, 0.9) !important;
}

#colophon .footer-legal p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Force footer styling */
footer {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

/* Override any theme defaults */
.site-footer,
.site-footer *,
footer,
footer * {
    box-sizing: border-box !important;
}

