/* Life Essentials footer contact and social icons */

.footer-brand-logo {
    display: block;
    width: auto;
    max-width: 145px;
    height: 80px;
    margin-bottom: 16px;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 17px;
    line-height: 1;
    text-decoration: none !important;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.footer-social-link:hover {
    color: #fff !important;
    background: var(--green, #0b593b);
    border-color: rgba(255, 255, 255, .24);
    transform: translateY(-3px);
}

.footer-contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    font-size: 16px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
    transition:
        background .18s ease,
        transform .18s ease;
}

.footer-contact-list li:hover .footer-contact-icon {
    background: var(--green, #0b593b);
    transform: translateY(-2px);
}

.footer-contact-text {
    display: block;
    padding-top: 8px;
    color: inherit;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-contact-list a.footer-contact-text:hover {
    text-decoration: underline;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-copyright-text {
    display: block;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: -7px 0 !important;
    padding: 0 4px !important;
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity .18s ease;
}

.footer-legal-links a:hover {
    text-decoration: underline;
    opacity: .85;
}

.footer-legal-links span {
    color: rgba(255, 255, 255, .35);
}

@media (max-width: 680px) {
    .footer-social-link {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .footer-contact-list li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .footer-contact-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .footer-contact-text {
        padding-top: 6px;
    }

    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-legal-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        white-space: normal;
    }
}

/* Lighthouse accessibility: explicit high-contrast footer text. */
.footer .footer-grid h3,
.footer .footer-grid > div > a,
.footer .footer-contact-text,
.footer .footer-copyright-text,
.footer .footer-legal-links a {
    color: #f8fff9 !important;
}

.footer .footer-grid > div > a:hover,
.footer .footer-contact-list a.footer-contact-text:hover,
.footer .footer-legal-links a:hover {
    color: #ffffff !important;
}


/* Lighthouse accessibility follow-up: force the complete footer text layer
   to full-opacity, high-contrast colors against a stable dark surface. */
footer.footer {
    background: #102418 !important;
    color: #ffffff !important;
}

footer.footer .footer-grid h3,
footer.footer .footer-grid p,
footer.footer .footer-grid small,
footer.footer .footer-grid > div > a:not(.footer-social-link),
footer.footer .footer-contact-text,
footer.footer .footer-copyright-text,
footer.footer .footer-legal-links a {
    color: #ffffff !important;
    opacity: 1 !important;
}

footer.footer .footer-legal-links span {
    color: #d9e7dc !important;
    opacity: 1 !important;
}

footer.footer .footer-grid > div > a:not(.footer-social-link):hover,
footer.footer .footer-contact-list a.footer-contact-text:hover,
footer.footer .footer-legal-links a:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Footer desktop balance: bring Contact closer to Company and reserve enough
   width for long phone/email values without splitting them. */
@media (min-width: 901px) {
    footer.footer .footer-grid {
        grid-template-columns:
            minmax(300px, 1.30fr)
            minmax(145px, .72fr)
            minmax(190px, .82fr)
            minmax(300px, 1.18fr) !important;
        column-gap: 22px !important;
    }

    footer.footer .footer-grid > div:last-child {
        min-width: 0;
        margin-left: -18px;
    }

    footer.footer .footer-contact-list a.footer-contact-text {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media (max-width: 900px) {
    footer.footer .footer-grid > div:last-child {
        margin-left: 0;
    }

    footer.footer .footer-contact-list a.footer-contact-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

