/* ===========================
   Footer — The ADR Initiative
   =========================== */

/* ── Back to Top ──────────────────────────────────────────── */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ===========================
   Footer Shell
   =========================== */

.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
}

/* ===========================
   Main Footer Grid
   =========================== */

.footer-main {
    padding: 80px 0 48px;
}

.footer-inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

/* ===========================
   Brand Column
   =========================== */

.footer-brand {
    display: flex;
    flex-direction: column;
}

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

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
    line-height: 1.2;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-white);
    max-width: 340px;
}

/* ===========================
   Nav Link Columns
   =========================== */

.footer-col-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: 0;
}

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

.footer-links a {
    font-size: 1rem;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1.4;
}

.footer-links a:hover {
    opacity: 0.75;
}

/* ===========================
   Contact Column
   =========================== */

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-icon {
    flex-shrink: 0;
    color: var(--color-white);
    margin-top: 2px;
    line-height: 0;
}

.footer-contact-item a,
.footer-contact-item address {
    font-size: 1rem;
    font-style: normal;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.55;
    transition: opacity 0.2s ease;
}

.footer-contact-item a:hover {
    opacity: 0.75;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 4px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 0.75;
}

/* ===========================
   Footer Bottom Bar
   =========================== */

.footer-bottom {
    background-color: var(--color-black);
    padding: 0 0 28px;
}

.footer-bottom-inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Legal nav links */
.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-links li {
    display: flex;
    align-items: center;
}

.footer-legal-links li + li::before {
    content: '|';
    color: var(--color-white);
    margin: 0 8px;
    font-size: 0.875rem;
}

.footer-legal-links a {
    font-size: 0.9375rem;
    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 0.75;
}

/* Copyright */
.footer-copyright {
    font-size: 0.9375rem;
    color: var(--color-white);
    text-align: center;
    line-height: 1.5;
}

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

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

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

@media (max-width: 640px) {
    .footer-main {
        padding: 48px 0 36px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-legal-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 0;
        justify-items: center;
    }

    .footer-legal-links li + li::before {
        display: none;
    }

    .footer-bottom {
        padding: 16px 0 20px;
    }
}
