/* =========================================================
   Site footer — pre-footer newsletter + 4-col main footer +
   bottom strip. Blue gradient scheme matching /ipa and /virtu.
   ========================================================= */

/* ---------- Pre-footer (newsletter) ---------- */
.site-prefooter {
    background: #f6f9fc;
    border-top: 1px solid #e6ecf2;
    padding: 56px 0;
}
.site-prefooter .prefooter-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.site-prefooter .prefooter-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 8px;
    line-height: 1.25;
}
.site-prefooter .prefooter-text p {
    font-size: 15px;
    color: #586b7d;
    margin: 0;
    line-height: 1.5;
}
.site-prefooter #mc_embed_signup,
.site-prefooter #mc_embed_signup_scroll {
    margin: 0;
    background: transparent;
}
.site-prefooter form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin-left: auto;
    flex-wrap: wrap;
}
.site-prefooter form input.email {
    flex: 1 1 220px;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid #d6dfe8;
    border-radius: 6px;
    font-size: 14px;
    color: #1a2a3a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.site-prefooter form input.email:focus {
    outline: none;
    border-color: #00549a;
    box-shadow: 0 0 0 3px rgba(0, 84, 154, 0.15);
}
.site-prefooter form input[type="submit"] {
    padding: 13px 24px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.site-prefooter form input[type="submit"]:hover {
    background: #22913c;
    transform: translateY(-1px);
}
.site-prefooter form label h4 {
    display: none;
}

/* Hide the legacy mailchimp slim horizontal CSS impact */
.site-prefooter #mc_embed_signup_scroll > label {
    margin: 0;
}

/* ---------- Main footer ---------- */
.site-footer {
    background: linear-gradient(135deg, #00549a 0%, #003d72 100%);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 64px;
    margin-top: 0;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    text-decoration: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 48px;
    padding-bottom: 48px;
}

/* Brand column */
.footer-col--brand {
    padding-right: 20px;
}
.footer-brand {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1;
}
.footer-brand span {
    color: #a8d4ff;
    font-weight: 600;
}
.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 22px;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff !important;
    font-size: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover,
.footer-social a:focus {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Columns */
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 18px;
}
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.78);
}
.footer-contact .footer-contact__location {
    padding-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 12px;
}

/* Bottom strip */
.footer-bottom {
    background: rgba(0, 0, 0, 0.18);
    padding: 18px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-ref {
    font-family: monospace;
    opacity: 0.7;
    font-size: 11px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .site-prefooter .prefooter-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        justify-items: center;
    }
    .site-prefooter .prefooter-text {
        max-width: 560px;
    }
    .site-prefooter #mc_embed_signup,
    .site-prefooter #mc_embed_signup_scroll {
        width: 100%;
        max-width: 520px;
    }
    .site-prefooter form {
        margin-left: auto;
        margin-right: auto;
        max-width: 520px;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 8px;
        text-align: center;
    }
    .footer-col--brand .footer-brand {
        display: block;
    }
    .footer-col--brand .footer-tagline {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 580px) {
    .site-footer { padding-top: 48px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom .container {
        justify-content: center;
        text-align: center;
    }
}

/* Override the legacy .bg-light-gray #contacts section h2 sizing
   when that file still loads before ours. */
#contacts.site-prefooter h2 {
    display: none;
}
