/*
 * footer.css
 * Styles for the site footer: main grid, social icons, contact, and bottom bar.
 */


/* ─── Site Footer ───────────────────────────────────────────── */

.site-footer {
    background-color: #ffffff;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.06);
}


/* ─── Footer Main ────────────────────────────────────────────── */

.footer-main {
    padding-block: 5rem 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem 2.5rem;
    align-items: start;
}


/* ─── Column Headings ────────────────────────────────────────── */

.footer-col__heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}


/* ─── Brand Column ───────────────────────────────────────────── */

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

.footer-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo .site-logo {
    display: block;
    max-height: 128px;
    height: auto;
    width: auto;
}

.footer-logo__text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.footer-brand__desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #555;
    max-width: 100%;
    margin-bottom: 1.75rem;
}


/* ─── Social Icons ───────────────────────────────────────────── */

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social a {
    display: inline-flex;
    text-decoration: none;
}

.footer-social__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover .footer-social__icon {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.footer-social__icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: filter 0.2s ease;
}

.footer-social a:hover .footer-social__icon img {
    filter: brightness(0) invert(1);
}


/* ─── Footer Nav Lists ───────────────────────────────────────── */

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

.footer-nav__list li a {
    font-size: 1rem;
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-nav__list li a:hover {
    color: var(--color-secondary);
    padding-left: 0.25rem;
    text-decoration: none;
}


/* ─── Contact Column ─────────────────────────────────────────── */

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

.footer-contact__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
}

.footer-contact__icon img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-contact__value {
    font-size: 0.9375rem;
    color: #444;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

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

address.footer-contact__value {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #555;
}


/* ─── Bottom Bar ─────────────────────────────────────────────── */

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-block: 1.25rem;
}

.footer-bottom__copy {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    max-width: none;
    margin: 0;
}


/* ─── Responsive ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {

    .footer-main {
        padding-block: 4rem 3rem;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
        gap: 2.5rem 1.75rem;
    }

    .footer-logo .site-logo {
        max-height: 96px;
    }

}

/* Mobile */
@media (max-width: 768px) {

    .footer-main {
        padding-block: 3rem 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .footer-brand__desc {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo .site-logo {
        max-height: 128px;
    }

    .footer-col--links,
    .footer-col--support,
    .footer-col--contact {
        border-top: 1px solid var(--color-border);
        padding-top: 2rem;
    }

    .footer-col__heading {
        text-align: center;
    }

    .footer-nav__list {
        align-items: center;
    }

    .footer-nav__list li a:hover {
        padding-left: 0;
    }

    .footer-contact__list {
        align-items: center;
        max-width: 320px;
        margin-inline: auto;
        gap: 1.75rem;
    }

    .footer-contact__item {
        align-items: center;
        gap: 0.625rem;
    }

    .footer-contact__icon {
        width: 40px;
        height: 40px;
    }

    .footer-contact__icon img {
        width: 24px;
        height: 24px;
    }

    .footer-contact__value,
    address.footer-contact__value {
        text-align: center;
    }
}
