/*
 * crescit-footer.css
 * Styles for includes/crescit-footer.php (the Crescit / Q2Q technologies footer on index.php).
 *
 * Flow: loaded by <link> in index.php only, so softplot.php keeps its own simple footer. Copied
 * from footerV2.php of Crescit.Software.Online; every rule is scoped under .crescit-footer so it
 * cannot leak into the rest of the page.
 */

 *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: arial, helvetica, sans-serif;
 }

.crescit-footer {
    background: #000;
    color: white;
    padding: 10px;
    width: 100%;
    border-top: 5px solid #434343;
    box-sizing: border-box;
}

.crescit-footer .divider {
    display: none;
}

.crescit-footer .footerMargin {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Footer links use the same grey as the footer text (the page's amber link colour would clash on black). */
.crescit-footer a {
    color: #858585;
    text-decoration: none;
}

.crescit-footer a:hover {
    color: #ffffff;
}

.crescit-footer .q2qcon {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.crescit-footer .q2qcon img {
    max-width: 270px;
    width: 100%;
    height: auto;
}

.crescit-footer .q2qcon span {
    font-size: 12px;
    text-align: start;
    white-space: nowrap;
    color: #858585;
}

.crescit-footer .q2qcon .ASF {
    font-weight: bold;
    font-size: 15px;
}

.crescit-footer .partfamily {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto;
    gap: 10px;
    color: #858585;
    flex: 2;
    min-width: 300px;
    font-weight: bold;
    font-size: 12px;
}

.crescit-footer .logos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 21px;
}

.crescit-footer .logoitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 150px;
    max-width: 220px;
    min-width: 120px;
}

.crescit-footer .logoitem a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 100%;
}

.crescit-footer .logoitem img {
    height: 36px;
    width: auto;
    max-width: none;
}

.crescit-footer .logoitem span {
    font-size: 12px;
    color: #858585;
    margin-top: 6px;
}

.crescit-footer .privacyterm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: start;
    min-width: 200px;
}

.crescit-footer .privacyterm span {
    font-size: 12px;
    white-space: nowrap;
    color: #858585;
}

.crescit-footer .soclogos {
    display: flex;
    gap: 3px;
}

.crescit-footer .soclogos svg {
    max-width: 35px;
    height: auto;
}

.crescit-footer .soclogos path {
    fill: #858585;
}

.crescit-footer .soclogos a:hover path {
    fill: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .crescit-footer .footerMargin {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .crescit-footer .divider {
        display: flex;
        width: 100%;
        height: 1px;
        background-color: #434343;
    }

    /* Partner logos move to the top on tablets and phones. */
    .crescit-footer .partfamily {
        order: -1;
    }
}

/* Phones: partner logos and divider are hidden, as on the main site. */
@media (max-width: 480px) {
    .crescit-footer .partfamily,
    .crescit-footer .divider {
        display: none;
    }
}
