/*
 * site-footer - the navy footer and its bottom bar.
 *
 * Loaded from site/layouts/app.blade.php for the same reason as
 * site-header.css: the layout renders it on every page.
 */

.site-footer {
    background-color: var(--site-primary);
    color: rgba(255, 255, 255, 0.82);
}

/* The footer sits tighter than a content section at every width. */
.site-footer .section {
    --site-section-y: 2.5rem;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .brand-name {
    color: #ffffff;
}

.site-footer .brand-tag {
    color: rgba(255, 255, 255, 0.65);
}

/* Not .phone-link: that one is navy, which would vanish on this ground. It
   still has to be a 44px row. */
.footer-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* Below 992px the footer stacks into one column, and the telephone number is the
   thing in it a visitor is most likely to reach for, so it sits centred rather
   than hanging off the left edge under the description. Above that width the
   column has a neighbour and left-aligned is right. It is the paragraph that is
   centred, not the link: the link is inline-flex for its 44px tap target, and
   text-align on an inline-flex box moves nothing. */
@media (max-width: 991.98px) {
    .site-footer .footer-cta {
        text-align: center;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 0.7rem of padding either side of the line box keeps each link a 44px row. */
.footer-links li a {
    display: inline-block;
    padding-block: 0.7rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
}

/* A link inside a sentence is underlined: it is barely lighter than the words
   around it (1.25:1), so colour alone cannot mark it out (WCAG 1.4.1). */
.footer-bottom a {
    text-decoration: underline;
}
