/* =========================================================
   SAN MEP SOLUTIONS
   CLIENTS PAGE
   ========================================================= */


/* ---------------------------------------------------------
   HEADER CONTACT
   --------------------------------------------------------- */

.header-utility .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-contact {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    text-decoration: none;
}

.header-contact i {
    font-size: 13px;
}


/* ---------------------------------------------------------
   CLIENT HERO
   --------------------------------------------------------- */

.clients-hero {
    min-height:240px;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.clients-hero .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    text-align: left;
}

.clients-hero .section-kicker {
    display: block;
    margin-bottom: 18px;
}

.clients-hero h1 {
    max-width: 850px;
    margin: 0 0 14px;
    text-align: left;
}

.clients-hero p {
    max-width: 760px;
    margin: 0;
    text-align: left;
}


/* ---------------------------------------------------------
   CLIENT PORTFOLIO
   --------------------------------------------------------- */

.clients-section {
    padding: 58px 0;
    background: #f5f9fc;
}

.clients-section .section-heading-center {
    margin-bottom: 38px;
}


/* ---------------------------------------------------------
   CLIENT GRID
   --------------------------------------------------------- */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.client-card {
    min-height: 225px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 28px 24px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e1e9ef;
    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(17, 48, 78, .055);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.client-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 34px rgba(17, 48, 78, .10);
}

.client-card img {
    width: auto;
    max-width: 175px;
    height: 72px;

    object-fit: contain;

    margin-bottom: 20px;
}

.client-card h3 {
    margin: 0 0 6px;

    color: #12324d;

    font-size: 17px;
    line-height: 1.35;
}

.client-card > p {
    margin: 0;

    color: #718091;

    font-size: 13px;
}

.client-logo-placeholder {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 12px;

    background: #edf5fa;

    color: #123c58;

    font-size: 22px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------- */

.testimonials {
    padding: 58px 0;
    background: #ffffff;
}

.testimonials .section-heading-center {
    margin-bottom: 38px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card {
    position: relative;

    padding: 30px;

    background: #f5f9fc;

    border: 1px solid #e1e9ef;
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(17, 48, 78, .045);
}

.testimonial-card .quote {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 9px;

    background: #e8f7f6;

    color: #16aaa4;

    font-size: 14px;
}

.testimonial-card > p {
    margin: 0 0 22px;

    color: #4e6070;

    font-size: 14px;
    line-height: 1.7;
}

.client-info {
    padding-top: 17px;

    border-top: 1px solid #dce5eb;
}

.client-info h4 {
    margin: 0 0 4px;

    color: #12324d;

    font-size: 14px;
}

.client-info p {
    margin: 0;

    color: #718091;

    font-size: 12px;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.cta {
    padding: 55px 0;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .clients-hero .container {
        max-width: 100%;
    }

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

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .header-utility .container {
        justify-content: flex-end;
    }

    .header-contact {
        gap: 14px;
        font-size: 12px;
    }

    .header-contact a {
        gap: 5px;
    }

    .clients-hero {
        min-height: 270px;
    }

    .clients-hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .clients-section,
    .testimonials {
        padding: 42px 0;
    }

    .clients-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .clients-section .section-heading-center,
    .testimonials .section-heading-center {
        margin-bottom: 28px;
    }

    .client-card {
        min-height: 205px;
    }

}


/* ---------------------------------------------------------
   SMALL MOBILE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .header-contact {
        gap: 10px;
        font-size: 11px;
    }

    .header-contact i {
        font-size: 11px;
    }

    .clients-hero h1 {
        font-size: 40px;
    }

    .client-card {
        padding: 24px 20px;
    }

}

/* Final hero positioning: keep compact hero while clearing the fixed header */
.clients-hero {
    margin-top: 100px;
}

@media (max-width: 900px) {
    .clients-hero {
        margin-top: 68px;
    }
}


/* ---------------------------------------------------------
   CLIENT & PROJECT NETWORK — compact premium organisation wall
   --------------------------------------------------------- */
.client-network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.client-network-card {
    min-width: 0;
    min-height: 174px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 18px 19px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e1e9ef;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 48, 78, .045);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.client-network-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 170, 164, .36);
    box-shadow: 0 16px 34px rgba(17, 48, 78, .10);
}
.client-network-identity {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-network-identity img {
    display: block;
    max-width: 178px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.client-network-mark {
    min-width: 54px;
    max-width: 100%;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 13px;
    background: #e9f6f5;
    color: #087f7b;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.035em;
}
.client-network-card h3 {
    max-width: 100%;
    margin: 0;
    color: #12324d;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 750;
}
.client-network-location {
    margin-top: -6px;
    color: #718091;
    font-size: 12px;
}
.client-network-note {
    margin: 24px 0 0;
    color: #7a8995;
    font-size: 12px;
    text-align: center;
}
@media (max-width: 1000px) {
    .client-network-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .client-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .client-network-card { min-height: 155px; padding: 18px 12px; }
    .client-network-card h3 { font-size: 13px; }
}
@media (max-width: 380px) {
    .client-network-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .client-network-card { min-height: 145px; }
}
