/* ============================================================
   BRANDS SECTION — Trusted Brand Logos
   قسم العلامات التجارية الموثوقة
   ============================================================ */

.brands-section {
    padding: var(--spacing-10) 0;
    background: var(--color-page-bg);
}

/* ── Section header ── */
.brands-header {
    text-align: center;
    margin-bottom: 32px;
}

.brands-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-heading);
    position: relative;
    display: inline-block;
    margin: 0;
}

.brands-title::before,
.brands-title::after {
    content: '—';
    font-size: 1rem;
    color: var(--almabr-primary-light);
    font-weight: 400;
    margin: 0 12px;
    opacity: 0.6;
}

/* ── Logos strip ── */
.brands-logos-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid #E2EAF4;
    border-bottom: 1px solid #E2EAF4;
}

/* ── Individual brand logo ── */
.brand-logo-item {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 36px;
    border-left: 1px solid #E2EAF4;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    min-width: 140px;
}

.brand-logo-item:first-child {
    border-left: none;
}

.brand-logo-item:hover {
    background: #F0F6FF;
    transform: translateY(-2px);
}

.brand-logo-item img {
    max-height: 70px;       /* كان 36px — كُبِّر إلى 70px */
    max-width: 160px;       /* كان 110px */
    width: auto;
    object-fit: contain;
    filter: grayscale(0%) opacity(0.85);   /* ألوان طبيعية */
    transition: filter 0.25s ease, transform 0.25s ease;
}

.brand-logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ── Text-only brand logos ── */
.brand-text-logo {
    font-size: 18px;
    font-weight: 800;
    color: #7898B8;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.brand-text-logo:hover {
    color: var(--almabr-primary);
}

/* Specific styling for yuwell */
.brand-text-default:nth-child(2) {
    color: #E8371C;
}

.brand-text-default:nth-child(2):hover {
    color: #c42c15;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .brand-logo-item img {
        max-height: 58px;
        max-width: 140px;
    }

    .brand-logo-item {
        padding: 18px 24px;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .brands-logos-strip {
        gap: 0;
        flex-wrap: wrap;
    }

    .brand-logo-item {
        flex: 0 0 33.333%;
        padding: 18px 16px;
        border-left: 1px solid #E2EAF4;
        border-bottom: 1px solid #E2EAF4;
    }

    .brand-logo-item:first-child {
        border-left: 1px solid #E2EAF4;
    }

    .brand-logo-item:nth-child(3n+1) {
        border-left: none;
    }

    .brands-title {
        font-size: 1.2rem;
    }

    .brand-logo-item img {
        max-height: 54px;
        max-width: 120px;
    }

    .brand-text-logo {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .brand-logo-item {
        flex: 0 0 50%;
        padding: 16px 12px;
    }

    .brand-logo-item:nth-child(3n+1) {
        border-left: 1px solid #E2EAF4;
    }

    .brand-logo-item:nth-child(2n+1) {
        border-left: none;
    }

    .brand-logo-item img {
        max-height: 48px;
        max-width: 100px;
    }
}
