/* ========================================
   TRUSTED CLIENTS PAGE STYLES
   ======================================== */

/* Page Hero styles inherited from page-common.css */

/* Trusted Clients Section */
.trusted-clients-section {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Client Card */
.client-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.24s;
    cursor: pointer;
    animation: slideUp 0.5s ease-out backwards;
    position: relative;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

/* Card Cover */
.card-cover {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.card-cover-brand {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

/* Logo Container - Overlapping Cover */
.logo-container {
    position: relative;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -45px;
    margin-bottom: 12px;
    z-index: 10;
}

.client-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 7px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    border: 2px solid white;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.client-card:hover .client-logo {
    transform: scale(1.03) rotateZ(-0.5deg);
    box-shadow: 0 10px 26px rgba(10, 146, 221, 0.16);
}

.logo-fallback {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Body */
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px 24px;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Duration Badge */
.duration-badge {
    display: none !important;
}

/* Trust Stars */
.trusted-clients-section .trust-stars {
    display: none !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.2rem;
    color: #94a3b8;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cta-section .btn-primary {
    background: white;
    color: #667eea;
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .page-hero {
        height: 280px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .trusted-clients-section {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }

    .card-cover {
        height: 94px;
    }

    .logo-container {
        margin-top: -44px;
        height: 90px;
        margin-bottom: 10px;
    }

    .client-logo {
        width: 94px;
        height: 94px;
    }

    .logo-fallback {
        width: 84px;
        height: 84px;
        font-size: 2.1rem;
    }

    .client-name {
        font-size: 1.05rem;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 240px;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .trusted-clients-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-cover {
        height: 88px;
    }

    .logo-container {
        margin-top: -40px;
        height: 82px;
        margin-bottom: 8px;
    }

    .client-logo {
        width: 86px;
        height: 86px;
    }

    .logo-fallback {
        width: 78px;
        height: 78px;
        font-size: 1.9rem;
    }

    .card-body {
        padding: 0 16px 20px;
    }

    .client-name {
        font-size: 1rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 1.3rem;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Modal styles for client detail */
.client-modal {
    display: none;
}
.client-modal.open {
    display: block;
}
.client-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
}
.client-modal-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1110;
    max-width: 820px;
    width: calc(100% - 40px);
    border-radius: 12px;
}
.client-modal-content {
    background: transparent;
}
.client-modal .client-card-modal-copy {
    box-shadow: 0 18px 48px rgba(2,6,23,0.45);
    border-radius: 12px;
    overflow: hidden;
    transform: none;
}
.client-modal-close {
    position: absolute;
    right: 8px;
    top: -18px;
    z-index: 1120;
    background: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(2,6,23,0.18);
}
.modal-body {
    padding: 20px;
    background: transparent;
}

body.modal-open {
    overflow: hidden;
}
