/**
 * Brand logos — 625×250 transparent wordmarks (2.5:1).
 * Mirror-glare sweep on hover. No background boxes.
 */

.logo-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-frame img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
}

/* Mirror glare sweep */
.logo-frame::after {
    content: '';
    position: absolute;
    inset: -20% -60%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.12) 44%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0.12) 56%,
        transparent 62%
    );
    transform: translateX(-130%) skewX(-20deg);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
}

.logo-frame:hover {
    transform: translateY(-1px) scale(1.03);
}

.logo-frame:hover::after {
    transform: translateX(130%) skewX(-20deg);
    opacity: 1;
}

.logo-dual {
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.logo-dual:hover .logo-frame::after {
    transform: translateX(130%) skewX(-20deg);
    opacity: 1;
}

.logo-dual:hover .logo-frame--oosoft::after {
    transition-delay: 0.08s;
}

/* ─── Header ─── */
.site-header .logo-frame--richoosoft {
    height: 66px;
    width: 188px;
}

.site-header .logo-frame--oosoft {
    height: 60px;
    width: 168px;
}

.site-header .logo-divider {
    height: 44px;
}

/* ─── Footer logos — white panel for contrast on light footer ─── */
.ft-logos,
.footer-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ft-logos .logo-frame,
.footer-logos .logo-frame {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 2px 10px rgba(26, 24, 20, 0.08);
    border: 1px solid rgba(26, 24, 20, 0.06);
    height: 50px;
    width: 160px;
    box-sizing: border-box;
}

.ft-logos .logo-frame--richoosoft,
.ft-logos .logo-frame--oosoft,
.footer-logos .logo-frame--richoosoft,
.footer-logos .logo-frame--oosoft {
    height: 50px;
    width: 160px;
}

.ft-logos .logo-frame--oosoft,
.footer-logos .logo-frame--oosoft {
    padding-top: 9px;
    padding-bottom: 7px;
}

.ft-logos .logo-frame--oosoft img,
.footer-logos .logo-frame--oosoft img {
    object-position: center center;
}

.ft-logos .logo-frame::after,
.footer-logos .logo-frame::after {
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.2) 44%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.2) 56%,
        transparent 62%
    );
}

/* ─── Mega menu ─── */
.logo-frame--mega.logo-frame--richoosoft {
    height: 48px;
    width: 148px;
    margin-bottom: 10px;
}

.logo-frame--mega.logo-frame--oosoft {
    height: 44px;
    width: 132px;
    margin-bottom: 10px;
}

/* ─── Mobile drawer ─── */
.drawer-logos .logo-frame--richoosoft {
    height: 50px;
    width: 148px;
}

.drawer-logos .logo-frame--oosoft {
    height: 46px;
    width: 132px;
}

/* ─── Hero brand cards ─── */
.hero-brands .logo-frame {
    margin-bottom: 16px;
}

.hero-brands .logo-frame--richoosoft {
    height: 58px;
    width: 172px;
}

.hero-brands .logo-frame--oosoft {
    height: 54px;
    width: 156px;
}

/* ─── Brand logo panels ─── */
.brand-logo-panel .logo-frame--richoosoft {
    height: 62px;
    width: 182px;
}

.brand-logo-panel .logo-frame--oosoft {
    height: 58px;
    width: 166px;
}

/* ─── Product card badge ─── */
.product-brand-logo-badge .logo-frame--richoosoft {
    height: 30px;
    width: 96px;
}

.product-brand-logo-badge .logo-frame--oosoft {
    height: 28px;
    width: 88px;
}

.product-brand-logo-badge .logo-frame:hover {
    transform: scale(1.06);
}

/* ─── Product detail ─── */
.product-detail-info .logo-frame {
    margin-bottom: 12px;
}

.product-detail-info .logo-frame--richoosoft {
    height: 48px;
    width: 148px;
}

.product-detail-info .logo-frame--oosoft {
    height: 44px;
    width: 132px;
}

/* ─── Catalogue cards ─── */
.catalogue-brand-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.catalogue-brand-wrap .logo-frame--richoosoft {
    height: 56px;
    width: 168px;
}

.catalogue-brand-wrap .logo-frame--oosoft {
    height: 52px;
    width: 152px;
}

/* ─── About page ─── */
.about-brand-logo .logo-frame--richoosoft {
    height: 62px;
    width: 182px;
}

.about-brand-logo .logo-frame--oosoft {
    height: 58px;
    width: 166px;
}

@media (max-width: 768px) {
    .site-header .logo-frame--richoosoft {
        height: 54px;
        width: 152px;
    }

    .site-header .logo-frame--oosoft {
        height: 50px;
        width: 136px;
    }

    .logo-dual {
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .site-header .logo-frame--richoosoft {
        height: 46px;
        width: 128px;
    }

    .site-header .logo-frame--oosoft {
        height: 42px;
        width: 116px;
    }

    .site-header .logo-divider {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-frame::after {
        display: none;
    }

    .logo-frame:hover {
        transform: none;
    }
}
