
/* Main footer */

.site-footer {
    color: #ffffff;
    background: var(--secondary-colour);
}

.site-footer__main {
    padding: 64px 24px;
}

.site-footer__inner {
    max-width: 1200px;
    margin-inline: auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
}

.site-footer h2 {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-colour);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--primary-colour);
    outline-offset: 4px;
}

/* Social media */

.site-footer__social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.site-footer__social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.site-footer__social-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-colour);
}

.site-footer__social-links svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: currentColor;
}

.site-footer__social-links svg[fill="none"] {
    fill: none;
}

/* Contact details */

.site-footer__contact p {
    margin: 0 0 14px;
    line-height: 1.6;
    margin: 0;
}

.site-footer__organisation {
    font-weight: 600;
}

.site-footer__address {
    margin-bottom: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.7;
    white-space: pre-line;
}

.site-footer__contact strong {
    font-weight: 600;
}

.site-footer__logo {
    display: block;
    width: auto;
    max-width: min(100%, 220px);
    max-height: 240px;
    height: auto;
    object-fit: contain;
    margin-top: 28px;
}

/* Bottom copyright strip */

.site-footer__bottom {
    background: #30373d;
    padding: 20px 24px;
}

.site-footer__bottom-inner {
    max-width: 1200px;
    margin-inline: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-footer__bottom p {
    margin: 0;
    color: #c5cbd0;
    font-size: 0.875rem;
}

.site-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive */

@media (max-width: 768px) {
    .site-footer__main {
        padding: 40px 20px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer__bottom {
        padding: 20px;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

