/* ==========================================================
   CLIENTS PAGE
   ========================================================== */

.clients-page {
    overflow: hidden;
    background: #ffffff;
}

/* ==========================================================
   HERO
   ========================================================== */

.clients-hero {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 420px;
    padding: 90px 0 70px;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

.clients-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(90deg,
            rgba(7, 17, 36, 0.92) 0%,
            rgba(7, 17, 36, 0.74) 48%,
            rgba(7, 17, 36, 0.35) 100%);
}

.clients-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: var(--brand-red, #e9454b);
}

.clients-hero .container {
    position: relative;
    z-index: 2;
}

.clients-hero-content {
    max-width: 720px;
}

.clients-hero-eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.clients-hero-title {
    margin: 0 0 22px;

    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(46px, 5.4vw, 76px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.clients-hero-title::after {
    content: "";
    display: block;

    width: 58px;
    height: 4px;
    margin-top: 18px;

    background: var(--brand-red, #e9454b);
}

/* Breadcrumb */

.clients-breadcrumb {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    background: transparent;
}

.clients-breadcrumb .breadcrumb-item,
.clients-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.clients-breadcrumb .breadcrumb-item a:hover {
    color: var(--brand-red, #e9454b);
}

.clients-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
}

.clients-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   LIST SECTION
   ========================================================== */

.clients-list-section {
    padding: 90px 0 100px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f6f8fb 100%);
}

/* Heading */

.clients-section-heading {
    max-width: 760px;
    margin: 0 auto 52px;
}

.clients-section-label {
    display: inline-block;
    margin-bottom: 10px;

    color: #111111;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.clients-section-title {
    margin: 0;

    color: var(--brand-red, #e9454b);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.clients-section-title::after {
    content: "";
    display: block;

    width: 52px;
    height: 3px;
    margin: 16px auto 0;

    background: var(--brand-red, #e9454b);
}

.clients-section-description {
    max-width: 650px;
    margin: 20px auto 0;

    color: #667085;
    font-size: 15px;
    line-height: 1.75;
}

/* ==========================================================
   CLIENT GRID
   ========================================================== */

.clients-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.clients-grid-item {
    display: flex;
    padding: 10px;
}

/* Card */

.client-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 220px;
    padding: 32px;

    border: 1px solid #e4e8ef;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.client-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(90deg,
            var(--brand-red, #e9454b),
            #111111);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 0.25s ease;
}

.client-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 69, 75, 0.42);
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.13);
}

.client-card:hover::before {
    transform: scaleX(1);
}

/* Logo wrapper */

.client-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 150px;
}

/* Logo */

.client-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 82%;
    max-height: 115px;

    margin: 0 auto;

    object-fit: contain;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.client-card:hover .client-logo {
    transform: scale(1.05);
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.clients-empty-state {
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 30px;

    border: 1px solid #e4e8ef;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
}

.clients-empty-state i {
    display: block;
    margin-bottom: 18px;

    color: var(--brand-red, #e9454b);
    font-size: 38px;
}

.clients-empty-state h3 {
    margin: 0 0 10px;

    color: #20242b;
    font-size: 24px;
    text-transform: none;
}

.clients-empty-state p {
    margin: 0;
    color: #667085;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
    .clients-hero {
        min-height: 380px;
        padding: 76px 0 60px;
    }

    .clients-list-section {
        padding: 74px 0 82px;
    }

    .clients-section-heading {
        margin-bottom: 42px;
    }

    .client-card {
        min-height: 200px;
        padding: 26px;
    }

    .client-logo-wrapper {
        min-height: 135px;
    }

    .client-logo {
        max-width: 84%;
        max-height: 100px;
    }
}

@media (max-width: 767px) {
    .clients-hero {
        min-height: 330px;
        padding: 62px 0 50px;
        background-position: 64% center;
    }

    .clients-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(7, 17, 36, 0.93) 0%,
                rgba(7, 17, 36, 0.76) 65%,
                rgba(7, 17, 36, 0.5) 100%);
    }

    .clients-hero-eyebrow {
        font-size: 10px;
    }

    .clients-hero-title {
        font-size: 42px;
    }

    .clients-list-section {
        padding: 58px 0 68px;
    }

    .clients-section-heading {
        margin-bottom: 34px;
    }

    .clients-section-title {
        font-size: 31px;
    }

    .clients-section-description {
        padding: 0 8px;
        font-size: 14px;
        line-height: 1.7;
    }

    .client-card {
        min-height: 180px;
        padding: 22px;
    }

    .client-logo-wrapper {
        min-height: 125px;
    }

    .client-logo {
        max-width: 86%;
        max-height: 92px;
    }
}

@media (max-width: 575px) {
    .clients-hero {
        min-height: 290px;
        padding: 52px 0 42px;
    }

    .clients-hero-title {
        font-size: 36px;
    }

    .clients-breadcrumb .breadcrumb-item,
    .clients-breadcrumb .breadcrumb-item a {
        font-size: 12px;
    }

    .clients-list-section {
        padding: 46px 0 56px;
    }

    .clients-section-title {
        font-size: 27px;
    }

    .clients-section-description {
        font-size: 13.5px;
    }

    .clients-grid {
        margin-left: -6px;
        margin-right: -6px;
    }

    .clients-grid-item {
        padding: 6px;
    }

    .client-card {
        min-height: 150px;
        padding: 16px;
    }

    .client-logo-wrapper {
        min-height: 105px;
    }

    .client-logo {
        max-width: 88%;
        max-height: 78px;
    }
}