/* ===========================================
   footer.css — Public site footer
   Clean, refined layout matching header style
   =========================================== */

.site-footer {
    font-family: var(--brand-font-body, 'Inter', sans-serif);
    margin-top: auto;
}

.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }

/* ---- Main section ---- */
.site-footer__main {
    background: var(--brand-bg, #fff);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 40px 0;
}

.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ---- Brand column (left) ---- */
.site-footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
}

.site-footer__logo {
    height: 192px;
    width: auto;
    object-fit: contain;
}

.site-footer__company {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: var(--brand-font-heading-weight, 700);
    font-size: 20px;
    color: var(--brand-text, #111827);
    letter-spacing: -0.02em;
}

/* Contacts */
.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.site-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    transition: color 0.2s;
}

a.site-footer__contact-link:hover {
    color: var(--brand-primary, #2563EB);
}

.site-footer__contact-link svg {
    flex-shrink: 0;
    opacity: 0.4;
}

/* Social */
.site-footer__social {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 2px;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--brand-text-secondary, #6B7280);
    background: rgba(0, 0, 0, 0.03);
    transition: color 0.2s, background 0.2s;
}

.site-footer__social-link:hover {
    color: var(--brand-primary, #2563EB);
    background: rgba(37, 99, 235, 0.07);
}

.site-footer__social-link svg { width: 20px; height: 20px; }
.site-footer__social-link img { width: 20px; height: 20px; object-fit: contain; }

/* ---- Dynamic columns (right) ---- */
.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 28px;
}

.site-footer__col-title {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 15px;
    color: var(--brand-text, #111827);
    margin: 0 0 12px 0;
}

.site-footer__col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__col-link {
    font-size: 14px;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__col-link:hover {
    color: var(--brand-primary, #2563EB);
}

/* ---- Bottom bar ---- */
.site-footer__bottom {
    background: var(--brand-bg, #fff);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 18px 0;
}

.site-footer__bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.site-footer__copyright {
    font-size: 13px;
    color: var(--brand-text-secondary, #6B7280);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer__legal-link {
    font-size: 13px;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer__legal-link:hover {
    color: var(--brand-primary, #2563EB);
}

/* ===========================================
   RESPONSIVE — Tablet (768px+)
   =========================================== */
@media (min-width: 768px) {
    .site-footer__inner {
        padding: 0 28px;
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .site-footer__brand-col {
        flex-shrink: 0;
        width: 280px;
    }

    .site-footer__columns {
        flex: 1;
        padding-top: 4px;
    }

    .site-footer__bottom-inner {
        padding: 0 28px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===========================================
   RESPONSIVE — Desktop (1024px+)
   =========================================== */
@media (min-width: 1024px) {
    .site-footer__main {
        padding: 48px 0;
    }

    .site-footer__inner {
        padding: 0 40px;
        gap: 80px;
    }

    .site-footer__brand-col {
        width: 320px;
    }

    .site-footer__bottom-inner {
        padding: 0 40px;
    }
}
