/* ═══════════════════════════════════════════════════════════
 * REMCO — 6-SECTOR CATEGORY HERO STYLESHEET
 * ═══════════════════════════════════════════════════════════ */

.remco-matter {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 680px;
    overflow: hidden;
    background: #07080A;
    direction: rtl;
    font-family: 'Cairo', 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #E8ECEF;
    user-select: none;
    -webkit-user-select: none;
    --copper: #B4633A;
    --copper-glow: rgba(180, 99, 58, 0.45);
    --steel: #8A939C;
    --cold-white: #E8ECEF;
    --graphite: #15181C;
    --structure: #2A2F35;
}

/* ── 1. Background Images Layer ── */
.rm-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.rm-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.8s ease;
}

.rm-bg-slide.active {
    opacity: 1;
    visibility: visible;
}

.rm-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
    transition: transform 9s cubic-bezier(0.1, 0.2, 0.3, 1);
    filter: brightness(0.65) contrast(1.1);
}

.rm-bg-slide.active img {
    transform: scale(1.0);
}

/* ── 2. Atmospheric Cinematic Scrim ── */
.rm-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.72) 45%, rgba(7, 8, 10, 0.4) 100%),
        radial-gradient(circle at 80% 40%, rgba(7, 8, 10, 0.2) 0%, rgba(7, 8, 10, 0.85) 75%, #07080A 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── 3. WebGL2 Living Overlay Canvas ── */
#rmMatterCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}

/* ── 4. Custom Spring Cursor ── */
.rm-cursor-dot {
    position: fixed;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: var(--cold-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    will-change: transform;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.rm-cursor-ring {
    position: fixed;
    top: -16px;
    left: -16px;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(232, 236, 239, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    will-change: transform, width, height, border-color;
    transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.25s ease,
                background-color 0.25s ease,
                opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-cursor-ring.active {
    width: 64px;
    height: 64px;
    top: -32px;
    left: -32px;
    border-color: var(--copper);
    background: rgba(180, 99, 58, 0.15);
    backdrop-filter: blur(2px);
}

.rm-cursor-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cold-white);
    opacity: 0;
    letter-spacing: 0.05em;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

@media (hover: none), (pointer: coarse) {
    .rm-cursor-dot, .rm-cursor-ring { display: none !important; }
}

/* ── 5. 6-Sector Spine Navigation (01 - 06) ── */
.rm-spine {
    position: absolute;
    top: 50%;
    left: 42px;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rm-spine-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.rm-spine-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--steel);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.rm-spine-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(138, 147, 156, 0.65);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.rm-spine-bar {
    width: 24px;
    height: 2px;
    background: rgba(138, 147, 156, 0.25);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rm-spine-btn:hover .rm-spine-bar {
    background: var(--steel);
    width: 38px;
}

.rm-spine-btn:hover .rm-spine-num,
.rm-spine-btn:hover .rm-spine-name {
    color: var(--cold-white);
}

.rm-spine-btn.active .rm-spine-bar {
    background: var(--copper);
    width: 50px;
    height: 3px;
    box-shadow: 0 0 14px var(--copper-glow);
}

.rm-spine-btn.active .rm-spine-num {
    color: var(--copper);
}

.rm-spine-btn.active .rm-spine-name {
    color: var(--cold-white);
    font-weight: 700;
}

/* ── 6. Hero Container Layout ── */
.rm-container {
    position: relative;
    z-index: 5;
    max-width: 860px;
    padding: 16vh 56px 0;
    margin-inline-start: 0;
    margin-inline-end: auto;
    display: flex;
    flex-direction: column;
}

/* ── Meta & Badge ── */
.rm-meta-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.rm-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    background: rgba(180, 99, 58, 0.18);
    border: 1.5px solid rgba(180, 99, 58, 0.4);
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--copper);
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.rm-meta-note {
    font-size: 0.88rem;
    color: var(--steel);
}

/* ── Headline ── */
.rm-headline {
    font-size: clamp(2.5rem, 5.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cold-white);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    transition: opacity 0.25s ease, transform 0.25s ease;
    text-shadow: 0 2px 20px rgba(7, 8, 10, 0.8);
}

.rm-headline-accent {
    color: var(--copper);
    display: inline;
    text-shadow: 0 0 32px rgba(180, 99, 58, 0.45);
}

/* ── Tagline ── */
.rm-tagline {
    font-size: clamp(1.0rem, 1.35vw, 1.25rem);
    font-weight: 400;
    color: var(--steel);
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 680px;
    transition: opacity 0.25s ease;
    text-shadow: 0 1px 10px rgba(7, 8, 10, 0.7);
}

/* ── Action Buttons ── */
.rm-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.rm-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rm-cta--primary {
    background: var(--copper);
    color: #fff;
    box-shadow: 0 8px 26px rgba(180, 99, 58, 0.35);
}

.rm-cta--primary:hover {
    background: #c9754b;
    box-shadow: 0 14px 36px rgba(180, 99, 58, 0.55);
    transform: translateY(-2px);
}

.rm-cta--secondary {
    background: rgba(30, 35, 42, 0.7);
    color: var(--cold-white);
    border: 1.5px solid var(--structure);
    backdrop-filter: blur(12px);
}

.rm-cta--secondary:hover {
    border-color: var(--steel);
    background: rgba(40, 46, 55, 0.9);
    transform: translateY(-2px);
}

/* ── 7. Stats Ribbon ── */
.rm-stats {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0 24px;
}

.rm-stat {
    text-align: center;
}

.rm-stat__num {
    display: block;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: var(--cold-white);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.rm-stat__label {
    display: block;
    font-size: 0.82rem;
    color: var(--steel);
    margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════ */
/* 8. CONTINUOUS INFINITE SCROLLING BRANDS TICKER (FULL COLOR)     */
/* ════════════════════════════════════════════════════════════════ */
.rc-brands-ticker-sec {
    background: #ffffff;
    padding: 22px 0 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
    position: relative;
    direction: ltr;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.rc-brands-track-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4px 0;
    display: flex;
    align-items: center;
}

.rc-brands-track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    will-change: transform;
}

.rc-reemco-brand-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 66px;
    min-width: 140px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.rc-reemco-brand-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* FULL COLOR BRANDS (No grayscale filter) */
.rc-reemco-brand-card img {
    max-height: 46px;
    max-width: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.25s ease;
}

.rc-reemco-brand-card:hover img {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
 * RESPONSIVE BREAKPOINTS
 * ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .rm-spine {
        left: 20px;
    }
    .rm-spine-name {
        display: none;
    }
    .rm-container {
        padding: 13vh 32px 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .remco-matter {
        height: 88svh;
        min-height: 540px;
    }
    .rm-spine {
        top: auto;
        bottom: 25px;
        left: 20px;
        right: 20px;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    .rm-spine-name {
        display: none;
    }
    .rm-spine-btn {
        padding: 4px;
    }
    .rm-spine-bar {
        width: 16px;
    }
    .rm-spine-btn.active .rm-spine-bar {
        width: 28px;
    }
    .rm-container {
        padding: 11vh 20px 0;
    }
    .rm-headline {
        font-size: clamp(2.0rem, 7.5vw, 2.8rem);
    }
    .rm-tagline {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }
    .rm-actions {
        gap: 10px;
    }
    .rm-cta {
        padding: 12px 22px;
        font-size: 0.92rem;
    }
    .rm-stats {
        display: none;
    }
    .rc-reemco-brand-card {
        height: 54px;
        min-width: 110px;
        padding: 6px 16px;
    }
    .rc-reemco-brand-card img {
        max-height: 36px;
        max-width: 98px;
    }
}
