/* ===============================================
    Site footer (every page)
    Compact navy footer: brand + two link lists + contact in one band, one slim bar below.
    Colours from brand.css. The old theme .footer rules in main.css no longer apply.
------------------------*/

.mpf {
    position: relative;
    background: var(--brand-navy);
    color: rgba(255, 255, 255, .78);
    font-size: 14.5px;
    line-height: 1.6;
}

/* the logo's three colours as a thin band across the top */
.mpf:before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-yellow) 50%, var(--brand-orange));
}

.mpf a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.mpf a:hover,
.mpf a:focus-visible {
    color: var(--brand-yellow);
}

.mpf a:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

.mpf__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 24px 44px;
    padding: 30px 0 24px;
}


/* Brand
------------------------*/

/* the logo's navy lettering needs a light ground, so it sits on a white chip */
.mpf__logo {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 12px;
    background: #fff;
    line-height: 0;
}

.mpf__logo:hover,
.mpf__logo:focus-visible {
    color: inherit;
}

.mpf__logo img {
    display: block;
    width: auto;
    height: 40px;
}

.mpf__about {
    max-width: 380px;
    margin: 12px 0 6px;
    font-size: 14px;
    line-height: 1.65;
}

.mpf .mpf__more {
    color: var(--brand-yellow);
    font-size: 14px;
    font-weight: 600;
}

.mpf .mpf__more:hover,
.mpf .mpf__more:focus-visible {
    color: #fff;
}


/* Columns
------------------------*/

.mpf__title {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 9px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mpf__title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-orange);
}

.mpf__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpf__links li {
    margin: 0;
}

.mpf__links a {
    display: inline-block;
    padding: 3px 0;
}

.mpf__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpf__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    overflow-wrap: anywhere;
}

.mpf__ico {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--brand-orange-rgb), .16);
    color: var(--brand-orange);
    font-size: 14px;
}


/* Bottom bar
------------------------*/

.mpf__bar {
    background: rgba(0, 0, 0, .22);
    font-size: 13.5px;
}

.mpf__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.mpf__copy {
    margin: 0;
}

.mpf .mpf__copy a {
    color: var(--brand-yellow);
    font-weight: 600;
}

.mpf .mpf__copy a:hover,
.mpf .mpf__copy a:focus-visible {
    color: #fff;
}

.mpf__social {
    display: flex;
    flex: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mpf__social li {
    margin: 0;
}

.mpf .mpf__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 15px;
    transition: background-color .2s ease, color .2s ease;
}

.mpf .mpf__social a:hover,
.mpf .mpf__social a:focus-visible {
    background: var(--brand-orange);
    color: var(--brand-navy);
}


/* Responsive
------------------------*/

/* The theme zeroes "footer .container" (padding and max-width) up to 1199px, which pushed
   the content against the screen edge. These are the same widths and gutters Bootstrap gives
   every other section, so the footer lines up with the sections above it. */
@media (max-width: 1199.98px) {

    .mpf .container {
        max-width: 960px;
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (max-width: 991.98px) {

    .mpf .container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {

    .mpf .container {
        max-width: 540px;
    }
}

@media (max-width: 575.98px) {

    .mpf .container {
        max-width: none;
    }
}

@media (max-width: 991.98px) {

    .mpf__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 32px;
        padding: 26px 0 22px;
    }

    .mpf__brand,
    .mpf__contact {
        grid-column: 1 / -1;
    }

    .mpf__about {
        max-width: 560px;
    }

    /* the four contact lines sit two by two */
    .mpf__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;
    }
}

@media (max-width: 575.98px) {

    .mpf__grid {
        gap: 20px 20px;
        padding: 22px 0 18px;
    }

    /* the two link lists stay side by side, one column each */
    .mpf__links {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .mpf__links a {
        padding: 2px 0;
    }

    .mpf__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .mpf__bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mpf a,
    .mpf .mpf__social a {
        transition: none;
    }
}
