/*==========================================================
        SHARED FOOTER CSS (Source of Truth from index.html)
==========================================================*/

.footer {
    background: #071B3B;
    color: #fff;
    padding: 60px 0 0;
    overflow: hidden;
}

.footer-top {
    padding-bottom: 15px;
}

/* LOGO */
.footer-logo {
    width: 220px;
    height: auto;
    margin-bottom: 22px;
}

.footer-about {
    color: #C8D0DD;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* HEADINGS */
.footer-heading {
    position: relative;
    color: #fff;
    font-family: var(--heading-font);
    font-size: 22px;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

/* LINKS */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
    color: #D7DCE6;
    transition: .3s;
}

.footer-links a {
    color: #D7DCE6;
    text-decoration: none;
    transition: .35s;
}

.footer-links li:hover {
    transform: translateX(6px);
}

.footer-links a:hover {
    color: var(--secondary);
}

/* CONTACT */
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    color: var(--secondary);
    font-size: 18px;
    min-width: 20px;
    margin-top: 4px;
}

.footer-contact span {
    color: #D7DCE6;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

/* SOCIAL */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.18);
    transition: .35s;
}

.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

/* FEATURES STRIP */
.footer-features {
    margin-top: 0px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
}

.footer-feature i {
    color: var(--secondary);
    font-size: 18px;
}

/* BOTTOM */
.footer-bottom {
    padding: 28px 0 18px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 18px;
}

.footer-copy {
    color: #C8D0DD;
    font-size: 14px;
}

.footer-menu {
    display: flex;
    gap: 24px;
}

.footer-menu a {
    color: #C8D0DD;
    text-decoration: none;
    transition: .35s;
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--secondary);
}

.footer-keywords {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 18px;
    text-align: center;
    color: #9EA8BA;
    font-size: 12px;
    line-height: 1.9;
}

.footer-keywords span {
    color: var(--secondary);
    margin: 0 12px;
}

/* HOVER EFFECTS */
.footer-feature,
.footer-links li,
.footer-social a {
    transition: .35s;
}

.footer-feature:hover {
    transform: translateY(-3px);
}

.footer-contact li:hover i {
    transform: scale(1.15);
}

.footer-contact i {
    transition: .35s;
}

/*==========================================================
        RESPONSIVE FOOTER CSS
==========================================================*/

/* TABLET (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer {
        padding: 50px 0 0;
        text-align: left;
    }

    .footer-top {
        padding-bottom: 20px;
    }

    /* Display footer sections in 2 columns with equal spacing */
    .footer-top .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        margin-bottom: 35px;
    }

    .footer-logo {
        margin: 0 0 20px 0;
    }

    .footer-about {
        max-width: 100%;
        margin: 0 0 24px 0;
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    /* All text left-aligned */
    .footer-heading {
        text-align: left;
        margin-bottom: 22px;
    }

    .footer-heading::after {
        left: 0;
        transform: none;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links li {
        text-align: left;
    }

    .footer-contact {
        max-width: 100%;
        margin: 0;
        text-align: left;
    }

    .footer-contact li {
        justify-content: flex-start;
        text-align: left;
    }

    /* Features Strip: 3 columns of 2 badges each */
    .footer-features {
        padding: 18px 0;
    }

    .footer-features .row > [class*="col-"] {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
        margin-bottom: 12px;
    }

    .footer-feature {
        justify-content: flex-start;
        text-align: left;
    }

    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .footer-copy {
        text-align: left;
    }

    .footer-menu {
        justify-content: flex-end;
    }

    .footer-keywords {
        text-align: left;
    }
}

/* MOBILE (<768px) */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 0;
        text-align: left;
    }

    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-top {
        padding-bottom: 0;
    }

    .footer-top .row {
        margin-left: 0;
        margin-right: 0;
        display: flex;
        flex-wrap: wrap;
    }

    /* 1. Logo, Description & Social Icons Column (Full Width) */
    .footer-top .row > div:nth-child(1) {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0;
    }

    .footer-logo {
        width: 175px;
        max-width: 100%;
        margin: 0 0 18px 0;
    }

    .footer-about {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
        margin: 0 0 24px 0;
    }

    /* Social Icons: centered in a single row */
    .footer-social {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin: 0;
        width: 100%;
        padding: 0 10px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    /* 4. Two-Column Section: Products (nth-child(2)) & Company (nth-child(4)) */
    .footer-top .row > div:nth-child(2) {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        padding-left: 0;
        padding-right: 10px;
        margin-bottom: 28px;
    }

    /* Hide Industries section completely on mobile */
    .footer-top .row > div:nth-child(3) {
        display: none !important;
    }

    .footer-top .row > div:nth-child(4) {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        padding-left: 10px;
        padding-right: 0;
        margin-bottom: 28px;
    }

    /* Headings left-aligned */
    .footer-heading {
        font-size: 18px;
        margin-bottom: 18px;
        text-align: left;
        padding-bottom: 8px;
    }

    .footer-heading::after {
        left: 0;
        transform: none;
        width: 40px;
    }

    /* List items left-aligned */
    .footer-links {
        text-align: left;
        margin: 0;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 10px;
        text-align: left;
    }

    .footer-links li:last-child {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 14px;
        word-break: break-word;
    }

    /* 5. Contact Section (nth-child(5)) - Full Width below two-column layout */
    .footer-top .row > div:nth-child(5) {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 28px;
    }

    .footer-contact {
        max-width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact li {
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 14px;
        margin-bottom: 16px;
    }

    .footer-contact li:last-child {
        margin-bottom: 0;
    }

    .footer-contact i {
        font-size: 18px;
        margin-top: 3px;
        flex-shrink: 0;
        min-width: 20px;
    }

    .footer-contact span {
        flex: 1;
        min-width: 0;
        text-align: left;
        font-size: 14px;
        line-height: 1.7;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* 6. Certification Badges / Features Strip */
    .footer-features {
        margin-top: 0;
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,.10);
        border-bottom: 1px solid rgba(255,255,255,.10);
    }

    .footer-features .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
        row-gap: 14px;
    }

    .footer-features .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
        padding: 0 6px;
        margin: 0;
    }

    .footer-feature {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
        font-size: 13px;
        font-weight: 500;
        padding: 6px 0;
    }

    .footer-feature i {
        font-size: 17px;
        flex-shrink: 0;
    }

    /* 7. Footer Bottom / Copyright */
    .footer-bottom {
        padding: 24px 0 20px;
    }

    .footer-bottom-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .footer-copy {
        font-size: 13px;
        text-align: center;
        max-width: 100%;
        margin: 0;
    }

    .footer-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .footer-menu a {
        font-size: 13px;
        text-align: center;
    }

    .footer-keywords {
        font-size: 12px;
        line-height: 1.8;
        padding-top: 16px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .footer-keywords span {
        display: inline-block;
        margin: 0 6px;
    }
}

