/* Scoped homepage (v2) footer styles for legacy (v1) Laravel layouts.
   All rules are limited to footer.footer so existing v1 page CSS is not affected.
   v1 .mt-4/.mb-4 etc. are percentage utilities with !important; these overrides
   restore Bootstrap 5 rem spacing inside the homepage footer only. */

footer.footer {
    background: #000;
    color: #fff;
    font-family: "Source Sans Pro", "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

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

footer.footer p {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 1rem;
}

footer.footer ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

footer.footer a {
    color: #cfcccc;
    text-decoration: none;
}

footer.footer a:hover,
footer.footer a:focus {
    color: #FFD729;
    text-decoration: none;
}

footer.footer small {
    font-size: 80%;
}

/* Bootstrap 5-like container, overriding the narrower v1 .container widths */
footer.footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-left: auto;
    margin-right: auto;
}

footer.footer .container::after {
    content: none;
    display: none;
}

@media (min-width: 576px) {
    footer.footer .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    footer.footer .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    footer.footer .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    footer.footer .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    footer.footer .container {
        max-width: 1320px;
    }
}

/* Flex row — v1 .row is a float/clearfix grid */
footer.footer .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

footer.footer .row::after {
    content: none;
    display: none;
}

footer.footer .col-md-3 {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    float: none;
}

@media (min-width: 768px) {
    footer.footer .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
        float: none;
    }
}

/* Spacing — must beat v1 percentage !important utilities */
footer.footer .pt-5 { padding-top: 3rem !important; }
footer.footer .pb-4 { padding-bottom: 1.5rem !important; }
footer.footer .pt-3 { padding-top: 1rem !important; }
footer.footer .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
footer.footer .py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
footer.footer .mb-4 { margin-bottom: 1.5rem !important; }
footer.footer .mb-3 { margin-bottom: 1rem !important; }
footer.footer .mb-2 { margin-bottom: 0.5rem !important; }
footer.footer .mb-0 { margin-bottom: 0 !important; }
footer.footer .mt-4 { margin-top: 1.5rem !important; }
footer.footer .mt-3 { margin-top: 1rem !important; }
footer.footer .me-1 { margin-right: 0.25rem !important; }

footer.footer .d-flex { display: flex !important; }
footer.footer .d-inline-block { display: inline-block !important; }
footer.footer .justify-content-between { justify-content: space-between !important; }
footer.footer .align-items-center { align-items: center !important; }
footer.footer .gap-3 { gap: 1rem !important; }
footer.footer .fs-5 { font-size: 1.25rem !important; }
footer.footer .text-white { color: #fff !important; }
footer.footer .text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
footer.footer .text-uppercase { text-transform: uppercase !important; }
footer.footer .text-decoration-none { text-decoration: none !important; }
footer.footer .text-center { text-align: center !important; }
footer.footer .list-unstyled {
    padding-left: 0 !important;
    list-style: none !important;
    margin-bottom: 0 !important;
}
footer.footer .list-unstyled li {
    list-style: none !important;
}
footer.footer .border-top {
    border-top: 1px solid !important;
}
footer.footer .border-secondary {
    border-color: #6c757d !important;
}

/* Homepage footer component styles (from src/new_assets/css/style.css) */
footer.footer .footer-logo-osha {
    width: 200px;
    height: auto;
    max-width: 100%;
}

footer.footer .footer-desc {
    color: #cfcccc;
}

footer.footer .footer-ul-logo {
    width: 170px;
    border-radius: 7px;
}

footer.footer .footer-page-link {
    transition: 0.3s;
    transform: translateX(0);
}

footer.footer .footer-page-link:hover {
    color: #FFD729;
    transform: translateX(5px);
}

footer.footer .footer-desc-width {
    width: 90%;
}

footer.footer .footer-title {
    position: relative;
    color: #02D1FE !important;
    font-weight: 700;
}

footer.footer .footer-title::after {
    content: "";
    width: 35px;
    height: 2px;
    background-color: #FFD729;
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
}

footer.footer .footer-social i {
    transition: all 0.25s;
}

footer.footer .footer-social:hover i {
    color: #FFD729;
    scale: 1.3;
}

@media screen and (max-width: 992px) {
    footer.footer .footer-logo-osha {
        width: 150px;
        object-fit: contain;
    }

    footer.footer .footer-contact-col small {
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    footer.footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    footer.footer .footer-logo-osha {
        width: 200px;
    }

}

/* ShopperApproved logo in the footer column. The logo uses width:260% inside a
   max-width:100px anchor (same inline CSS as the homepage). v1's global
   img{max-width:100%} would otherwise shrink it. */
footer.footer a.shopperlinkCustom {
    max-width: 100px;
    display: inline-block;
}
footer.footer a.shopperlinkCustom img {
    width: 260% !important;
    max-width: none !important;
    height: auto !important;
}
