/* =========================================================
   ToolZen Hub
   Global Footer
   FINAL VERSION
========================================================= */


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    box-sizing: border-box;

    background: #071c2b;

    color: #ffffff;
}


/* =========================================================
   CATEGORIES PAGE
   Hide Feature Strip
========================================================= */

body.categories-page-body .footer__features {
    display: none;
}


/* =========================================================
   Footer Features
========================================================= */

.footer__features {
    width: 100%;

    box-sizing: border-box;

    background: #f7fbf9;

    border-top: 1px solid #e7eeeb;
    border-bottom: 1px solid #e7eeeb;
}


.footer__features-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 20px;

    padding-top: 16px;
    padding-bottom: 16px;
}


/* =========================================================
   Feature
========================================================= */

.footer__feature {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.footer__feature-icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #e6f7ee;

    color: #0b9f58;

    font-size: 16px;
}


.footer__feature-content {
    min-width: 0;
}


.footer__feature-title {
    margin: 0 0 2px;

    color: #101828;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.3;
}


.footer__feature-text {
    margin: 0;

    color: #667085;

    font-size: 9px;

    line-height: 1.3;
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.footer__main {
    width: 100%;

    box-sizing: border-box;

    background: #071c2b;
}


.footer__main-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        0.8fr
        1fr
        1.2fr
        1.5fr;

    gap: 35px;

    padding-top: 30px;
    padding-bottom: 28px;
}


/* =========================================================
   FOOTER CONTAINER
========================================================= */

.footer .container {
    width: calc(100% - 64px);

    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    box-sizing: border-box;
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.footer__brand {
    min-width: 0;
}


.footer__logo {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 800;

    line-height: 1;

    text-decoration: none;
}


.footer__logo-mark {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0b9f58;

    color: #ffffff;

    font-size: 15px;
}


.footer__logo-highlight {
    color: #20b968;
}


.footer__description {
    max-width: 230px;

    margin: 0 0 14px;

    color: #aab8c3;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.footer__social {
    display: flex;

    align-items: center;

    gap: 7px;
}


.footer__social-link {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    color: #c7d2da;

    font-size: 11px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.footer__social-link:hover {
    background: #0b9f58;

    border-color: #0b9f58;

    color: #ffffff;
}


/* =========================================================
   FOOTER COLUMNS
========================================================= */

.footer__column {
    min-width: 0;
}


.footer__column-title {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.3;
}


.footer__links {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.footer__links a {
    color: #aab8c3;

    font-size: 10px;

    line-height: 1.4;

    text-decoration: none;

    transition: color 0.2s ease;
}


.footer__links a:hover {
    color: #35c878;
}


/* =========================================================
   NEWSLETTER
========================================================= */

.footer__newsletter {
    min-width: 0;
}


.footer__newsletter-text {
    max-width: 240px;

    margin: 0 0 10px;

    color: #aab8c3;

    font-size: 10px;

    line-height: 1.45;
}


.footer__newsletter-form {
    width: 100%;

    max-width: 280px;

    height: 36px;

    display: flex;

    align-items: stretch;

    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 6px;

    background: rgba(255, 255, 255, 0.05);
}


.footer__newsletter-input {
    flex: 1;

    min-width: 0;

    width: 100%;

    padding: 0 10px;

    border: 0;

    outline: 0;

    background: transparent;

    color: #ffffff;

    font-family: inherit;

    font-size: 10px;
}


.footer__newsletter-input::placeholder {
    color: #7f919f;
}


.footer__newsletter-button {
    flex: 0 0 auto;

    padding: 0 12px;

    border: 0;

    background: #0b9f58;

    color: #ffffff;

    font-family: inherit;

    font-size: 9px;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}


.footer__newsletter-button:hover {
    background: #087d46;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}


.footer__bottom-inner {
    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer__copyright {
    margin: 0;

    color: #7f919f;

    font-size: 9px;

    line-height: 1.4;
}


.footer__legal {
    display: flex;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;
}


.footer__legal a {
    color: #7f919f;

    font-size: 9px;

    text-decoration: none;

    transition: color 0.2s ease;
}


.footer__legal a:hover {
    color: #ffffff;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .footer__main-grid {
        gap: 45px;

        padding-top: 34px;
        padding-bottom: 30px;
    }


    .footer__features-grid {
        padding-top: 18px;
        padding-bottom: 18px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .footer .container {
        width: calc(100% - 32px);
    }


    .footer__features-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        row-gap: 16px;
    }


    .footer__main-grid {
        grid-template-columns:
            1.2fr
            1fr
            1fr;

        row-gap: 30px;
    }


    .footer__brand {
        grid-column: span 3;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 700px) {

    .footer .container {
        width: calc(100% - 24px);
    }


    .footer__features-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    .footer__main-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 24px;
    }


    .footer__brand {
        grid-column: span 2;
    }


    .footer__newsletter {
        grid-column: span 2;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .footer .container {
        width: calc(100% - 24px);
    }


    .footer__features-grid {
        grid-template-columns: 1fr;

        gap: 12px;

        padding-top: 15px;
        padding-bottom: 15px;
    }


    .footer__feature {
        padding: 2px 0;
    }


    .footer__main-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 26px 20px;

        padding-top: 24px;
        padding-bottom: 20px;
    }


    .footer__brand {
        grid-column: span 2;
    }


    .footer__newsletter {
        grid-column: span 2;
    }


    .footer__bottom-inner {
        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;

        padding-top: 12px;
        padding-bottom: 12px;
    }


    .footer__legal {
        gap: 10px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .footer .container {
        width: calc(100% - 20px);
    }


    .footer__main-grid {
        gap: 22px 16px;
    }


    .footer__logo {
        font-size: 16px;
    }


    .footer__description {
        font-size: 9px;
    }

}


/* =========================================================
   FINAL FOOTER HEIGHT FIX
========================================================= */

body.categories-page-body #footer,
body.categories-page-body #footer .footer,
body.categories-page-body #footer .footer__main,
body.categories-page-body #footer .footer__bottom {
    height: auto !important;

    min-height: 0 !important;

    margin-bottom: 0 !important;
}
