/* ================================================================
   RPM INDUSTRIES — SHARED CORPORATE HEADER
   Blue / white palette with a highlighted logo panel and curved edge.
   ================================================================ */
:root {
    --rpm-header-blue: #0879bd;
    --rpm-header-blue-dark: #073b68;
    --rpm-header-blue-deep: #062d50;
    --rpm-header-cyan: #35bdf4;
    --rpm-header-ink: #17334d;
    --rpm-header-border: #d9eaf5;
    --rpm-header-white: #ffffff;
    --rpm-header-shadow: 0 8px 26px rgba(5, 48, 83, 0.10);
}

.rpm-skip-link {
    position: absolute;
    top: 8px;
    left: -9999px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--rpm-header-ink);
}

.rpm-skip-link:focus {
    left: 12px;
}

.rpm-contact-bar,
.rpm-contact-bar *,
.rpm-site-header,
.rpm-site-header * {
    box-sizing: border-box;
}

.rpm-contact-bar {
    position: relative;
    z-index: 1201;
    width: 100%;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(105deg, #07375f 0%, #0879bd 58%, #0a91d1 100%);
}

.rpm-contact-bar::after {
    position: absolute;
    top: 0;
    right: 25%;
    width: 150px;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.10), transparent);
    content: "";
    transform: skewX(-32deg);
    pointer-events: none;
}

.rpm-contact-bar-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    width: min(100% - 48px, 1380px);
    min-height: 42px;
    margin: 0 auto;
}

.rpm-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
}

.rpm-contact-item:hover {
    color: #bcecff;
}

.rpm-contact-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.rpm-address-item {
    overflow: hidden;
    flex: 0 1 auto;
}

.rpm-address-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rpm-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* White circle with the glyph in its real brand color */
.rpm-social-icon-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #ffffff;
    background: #ffffff;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rpm-social-svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Brand glyph colors */
.rpm-social-icon-item[aria-label="Facebook"] {
    color: #1877f2;
}

.rpm-social-icon-item[aria-label="LinkedIn"] {
    color: #0a66c2;
}

.rpm-social-icon-item[aria-label="Instagram"] {
    color: #e4405f;
}

.rpm-social-icon-item[aria-label="Twitter"] {
    color: #1da1f2;
}

/* Solid glyphs for Facebook, LinkedIn and Twitter (Instagram stays outlined) */
.rpm-social-icon-item[aria-label="Facebook"] .rpm-social-svg,
.rpm-social-icon-item[aria-label="LinkedIn"] .rpm-social-svg,
.rpm-social-icon-item[aria-label="Twitter"] .rpm-social-svg {
    fill: currentColor;
}

/* Hover: brand-colored circle, white glyph */
.rpm-social-icon-item:hover {
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.rpm-social-icon-item[aria-label="Facebook"]:hover {
    background: #1877f2;
}

.rpm-social-icon-item[aria-label="LinkedIn"]:hover {
    background: #0a66c2;
}

.rpm-social-icon-item[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.rpm-social-icon-item[aria-label="Twitter"]:hover {
    background: #1da1f2;
}

.rpm-site-header {
    position: relative;
    z-index: 1200;
    width: 100%;
    border-bottom: 1px solid rgba(8, 121, 189, 0.16);
    background: linear-gradient(105deg, #ffffff 0%, #f4fbff 52%, #e2f5ff 100%);
    box-shadow: var(--rpm-header-shadow);
}

.rpm-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(100% - 48px, 1380px);
    min-height: 102px;
    margin: 0 auto;
}

/* Raised logo badge with the curved lower edge from the approved reference. */
.rpm-brand {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 142px;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    width: 142px;
    margin-bottom: -13px;
    border: 1px solid rgba(8, 121, 189, 0.12);
    border-top: 0;
    border-radius: 0 0 48% 48% / 0 0 19% 19%;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
    box-shadow: 0 9px 20px rgba(5, 63, 104, 0.10);
    text-decoration: none;
}

.rpm-brand::after {
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(42, 181, 239, 0.75), transparent);
    content: "";
}

.rpm-brand-logo {
    display: block;
    width: 112px;
    height: 94px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 4px 5px rgba(7, 57, 92, 0.12));
    transition: transform 220ms ease;
}

.rpm-brand:hover .rpm-brand-logo {
    transform: translateY(-2px) scale(1.035);
}

.rpm-header-tagline {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: #123e65;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.19em;
    white-space: nowrap;
}

.rpm-header-tagline i,
.rpm-hero-brand-tagline i {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #13a8e5;
}

.rpm-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rpm-desktop-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(17px, 2.0vw, 31px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rpm-desktop-nav li {
    margin: 0;
    padding: 0;
}

.rpm-desktop-nav a,
.rpm-mobile-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: #1a344c;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color 180ms ease;
}

.rpm-desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0879bd, #37c4f5);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.rpm-desktop-nav a:hover,
.rpm-desktop-nav a:focus-visible,
.rpm-desktop-nav a.is-active,
.rpm-mobile-nav a:hover,
.rpm-mobile-nav a:focus-visible,
.rpm-mobile-nav a.is-active {
    color: #0879bd;
}

.rpm-desktop-nav a:hover::after,
.rpm-desktop-nav a:focus-visible::after,
.rpm-desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.rpm-header-quote {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(110deg, #0877bd, #0ca5e6);
    box-shadow: 0 7px 17px rgba(8, 121, 189, 0.20);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rpm-header-quote:hover {
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(8, 121, 189, 0.28);
    transform: translateY(-2px);
}

.rpm-header-quote span {
    font-size: 17px;
    line-height: 1;
}

.rpm-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid #c8e3f3;
    border-radius: 11px;
    background: #ffffff;
    cursor: pointer;
}

.rpm-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--rpm-header-blue-dark);
    transition: transform 180ms ease, opacity 180ms ease;
}

.rpm-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.rpm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.rpm-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.rpm-mobile-nav {
    display: none;
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 8px 0 18px;
}

.rpm-mobile-nav[hidden] {
    display: none !important;
}

.rpm-mobile-nav a {
    display: flex;
    min-height: 45px;
    padding: 0 14px;
    border-radius: 8px;
}

.rpm-mobile-nav a:hover,
.rpm-mobile-nav a.is-active {
    background: #e8f6ff;
}

.rpm-desktop-nav a:focus-visible,
.rpm-mobile-nav a:focus-visible,
.rpm-menu-toggle:focus-visible,
.rpm-contact-item:focus-visible,
.rpm-header-quote:focus-visible,
.rpm-social-icon-item:focus-visible {
    outline: 3px solid rgba(30, 150, 215, 0.48);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .rpm-header-inner {
        gap: 17px;
    }

    .rpm-header-tagline {
        gap: 7px;
        font-size: 9px;
        letter-spacing: 0.13em;
    }

    .rpm-desktop-nav ul {
        gap: 16px;
    }

    .rpm-desktop-nav a {
        font-size: 12px;
    }

    .rpm-header-quote {
        padding-inline: 14px;
    }
}

@media (max-width: 980px) {
    .rpm-contact-bar-inner {
        gap: 17px;
    }

    .rpm-address-item {
        display: none;
    }

    .rpm-header-tagline {
        display: none;
    }

    .rpm-desktop-nav ul {
        gap: 19px;
    }
}

@media (max-width: 760px) {
    .rpm-contact-bar-inner {
        justify-content: space-between;
        gap: 10px;
        width: calc(100% - 28px);
        min-height: 38px;
    }

    .rpm-contact-item {
        gap: 6px;
        font-size: 10px;
    }

    .rpm-contact-item span:last-child {
        overflow: hidden;
        max-width: 145px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rpm-social-icons {
        gap: 6px;
    }

    .rpm-social-icon-item {
        width: 26px;
        height: 26px;
        border-width: 1.5px;
    }

    .rpm-social-svg {
        width: 12px;
        height: 12px;
    }

    .rpm-header-inner {
        width: calc(100% - 28px);
        min-height: 78px;
        gap: 12px;
    }

    .rpm-brand {
        flex-basis: 112px;
        width: 112px;
        margin-bottom: -9px;
    }

    .rpm-brand-logo {
        width: 94px;
        height: 72px;
    }

    .rpm-desktop-nav,
    .rpm-header-quote {
        display: none;
    }

    .rpm-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .rpm-mobile-nav:not([hidden]) {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .rpm-social-icons {
        display: none;
    }

    .rpm-contact-bar-inner {
        justify-content: center;
    }

    .rpm-contact-item span:last-child {
        max-width: 135px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rpm-brand-logo,
    .rpm-desktop-nav a,
    .rpm-desktop-nav a::after,
    .rpm-menu-toggle span,
    .rpm-social-icon-item,
    .rpm-header-quote {
        transition: none;
    }
}