/*===================================================
    Clients Page - Professional & Unique Styling
    Gapat Engineering Pvt. Ltd.
====================================================*/

:root {
    --primary-color: #089fac;
    --primary-hover: #07828d;
    --dark-navy: #141f2b;
    --card-dark: #1a2734;
    --heading-dark: #1e293b;
    --text-body: #475569;
    --border-light: #e2e8f0;
    --accent-gold: #ffaa17;
}

/* ===================================================
   1. Clients Hero Header - Luminous & Modern
=================================================== */
.clients-hero-header {
    position: relative;
    padding: 65px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e8edf3 100%);
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    color: #1e293b;
    z-index: 1 !important;
}

.clients-hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(8, 159, 172, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(8, 159, 172, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 1;
}

.clients-hero-header .hero-watermark {
    position: absolute;
    inset: 0;
    background-image: url(../img/page-header.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    filter: grayscale(100%);
    z-index: 0;
}

.clients-hero-header .container {
    position: relative;
    z-index: 2;
}

/* Breadcrumb Capsule */
.clients-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.clients-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s ease;
}

.clients-breadcrumb a:hover {
    color: #07828d;
}

.clients-breadcrumb i {
    font-size: 11px;
    color: #94a3b8;
}

.clients-breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

/* Tag Badge */
.clients-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 159, 172, 0.1);
    border: 1px solid rgba(8, 159, 172, 0.35);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.clients-badge-tag i {
    font-size: 15px;
    color: var(--accent-gold);
}

/* Title & Description */
.clients-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: #1e293b;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.clients-hero-title span {
    color: var(--primary-color);
}

.clients-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    max-width: 800px;
    margin-bottom: 22px;
}

/* Feature Pills in Hero */
.clients-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.clients-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.25s ease;
}

.clients-hero-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.clients-hero-pill i {
    color: var(--primary-color);
    font-size: 16px;
}

/* ===================================================
   2. Client Trust Metrics Counter Strip
=================================================== */
.clients-stats-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.clients-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.client-stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 15px;
    border-right: 1px solid #eef2f6;
}

.client-stat-box:last-child {
    border-right: none;
}

.client-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(8, 159, 172, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.client-stat-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 2px;
    line-height: 1.1;
    font-family: var(--primary-font, "Space Grotesk", sans-serif);
}

.client-stat-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* ===================================================
   3. Client Logo Showcase Section
=================================================== */
.clients-showcase-wrapper {
    padding: 70px 0 85px;
    background-color: #f8fafc;
}

.clients-section-header {
    text-align: center;
    margin-bottom: 45px;
}

.sub-heading-capsule {
    display: inline-block;
    background: rgba(8, 159, 172, 0.1);
    color: var(--primary-color);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.clients-section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.accent-separator {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.clients-section-header p {
    font-size: 15.5px;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Strict Client Logo Cards Grid (NO internal text) */
.clients-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.client-logo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.client-logo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.client-logo-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 35px rgba(8, 159, 172, 0.12);
}

.client-logo-card:hover::before {
    opacity: 1;
}

.client-logo-card img {
    max-width: 82%;
    max-height: 72%;
    object-fit: contain;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: grayscale(15%);
}

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

/* ===================================================
   4. Client Trust & Partnership Pillars (4 Pillars)
=================================================== */
.clients-pillars-section {
    padding: 80px 0 85px;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.clients-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pillar-card-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 22px;
    transition: all 0.3s ease;
    height: 100%;
}

.pillar-card-box:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(8, 159, 172, 0.1);
    transform: translateY(-5px);
}

.pillar-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(8, 159, 172, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.pillar-card-box:hover .pillar-icon-circle {
    background: var(--primary-color);
    color: #ffffff;
}

.pillar-card-box h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--heading-dark);
    margin-bottom: 8px;
}

.pillar-card-box p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

/* ===================================================
   5. Full-Width Strategic Call-To-Action Banner
=================================================== */
.clients-bottom-cta {
    position: relative;
    padding: 70px 0;
    background: #141f2b;
    color: #ffffff;
    overflow: hidden;
}

.clients-bottom-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
}

.clients-bottom-cta::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(8, 159, 172, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.clients-cta-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.clients-cta-text h3 {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.clients-cta-text p {
    font-size: 16px;
    color: #cbd5e1;
    margin: 0;
    max-width: 680px;
}

.clients-cta-btns {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-clients-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 15px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(8, 159, 172, 0.35);
}

.btn-clients-primary:hover {
    background: #ffffff;
    color: #141f2b;
    transform: translateY(-2px);
}

.btn-clients-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 15px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-clients-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ===================================================
   6. Responsive Breakpoints
=================================================== */
@media (max-width: 1199.98px) {
    .clients-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .clients-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .client-stat-box:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 767.98px) {
    .clients-hero-title {
        font-size: 28px;
    }
    .clients-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .client-logo-card {
        height: 110px;
        padding: 15px;
    }
    .clients-pillars-grid {
        grid-template-columns: 1fr;
    }
    .clients-stats-grid {
        grid-template-columns: 1fr;
    }
    .client-stat-box {
        border-right: none;
        border-bottom: 1px solid #eef2f6;
        padding-bottom: 15px;
    }
    .clients-cta-wrap {
        flex-direction: column;
        text-align: center;
    }
    .clients-cta-btns {
        justify-content: center;
        width: 100%;
    }
    .btn-clients-primary,
    .btn-clients-secondary {
        width: 100%;
        justify-content: center;
    }
}
