/**
 * css/core/footer.css
 * ====================
 * Footer -- single source of truth for all footer styling.
 * Engine-level -- identical on every page, every brand.
 */

.footer {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border-top: 4px solid var(--theme-primary);
    padding-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer a:hover {
    color: var(--theme-secondary);
}

.footer p {
    color: rgba(255, 255, 255, 0.65);
}

/* -- Footer content grid ---------------------------------------------------- */

.footer-content {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
}

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

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

/* -- Footer logo column ----------------------------------------------------- */

.footer-logo {
    font-family: var(--theme-font-display);
    font-size: 1.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-secondary);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.footer-specialty {
    color: var(--theme-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* -- Footer column headings ------------------------------------------------- */

.footer h4 {
    color: #FFFFFF;
    font-family: var(--theme-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* -- Footer contact column -------------------------------------------------- */

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item svg {
    color: var(--theme-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* -- Footer social column --------------------------------------------------- */

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm, 6px);
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.social-link:hover {
    border-color: var(--theme-secondary);
    color: var(--theme-secondary) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

/* -- Footer bottom bar ------------------------------------------------------ */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer-admin a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
}

.footer-admin a:hover {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}
