/* --------------------------------------------------
   Footer  —  balanced: brand + mission + social on the
   left, three equal link columns on the right, thin
   divider, tidy legal bar. rem base is 10px here.
-------------------------------------------------- */
.footer {
    background: #1e2220;
    color: #fff;
}

.footer__inner {
    width: min(120rem, 92vw);
    margin: 0 auto;
    padding: clamp(4.5rem, 6vw, 7rem) 0 clamp(2.6rem, 3vw, 3.6rem);
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(24rem, 1fr) 2fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: start;
}

/* Brand block */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.footer__logo {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: #fff;
    padding: 0.7rem;
    object-fit: contain;
}

.footer__mission {
    margin: 0;
    max-width: 34ch;
    font-size: 1.6rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.footer__social {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.4rem;
}

.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.footer__social a:hover,
.footer__social a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

.footer__social img {
    width: 1.9rem;
    height: 1.9rem;
}

/* Link columns */
.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
}

.footer__heading {
    margin: 0 0 1.6rem;
    font-family: var(--display-font);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.footer__col li {
    font-size: 1.6rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.footer__col a {
    color: #fff;
    text-decoration: none;
}

.footer__col a:hover,
.footer__col a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Legal bar */
.footer__base {
    margin-top: clamp(3.6rem, 5vw, 5.5rem);
    padding-top: 2.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem 3rem;
    font-size: 1.35rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.footer__legal {
    margin: 0;
    max-width: 72ch;
}

.footer__credit {
    margin: 0;
    white-space: nowrap;
}

.footer__base a {
    color: #fff;
}

.footer a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 2px;
}

/* --------------------------------------------------
   Responsive
-------------------------------------------------- */
@media (max-width: 64rem) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 40rem) {
    .footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 2.6rem 2rem;
    }

    .footer__base {
        flex-direction: column;
        gap: 1.2rem;
    }

    .footer__credit {
        white-space: normal;
    }
}
