/* ---------- Our Brands: page title (desktop) ---------- */
#brands-section {
    width: 866px;
    height: 143px;
    margin: 70px auto 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}
 
#brands-section h1 {
    margin: 0;
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;
    color: var(--primary);
}
 
#brands-section hr {
    width: 100px;
    height: 2px;
    margin: 0;
    border: 0;
    background: rgba(62, 79, 71, 0.35);
}
 
#brands-section p {
    margin: 0;
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    color: var(--text);
}
 
/* ---------- Our Brands: logos (desktop) ---------- */
#logo-section {
    width: 1162px;  
    margin: 56px auto 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 88px 56px; 
}
 
#logo-section a {
    width: 350px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    gap: 16px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s;
}
 
#logo-section a:hover {
    transform: translateY(-4px); 
}
 
#logo-section img {
    display: block;
    max-width: 100%;
    height: auto;
}
 
#logo-section p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

@media screen and (min-width: 1024px) and (max-width: 1232px) {
    #brands-section {
        width: 100%;
        max-width: 866px;
        height: auto; 
        padding: 0 40px;
        justify-content: flex-start;
        gap: 16px;
    }
    #logo-section {
        width: 100%;  
        max-width: 1162px;
        padding: 0 40px;
        gap: 56px 32px;  
    }
    #logo-section a {
        width: calc((100% - 64px) / 3); 
        max-width: 350px;
    }
}