.ngis-footer {
    --footer-navy: #082a4d;
    --footer-deep: #041a31;
    --footer-gold: #d5a948;
    --footer-green: #78b72a;
    color: rgba(255, 255, 255, .74);
    background: var(--footer-deep);
}
/* The legacy base stylesheet reserves space for an older fixed footer. */
body.fixed { margin-bottom: 0; }
.ngis-footer-main { padding: 4.75rem 0 2rem; background: radial-gradient(circle at 85% 0, rgba(213, 169, 72, .14), transparent 28rem), var(--footer-navy); }
.ngis-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: 2.5rem; }
.ngis-footer-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.ngis-footer-brand:hover, .ngis-footer-brand:focus { color: #fff; text-decoration: none; }
.ngis-footer-brand-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--footer-gold); border-radius: .75rem; color: var(--footer-gold); font: 700 1.45rem/1 Georgia, serif; }
.ngis-footer-logo-image { display: block; width: 2.75rem; height: 2.75rem; padding: .2rem; object-fit: contain; border: 1px solid var(--footer-gold); border-radius: .75rem; }
.ngis-footer-brand-copy { display: grid; gap: .15rem; }
.ngis-footer-brand-copy strong { font: 700 1.65rem/1 Georgia, serif; letter-spacing: .12em; }
.ngis-footer-brand-copy small { color: rgba(255, 255, 255, .55); font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }
.ngis-footer-lead { max-width: 22rem; margin: 1.5rem 0 1.75rem; line-height: 1.8; }
.ngis-footer-socials { display: flex; gap: .6rem; }
.ngis-footer-socials a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; transition: .2s ease; }
.ngis-footer-socials a:hover, .ngis-footer-socials a:focus { border-color: var(--footer-gold); color: var(--footer-gold); transform: translateY(-2px); }
.ngis-footer-column h2, .ngis-footer-contact h2 { margin: .25rem 0 1.2rem; color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ngis-footer-column a { display: block; width: fit-content; margin: 0 0 .85rem; color: rgba(255, 255, 255, .68); font-size: .94rem; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.ngis-footer-column a:hover, .ngis-footer-column a:focus { color: var(--footer-gold); transform: translateX(3px); }
.ngis-footer-kicker { color: var(--footer-gold); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.ngis-footer-contact h2 { margin-top: .7rem; margin-bottom: .7rem; font: 600 clamp(1.45rem, 2.4vw, 2rem)/1.15 Georgia, serif; letter-spacing: 0; text-transform: none; }
.ngis-footer-contact p { max-width: 19rem; margin-bottom: 1.25rem; line-height: 1.7; }
.ngis-footer-contact-link { display: block; margin: .65rem 0; color: #fff; font-size: .92rem; text-decoration: none; }
.ngis-footer-contact-link:hover, .ngis-footer-contact-link:focus { color: var(--footer-gold); text-decoration: none; }
.ngis-footer-contact-link i { width: 1.35rem; color: var(--footer-gold); }
.ngis-footer-location { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .83rem; }
.ngis-footer-location > i { color: var(--footer-gold); }
.ngis-footer-status { margin-left: auto; color: rgba(255, 255, 255, .6); }
.ngis-footer-status i { margin-right: .35rem; color: var(--footer-green); font-size: .45rem; vertical-align: middle; }
.ngis-footer-bottom { background: rgba(0, 0, 0, .2); }
.ngis-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; font-size: .75rem; }
.ngis-footer-bottom b { margin: 0 .45rem; color: var(--footer-gold); }
.ngis-back-to-top { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; }
.ngis-back-to-top:hover, .ngis-back-to-top:focus { color: var(--footer-gold); text-decoration: none; }

/* Floating back-to-top control; visibility is managed after the user scrolls. */
.ngis-back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(213, 169, 72, .65);
    border-radius: 50%;
    background: rgba(4, 26, 49, .94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, color .2s ease;
    font-size: 0;
}
.ngis-back-to-top i { font-size: 1rem; }
.ngis-back-to-top svg { width: 1rem; height: 1rem; font-size: 1rem; }
.ngis-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ngis-back-to-top:hover, .ngis-back-to-top:focus-visible { color: var(--footer-gold); background: var(--footer-navy); }
.ngis-footer-bottom-inner::after { content: none; }
.ngis-footer-legal-links { display: inline-flex; align-items: center; gap: .8rem; white-space: nowrap; }
.ngis-footer-legal-links a, .ngis-footer-powered { color: rgba(255, 255, 255, .58); font-size: .72rem; text-decoration: none; }
.ngis-footer-legal-links a:hover, .ngis-footer-legal-links a:focus { color: var(--footer-gold); }
.ngis-footer-powered { white-space: nowrap; }
@media (max-width: 991.98px) {
    .ngis-footer-grid { grid-template-columns: 1.25fr 1fr 1fr; }
    .ngis-footer-intro { grid-column: 1 / -1; }
    .ngis-footer-lead { max-width: 34rem; }
}
@media (max-width: 575.98px) {
    .ngis-footer-main { padding: 3.5rem 0 1.5rem; }
    .ngis-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
    .ngis-footer-intro, .ngis-footer-contact { grid-column: 1 / -1; }
    .ngis-footer-location { align-items: flex-start; margin-top: 2.5rem; }
    .ngis-footer-status { width: 100%; margin-left: 1.7rem; }
    .ngis-footer-bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 1.25rem 15px; }
    .ngis-back-to-top { margin-top: 0; }
    .ngis-footer-legal-links { gap: .6rem; white-space: normal; }
    .ngis-footer-powered { white-space: normal; }
}
