/* Estilos Específicos para a Página Inicial */
/* Herda de global.css */

/* HERO SECTION */
.section-hero {
    padding: 100px 5% 60px;
    background: transparent; /* Allows global texture to show */
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 280px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.section-hero h1 {
    font-size: 3.5rem;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 4px;
    font-weight: 800;
}

.section-hero p {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta {
    display: inline-block;
    background: var(--text);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--text);
    transition: all 0.3s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15,42,94,0.2);
    opacity: 0.9;
}

.cta-secondary:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-2px);
}

/* FEATURES SECTION */
.section-features {
    padding: 80px 5%;
    background: transparent; /* Removed white background */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white to show texture slightly but keep readability */
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    width: 100%; /* Fill grid cell */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: var(--shadow);
    height: 100%; /* Uniform height */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #fff; /* Solid white on hover */
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.feature-card p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
}

/* CLIENTES SECTION (Infinite Scroll) */
.section-clientes {
    background: transparent; /* Removed background */
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.section-clientes h2 {
    font-size: 2.2rem;
    margin-bottom: 60px;
    color: var(--text);
    padding: 0 10%;
}

.scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Optional: Add a mask to fade out edges if needed, but linear-gradient backgrounds covered it before. 
       Now we might need a mask-image or just let it scroll. 
       Let's use mask-image for better transparency support. */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Removed old pseudo-elements that used solid colors */
.scroller::before, .scroller::after {
    content: none; 
}

.clientes-track {
    display: flex;
    gap: 50px;
    width: max-content;
    padding: 20px 0;
    animation: scroll 30s linear infinite;
}

.clientes-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); }
}

.cliente {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.5); /* Slight backing for logos */
    border-radius: 10px;
    padding: 10px;
}

.cliente:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cliente img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* TIME SECTION */
.time {
    padding: 100px 5%;
    background: transparent; /* Removed white background */
}

.time h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text);
}

.time-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    height: 550px;
    max-width: 1000px;
    margin: 0 auto;
}

.membro {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 4px solid #fff; /* Added border to separate images from texture */
}

.membro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.8);
}

.membro.active {
    flex: 3;
}

.membro.active img {
    filter: brightness(1);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-hero h1 { font-size: 2.2rem; }
    .section-hero p { font-size: 1.1rem; }
    .hero-btns { flex-direction: column; align-items: stretch; gap: 15px; }
    
    .time-grid { flex-direction: column; height: auto; }
    .membro { height: 300px; flex: none; }
    .membro.active { flex: none; height: 400px; }
    
    .section-features { padding: 40px 5%; }
    .features-grid { 
        display: block; /* Força os cards a ocuparem a largura total individualmente */
    }
    .feature-card { 
        padding: 30px 20px; 
        margin-bottom: 25px; /* Espaço claro entre cada bloco */
        height: auto; 
    }
    .feature-card:last-child { margin-bottom: 0; }
    .feature-card i { font-size: 2.5rem; margin-bottom: 15px; }
    .feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
}