/**
 * Foreva Workspace — desktop & large viewport (footer and shared tweaks)
 * Loads after fw-mobile.css
 */

/* ——— Header logo: large screens ——— */
@media (min-width: 1024px) {
    .pfl-logo {
        max-width: min(300px, 28vw);
        max-height: var(--header-inner-h);
    }

    .pfl-logo__brand {
        font-size: clamp(0.88rem, 1vw, 1.05rem);
    }
}

/* ——— Footer: large screens ——— */
@media (min-width: 1024px) {
    #footer {
        padding-top: 3.5rem;
        padding-bottom: 1.5rem;
    }

    #footer .footer-top-bar {
        align-items: flex-end;
        gap: 2.5rem;
        padding-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #footer .footer-nav-top {
        flex: 1;
        min-width: 0;
        overflow: visible;
        align-self: flex-end;
    }

    #footer .footer-nav-top__list {
        flex-wrap: wrap;
        row-gap: 0.5rem;
        column-gap: clamp(1.25rem, 2vw, 2.5rem);
        margin: 0;
        padding: 0;
    }

    #footer .footer-nav-item .footer-link {
        display: inline-block;
        padding: 0 0 0.4rem;
        line-height: 1.15;
    }

    #footer .footer-nav-item a {
        min-height: 0;
        padding: 0;
    }

    #footer #footer-back-to-top {
        min-height: 0;
        min-width: 0;
        padding: 0 0.25rem 0.35rem 0;
        align-self: flex-end;
    }

    #footer .footer-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 21rem);
        align-items: end;
        gap: clamp(2.5rem, 4vw, 4.5rem);
        padding-top: 2.5rem;
    }

    #footer .footer-brand-col {
        order: 1;
        align-self: end;
        max-width: none;
    }

    #footer .footer-info-col {
        order: 2;
        margin-right: 0;
        width: 100%;
        max-width: 21rem;
        justify-self: end;
    }

    #footer .footer-wordmark {
        max-width: 100%;
    }

    #footer .footer-article__text {
        max-width: 20rem;
    }

    #footer .footer-disclaimer {
        margin-top: 0;
        padding-top: 0;
        max-width: 72rem;
        text-align: left;
    }

    #footer .footer-disclaimer p {
        text-wrap: pretty;
    }

    #footer .footer-copyright {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        margin-top: 1.25rem;
        padding-top: 1.35rem;
        font-size: 0.72rem;
        letter-spacing: 0.16em;
    }

    #footer .footer-copyright__copy {
        order: 1;
        flex: 0 1 auto;
        max-width: 42%;
        font-size: inherit;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.4;
    }

    #footer .footer-copyright__tagline {
        order: 2;
        flex: 1 1 auto;
        text-align: right;
        font-size: inherit;
        line-height: 1.4;
        max-width: 58%;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    #footer .footer-nav-top {
        font-size: 0.76rem;
        letter-spacing: 0.13em;
    }

    #footer .footer-nav-top__list {
        column-gap: 1.15rem;
    }

    #footer .footer-main {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
        gap: 2.25rem;
    }

    #footer .footer-info-col {
        max-width: 19rem;
    }

    #footer .footer-copyright__tagline {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }
}

@media (min-width: 1280px) {
    #footer .footer-nav-top__list {
        flex-wrap: nowrap;
        column-gap: 2rem;
        padding-bottom: 0;
    }

    #footer .footer-main {
        grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 24rem);
        gap: clamp(3rem, 5vw, 5rem);
    }

    #footer .footer-info-col {
        max-width: 24rem;
    }

    #footer .footer-info-stack {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: stretch;
    }

    #footer .footer-article--enquiry,
    #footer .footer-article--social,
    #footer .footer-article--contact {
        width: 100%;
    }

    #footer .footer-article__text {
        max-width: 100%;
    }

    #footer .footer-contact-list {
        gap: 0.9rem;
    }

    #footer .footer-copyright__tagline {
        white-space: nowrap;
        max-width: none;
    }
}

@media (min-width: 1536px) {
    #footer {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    #footer .footer-top-bar {
        gap: 3rem;
    }

    #footer .footer-nav-top__list {
        column-gap: 2.5rem;
    }

    #footer .footer-main {
        gap: 5rem;
    }

    #footer .footer-info-stack {
        gap: 2.75rem;
    }
}
