/* ==================================================
   CPW WEBSITE FOOTER
================================================== */

.cpw-footer {
    --footer-aqua: #32c9ca;
    --footer-teal: #079a98;
    --footer-deep: #087b7a;
    --footer-navy: #073e4c;
    --footer-ink: #302d2e;
    --footer-muted: #657276;
    --footer-line: rgba(255, 255, 255, 0.14);

    margin-top: 32px;
    color: #ffffff;
    background: linear-gradient(
        145deg,
        #073e4c 0%,
        #07575c 55%,
        #087b7a 100%
    );
    font-family: Arial, sans-serif;
}

.cpw-footer *,
.cpw-footer *::before,
.cpw-footer *::after {
    box-sizing: border-box;
}

.cpw-footer__wrap {
    width: min(1380px, calc(100% - 44px));
    margin-right: auto;
    margin-left: auto;
}

/* ==================================================
   PACKAGING RESOURCE CENTRE
================================================== */

.cpw-footer__resources {
    position: relative;
    top: -32px;
    display: grid;
    grid-template-columns:
        1.25fr repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cae8e4;
    border-radius: 17px;
    box-shadow: 0 18px 42px rgba(2, 51, 60, 0.16);
}

.cpw-footer__resources-intro,
.cpw-footer__resource {
    min-height: 105px;
    padding: 22px 20px;
}

.cpw-footer__resources-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--footer-ink);
    background: linear-gradient(
        135deg,
        #ddf7f4,
        #f7fcfb
    );
}

.cpw-footer__resources-intro p {
    margin: 0 0 7px;
    color: var(--footer-deep);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cpw-footer__resources-intro strong {
    color: var(--footer-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.cpw-footer__resource {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--footer-ink);
    border-left: 1px solid #d7e9e7;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.cpw-footer__resource:hover,
.cpw-footer__resource:focus {
    color: var(--footer-ink);
    background: #f0fbf9;
    outline: none;
    transform: translateY(-3px);
}

.cpw-footer__resource > span {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--footer-navy);
    background: #9de4e0;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.cpw-footer__resource:hover > span,
.cpw-footer__resource:focus > span {
    color: #ffffff;
    background: var(--footer-teal);
}

.cpw-footer__resource strong {
    display: block;
    padding-right: 17px;
    margin-bottom: 5px;
    color: var(--footer-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.cpw-footer__resource small {
    display: block;
    color: var(--footer-muted);
    font-size: 11px;
    line-height: 1.5;
}

.cpw-footer__resource b {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--footer-teal);
    font-size: 12px;
}

/* ==================================================
   MAIN FOOTER
================================================== */

.cpw-footer__main {
    display: grid;
    grid-template-columns:
        1.35fr 0.8fr 0.8fr 1.1fr;
    gap: 54px;
    padding: 2px 0 55px;
}

.cpw-footer__brand {
    max-width: 350px;
}

.cpw-footer__logo {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    text-decoration: none;
}

.cpw-footer__logo:hover,
.cpw-footer__logo:focus {
    color: #ffffff;
    outline: none;
}

.cpw-footer__mark {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    color: var(--footer-navy);
    background: linear-gradient(
        135deg,
        #67e5e4,
        #24bdbc
    );
    clip-path: polygon(
        50% 0,
        94% 24%,
        94% 75%,
        50% 100%,
        6% 75%,
        6% 24%
    );
    font-size: 18px;
    font-weight: 800;
}

.cpw-footer__logo strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.cpw-footer__logo small {
    display: block;
    margin-top: 5px;
    color: #9ee6e2;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cpw-footer__about {
    margin: 19px 0 21px;
    color: #c2d9da;
    font-size: 14px;
    line-height: 1.75;
}

.cpw-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cpw-footer__trust span {
    padding: 7px 9px;
    color: #d7ecec;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--footer-line);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

/* Footer headings */

.cpw-footer h3 {
    margin: 7px 0 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

/* Footer navigation */

.cpw-footer__links {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpw-footer__links li {
    margin: 0;
    padding: 0;
}

.cpw-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c2d9da;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.cpw-footer__links a::before {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    background: var(--footer-aqua);
    border-radius: 50%;
    content: "";
}

.cpw-footer__links a:hover,
.cpw-footer__links a:focus {
    color: #ffffff;
    outline: none;
    transform: translateX(3px);
}

/* ==================================================
   CONTACT DETAILS
================================================== */

.cpw-footer__contact {
    display: grid;
    gap: 12px;
}

.cpw-footer__contact a,
.cpw-footer__contact p {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #d2e5e5;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
}

.cpw-footer__contact a:hover,
.cpw-footer__contact a:focus {
    color: #ffffff;
    outline: none;
}

.cpw-footer__contact small {
    display: block;
    margin-top: 2px;
    color: #aecaca;
    font-size: 10px;
    line-height: 1.5;
}

.cpw-footer__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--footer-navy);
    background: #9de4e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
}

.cpw-footer__expert {
    margin-top: 18px;
    padding: 13px;
    color: #eaf7f6;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--footer-line);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.6;
}

/* ==================================================
   BOTTOM FOOTER
================================================== */

.cpw-footer__bottom {
    border-top: 1px solid var(--footer-line);
}

.cpw-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 0;
    color: #aecaca;
    font-size: 12px;
    line-height: 1.5;
}

.cpw-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
}

.cpw-footer__legal a {
    color: #bcd5d6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cpw-footer__legal a:hover,
.cpw-footer__legal a:focus {
    color: #ffffff;
    outline: none;
}

.cpw-footer__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cpw-footer__payments span {
    padding: 5px 8px;
    color: var(--footer-navy);
    background: #dff4f2;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.cpw-footer__top {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--footer-navy);
    background: var(--footer-aqua);
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.cpw-footer__top:hover,
.cpw-footer__top:focus {
    color: var(--footer-navy);
    background: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1100px) {
    .cpw-footer__resources {
        grid-template-columns: 1fr 1fr;
    }

    .cpw-footer__resources-intro {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .cpw-footer__resource {
        border-top: 1px solid #d7e9e7;
    }

    .cpw-footer__main {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .cpw-footer__contact-column {
        grid-column: 1 / -1;
    }

    .cpw-footer__contact {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 720px) {
    .cpw-footer__wrap {
        width: min(100% - 28px, 1380px);
    }

    .cpw-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding-bottom: 40px;
    }

    .cpw-footer__brand,
    .cpw-footer__contact-column {
        grid-column: 1 / -1;
    }

    .cpw-footer__contact {
        grid-template-columns: 1fr;
    }

    .cpw-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .cpw-footer {
        margin-top: 22px;
    }

    .cpw-footer__resources {
        top: -22px;
        grid-template-columns: 1fr;
    }

    .cpw-footer__resources-intro {
        grid-column: auto;
    }

    .cpw-footer__resource {
        min-height: 86px;
        border-left: 0;
    }

    .cpw-footer__resource strong {
        font-size: 14px;
    }

    .cpw-footer__resource small {
        font-size: 12px;
    }

    .cpw-footer__links a {
        font-size: 14px;
    }

    .cpw-footer__contact a,
    .cpw-footer__contact p {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .cpw-footer__main {
        grid-template-columns: 1fr;
    }

    .cpw-footer__brand,
    .cpw-footer__contact-column {
        grid-column: auto;
    }
}