/* ==========================================================================
   Footer - UI.com Style
   Version: 1.1.0 (Fixed Specificity)
   ========================================================================== */

.site-footer {
    background-color: #F9F9FA;
    border-top: 1px solid #E5E7EB;
    color: #1a1a1a;
    font-family: "UI Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: auto;
}

.footer-main {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

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

.footer-column ul li a {
    font-size: 14px;
    color: #737373;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-column ul li a:hover {
    color: #1a1a1a;
}

/* Subscribe Form - High Specificity Override */
.footer-subscribe {
    display: flex;
    flex-direction: column;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.subscribe-input-wrapper {
    position: relative;
    width: 100%;
}

.subscribe-form input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease;
}

.subscribe-form input[type="email"]:focus {
    border-color: #006FFF;
}

/* Specificity: 0,3,0 - beats buttons-unified.css (0,1,1) */
.site-footer .footer-subscribe .subscribe-submit-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    width: 32px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    color: #737373 !important;
    padding: 0 !important;
    min-width: unset !important;
    box-shadow: none !important;
}

.site-footer .footer-subscribe .subscribe-submit-btn:hover {
    background: #E4E4E5 !important;
    color: #1a1a1a !important;
}

.site-footer .footer-subscribe .subscribe-submit-btn svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    /* Prevent collapsing */
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
}

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

.social-links a {
    color: #737373;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: #1a1a1a;
}

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

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #E5E7EB;
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #737373;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #737373;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal a:hover {
    color: #1a1a1a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-main {
        padding: 32px 0;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-column {
        border-bottom: 1px solid #E5E7EB;
    }

    .footer-column:last-child {
        border-bottom: none;
        padding-top: 24px;
    }

    .footer-column h4 {
        margin: 0;
        padding: 16px 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .footer-column h4::after {
        content: '+';
        font-weight: 300;
        font-size: 18px;
    }

    .footer-column.expanded h4::after {
        content: '-';
    }

    .footer-column ul {
        display: none;
        padding-bottom: 16px;
    }

    .footer-column.expanded ul {
        display: block;
    }

    /* Subscribe specific for mobile */
    .footer-subscribe {
        border-bottom: none;
    }

    .footer-subscribe h4 {
        cursor: default;
        pointer-events: none;
    }

    .footer-subscribe h4::after {
        display: none;
    }

    .footer-bottom-content {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 16px;
    }
}