/* ==========================================================================
   Footer Styles — Shared across all layouts
   ========================================================================== */

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 2rem;
    border-top: 1px solid #1e293b;
    margin-top: 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1.5rem;
}

/* Brand Section */
.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    display: block;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
    max-width: 100%;
}

.footer-operated-by {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Footer Sections */
.footer-section {
    min-width: 0;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

/* Footer Links */
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.5;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-link-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-email-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.footer-link-email:hover .footer-email-icon {
    transform: translateY(-2px);
}

.footer-help-text {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Legal Entity Bar */
.footer-entity {
    padding: 1.25rem 0;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-entity-text {
    margin: 0 0 0.25rem;
    color: #cbd5e1;
    font-size: 0.8125rem;
    font-weight: 500;
}

.footer-entity-details {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

.footer-copyright {
    margin: 0;
    color: #64748b;
    font-size: 0.8125rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-separator {
    color: #475569;
    font-size: 0.75rem;
}

.footer-link-small {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link-small:hover {
    color: #ffffff;
}

/* ==========================================================================
   Responsive Footer
   ========================================================================== */

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand {
        max-width: 100%;
        grid-column: 1 / -1;
    }

    .footer-entity {
        padding: 1rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        text-align: left;
    }

    .footer-bottom-links {
        gap: 0.375rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-heading {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        gap: 0.625rem;
    }

    .footer-link {
        font-size: 0.8125rem;
    }

    .footer-entity-text {
        font-size: 0.75rem;
    }

    .footer-entity-details {
        font-size: 0.6875rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }

    .footer-separator {
        display: none;
    }
}
