/**
 * piimarket — Who We Work With template styles.
 * Loaded only on pages using the "Who We Work With" template.
 */

/*--------------------------------------------------------------
  First section — centered title
--------------------------------------------------------------*/
.www-first {
    padding: 3rem 0 3.5rem;
}

.www-title {
    margin: 0;
    text-align: center;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-text);
}

/*--------------------------------------------------------------
  Second section — full-bleed light band, brand logo grid
--------------------------------------------------------------*/
.www-second {
    padding: 3.5rem 0 4.5rem;
    background: #f6f6f6;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 1.5rem;
    align-items: center;
    justify-items: center;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.5rem;
}

.brand-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/*--------------------------------------------------------------
  Responsive
--------------------------------------------------------------*/
@media (max-width: 782px) {
    .www-first {
        padding: 2rem 0 2.5rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .brand-item {
        padding: 1rem;
    }
}
