/*
 * Footer printed by inc/class-site-footer.php on the pages with their own templates: home, How it works, Programs &
 * Pricing, Amerlink PRO and its pages, Check My Potential, search. The app pages in the Divi shell do not load this
 * file (Amerlink_Genesis_App_Layout::dequeue_home_styles()); the same footer gets its look there from the Divi copies
 * (css/divi/*, style-divi-child.css, style_tymek.css) and site-components.css.
 *
 * Until 28.10.2026 this file only repeated the Divi parent's defaults (bullets, white credits at 25%) and counted on
 * style-divi-child.css / style_tymek.css for the Amerlink look - but this kind of page does not load
 * style-divi-child.css at all, nor style_tymek.css on the home page, so it kept the old footer. It now holds the
 * result of that whole cascade, measured on the Contact page (computed styles of every footer element, 1440-390px):
 * both kinds of pages show the same footer. Breakpoints as in the sources: 981 / 980 / 767 px (Divi), 500 / 420 px
 * (style_tymek.css, whose !important rules are repeated here for the pages that do not load it).
 */

#main-footer {
    background-color: #213661;
    font-family: 'Amerlink Montserrat', 'Montserrat', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

#main-footer,
#main-footer *,
#main-footer *::before,
#main-footer *::after {
    box-sizing: border-box;
}

#main-footer .container {
    display: flex;
    width: 100%;
    max-width: 1360px !important;
    margin: 0 auto;
    padding: 0 4%;
}

/* Widget columns. */
#footer-widgets {
    display: flex;
    flex: 1;
    flex-direction: row;
    max-width: 1360px;
    max-height: 280px;
    margin: 0 auto;
    padding: 6% 0 0;
}

#footer-widgets .footer-widget {
    display: flex;
    flex: 0 1 25%;
    flex-direction: column;
    height: 100%;
    margin: 0 4% 0 0;
    padding: 0;
    border-right: 1px solid rgba(214, 217, 225, .08);
    color: #fff;
    font-size: 14px;
}

#footer-widgets .footer-widget:last-child {
    border: none;
}

#footer-widgets .footer-widget .fwidget {
    margin-bottom: 30px;
}

#footer-widgets .footer-widget .fwidget:last-child {
    margin-bottom: 0 !important;
}

#main-footer .footer-widget h4.title {
    margin: 0 0 8px;
    padding: 0 0 10px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

/* Specificity as in Divi's customizer CSS, so the phone rule "#main-footer .menu" below still wins. */
.footer-widget .fwidget div,
.footer-widget .fwidget ul {
    line-height: 1.4em;
}

#main-footer .footer-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer-widgets .footer-widget li {
    margin: 0 0 .5em;
    padding-left: 0;
    list-style: none;
    font-size: 14px;
}

#footer-widgets .footer-widget li::before {
    content: none;
}

#footer-widgets .footer-widget a,
#footer-widgets .footer-widget li a {
    color: rgba(255, 255, 255, .68);
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
}

#footer-widgets .footer-widget li a:hover,
#footer-widgets .footer-widget li a:focus-visible {
    color: rgba(232, 58, 121, .68) !important;
}

/* "Sign in" / "Register" ([shortcode_show_footer_signin_links]). */
#main-footer .footer-account-container {
    display: flex;
    flex-flow: column;
}

#main-footer .footer-account-container a {
    margin-bottom: 7px;
}

#main-footer .footer-account-container .create-profile-bt {
    max-width: 250px;
    line-height: 1.1 !important;
}

/* "Send a message" (.send-msg-bt.my-button.my-button-1 in a Custom HTML widget). */
#main-footer .footer-widget a.send-msg-bt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 210px;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #f50072;
    border-radius: 8px;
    background-color: #f50072;
    box-shadow: 0 10px 22px rgba(245, 0, 114, .18);
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

#main-footer .footer-widget a.send-msg-bt:hover,
#main-footer .footer-widget a.send-msg-bt:focus-visible {
    border-color: #d90063 !important;
    background-color: #d90063 !important;
    color: #fff !important;
}

#main-footer .footer-widget a.send-msg-bt:focus-visible {
    outline: 3px solid #9cdeff;
    outline-offset: 2px;
}

/* Bottom bar: "©2020 by Amerlink" and the Terms / Privacy links (Divi option custom_footer_credits). */
#footer-bottom {
    padding: 0;
    background-color: #213661;
}

#footer-bottom .container {
    padding: 50px 4% 40px;
}

#footer-info {
    padding-bottom: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    text-align: left;
}

#footer-info a,
#footer-bottom .container a {
    margin-left: 35px;
    color: rgba(255, 255, 255, .68);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .28px;
    line-height: 1.36;
    text-decoration: none;
}

@media (max-width: 980px) {
    #footer-widgets {
        padding: 8% 0;
    }

    #footer-widgets .footer-widget {
        margin: 0 !important;
    }

    /* Divi: ".et_pb_gutters1 #footer-widgets .footer-widget .fwidget" outweighs the 30px from style-divi-child.css. */
    #footer-widgets .footer-widget .fwidget {
        margin-bottom: 0;
    }

    #main-footer .footer-widget h4.title {
        font-size: 14px;
    }

    #footer-info {
        text-align: center;
    }
}

@media (max-width: 767px) {
    #footer-widgets {
        padding: 10% 0;
    }

    #footer-widgets .footer-widget,
    #footer-widgets .footer-widget .fwidget {
        margin-bottom: 0 !important;
    }
}

/* Phones (style_tymek.css): one column with lines between the widgets, centred credits. */
@media (max-width: 500px) {
    #footer-widgets {
        flex-flow: column !important;
        max-height: fit-content !important;
        padding: 1rem 0 0 0 !important;
    }

    /* Two rules, as in style_tymek.css: the lines below need to outweigh "border: none". */
    #footer-widgets .footer-widget {
        height: auto !important;
        border: none !important;
    }

    #main-footer #footer-widgets .footer-widget {
        margin: 0 !important;
        padding: 1rem 0 !important;
    }

    #footer-widgets .footer-widget:not(:nth-child(4)) {
        border-bottom: 1px solid #384a72 !important;
    }

    #main-footer .footer-widget h4.title {
        font-size: 1rem;
    }

    /* Rules for the widget instances (Appearance > Widgets: Explore USA, How it works, Contact menus). */
    #main-footer #nav_menu-3 {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #nav_menu-4 {
        margin: 0 !important;
    }

    #nav_menu-6 {
        padding: 0 0 2rem 0 !important;
    }

    #footer-bottom .container a {
        margin-left: 1rem !important;
    }

    #footer-info {
        width: 100% !important;
        padding: 0;
        font-size: .875rem !important;
        line-height: 200% !important;
    }
}

@media (max-width: 420px) {
    #main-footer .menu {
        line-height: 200%;
    }

    #footer-widgets .footer-widget:last-child {
        border-bottom: none !important;
    }

    .footer-widget .fwidget {
        margin-bottom: 6% !important;
        padding-bottom: 8px !important;
    }

    .footer-widget .fwidget:last-child {
        margin-bottom: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #main-footer .footer-widget a.send-msg-bt {
        transition: none;
    }
}
