#clients-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(3rem, 6vw, 4rem);
}

.clients-header {
    text-align: left;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    max-width: 100%;
}

/* .clients-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-black-01);
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    line-height: 1.1;
} */
 .client-title,
.client-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
  text-align: center;
}

.clients-intro {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black-03);
    margin: 0;
    max-width: clamp(40rem, 70vw, 50rem);
}

.clients-intro p {
    margin-bottom: 1rem;
}

.clients-intro p:last-child {
    margin-bottom: 0;
}


.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(12rem, 20vw, 16rem), 1fr));
    margin-top: clamp(2rem, 4vw, 3rem);
    position: relative;
    border-top: 1px solid #e6e6e6;
    border-left: 1px solid #e6e6e6;
    gap: 0;
}


.client-card {
    background: var(--color-white);
    padding: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    min-height: clamp(10rem, 20vw, 10rem);
    position: relative;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.client-card:hover {
    background-color: #fafafa;
    transform: translateY(-0.125rem);
}

.client-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


.client-logo {
    max-height: clamp(3rem, 6vw, 5rem);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: clamp(1rem, 2vw, 3rem);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    order: 1;
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
}

.client-name {
    font-family: var(--font-title);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--color-black-01);
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    text-align: center; 
    text-transform: uppercase;
    line-height: 1.2;
    order: 2;
    width: 100%;
    text-decoration-color: var(--color-black-01);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.client-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: clamp(0.375rem, 1vw, 0.75rem);
    margin-top: auto;
    width: 100%;
    order: 3;
}


.client-tags-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.75);
    text-align: left;
    line-height: 1.4;
    margin-top: auto;
    width: 100%;
    text-transform: capitalize;
    text-decoration: none; 
}


.client-card-link:focus,
.client-card-link:focus-visible {
    outline: none !important;
    background-color: #fafafa;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-card {
    animation: fadeInUp 0.6s ease forwards;
}

.client-card:nth-child(1) { animation-delay: 0.1s; }
.client-card:nth-child(2) { animation-delay: 0.15s; }
.client-card:nth-child(3) { animation-delay: 0.2s; }
.client-card:nth-child(4) { animation-delay: 0.25s; }
.client-card:nth-child(5) { animation-delay: 0.3s; }
.client-card:nth-child(6) { animation-delay: 0.35s; }
.client-card:nth-child(7) { animation-delay: 0.4s; }
.client-card:nth-child(8) { animation-delay: 0.45s; }


@media (min-width: 1600px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .clients-header {
        text-align: center;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    }
}

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

@media (max-width: 360px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}


@media (prefers-reduced-motion: reduce) {
    .client-card {
        animation: none;
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .clients-grid {
        border-color: #000000;
    }
    
    .client-card {
        border-color: #000000;
    }
}
