/* =========================================================
   RELI ANODES — LEFT SIDEBAR NAVIGATION (all pages)
   Desktop: fixed sidebar with products fly-out.
   ≤1080px: sticky top bar + slide-out drawer.
========================================================= */

.sx-has-side {
    --hm-side: 264px;
    --hm-ease: cubic-bezier(0.77, 0, 0.18, 1);
    --sx-header: 0px;
}

/* content sits to the right of the sidebar */
.sx-has-side:not(.sx-home) > main,
.sx-has-side > .reli-footer {
    margin-left: var(--hm-side);
}

/* =========================================================
   SIDEBAR
========================================================= */

.hm-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: var(--hm-side);
    padding: 30px 26px 26px;
    background: #ffffff;
    border-right: 1px solid var(--sx-line);
}

.hm-logo img {
    width: 176px;
    height: auto;
}

.hm-nav {
    margin-top: clamp(28px, 6vh, 64px);
}

.hm-nav ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: clamp(8px, 1.3vh, 12px) 12px;
    color: #2b2b2b;
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hm-nav-num {
    color: #b3b3b3;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hm-nav-link i {
    margin-left: auto;
    color: #b3b3b3;
    font-size: 10px;
    transition: transform 0.25s ease;
}

.hm-nav-link:hover {
    color: var(--sx-ink);
    background: var(--sx-soft);
}

.hm-nav-link.is-current {
    color: var(--sx-ink);
    background: var(--sx-soft);
}

.hm-nav-link.is-current::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--sx-red);
    border-radius: 0 3px 3px 0;
}

.hm-nav-link.is-current .hm-nav-num,
.hm-nav-link:hover .hm-nav-num {
    color: var(--sx-red);
}

/* products fly-out */
.hm-fly {
    position: fixed;
    top: 0;
    bottom: 0;
    left: var(--hm-side);
    z-index: 59;
    display: flex;
    flex-direction: column;
    width: 540px;
    padding: 36px 32px;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid var(--sx-line);
    box-shadow: 30px 0 60px rgba(17, 17, 17, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: opacity 0.25s ease, transform 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 1081px) {
    .hm-has-fly:hover .hm-fly,
    .hm-has-fly:focus-within .hm-fly,
    .hm-has-fly.is-open .hm-fly {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hm-has-fly:hover > .hm-nav-link,
    .hm-has-fly.is-open > .hm-nav-link {
        background: var(--sx-soft);
    }

    .hm-has-fly:hover > .hm-nav-link i,
    .hm-has-fly.is-open > .hm-nav-link i {
        transform: translateX(3px);
        color: var(--sx-red);
    }
}

.hm-fly-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sx-line);
}

.hm-fly-kicker,
.hm-fly-title {
    color: var(--sx-red);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hm-fly-title {
    display: block;
    margin-bottom: 10px;
    padding-left: 12px;
    color: #8a8a8a;
}

.hm-fly-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sx-ink);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
}

.hm-fly-cols {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
}

.hm-fly-cols a {
    display: grid;
    gap: 1px;
    padding: 9px 12px;
    text-decoration: none;
    border-radius: 7px;
    transition: background-color 0.2s ease;
}

.hm-fly-cols a strong {
    color: var(--sx-ink);
    font-size: 14px;
    font-weight: 600;
}

.hm-fly-cols a small {
    color: var(--sx-muted);
    font-size: 12.5px;
}

.hm-fly-cols a:hover {
    background: var(--sx-soft);
}

.hm-fly-cols a:hover strong {
    color: var(--sx-red);
}

.hm-side-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--sx-line);
}

.hm-quote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin-bottom: 6px;
    padding: 0 18px;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    background: var(--sx-ink);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.hm-quote:hover {
    background: var(--sx-red);
}

.hm-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sx-text);
    font-size: 13px;
    text-decoration: none;
    word-break: break-all;
}

.hm-side-link i {
    width: 14px;
    color: var(--sx-red);
}

.hm-side-link:hover {
    color: var(--sx-ink);
}

.hm-social {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.hm-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--sx-ink);
    font-size: 13px;
    border: 1px solid var(--sx-line);
    border-radius: 7px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hm-social a:hover {
    color: #ffffff;
    background: var(--sx-red);
    border-color: var(--sx-red);
}

.hm-topbar,
.hm-scrim {
    display: none;
}



@media (max-width: 1080px) {
    .sx-has-side {
        --hm-side: 0px;
        --sx-header: 68px;
    }

    .hm-topbar {
        position: sticky;
        top: 0;
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 68px;
        padding: 0 20px;
        background: rgba(255, 255, 255, 0.97);
        border-bottom: 1px solid var(--sx-line);
        backdrop-filter: blur(10px);
    }

    .hm-topbar-logo img {
        width: 128px;
        height: auto;
    }

    .hm-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 11px;
        background: var(--sx-soft);
        border: 0;
        border-radius: 8px;
        cursor: pointer;
    }

    .hm-toggle span {
        display: block;
        height: 2px;
        background: var(--sx-ink);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .hm-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hm-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .hm-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hm-side {
        z-index: 80;
        width: min(320px, 86vw);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.35s var(--hm-ease);
    }

    .hm-side.is-open {
        transform: none;
        box-shadow: 30px 0 60px rgba(0, 0, 0, 0.2);
    }

    .hm-scrim:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 75;
        display: block;
        background: rgba(10, 10, 11, 0.5);
    }

    .hm-fly {
        position: static;
        display: none;
        width: auto;
        padding: 6px 0 12px 12px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hm-has-fly.is-open .hm-fly {
        display: block;
    }

    .hm-has-fly.is-open > .hm-nav-link i {
        transform: rotate(90deg);
    }

    .hm-fly-head {
        display: none;
    }

    .hm-fly-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hm-fly-cols a small {
        display: none;
    }

}


/* =========================================================
   DARK GRADIENT THEME (black → red)
========================================================= */

.hm-side {
    color: #ffffff;
    background:
        radial-gradient(ellipse 120% 45% at 0% 100%, rgba(229, 50, 55, 0.45), transparent 70%),
        radial-gradient(ellipse 90% 30% at 100% 0%, rgba(229, 50, 55, 0.12), transparent 70%),
        linear-gradient(180deg, #070708 0%, #111113 45%, #2a0d0f 80%, #4a1013 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hm-logo {
    display: inline-block;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hm-logo img {
    width: 164px;
}

.hm-nav-link {
    color: #cfcfcf;
}

.hm-nav-num,
.hm-nav-link i {
    color: #6f6f6f;
}

.hm-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.hm-nav-link.is-current {
    color: #ffffff;
    background: rgba(229, 50, 55, 0.16);
}

.hm-nav-link.is-current .hm-nav-num,
.hm-nav-link:hover .hm-nav-num {
    color: #ff5a5f;
}

@media (min-width: 1081px) {
    .hm-has-fly:hover > .hm-nav-link,
    .hm-has-fly.is-open > .hm-nav-link {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
    }
}

.hm-side-foot {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.hm-quote {
    background: var(--sx-red);
    box-shadow: 0 10px 26px rgba(229, 50, 55, 0.3);
}

.hm-quote:hover {
    color: var(--sx-ink);
    background: #ffffff;
}

.hm-side-link {
    color: #bdbdbd;
}

.hm-side-link:hover {
    color: #ffffff;
}

.hm-social a {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

/* drawer version of the fly-out sits on the dark sidebar */
@media (max-width: 1080px) {
    .hm-fly {
        background: transparent;
    }

    .hm-fly-title {
        color: #8a8a8a;
    }

    .hm-fly-cols a strong {
        color: #e2e2e2;
    }

    .hm-fly-cols a:hover {
        background: rgba(255, 255, 255, 0.06);
    }
}


/* =========================================================
   OTHER ANODES FLY-OUT (category list)
========================================================= */

.hm-fly.hm-fly-cats {
    width: 420px;
}

.hm-cat-list {
    display: grid;
    gap: 4px;
}

.hm-cat-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.hm-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    color: var(--sx-red);
    font-size: 15px;
    background: rgba(229, 50, 55, 0.08);
    border-radius: 8px;
}

.hm-cat-text {
    display: grid;
    gap: 1px;
}

.hm-cat-text strong {
    color: var(--sx-ink);
    font-size: 14.5px;
    font-weight: 600;
}

.hm-cat-text small {
    color: var(--sx-muted);
    font-size: 12.5px;
}

.hm-cat-no {
    margin-left: auto;
    color: #b3b3b3;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hm-cat-list a:hover,
.hm-cat-list a.is-current {
    background: var(--sx-soft);
}

.hm-cat-list a:hover strong,
.hm-cat-list a.is-current strong {
    color: var(--sx-red);
}

@media (max-width: 1080px) {
    .hm-fly.hm-fly-cats {
        width: auto;
    }

    .hm-cat-list a {
        padding: 9px 8px;
    }

    .hm-cat-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.06);
    }

    .hm-cat-text strong {
        color: #e2e2e2;
    }

    .hm-cat-text small {
        color: #8f8f8f;
    }

    .hm-cat-list a:hover,
    .hm-cat-list a.is-current {
        background: rgba(255, 255, 255, 0.06);
    }
}
