/* ============================================
   Clients Page Specific Styles
   ============================================ */

.clients-intro {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.clients-intro .intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.clients-intro h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.clients-intro .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Featured Clients */
.featured-clients {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.03), rgba(220, 20, 60, 0.03));
}

/* Logo Carousel */
.logo-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: var(--spacing-lg);
    padding: 0.5rem 0;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    width: max-content;
}

.logo-slide {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 185px;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: default;
}

.logo-slide:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.logo-slide img {
    max-width: 200px;
    max-height: 145px;
    object-fit: contain;
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.15);
    z-index: 3;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

/* Industries Section — Advanced Bento Layout */
.industries-section {
    padding: 0;
    overflow: hidden;
}

.industries-bento {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 620px;
}

/* Left Dark Panel */
.industries-panel {
    background: linear-gradient(160deg, #150505 0%, #8B0000 55%, #b91c1c 100%);
    position: relative;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
    z-index: 2;
}

.industries-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
    pointer-events: none;
}

.industries-panel-inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 4.5rem 3.5rem 3rem;
    color: white;
}

.industries-panel-inner .section-tag {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.25rem;
    display: inline-block;
}

.industries-panel-inner h2 {
    color: white;
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}

.industries-panel-inner p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.industries-panel-stats {
    display: flex;
    gap: 1.75rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

.ips-item strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.ips-item span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.3rem;
}

.btn-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    color: var(--primary-color);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.btn-panel-cta:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

.btn-panel-cta i {
    transition: transform 0.3s ease;
}

.btn-panel-cta:hover i {
    transform: translateX(4px);
}

/* Right Cards Grid */
.industries-cards {
    background: #f4f4f6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
    align-content: center;
}

/* Industry Cards */
.industry-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem 1.25rem 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c0392b 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(139, 0, 0, 0.22);
    border-color: transparent;
}

.industry-card:hover::after {
    opacity: 1;
}

.ic-num {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    font-size: 2.4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.04);
    line-height: 1;
    transition: color 0.4s ease;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.industry-card:hover .ic-num {
    color: rgba(255, 255, 255, 0.1);
}

.ic-icon {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: rgba(139, 0, 0, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    transition: background 0.4s ease;
    flex-shrink: 0;
}

.ic-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.industry-card:hover .ic-icon {
    background: rgba(255, 255, 255, 0.2);
}

.industry-card:hover .ic-icon i {
    color: #ffffff;
}

.industry-card h4 {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c1c2e;
    margin-bottom: 0.35rem;
    transition: color 0.4s ease;
    line-height: 1.3;
}

.industry-card p {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
    flex: 1;
    transition: color 0.4s ease;
}

.industry-card:hover h4,
.industry-card:hover p {
    color: rgba(255, 255, 255, 0.93);
}

.ic-bar {
    position: relative;
    z-index: 2;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-top: 0.85rem;
    width: 28px;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card:hover .ic-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1100px) {
    .industries-bento {
        grid-template-columns: 300px 1fr;
    }

    .industries-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 2rem 2rem 3rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background: var(--text-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--border-color);
}

.testimonial-author strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Client Stats */
.client-stats {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.client-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.client-stats .stat-item {
    color: var(--text-white);
    padding: var(--spacing-md);
}

.client-stats .stat-item i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.client-stats .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.client-stats .stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .industries-bento {
        grid-template-columns: 1fr;
    }

    .industries-panel {
        clip-path: none;
    }

    .industries-panel-inner {
        padding: 3rem 2rem;
    }

    .industries-cards {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1.5rem;
    }

    .industries-panel-stats {
        gap: 1.25rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .client-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .clients-intro h2 {
        font-size: 2rem;
    }

    .client-stats .stats-grid {
        grid-template-columns: 1fr;
    }

    .industries-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CTA — Compact override for clients page
   ============================================ */
.cta--slim {
    padding: 2.5rem 0;
}

.cta--slim .cta-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: 0.5rem;
}

.cta--slim .cta-content p {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}
