/* ==========================================================================
   Who We Work With page styles (extends style.css)
   ========================================================================== */

section[id] {
    scroll-margin-top: 80px;
}

.section-head-row {
    margin-bottom: 1.75rem;
}

.section-head-row .section-title {
    font-size: clamp(1.75rem, 3vw, 2.1rem);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.section-head-row .section-subtitle {
    font-size: 0.975rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* ---------- Contracts & certifications ---------- */
.certs {
    padding: 3.5rem 0;
    background: #ffffff;
}

.cert-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem;
    background: var(--color-primary-light);
    border: 1px solid #e3ebe5;
    border-radius: 10px;
}

.cert-logo {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}

.cert-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cert-card h3 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-black);
    margin: 0;
}

.cert-card p {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--color-gray);
    margin: 0;
}

.cert-card code {
    font-size: 0.85rem;
    color: var(--color-primary);
    background: #ffffff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* ---------- Client logo grid ---------- */
.clients {
    padding: 3.5rem 0;
    background: var(--color-primary-light);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.client-grid figure {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e3ebe5;
    border-radius: 8px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-grid figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.client-grid img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-names {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.client-names strong {
    color: var(--color-black);
}

/* ---------- Markets strip (dark, reused from landing) ---------- */
.markets-strip {
    padding: 2.5rem 0;
    background: var(--color-dark);
    color: #ffffff;
}

.markets-grid {
    display: grid;
    grid-template-columns: 300px repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.markets-head .section-label {
    color: var(--color-lime);
    margin-bottom: 0.35rem;
}

.markets-head .section-title {
    color: #ffffff;
    font-size: 1.625rem;
    line-height: 1.15;
    margin: 0;
}

.markets-strip .market-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.markets-strip .market-icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-lime);
    display: flex;
    align-items: center;
    justify-content: center;
}

.markets-strip .market-text h4 {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #ffffff;
}

.markets-strip .market-text p {
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.page-cta {
    padding: 3.5rem 0;
}

.page-cta-box {
    padding: 3rem 2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .client-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .markets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .markets-head {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .certs,
    .clients,
    .page-cta {
        padding: 2.75rem 0;
    }

    .client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .markets-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-grid figure {
        height: 90px;
    }
}
