/* Prologic redesign - footer (all pages)
   Figma: "Container" (849:4103) - white-to-orange-to-black backdrop, 3 link columns + logo. */

.ph-footer {
    position: relative;
    padding: 231px 0 20px;
    background-color: var(--color-black);
    background-image: url("../../images/redesign/footer-bg.webp");
    background-repeat: no-repeat;
    background-size: 117.97% 100%;
    background-position: 50% 0;
    color: var(--color-white);
    font-family: var(--font-body) !important;
}

.ph-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.ph-footer__links {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Logo + social (column 849:4156, 277px wide) */
.ph-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17.313px;
    width: 277px;
}

.ph-footer__logo {
    display: block;
    width: 255.359px;
    height: 106.619px;
}

.ph-footer__logo picture {
    display: block;
    width: 100%;
    height: 100%;
}

.ph-footer__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

[dir="ltr"] .ph-footer__logo img {
    object-position: left center;
}

.ph-footer__social {
    display: flex;
    gap: 14.607px;
}

.ph-footer__social-link {
    display: block;
    width: 29.215px;
    height: 29.215px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ph-footer__social-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.ph-footer__social-link:hover,
.ph-footer__social-link:focus-visible {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Columns group (849:4108, 856px wide) */
.ph-footer__columns {
    display: flex;
    align-items: flex-start;
    width: 856px;
}

.ph-footer__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ph-footer__col--contact {
    flex: 0 0 302px;
}

.ph-footer__title {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-heading) !important;
    font-size: var(--fs-footer-h);
    line-height: var(--lh-btn);
    font-weight: var(--fw-btn);
    text-align: start;
}

.ph-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-footer__list li {
    padding-bottom: 5px;
}

.ph-footer__link,
.ph-footer__address {
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    font-size: var(--fs-p);
    line-height: var(--lh-p);
    font-weight: var(--fw-p);
}

.ph-footer__link {
    transition: color 0.2s ease;
}

.ph-footer__link:hover,
.ph-footer__link:focus-visible {
    color: var(--color-orange) !important;
}

.ph-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.ph-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ph-footer__contact img {
    flex: none;
    width: 24px;
    height: 24px;
}

.ph-footer__address {
    max-width: 230px;
}

/* Bottom row: divider, copyright, policy links */
.ph-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-family: var(--font-body) !important;
    font-size: var(--fs-legal);
    line-height: var(--lh-btn);
}

.ph-footer__copy,
.ph-footer__copy a,
.ph-footer__copy span {
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
}

.ph-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-footer__legal li + li::before {
    content: "|";
    margin-inline: 8px;
    font-size: 16px;
    line-height: 26px;
}

.ph-footer__legal-link {
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    transition: color 0.2s ease;
}

.ph-footer__legal-link:hover,
.ph-footer__legal-link:focus-visible {
    color: var(--color-orange) !important;
}

@media (max-width: 1279px) {
    .ph-footer {
        padding-top: 160px;
        background-size: cover;
    }

    .ph-footer__columns {
        width: auto;
        flex: 1;
        margin-inline-start: 48px;
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .ph-footer__links {
        flex-direction: column;
        gap: 40px;
    }

    .ph-footer__columns {
        width: 100%;
        margin: 0;
        flex-wrap: wrap;
        row-gap: 32px;
    }

    .ph-footer__col,
    .ph-footer__col--contact {
        flex: 1 1 200px;
    }
}

@media (max-width: 767px) {
    .ph-footer {
        padding-top: 120px;
    }

    .ph-footer__inner {
        gap: 40px;
    }

    .ph-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
