/*
 * Component: Footer
 *
 * 4-column desktop layout, stacked mobile.
 * Black base, green accents. Consistent with site system.
 */

.site-footer {
    background-color: #000;
    margin-top: auto;
}


/* ==========================================================================
   Main footer grid
   ========================================================================== */

.footer-main {
    padding-block: 3.5rem 2.5rem;
    /* Prepared for future background image:
       background-image: url('...');
       background-size: cover;
       background-position: center;
       position: relative;
    */
}

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


/* ==========================================================================
   Column base
   ========================================================================== */

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ==========================================================================
   Column 1 — Brand
   ========================================================================== */

.footer-logo {
    font-family: var(--font-display, 'Billion Dreams', serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-green, #a6ce39);
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

.footer-logo:hover {
    opacity: 0.82;
    text-decoration: none;
}

.footer-brand__desc {
    font-family: var(--font-base, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    color: #999;
    line-height: 1.7;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.25rem;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 5px;
    color: #ccc;
    font-size: 0.925rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.footer-social__link:hover {
    color: var(--color-green, #a6ce39);
    border-color: var(--color-green, #a6ce39);
    box-shadow: 0 2px 10px rgba(166, 206, 57, 0.18);
    text-decoration: none;
}


/* ==========================================================================
   Column titles
   ========================================================================== */

.footer-col__title {
    font-family: var(--font-base, 'Inter', sans-serif);
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--color-green, #a6ce39);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0;
}


/* ==========================================================================
   Link lists (nav + products)
   ========================================================================== */

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

.footer-links__item {
    display: block;
    padding: 0.35rem 0;
    font-family: var(--font-base, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s;
}

.footer-links__item:hover {
    color: #fff;
    text-decoration: none;
}

/* Scrollable products column */
.footer-links--scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.footer-links--scroll::-webkit-scrollbar {
    width: 3px;
}

.footer-links--scroll::-webkit-scrollbar-track {
    background: transparent;
}

.footer-links--scroll::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 2px;
}

.footer-links--scroll .footer-links__item {
    border-bottom: 1px solid #111;
}

.footer-links--scroll .footer-links__item:last-child {
    border-bottom: none;
}


/* ==========================================================================
   Contact column
   ========================================================================== */

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

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-family: var(--font-base, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    color: #aaa;
    line-height: 1.5;
}

.footer-contact__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-green, #a6ce39);
    font-size: 0.875rem;
}


/* ==========================================================================
   Legal bar
   ========================================================================== */

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-block: 1.125rem;
}

.footer-legal__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-legal__copy {
    font-family: var(--font-base, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 400;
    color: #777;
    margin: 0;
}

.footer-legal__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-legal__link {
    font-family: var(--font-base, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 400;
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal__link:hover {
    color: #bbb;
    text-decoration: none;
}

/* Developer credit link in legal bar */
.footer-dev-link {
    color: var(--color-green, #a6ce39);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-dev-link:hover {
    opacity: 0.75;
    text-decoration: none;
}


/* ==========================================================================
   Responsive — Tablet (≤1024px)
   ========================================================================== */

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


/* ==========================================================================
   Responsive — Mobile (≤768px)
   ========================================================================== */

@media (max-width: 768px) {

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

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

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

    .footer-links--scroll {
        width: 100%;
        text-align: center;
    }

    .footer-links--scroll .footer-links__item {
        text-align: center;
    }

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

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

    .footer-legal__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.625rem;
    }

    .footer-legal__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
