/* ========================================
   Footer Styles
   ======================================== */

:root {
    --footer-bg: #0f1419;
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-link-hover: #096fc8;
}

/* Footer Container */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #096fc8, transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--footer-border);
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #096fc8;
    margin: 0;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 14px;
    color: var(--footer-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Footer Navigation */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-nav-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--footer-text);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-list a {
    font-size: 15px;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-link-hover);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-list a:hover {
    color: var(--footer-link-hover);
}

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

/* Footer Bottom Section */
.footer-bottom {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--footer-border);
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--footer-text);
    margin: 0;
}

.footer-address {
    font-size: 14px;
    color: var(--footer-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: #096fc8;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(9, 111, 200, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Copyright Section */
.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    font-size: 14px;
    color: var(--footer-text-muted);
}

@media (max-width: 768px) {
    .footer-copyright {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer-copyright p {
    margin: 0;
}

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

.footer-legal a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-legal .separator {
    color: var(--footer-border);
}

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

.footer-brand,
.footer-nav-column,
.footer-info,
.footer-social {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.footer-nav-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-nav-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-nav-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-social {
    animation-delay: 0.4s;
}

/* Accessibility */
.social-link:focus-visible,
.footer-nav-list a:focus-visible,
.footer-legal a:focus-visible {
    outline: 2px solid #096fc8;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .site-footer {
        background: #000000;
        border-top: 2px solid #ffffff;
    }
    
    .footer-nav-list a,
    .footer-legal a {
        font-weight: 600;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .social-link,
    .footer-nav-list a,
    .footer-brand,
    .footer-nav-column,
    .footer-info,
    .footer-social {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .site-footer {
        background: #ffffff;
        color: #000000;
        page-break-before: always;
    }
    
    .footer-social {
        display: none;
    }
    
    .footer-nav-list a,
    .footer-legal a {
        color: #000000;
    }
}

/* Mobile Styles */
@media (max-width: 640px) {
    .site-footer {
        padding: 60px 0 0;
    }
    
    .footer-content {
        gap: 48px;
    }
    
    .footer-top {
        padding-bottom: 48px;
        gap: 40px;
    }
    
    .footer-bottom {
        padding-bottom: 48px;
    }
    
    .footer-logo {
        font-size: 24px;
    }
    
    .footer-nav {
        gap: 28px;
    }
    
    .footer-copyright {
        padding: 24px 0;
    }
}

