/* lg-footer.css - the site-wide footer (Views/Partials/MRFooter.cshtml), on the dashboards' look:
   Poppins, LoanGlass green, white rounded cards and pill buttons.
   Every rule starts with #site-footer.lgf so it beats the theme's footer#site-footer a:not(.btn) rules. */

#site-footer.lgf {
    --lgf-green: #2f9e44; --lgf-green-d: #166534; --lgf-green-l: #ebf8ee; --lgf-green-b: #cfe9d6;
    --lgf-ink: #14181f; --lgf-muted: #5b6472; --lgf-line: #e3e7ec; --lgf-bg: #f5f7f9;
    position: relative;
    margin-top: 32px;
    padding: 0 0 28px;
    /* !important: when someone is signed in, uSkinned's design panel adds its footer-bg-linear/-radial
       class to #site-footer, and the theme's gradient for it would otherwise win. */
    background: var(--lgf-bg) !important;
    border-top: 1px solid var(--lgf-line);
    color: var(--lgf-ink);
    font-family: Poppins, sans-serif;
}
#site-footer.lgf *, #site-footer.lgf *::before, #site-footer.lgf *::after { box-sizing: border-box; }
#site-footer.lgf svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#site-footer.lgf p { margin: 0; }
#site-footer.lgf ul { margin: 0; padding: 0; list-style: none; }
#site-footer.lgf li { margin: 0; }
#site-footer.lgf a:not(.btn) { color: inherit; text-decoration: none; }
#site-footer.lgf a:focus-visible, #site-footer.lgf button:focus-visible, #site-footer.lgf input:focus-visible {
    outline: 3px solid #1a56db; outline-offset: 2px;
}

/* Full width, 20px from each edge, like the header. */
#site-footer.lgf .lgf-wrap { max-width: none; margin: 0; padding: 0 20px; }

/* ---------- breadcrumb (uSkinned's partial, restyled) ---------- */
#site-footer.lgf .lgf-crumbs:empty { display: none; }
#site-footer.lgf .breadcrumb-trail { border-bottom: 1px solid var(--lgf-line); background: #fff; }
#site-footer.lgf .breadcrumb-trail > .container,
#site-footer.lgf .breadcrumb-trail > .container-fluid { max-width: none; padding: 12px 20px; }
#site-footer.lgf .breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; background: none; font-size: 13px; }
#site-footer.lgf .breadcrumb-item, #site-footer.lgf .breadcrumb-item.active { color: var(--lgf-muted); }
#site-footer.lgf .breadcrumb-item a:not(.btn) { color: var(--lgf-green-d); font-weight: 500; }
#site-footer.lgf .breadcrumb-item a:not(.btn):hover { text-decoration: underline; }

/* ---------- green box: motto (left half) + rate alerts (right half) ---------- */
#site-footer.lgf .lgf-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
    margin: 36px 0 0; padding: 32px 36px; border-radius: 24px;
    background:
        radial-gradient(circle at 92% 10%, rgba(47,158,68,.26), transparent 45%),
        radial-gradient(circle at 6% 95%, rgba(26,86,219,.12), transparent 45%),
        linear-gradient(160deg, #f1faf3 0%, #e3f4e8 100%);
    border: 1px solid var(--lgf-green-b);
}
#site-footer.lgf .lgf-hero-solo { grid-template-columns: 1fr; }
#site-footer.lgf .lgf-cta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    padding-left: 40px; border-left: 1px solid var(--lgf-green-b);
}
#site-footer.lgf .lgf-cta-text { display: flex; align-items: center; gap: 16px; min-width: 0; }
#site-footer.lgf .lgf-cta-ico {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 14px; background: var(--lgf-green); color: #fff;
    box-shadow: 0 8px 20px rgba(22,101,52,.25);
}
#site-footer.lgf .lgf-cta-ico svg { width: 24px; height: 24px; }
#site-footer.lgf .lgf-cta-h { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px; }
#site-footer.lgf .lgf-cta-h em {
    font-style: normal; color: var(--lgf-green-d);
    background: linear-gradient(transparent 62%, #cdeed5 62%, #cdeed5 92%, transparent 92%);
}
#site-footer.lgf .lgf-cta-sub { margin-top: 4px; font-size: 15px; color: var(--lgf-muted); }
#site-footer.lgf .lgf-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }

#site-footer.lgf a.lgf-btn {
    display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
    font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
#site-footer.lgf a.lgf-btn-primary { background: var(--lgf-green); color: #fff; border: 1px solid var(--lgf-green); }
#site-footer.lgf a.lgf-btn-primary:hover { background: var(--lgf-green-d); border-color: var(--lgf-green-d); color: #fff; transform: translateY(-1px); }
#site-footer.lgf a.lgf-btn-white { background: #fff; color: var(--lgf-ink); border: 1px solid #d6dde4; }
#site-footer.lgf a.lgf-btn-white:hover { border-color: var(--lgf-green); color: var(--lgf-green-d); }

/* ---------- motto ---------- */
#site-footer.lgf .lgf-motto {
    margin: 0;
    font: 600 clamp(30px, 3.4vw, 56px)/1.1 Poppins, sans-serif; letter-spacing: -.02em; color: var(--lgf-ink);
}
/* "transparency" drawn as glass: see-through outlined letters with a faint green tint, and a band of
   light that sweeps across now and then. Browsers without background-clip:text keep plain green text. */
#site-footer.lgf .lgf-motto em { font-style: normal; color: var(--lgf-green-d); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    #site-footer.lgf .lgf-motto em {
        color: transparent;
        -webkit-text-stroke: max(1.5px, .03em) var(--lgf-green-d);
        background-image: linear-gradient(110deg,
            rgba(47,158,68,.12) 0%, rgba(47,158,68,.12) 40%,
            rgba(47,158,68,.55) 50%,
            rgba(47,158,68,.12) 60%, rgba(47,158,68,.12) 100%);
        background-size: 300% 100%; background-position: 100% 0;
        -webkit-background-clip: text; background-clip: text;
        animation: lgf-glint 5s ease-in-out 1s infinite;
    }
}
@keyframes lgf-glint {
    0% { background-position: 100% 0; }
    45%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
    #site-footer.lgf .lgf-motto em { animation: none; }
}

/* ---------- brand + link columns ---------- */
#site-footer.lgf .lgf-main {
    display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 48px;
    padding: 36px 0 36px;
}
#site-footer.lgf .lgf-tag { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--lgf-muted); }

#site-footer.lgf .lgf-search {
    display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 5px 0 14px; margin-bottom: 18px;
    background: #fff; border: 1px solid #d6dde4; border-radius: 999px; transition: border-color .15s, box-shadow .15s;
}
#site-footer.lgf .lgf-search:focus-within { border-color: var(--lgf-green); box-shadow: 0 0 0 3px rgba(47,158,68,.15); }
#site-footer.lgf .lgf-search svg { flex: none; width: 18px; height: 18px; color: var(--lgf-muted); }
#site-footer.lgf .lgf-search input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; box-shadow: none;
    font: 400 14px Poppins, sans-serif; color: var(--lgf-ink); outline: none;
}
#site-footer.lgf .lgf-search input::-webkit-search-cancel-button { display: none; }
#site-footer.lgf .lgf-search button {
    flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--lgf-green); color: #fff; font: 600 13px Poppins, sans-serif; transition: background .15s;
}
#site-footer.lgf .lgf-search button:hover { background: var(--lgf-green-d); }

#site-footer.lgf .lgf-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 14px; }
#site-footer.lgf .lgf-contact li { display: flex; align-items: center; gap: 10px; }
#site-footer.lgf .lgf-contact svg { flex: none; width: 17px; height: 17px; color: var(--lgf-green); }
#site-footer.lgf .lgf-contact a:not(.btn) { font-weight: 500; }
#site-footer.lgf .lgf-contact a:not(.btn):hover { color: var(--lgf-green-d); text-decoration: underline; }

#site-footer.lgf .lgf-social { display: flex; flex-wrap: wrap; gap: 8px; }
#site-footer.lgf .lgf-social a:not(.btn) {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; background: #fff; border: 1px solid #d6dde4;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
#site-footer.lgf .lgf-social a:not(.btn):hover { border-color: var(--lgf-green); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,24,31,.08); }
#site-footer.lgf .lgf-social img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
#site-footer.lgf .lgf-social a:not(.btn) { color: var(--lgf-ink); }
#site-footer.lgf .lgf-social a:not(.btn):hover { color: var(--lgf-green-d); }
#site-footer.lgf .lgf-social svg { width: 18px; height: 18px; stroke-width: 1.8; }
#site-footer.lgf .lgf-social svg .f { fill: currentColor; stroke: none; }

#site-footer.lgf .lgf-cols {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 30px 24px; align-content: start;
}
#site-footer.lgf .lgf-h {
    margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--lgf-green-d);
}
#site-footer.lgf .lgf-h a:not(.btn):hover { text-decoration: underline; }
#site-footer.lgf .lgf-col ul { display: flex; flex-direction: column; gap: 8px; }
#site-footer.lgf .lgf-col li a:not(.btn) {
    display: inline-block; font-size: 14px; line-height: 1.4; color: var(--lgf-ink);
    transition: color .15s, transform .15s;
}
#site-footer.lgf .lgf-col li a:not(.btn):hover { color: var(--lgf-green-d); transform: translateX(2px); }

/* ---------- copyright + legal links ---------- */
#site-footer.lgf .lgf-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
    padding-top: 20px; border-top: 1px solid var(--lgf-line); font-size: 13px; color: var(--lgf-muted);
}
#site-footer.lgf .lgf-legal ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
#site-footer.lgf .lgf-legal a:not(.btn) { color: var(--lgf-muted); font-weight: 500; }
#site-footer.lgf .lgf-legal a:not(.btn):hover { color: var(--lgf-green-d); text-decoration: underline; }

/* ---------- back to top (uSkinned's button, in our green instead of the old theme green) ---------- */
#site-footer.lgf .usn_back-to-top .btn.btn-back-to-top {
    background: var(--lgf-green); border: 1px solid var(--lgf-green); border-radius: 999px; color: #fff;
    box-shadow: 0 8px 20px rgba(22,101,52,.25); transition: background .15s, transform .15s;
}
#site-footer.lgf .usn_back-to-top .btn.btn-back-to-top:hover,
#site-footer.lgf .usn_back-to-top .btn.btn-back-to-top:focus { background: var(--lgf-green-d); border-color: var(--lgf-green-d); color: #fff; }
#site-footer.lgf .usn_back-to-top .btn.btn-back-to-top .icon { color: #fff; }
@media (max-width: 991px) {
    /* On small screens uSkinned makes it a full-width bar under the footer: make it a centered pill. */
    #site-footer.lgf .usn_back-to-top { display: flex; justify-content: center; padding: 24px 0 8px; }
    #site-footer.lgf .usn_back-to-top .btn.btn-back-to-top { width: 56px; height: 44px; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
    /* The green box stacks: motto on top, rate alerts under a divider. */
    #site-footer.lgf .lgf-hero { grid-template-columns: 1fr; gap: 24px; }
    #site-footer.lgf .lgf-cta { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--lgf-green-b); }
    #site-footer.lgf .lgf-main { grid-template-columns: 1fr; gap: 36px; }
    #site-footer.lgf .lgf-brand { max-width: 520px; }
}
@media (max-width: 600px) {
    #site-footer.lgf { margin-top: 24px; }
    #site-footer.lgf .lgf-wrap { padding: 0 16px; }
    #site-footer.lgf .lgf-hero { margin-top: 24px; padding: 22px 20px; border-radius: 20px; gap: 20px; }
    #site-footer.lgf .lgf-cta { padding-top: 20px; }
    #site-footer.lgf .lgf-cta-h { font-size: 19px; }
    #site-footer.lgf .lgf-cta-ico { width: 42px; height: 42px; border-radius: 12px; }
    #site-footer.lgf .lgf-cta-btns, #site-footer.lgf a.lgf-btn { width: 100%; }
    #site-footer.lgf a.lgf-btn { justify-content: center; }
    #site-footer.lgf .lgf-main { padding: 30px 0 28px; }
    #site-footer.lgf .lgf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
    #site-footer.lgf .lgf-bottom { flex-direction: column; align-items: flex-start; }
}
