/* Custom Compact Dark Footer - Matches Site Theme */

/* Hide Elementor Footer */
.elementor-location-footer {
    display: none !important;
}

/* Custom Footer Base */
.custom-compact-footer {
    background: linear-gradient(180deg, #0a0a0f 0%, #0d0d13 100%);
    border-top: 1px solid rgba(155, 89, 208, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 20px;
    margin-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent line at top */
.custom-compact-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #9B59D0, #5B8DEF);
    opacity: 0.6;
}

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

/* Main Grid - Compact 4 columns */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Section Headers */
.footer-section h3,
.footer-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-logo {
    font-size: 20px !important;
    font-weight: 700 !important;
    background: linear-gradient(90deg, #9B59D0, #5B8DEF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px !important;
}

.company-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 15px 0;
}

/* Contact Quick Items */
.contact-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #9B59D0;
}

.contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #9B59D0, #5B8DEF);
    transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
    width: 100%;
}

/* Newsletter Form - Compact */
.newsletter-compact {
    display: flex;
    gap: 0;
    margin: 15px 0 20px;
    max-width: 250px;
}

.newsletter-compact input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-compact input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-compact input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(155, 89, 208, 0.5);
}

.newsletter-compact button {
    padding: 8px 12px;
    background: linear-gradient(90deg, #9B59D0, #5B8DEF);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-compact button:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

.newsletter-compact button svg {
    color: white;
}

/* Social Links - Compact */
.social-links-compact {
    display: flex;
    gap: 10px;
}

.social-links-compact a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-links-compact a:hover {
    background: rgba(155, 89, 208, 0.2);
    border-color: rgba(155, 89, 208, 0.5);
    transform: translateY(-2px);
}

.social-links-compact svg {
    width: 16px;
    height: 16px;
}

/* Bottom Bar */
.footer-bottom-bar {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.bottom-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.bottom-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.bottom-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .company-section,
    .newsletter-section {
        grid-column: span 1;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .custom-compact-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

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

    .footer-section h3,
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .newsletter-compact {
        max-width: 100%;
    }

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

    .bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

.custom-compact-footer {
    animation: fadeIn 0.5s ease-out;
}

/* Ensure footer stays at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > *:not(.custom-compact-footer) {
    flex: 1;
}

/* Focus styles for accessibility */
.custom-compact-footer a:focus,
.custom-compact-footer button:focus,
.custom-compact-footer input:focus {
    outline: 2px solid #9B59D0;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .custom-compact-footer {
        border-top: 2px solid #9B59D0;
    }

    .footer-links a,
    .contact-item {
        text-decoration: underline;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .custom-compact-footer * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print styles */
@media print {
    .custom-compact-footer {
        background: white;
        color: black;
        border-top: 1px solid black;
    }

    .social-links-compact,
    .newsletter-compact {
        display: none;
    }
}