/**
 * Site footer.
 *
 * Replaces Hello Elementor's default, which is styled by the parent theme under
 * .site-footer. The class here is .srpc-footer so none of that reaches it, and
 * the id stays #site-footer so skip-links and anchors keep working.
 */

.srpc-footer {
    background: var(--srpc-navy);
    color: #cdd8e1;
    margin-top: 4.5rem;
    padding: 2.5rem 0 0;
    font-size: var(--srpc-text-sm);
    line-height: 1.6;
}

.srpc-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Links need to read as links against navy without the body-copy blue, so they
   carry a rule underneath that picks up the accent on hover. */
.srpc-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.srpc-footer a:hover,
.srpc-footer a:focus-visible {
    color: #fff;
    border-bottom-color: var(--srpc-orange);
}

.srpc-footer h2 {
    font-family: var(--srpc-font-display);
    font-size: var(--srpc-text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8fa6b8;
    margin: 0 0 0.7rem;
}

.srpc-footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2rem 2.5rem;
}

.srpc-footer-cols p {
    margin: 0 0 0.5rem;
}

.srpc-footer-cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.srpc-footer-cols li {
    margin-bottom: 0.4rem;
}

/* --- brand --- */

.srpc-footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.srpc-footer-logo {
    flex: none;
    border-bottom: 0;          /* the link rule above would underline the logo */
    line-height: 0;
}

.srpc-footer-logo img {
    width: 74px;
    height: auto;
    display: block;
}

.srpc-footer-name {
    font-family: var(--srpc-font-display);
    font-weight: 700;
    color: #fff;
    font-size: var(--srpc-text-md);
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

/* --- coordinates --- */

.srpc-footer-coords {
    font-variant-numeric: tabular-nums;
    color: #fff;
    font-weight: 600;
}

/* --- bottom rule --- */

.srpc-footer-rule {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1rem 0 1.25rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: var(--srpc-text-xs);
    color: #8fa6b8;
}

/* --- narrow --- */

@media (max-width: 900px) {
    .srpc-footer-cols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .srpc-footer-cols {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .srpc-footer {
        margin-top: 2.5rem;
    }
}
