
/* =========================================================
   RPM Industries - Independent Footer
   Palette: Industrial Blue, White and Deep Navy
   ========================================================= */

.rpm-footer-new {
    --footer-blue: #0879bd;
    --footer-blue-light: #39a8ed;
    --footer-navy: #07385b;
    --footer-ink: #173b5d;
    --footer-muted: #476582;
    --footer-border: #b9ddf4;
    --footer-white: #ffffff;

    width: 100%;
    overflow: hidden;
    color: var(--footer-ink);
    background:
        linear-gradient(115deg, #ffffff 0%, #edf7ff 55%, #e4f2fc 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.rpm-footer-new *,
.rpm-footer-new *::before,
.rpm-footer-new *::after {
    box-sizing: border-box;
}

.rpm-footer-new-main {
    display: grid;
    grid-template-columns:
        minmax(180px, 1.05fr)
        minmax(145px, 0.85fr)
        minmax(185px, 1fr)
        minmax(230px, 1.2fr)
        minmax(300px, 1.7fr);
    align-items: stretch;
    gap: 0;
    min-height: 340px;
}

.rpm-footer-new-brand,
.rpm-footer-new-column {
    min-width: 0;
    padding: 42px 24px 34px;
}

.rpm-footer-new-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: clamp(24px, 3.2vw, 54px);
    border-right: 1px solid var(--footer-border);
    background:
        linear-gradient(125deg, transparent 0 22%, rgba(8, 121, 189, 0.055) 22% 27%, transparent 27%);
}

.rpm-footer-new-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 150px;
    height: 100px;
    text-decoration: none;
}

.rpm-footer-new-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.rpm-footer-new-brand-line {
    display: block;
    width: 70px;
    height: 4px;
    margin: 8px 0 14px;
    border-radius: 5px;
    background: linear-gradient(
        90deg,
        var(--footer-navy),
        var(--footer-blue-light)
    );
}

.rpm-footer-new-description {
    max-width: 260px;
    margin: 0 0 18px;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.7;
}

.rpm-footer-new-brand-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.rpm-footer-new-brand-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--footer-white);
    background: linear-gradient(
        145deg,
        var(--footer-blue-light),
        var(--footer-blue)
    );
    box-shadow: 0 5px 12px rgba(7, 89, 145, 0.12);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.rpm-footer-new-brand-icons a:hover {
    transform: translateY(-3px);
    background: var(--footer-navy);
    box-shadow: 0 8px 18px rgba(7, 56, 91, 0.2);
}

.rpm-footer-new-brand-icons svg,
.rpm-footer-new-contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rpm-footer-new-column {
    padding-right: 20px;
    padding-left: 24px;
}

.rpm-footer-new-quick-links,
.rpm-footer-new-expertise {
    border-right: 1px solid var(--footer-border);
}

.rpm-footer-new-column h2 {
    position: relative;
    margin: 2px 0 25px;
    padding-bottom: 13px;
    color: var(--footer-navy);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.rpm-footer-new-column h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 180px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--footer-blue),
        var(--footer-blue-light)
    );
    content: "";
}

.rpm-footer-new-column ul {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rpm-footer-new-column li {
    margin: 0;
    padding: 0;
}

.rpm-footer-new-column li a {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.rpm-footer-new-column li a span {
    color: var(--footer-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 0.9;
}

.rpm-footer-new-column li a:hover {
    color: var(--footer-blue);
    transform: translateX(3px);
}

.rpm-footer-new-contact {
    padding-right: 24px;
    padding-top: 18px;
}

.rpm-footer-new-contact h2 {
    margin-bottom: 25px;
}

.rpm-footer-new-contact h2::after {
    max-width: 100%;
}

.rpm-footer-new-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--footer-muted);
    font-size: 12px;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rpm-footer-new-contact-item:hover {
    color: var(--footer-blue);
}

.rpm-footer-new-contact-icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--footer-white);
    background: linear-gradient(
        145deg,
        var(--footer-blue-light),
        var(--footer-blue)
    );
}

.rpm-footer-new-contact-icon svg {
    width: 18px;
    height: 18px;
}

.rpm-footer-new-address {
    align-items: flex-start;
}

.rpm-footer-new-address .rpm-footer-new-contact-icon {
    margin-top: 2px;
}

.rpm-footer-new-image {
    min-width: 0;
    min-height: 340px;
    background-color: #dceefa;
    background-image:
        linear-gradient(
            115deg,
            rgba(7, 56, 91, 0.03),
            rgba(7, 56, 91, 0)
        ),
        url("../images/hero-cutting-tools.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: polygon(31% 0, 100% 0, 100% 100%, 0 100%, 13% 56%, 0 42%);
}

/* Bottom copyright bar */

.rpm-footer-new-bottom {
    border-top: 2px solid var(--footer-blue-light);
    color: var(--footer-white);
    background: linear-gradient(
        105deg,
        #073451,
        #064e7c 55%,
        #073451
    );
}

.rpm-footer-new-bottom-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.35fr 42px;
    align-items: center;
    gap: 24px;
    width: min(100% - 64px, 1760px);
    min-height: 76px;
    margin: 0 auto;
}

.rpm-footer-new-bottom p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
}

.rpm-footer-new-tagline {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.rpm-footer-new-tagline span {
    color: var(--footer-blue-light);
}

.rpm-footer-new-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 10px;
}

.rpm-footer-new-legal a {
    color: var(--footer-white);
    text-decoration: none;
}

.rpm-footer-new-legal a:hover {
    color: #9bdcff;
}

.rpm-footer-new-back-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: var(--footer-white);
    background: var(--footer-blue);
    font-size: 25px;
    line-height: 1;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.rpm-footer-new-back-top:hover {
    transform: translateY(-3px);
    background: var(--footer-blue-light);
}

/* Tablet layout */

@media (max-width: 1150px) {
    .rpm-footer-new-main {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rpm-footer-new-brand {
        padding-left: 28px;
    }

    .rpm-footer-new-image {
        grid-column: 1 / -1;
        min-height: 260px;
        clip-path: none;
        background-position: center 48%;
    }

    .rpm-footer-new-bottom-inner {
        grid-template-columns: 1fr 1fr 42px;
        padding: 16px 0;
    }

    .rpm-footer-new-legal {
        grid-column: 1 / 3;
        justify-content: center;
    }

    .rpm-footer-new-back-top {
        grid-column: 3;
        grid-row: 1 / 3;
    }
}

/* Mobile layout */

@media (max-width: 720px) {
    .rpm-footer-new-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rpm-footer-new-brand,
    .rpm-footer-new-column {
        padding: 28px 20px;
    }

    .rpm-footer-new-brand {
        border-bottom: 1px solid var(--footer-border);
    }

    .rpm-footer-new-quick-links {
        border-right: 0;
        border-bottom: 1px solid var(--footer-border);
    }

    .rpm-footer-new-expertise {
        border-right: 1px solid var(--footer-border);
    }

    .rpm-footer-new-contact {
        border-bottom: 1px solid var(--footer-border);
    }

    .rpm-footer-new-image {
        grid-column: 1 / -1;
        min-height: 230px;
    }

    .rpm-footer-new-column h2 {
        font-size: 15px;
    }

    .rpm-footer-new-column h2::after {
        max-width: 150px;
    }

    .rpm-footer-new-bottom-inner {
        grid-template-columns: 1fr 40px;
        gap: 14px;
        width: calc(100% - 36px);
        padding: 20px 0;
    }

    .rpm-footer-new-tagline {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.4px;
    }

    .rpm-footer-new-legal {
        grid-column: 1;
        grid-row: 3;
        justify-content: flex-start;
        gap: 6px;
        font-size: 10px;
    }

    .rpm-footer-new-back-top {
        grid-column: 2;
        grid-row: 1 / 4;
    }
}

@media (max-width: 420px) {
    .rpm-footer-new-main {
        grid-template-columns: 1fr;
    }

    .rpm-footer-new-brand,
    .rpm-footer-new-quick-links,
    .rpm-footer-new-expertise {
        border-right: 0;
        border-bottom: 1px solid var(--footer-border);
    }

    .rpm-footer-new-image {
        grid-column: auto;
        min-height: 200px;
    }

    .rpm-footer-new-logo {
        width: 140px;
    }

    .rpm-footer-new-brand-icons a {
        width: 38px;
        height: 38px;
    }

    .rpm-footer-new-bottom-inner {
        width: calc(100% - 28px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rpm-footer-new *,
    .rpm-footer-new *::before,
    .rpm-footer-new *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
