/* Everest Law custom footer */
.everest-footer.site-footer {
    margin-top: 0;
}

#colophon.site-footer:not(.everest-footer) {
    display: none !important;
}

.everest-footer-main {
    background: #eef2f6;
    padding: 32px 0 28px;
    color: #1a3d6b;
    font-size: 14px;
    line-height: 1.45;
}

.everest-footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.1fr 0.88fr 1.15fr;
    gap: 32px 28px;
    align-items: start;
}

.everest-footer-col-brand {
    margin-top: -2px;
}

.everest-footer-logo {
    display: block;
    line-height: 0;
    margin: 0;
}

.everest-footer-logo img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    margin-top: 0;
}

.everest-footer-tagline {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #1a3d6b;
    max-width: 220px;
}

.everest-footer-divider {
    border: 0;
    border-top: 1px solid #c9d4e3;
    margin: 20px 0;
}

.everest-footer-sra {
    line-height: 0;
    margin-top: 10px;
}

.everest-footer-sra img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
}

.everest-footer-col-links .everest-footer-heading,
.everest-footer-col-info .everest-footer-heading {
    margin-top: 0;
}

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

.everest-footer-col-contact .everest-footer-contact-list {
    margin-top: 0;
}

.everest-footer-col-contact .everest-footer-contact-item:first-child {
    margin-top: 0;
}

.everest-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.everest-footer-contact-item:last-child {
    margin-bottom: 0;
}

.everest-footer-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a3d6b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.everest-footer-icon-wrap .icon {
    width: 18px;
    height: 18px;
    margin: 0;
}

.everest-footer-contact-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a3d6b;
    margin-bottom: 1px;
    line-height: 1.3;
}

.everest-footer-contact-item a,
.everest-footer-contact-value {
    font-size: 13px;
    line-height: 1.35;
    color: #046bd2;
    text-decoration: none;
    word-break: break-word;
}

.everest-footer-contact-value {
    color: #1a3d6b;
}

@media (min-width: 922px) {
    .everest-footer-contact-item-address .everest-footer-contact-value {
        white-space: nowrap;
        word-break: normal;
    }
}

.everest-footer-contact-item a:hover,
.everest-footer-contact-item a:focus {
    color: #045cb4;
    text-decoration: underline;
}

.everest-footer-heading {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a3d6b;
    white-space: nowrap;
}

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

.everest-footer-links li {
    margin-bottom: 8px;
}

.everest-footer-links li:last-child {
    margin-bottom: 0;
}

.everest-footer-links a {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    line-height: 1.35;
    color: #1a3d6b;
    text-decoration: none;
}

.everest-footer-links a::before {
    content: ">";
    font-size: 13px;
    font-weight: 700;
    color: #1a3d6b;
    flex-shrink: 0;
}

.everest-footer-links a:hover,
.everest-footer-links a:focus {
    color: #046bd2;
    text-decoration: underline;
}

.everest-footer-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    min-width: 0;
}

.everest-footer-col-head .everest-footer-heading-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.everest-footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 0;
}

.everest-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #1a3d6b;
    border-radius: 4px;
    background: #ffffff;
    color: #1a3d6b;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.everest-footer-social a:hover,
.everest-footer-social a:focus {
    background: #1a3d6b;
    color: #ffffff;
}

.everest-footer-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.everest-footer-bar {
    background: #1a3d6b;
    color: #ffffff;
    padding: 10px 0;
}

.everest-footer-bar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    gap: 20px;
}

.everest-footer-bar-copy {
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    width: 100%;
    padding: 0 48px;
}

.everest-footer-bar-copy p {
    margin: 0;
}

.everest-footer-bar-copy strong {
    font-weight: 700;
}

.everest-footer-scroll-top {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.everest-footer-scroll-top:hover,
.everest-footer-scroll-top:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.everest-footer-scroll-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

#ast-scroll-top {
    display: none !important;
}

@media (max-width: 921px) {
    .everest-footer-main {
        padding: 28px 0 22px;
    }

    .everest-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .everest-footer-col-brand {
        grid-column: 1 / -1;
    }

    .everest-footer-heading {
        white-space: normal;
    }
}

@media (max-width: 544px) {
    .everest-footer-main {
        padding: 22px 0 18px;
    }

    .everest-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .everest-footer-col-head {
        display: contents;
    }

    .everest-footer-col-info {
        display: flex;
        flex-direction: column;
    }

    .everest-footer-heading-wrap {
        order: 1;
    }

    .everest-footer-col-info > .everest-footer-links {
        order: 2;
    }

    .everest-footer-social {
        order: 3;
        padding-top: 8px;
    }

    .everest-footer-bar-inner {
        flex-direction: column;
        align-items: center;
        padding-top: 8px;
    }

    .everest-footer-bar-copy {
        padding: 0 12px;
    }

    .everest-footer-scroll-top {
        position: static;
        transform: none;
        align-self: flex-end;
        margin-top: 10px;
    }
}
