/* ============================================================================
   Torrington footer — ported from the D7 torrington_advice theme
   (css/global.css, Footer Styles). REVIEW COPY — not yet wired in.

   Activate: add css/_torrington-footer.css under global-styling > css >
   component in tsb_advice.libraries.yml. The pasted footer block lands in
   Barrio's Footer region; its top wrapper is .page-footer.

   Port adjustments:
   - Omega `.zone-footer-wrapper` retargeted to `.page-footer` (the pasted
     block's wrapper; the Omega zone does not exist in D11).
   - Bare Bootstrap-utility overrides (.col-12, .mt-5/.my-5, .list-inline,
     .text-md-left/right) SCOPED under .page-footer so they don't clobber those
     utilities elsewhere on the site.
   - `//` line-comment converted to /* */.
   - background url(../images/footer-back.svg) + #007D68 teal — image present
     in this theme's images/.

   VERIFY LIVE: the teal .page-footer background must win over Bootstrap's
   `.bg-dark` on the same element (both !important — comes down to load order).
   ============================================================================ */

/* Footer Styles ------------------------------------------------------------ */
@media screen and (max-width : 440px) {
    .page-footer .social-bar.bg-secondary .container { height: 150px; }
}    
@media screen and (min-width : 441px) {
    .page-footer .social-bar.bg-secondary .container { height: 120px; }
}    
@media screen and (max-width : 992px) {
    .page-footer .text-md-left { width: 100%; float: left; padding: 0; margin: 0; }
    .page-footer .text-md-right { width: 100%; float: left; padding: 0; margin: 0; }
    .page-footer .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .page-footer .d-flex {
        display: block !important;
    }
    .page-footer .social-bar.bg-secondary .container { max-width: 1600px; margin-left: auto; margin-right: auto; padding-bottom: 1rem !important; padding-top: 1.5rem !important;}
    ul.social-icons { text-align: center; margin-top: -5px; }
}
@media screen and (min-width : 993px) {
    .page-footer .text-md-left { width: 48%; float: left; padding: 0; margin: 0; }
    .page-footer .text-md-right { width: 48%; float: right; padding: 0; margin: 0; }
    .page-footer .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .page-footer .d-flex {
        display: flex !important;
    }
    .page-footer .social-bar.bg-secondary .container { max-width: 1600px; margin-left: auto; margin-right: auto; height: auto; min-height: 65px; padding-bottom: 0rem !important; padding-top: 0rem !important;}
    ul.social-icons { float: right; margin-top: 0; }
}
.page-footer .container-12 { width: 100%; font-family: 'Open Sans', sans-serif; }
.page-footer .container-12 .grid-12 { width: 100%; margin: 0; }
.page-footer {
    color: #fff;
    background: transparent !important;
}
.social-bar {
    background: #2c9986;
    background: linear-gradient(315deg, #2c9986 0%, #95ad60 100%);
    height: auto;
}
.social-bar .pb-4, .social-bar .py-4 {
     padding-top: 1rem !important; padding-bottom: 0rem !important;
     padding-left: 45px; padding-right: 45px; 
}
ul.social-icons li { display: inline-flex; font-size: 50px; padding-right: 5px; height: 50px; }
ul.social-icons li a { color: #fff; }
ul.social-icons li a br { display: none; }
h6.footer-routing {
    font-family: 'Open Sans', sans-serif; 
    font-weight: 500;
    font-size: 1.25rem;
    text-transform: uppercase;
    display: block;
    padding-top: 0px; 
}
.footer-routing span {
    margin: 0 10px;
}
.social-bar .container .align-items-center div { padding: 0; margin: 0; }
.footer-links { width: 100%; padding: 0px; }
.page-footer .mt-5, .page-footer .my-5 {
    margin-top: 0rem !important;
}
.footer-links h6 {
    font-family: caecilia, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.bg-secondary .col-lg-5.text-center { text-align: left !important; margin-top: -20px !important; }
.page-footer ul.menu li { padding-bottom: 10px; font-size: 16px; font-weight: 400; margin-left: 0px; }
.page-footer ul.menu li a {
    line-height: 1;
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color: #fff;
    text-decoration: none; 
    word-wrap: break-word;
}
.footer-logo { width: 100%; padding-top: 50px; padding-bottom: 50px; text-align: center !important; }
.footer-links .col-md-3 { float: left; width: 24.25%; }
.footer-copyright {
    text-align: center;
    font-size: .8rem;
}
.footer-logo .logo {
    width: 96%;
    max-width: 250px;
    margin-bottom: 16px;
}
.page-footer .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}
.fdic-icon {
    width: 20px;
    fill: #fff;
    margin: 0 1px;
    position: relative;
    top: -2px;
}
.footer-copyright ul {
    margin-bottom: 9px;
}
.page-footer .list-inline {
    padding-left: 0;
    list-style: none;
}
#menu-compliance-footer-links li {
    display: inline-block;
    padding-left: 15px;
    padding-right: 15px; 
}
#menu-compliance-footer-links li a {
    font-family: open-sans, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: .8rem;
    color: #fff;
    text-decoration: none; }

/* ----------------------------------------------------------------------------
   Barrio footer region wrapper. The pasted .page-footer lands inside Barrio's
   .site-footer, which carries its own navy (#002D72) background + padding that
   framed the teal footer with a blue border. Neutralize the wrapper so the
   teal footer fills edge to edge, matching the D7 reference. */
.site-footer { background: transparent; padding: 0; }
.site-footer .container-fluid { max-width: none; padding-left: 0; padding-right: 0; }

/* The Barrio color scheme sets .site-footer background with !important and the
   Bootstrap row wrappers inset the content. Override with matching weight: make
   the region wrapper teal (so any residual inset blends) and flatten the row
   wrappers so the teal .page-footer spans full width. */
.site-footer { background: url(../images/footer-back.svg) no-repeat 0 0 / cover #007D68 !important; padding: 0 !important; }
.site-footer > .container-fluid,
.site-footer__top,
.site-footer .region-footer-first { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.site-footer .region-footer-first > .block,
.site-footer .region-footer-first .content,
.site-footer .region-footer-first .field__item { margin: 0; padding: 0; }

/* ============================================================================
   Mobile footer responsiveness (≤992px): the ported D7 footer left-aligned the
   stacked content and let the social icons wrap to a 2nd row. Center everything
   to match the main site's mobile footer — routing line, one row of social
   icons, logo, copyright, and the compliance links. */
@media screen and (max-width: 992px) {
    /* let the social bar size to its (now taller, stacked) content */
    .page-footer .social-bar.bg-secondary .container { height: auto !important; min-height: 0 !important; }
    .page-footer .social-bar .py-4 { padding-left: 15px !important; padding-right: 15px !important; }
    /* center the routing line (D7 forced it left) */
    .page-footer .social-bar .col-lg-5.text-center { text-align: center !important; margin-top: 0 !important; }
    .page-footer .social-bar .text-md-left,
    .page-footer .social-bar .text-md-right { float: none !important; width: 100% !important; text-align: center !important; }
    /* social icons: centered, one row, slightly smaller so all four fit */
    .page-footer ul.social-icons { float: none !important; text-align: center !important; margin: 10px 0 0 0 !important; }
    .page-footer ul.social-icons li { font-size: 40px !important; height: auto !important; padding: 0 8px !important; }
    /* logo + copyright centered; logo image renders as a block, so auto-margin it */
    .page-footer .footer-logo { text-align: center !important; }
    .page-footer .footer-copyright { text-align: center !important; }
    .page-footer .footer-logo .logo { display: block !important; width: auto !important; max-width: 250px !important; margin-left: auto !important; margin-right: auto !important; }
    /* compliance links: keep them on one row at typical phone widths */
    .page-footer #menu-compliance-footer-links li { padding-left: 5px !important; padding-right: 5px !important; }
    .page-footer #menu-compliance-footer-links li a { font-size: .72rem !important; }
}
