/*
==============================================
PROFESSIONAL FINANCIAL FOOTER STYLES
Matching the header's Bloomberg/FT aesthetic
==============================================
*/

/* Main Footer - Dark Financial Theme */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #0a0f1f 100%);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    position: relative;
}

/* Subtle top accent line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

/* Container */
footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Columns */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Footer Logo - Premium Brand Treatment */
.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.03em;
}

.footer-logo a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer-logo .logo-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-transform: lowercase;
}

.footer-logo .logo-dot {
    color: #60a5fa;
    font-weight: 700;
}

/* Footer Description */
.footer-col > p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Footer Column Headings */
.footer-col h3 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer Links List */
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    position: relative;
}

.footer-col ul a {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    letter-spacing: 0.01em;
}

/* Underline animation on hover */
.footer-col ul a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col ul a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-col ul a:hover::after {
    width: 100%;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 116, 139, 0.15);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Social Links (if added in future) */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    color: #94a3b8;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    transform: translateY(-2px);
}

/* Newsletter Section (if exists) */
.footer-newsletter {
    margin-top: 1.5rem;
}

.footer-newsletter h4 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.7);
}

.footer-newsletter-input::placeholder {
    color: #64748b;
}

.footer-newsletter-btn {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tablet Responsive - 2 columns */
@media (max-width: 991px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    footer .container {
        padding: 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile Responsive - 1 column */
@media (max-width: 640px) {
    footer {
        padding: 2.5rem 0 1.5rem;
    }

    footer .container {
        padding: 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-col:first-child {
        grid-column: 1;
    }

    .footer-col h3 {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }

    .footer-col ul {
        gap: 0.625rem;
    }

    .footer-col ul a {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Professional Touch - Subtle Pattern Overlay */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Ensure footer content is above the overlay */
footer .container {
    position: relative;
    z-index: 1;
}

/* Trust Badge Section (if added) */
.footer-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 116, 139, 0.1);
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-trust-badge svg,
.footer-trust-badge span:first-child {
    font-size: 1rem;
}

/* Accessibility Improvements */
.footer-col a:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Print Styles */
@media print {
    footer {
        background: white;
        color: black;
        border-top: 2px solid #000;
    }

    .footer-logo .logo-text,
    .footer-logo .logo-dot {
        color: #000;
        -webkit-text-fill-color: #000;
    }

    .footer-col h3,
    .footer-col a,
    .footer-col p,
    .footer-bottom p {
        color: #333;
    }
}
