/* FOLHA DE ESTILOS DE CLIENTES */

/* CONFIGURAÇÕES GERAIS E VARIÁVEIS */
:root {
    --primary: #003366;
    --secondary: #0056b3;
    --accent: #00b4d8;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-body: #f1f2f6;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background-color: var(--bg-body); color: var(--text-dark); overflow-x: hidden; }

body::-webkit-scrollbar {
    display: none;
    overflow: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.clientes {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 97%, 0% 100%);
    margin-bottom: 20px;
}

.clientes-hero { font-size: 2.8rem; text-transform: uppercase; letter-spacing: 3px; }

/* Floating WhatsApp */
.whatsapp-btn{ 
    position:fixed; 
    right:1rem; 
    bottom:1rem; 
    z-index:999; 
    background:var(--accent-500); 
    color:#fff; width:52px; 
    height:52px; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    border-radius:12px; 
    box-shadow:0 10px 30px rgba(13,148,136,0.25); 
    text-decoration:none; 
}

.whatsapp-btn:focus{ 
    outline:3px solid rgba(20,184,166,0.22); 
    outline-offset:4px 
}

/* Night adjustments */
body.night .glass-card{ 
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); 
    border:1px solid rgba(255,255,255,0.04); box-shadow:none; 
}

body.night .cube__face{ 
    background: linear-gradient(180deg, rgba(10,20,30,0.9), rgba(15,25,35,0.85)); color:var(--accent-400); border:1px solid rgba(255,255,255,0.03); }

/* Focus styles */
a:focus, button:focus, input:focus, textarea:focus{ 
    outline:4px solid rgba(13,148,136,0.12); 
    outline-offset:3px; 
}

.clientes-header{
    display: flex;
    justify-content: space-around;
}

.clientes-header button {
    height: 40px;
    margin-top: 00px;
}

.titulo {
    display: flex;
    text-align: center;
    justify-content: space-around;
    align-items: center;
    font-size: 26px;
    font-weight: 600;
    color: #FFFFFF;
}

.clientes button {
    padding: 8px 14px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}

.clientes button.active {
    background: #0077cc;
    color: #fff;
}

/* Barra de filtros */
.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;          /* 🔥 importante para o item 4 */
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10;
}

.filter-bar button {
    padding: 8px 14px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}

.filter-bar button.active {
    background: #0077cc;
    color: #fff;
}

/* Container dos cards */
.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px; /*25px*/
    transition: all 0.6s ease; /*0.9s*/
}

/* Card */
.card-clients {
    width: 129px; /*220px*/
    height: 129px; /*180px*/
    perspective: 1000px;
    position: relative;
    transition:
        transform 0.6s ease,
        opacity 0.6s ease;
    transition-delay: 0s;
}

/* Estrutura interna do flip */
.card-inner-clients {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

/* Hover desktop */
.card-clients:hover .card-inner-clients {
    transform: rotateY(180deg);
}

/* Faces */
.card-front,
.card-back {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-front img {
    max-width: 100%;
    max-height: 100%;
    background-color: rgb(75, 160, 250);
    border-radius: 8px;
}

.card-back {
    transform: rotateY(180deg);
    background: #0077cc;
}

.card-back a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Estados de filtro */
/* Quando oculto */
.card-clients.hide {
    transform: scale(0.6) translateY(20px); /*0.92*/
}

/* Quando visível */
.card-clients.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    position: relative;   /* 🔥 volta ao fluxo */
    transition-delay: 0.05s;
}

.cards-container .card-clients.hide {
    position: absolute;
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}
