/**
 * Site Footer Styles
 * Figma: https://www.figma.com/design/8UCugT1JdZDalhzWuGjs9r/prp?node-id=20-509
 *
 * DESIGN SYSTEM:
 *   Brand heading: Oswald, 700 weight, letter-spaced
 *   Body text: Roboto, 300/400/500 weights
 *   Background: #FAFAFA
 *   Primary: #0a0a0a (near-black)
 *   Secondary: #01bf5a (green accent)
 *   Text: #52525b (zinc-600 body), #71717a (zinc-500 sub)
 *   Border: #e4e4e7 (zinc-200)
 *
 * NAV LINKS: driven by WP widget sidebars (fsc-col, fth-col, ffth-col).
 * Widget output uses .widget-title and .menu classes.
 */

/* Outer wrapper: full-width, #FAFAFA background */
.cl-footer {
    background: #FAFAFA;
    padding: 64px 0 0;
}

/* Outer container: 1280px max */
.cl-footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Inner content grid: 4 columns */
.cl-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1216px;
    margin: 0 auto;
}

/* ── Brand column ── */
.cl-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cl-footer__brand-logo-link {
    display: inline-block;
    width: fit-content;
    text-decoration: none;
}

.cl-footer__brand-logo {
    height: 40px;
    width: auto;
}

.cl-footer__brand-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22.75px;
    color: #71717A;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social icon row — inherits from widget social styling */
.cl-footer__socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cl-footer__socials .social-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #ffffff;
    color: #18181B;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cl-footer__socials .social-links .social-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.cl-footer__socials .social-links:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    color: #01BF5A;
}

/* ── Nav columns (widget-driven) ── */
.cl-footer__nav-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Widget heading → Figma column heading style */
.cl-footer__nav-col .widget-title {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #0A0A0A;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Widget nav menu list */
.cl-footer__nav-col .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cl-footer__nav-col .menu li {
    margin: 0;
    padding: 0;
}

.cl-footer__nav-col .menu li::before,
.cl-footer__nav-col .menu li::after {
    content: none;
}

.cl-footer__nav-col .menu a {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #52525B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cl-footer__nav-col .menu a:hover {
    color: #0A0A0A;
}

/* Reset any widget wrapper defaults */
.cl-footer__nav-col .widget {
    margin: 0;
    padding: 0;
}

.cl-footer__nav-col .ff-widget {
    padding: 0;
}

/* ── Bottom bar ── */
.cl-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #E4E4E7;
    margin-top: 64px;
    padding: 24px 0;
    max-width: 1216px;
    margin-left: auto;
    margin-right: auto;
}

.cl-footer__copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #71717A;
    margin: 0;
}

/* ── Footer responsive: tablet (2 columns) ── */
@media (max-width: 768px) {
    .cl-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .cl-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ── Footer responsive: mobile (1 column) ── */
@media (max-width: 480px) {
    .cl-footer {
        padding: 48px 0 0;
    }

    .cl-footer__container {
        padding: 0 20px;
    }

    .cl-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
