/* Homedash Customizations - Brands Grid widget. Elementor controls override these defaults. */

.hd-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
}

.hd-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    color: var(--text, #101010);
    text-decoration: none;
    background-color: var(--white, #ffffff);
    border: 1px solid var(--line, #e9e9e9);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

a.hd-brand:hover {
    color: var(--text, #101010);
    border-color: var(--text, #101010);
}

a.hd-brand:focus-visible {
    outline: 2px solid var(--text, #101010);
    outline-offset: 2px;
}

.hd-brands--lift-yes a.hd-brand:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(16, 16, 16, 0.08);
}

.hd-brand__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 72px;
}

.hd-brand__media img.hd-brand__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.hd-brand__fallback {
    max-width: 100%;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hd-brand__name {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.hd-brands--grayscale-yes .hd-brand__logo {
    filter: grayscale(1);
}

.hd-brands--grayscale-yes .hd-brand:hover .hd-brand__logo {
    filter: none;
}

.hd-brands-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-2, #696e73);
    border: 1px dashed var(--line, #e9e9e9);
    border-radius: 12px;
}

@media (max-width: 767px) {
    .hd-brand {
        padding: 12px 8px;
    }

    .hd-brand__media {
        height: 56px;
    }

    .hd-brand__fallback {
        font-size: 12px;
        letter-spacing: 0.02em;
    }
}
