/* =================================================================== */
/* ESTILOS DA P�GINA DE CLIENTES - 3 POR LINHA                       */
/* =================================================================== */

:root {
    --primary-red: #d62828;
    --primary-red-light: #ff4444;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999;
    --text-gray: #cccccc;
}

/* =================================================================== */
/* HERO SECTION - T�TULO PRINCIPAL                                    */
/* =================================================================== */

.cliente-title-spacing {
    min-height: 70vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 80px !important;
    margin-top: 0;
    overflow: hidden;
}

.cliente-title-spacing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(214, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 40, 40, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cliente-title-spacing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 40, 40, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cliente-title-spacing .container {
    position: relative;
    z-index: 1;
}

.cliente-title-spacing h1 {
    font-family: 'EurostileBold', 'Michroma', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.cliente-title-spacing .lead {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Estat�sticas */
.clients-stats {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.clients-stats .stat-item {
    text-align: center;
    position: relative;
}

.clients-stats .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(214, 40, 40, 0.3);
}

.stat-item h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Dark */
.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* =================================================================== */
/* BUSCA - DENTRO DO HERO                                             */
/* =================================================================== */

.search-wrapper {
    margin-top: 2.5rem;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(214, 40, 40, 0.3) !important;
    border-radius: 50px !important;
    color: var(--text-light) !important;
    font-size: 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.search-input:focus {
    outline: none !important;
    border-color: var(--primary-red) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 25px rgba(214, 40, 40, 0.4) !important;
}

/* =================================================================== */
/* CARDS DE CLIENTES - 3 POR LINHA                                   */
/* =================================================================== */

#clientes-listing {
    background-color: var(--dark-bg);
}

.client-card-item {
    transition: opacity 0.3s ease;
}

.client-card {
    background: var(--card-bg);
    border: 1px solid rgba(214, 40, 40, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(214, 40, 40, 0.3);
    border-color: var(--primary-red);
}

/* �rea da Imagem - PADRONIZADA */
.client-card-img-container {
    height: 150px;
    background: var(--dark-bg-secondary);
    border-bottom: 1px solid #333;
}

/* Maior especificidade para vencer relacionados.css (mesma classe, carregado depois) */
#clientes-listing .client-card-img-container {
    background: var(--dark-bg-secondary);
}

.client-card-img-container img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-card:hover .client-card-img-container img {
    transform: scale(1.05);
}

/* Conte�do do Card */
.client-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.client-category {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--primary-red) !important;
    font-weight: 600;
}

.client-name {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text-light);
}

.client-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.read-more-btn {
    border: 2px solid var(--primary-red);
    color: var(--text-light);
    padding: 8px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    width: fit-content;
}

.read-more-btn:hover {
    background: var(--primary-red);
    color: var(--text-light);
    transform: translateX(5px);
}

/* =================================================================== */
/* CATEGORIAS                                                         */
/* =================================================================== */

.clients-categories-section {
    background: var(--dark-bg);
}

.category-card {
    background: var(--card-bg);
    border: 1px solid rgba(214, 40, 40, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(214, 40, 40, 0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 40, 40, 0.15);
    border: 2px solid rgba(214, 40, 40, 0.4);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--primary-red);
}

.category-card:hover .category-icon {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: rotate(360deg);
}

.category-card:hover .category-icon i {
    color: var(--text-light);
}

/* =================================================================== */
/* CTA                                                                */
/* =================================================================== */

.cta-section {
    background: var(--dark-bg-secondary);
    padding: 5rem 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(214, 40, 40, 0.15);
    border: 3px solid var(--primary-red);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.cta-icon i {
    font-size: 3rem;
    color: var(--primary-red);
    transition: all 0.4s ease;
}

.cta-icon:hover {
    background: var(--primary-red);
}

.cta-icon:hover i {
    color: white;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--primary-red);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(214, 40, 40, 0.4);
}

.btn-cta:hover {
    background: var(--primary-red-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(214, 40, 40, 0.6);
    color: var(--text-light);
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* =================================================================== */
/* RESPONSIVO                                                         */
/* =================================================================== */

/* Tablets */
@media (max-width: 991px) {
    .cliente-title-spacing {
        min-height: 60vh;
        padding: 140px 0 60px !important;
    }
    
    .cliente-title-spacing h1 {
        font-size: 2.75rem;
    }
    
    .cliente-title-spacing .lead {
        font-size: 1.1rem;
    }
    
    .clients-stats {
        gap: 2rem;
    }
    
    .clients-stats .stat-item:not(:last-child)::after {
        right: -1rem;
    }
    
    .client-card-img-container {
        height: 140px;
    }
    
    .client-card-img-container img {
        max-height: 110px;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .search-wrapper {
        margin-top: 2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cliente-title-spacing {
        min-height: auto;
        padding: 120px 0 50px !important;
    }
    
    .cliente-title-spacing h1 {
        font-size: 2rem;
    }
    
    .cliente-title-spacing .lead {
        font-size: 1rem;
    }
    
    .clients-stats {
        flex-wrap: nowrap;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }

    .clients-stats .stat-item {
        flex: 1 1 0;
        min-width: 0;
    }

    .clients-stats .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item h2 {
        font-size: 1.75rem;
    }
    
    .stat-item p {
        font-size: 0.75rem;
    }
    
    .search-wrapper {
        margin-top: 1.5rem;
    }
    
    .search-input {
        padding: 14px 15px 14px 45px !important;
        font-size: 0.9rem !important;
    }
    
    .search-icon {
        left: 15px;
        font-size: 1rem;
    }
    
    .client-card-img-container {
        height: 120px;
    }
    
    .client-card-img-container img {
        max-height: 100px;
    }
    
    .client-name {
        font-size: 1.1rem;
    }
    
    .client-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-icon {
        width: 80px;
        height: 80px;
    }
    
    .cta-icon i {
        font-size: 2.5rem;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .cliente-title-spacing h1 {
        font-size: 1.75rem;
    }
    
    .clients-stats {
        gap: 0.5rem !important;
    }
    
    .search-wrapper .col-md-8 {
        padding: 0 15px;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}