/* ============================================================
   HLxHub — Premium Dynamic Mobile Brands
   File: assets/css/home/mobile-brands.css
============================================================ */

.hlx-brands-section {
    --brand-primary: #1769ff;
    --brand-orange: #ff8a00;
    --brand-text: #172033;
    --brand-muted: #7b8495;
    --brand-border: #e9edf3;

    width: 100%;
    padding: 55px 0;
    background: #ffffff;
    overflow: hidden;
}

.hlx-brands-section .hlx-container {
    width: 100%;
    max-width: 1240px;
    padding: 0 20px;
    margin: 0 auto;
}

/* ============================================================
   SECTION HEADING
============================================================ */

.hlx-brands-section .hlx-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 27px;
}

.hlx-brands-section .hlx-section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.hlx-brands-section .hlx-section-heading h2 {
    margin: 0;
    color: var(--brand-text);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.hlx-brands-section .hlx-section-heading p {
    margin: 9px 0 0;
    color: var(--brand-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   BRAND GRID
============================================================ */

.hlx-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    width: 100%;
}

.hlx-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 145px;
    padding: 17px 10px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 13px;

    text-decoration: none !important;
    text-align: center;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease,
        background .25s ease;
}

/* Brand Icon */

.hlx-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 49px;
    height: 49px;
    margin-bottom: 11px;

    color: var(--brand-primary);
    background: #f0f5ff;
    border: 1px solid #e2ebff;
    border-radius: 14px;

    font-size: 23px;
    font-weight: 800;

    transition: all .25s ease;
}

/* Brand Name */

.hlx-brand-card strong {
    display: block;
    max-width: 100%;
    overflow: hidden;

    color: var(--brand-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color .25s ease;
}

/* Phone Count */

.hlx-brand-count {
    display: block;
    margin-top: 4px;

    color: var(--brand-muted);
    font-size: 11px;
    font-weight: 500;
}

/* Explore Arrow */

.hlx-brand-arrow {
    margin-top: 8px;
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
}

/* Hover */

.hlx-brand-card:hover {
    transform: translateY(-4px);
    background: #fbfdff;
    border-color: #b8d0ff;
    box-shadow: 0 9px 25px rgba(23, 105, 255, .09);
}

.hlx-brand-card:hover .hlx-brand-icon {
    color: #ffffff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: scale(1.06);
}

.hlx-brand-card:hover strong {
    color: var(--brand-primary);
}

/* ============================================================
   BRAND WISE MOBILE COLLECTION
============================================================ */

.hlx-brand-mobiles {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 48px;
}

.hlx-brand-mobile-group {
    width: 100%;
    min-width: 0;
}

/* Brand Heading */

.hlx-brand-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 17px;
    padding-bottom: 13px;

    border-bottom: 1px solid var(--brand-border);
}

.hlx-brand-mobile-heading .hlx-section-label {
    margin-bottom: 4px;
    font-size: 10px;
}

.hlx-brand-mobile-heading h3 {
    margin: 0;
    color: var(--brand-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.4px;
}

/* View All */

.hlx-view-all-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    flex-shrink: 0;
    padding: 8px 13px;

    color: var(--brand-primary) !important;
    background: #f1f6ff;
    border: 1px solid #e1ebff;
    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;

    transition: all .2s ease;
}

.hlx-view-all-brand:hover {
    color: #ffffff !important;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.hlx-view-all-brand span {
    font-size: 15px;
    transition: transform .2s ease;
}

.hlx-view-all-brand:hover span {
    transform: translateX(3px);
}

/* ============================================================
   HOME CARD GRID
============================================================ */

.hlx-brand-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    min-width: 0;
}

/* Ensure reusable home cards fit */

.hlx-brand-mobile-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1024px) {

    .hlx-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 11px;
    }

    .hlx-brand-card {
        min-height: 138px;
    }

    .hlx-brand-mobiles {
        gap: 30px;
        margin-top: 40px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 600px) {

    .hlx-brands-section {
        padding: 35px 0;
    }

    .hlx-brands-section .hlx-container {
        padding: 0 14px;
    }

    .hlx-brands-section .hlx-section-heading {
        margin-bottom: 19px;
    }

    .hlx-brands-section .hlx-section-heading h2 {
        font-size: 23px;
    }

    .hlx-brands-section .hlx-section-heading p {
        font-size: 12px;
    }

    .hlx-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .hlx-brand-card {
        min-height: 120px;
        padding: 12px 5px;
        border-radius: 11px;
    }

    .hlx-brand-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
        border-radius: 12px;
        font-size: 19px;
    }

    .hlx-brand-card strong {
        font-size: 12px;
    }

    .hlx-brand-count {
        font-size: 10px;
    }

    .hlx-brand-arrow {
        margin-top: 5px;
        font-size: 10px;
    }

    .hlx-brand-mobiles {
        gap: 27px;
        margin-top: 32px;
    }

    .hlx-brand-mobile-heading {
        margin-bottom: 13px;
        padding-bottom: 11px;
    }

    .hlx-brand-mobile-heading h3 {
        font-size: 17px;
    }

    .hlx-brand-mobile-heading .hlx-section-label {
        font-size: 9px;
    }

    .hlx-view-all-brand {
        padding: 7px 9px;
        font-size: 10px;
    }

    .hlx-brand-mobile-grid {
        gap: 10px;
    }
}

/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .hlx-brands-section .hlx-container {
        padding: 0 11px;
    }

    .hlx-brands-grid {
        gap: 7px;
    }

    .hlx-brand-card {
        min-height: 112px;
        padding: 10px 3px;
    }

    .hlx-brand-icon {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .hlx-brand-card strong {
        font-size: 11px;
    }

    .hlx-brand-mobile-heading h3 {
        font-size: 15px;
    }

    .hlx-brand-mobile-grid {
        gap: 8px;
    }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .hlx-brands-section *,
    .hlx-brands-section *::before,
    .hlx-brands-section *::after {
        transition: none !important;
        animation: none !important;
    }
}