:root {
    --primary: #000000;
    --accent: #c5a059;
    --text: #333333;
    --light: #ffffff;
    --title-font: 'EB Garamond', serif;
    --body-font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 80px; 
}

body {
    font-family: var(--body-font);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--light);
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 45px; }
.logo span { font-family: var(--title-font); font-weight: bold; font-size: 1.3rem; }

nav ul { display: flex; list-style: none; }
nav ul li a {
    text-decoration: none;
    color: var(--primary);
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
}
nav ul li a:hover { color: var(--accent); }

.nav-scrolled {
    padding: 10px 5%;
    background: #2d4534;
}
.nav-scrolled ul li a, .nav-scrolled .logo span, .nav-scrolled .menu-toggle {
    color: var(--light);
}
.nav-scrolled ul li a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--accent);
}

/* Header */
#home {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

#bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.35);
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; padding: 0 10%; line-height: 1.1; }

/* Sections */
section { padding: 100px 10%; }
.container { max-width: 1200px; margin: 0 auto; }
.dark { background: #2d4534; color: white; }

h2 { font-size: 2.5rem; margin-bottom: 50px; color: var(--accent); text-align: center; }

/* Ecossistema */
.ecossistema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ecossistema-card {
    background: #cb9e4338;
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #c5a059;
    transition: 0.3s;
}

.logo-box { height: 70px; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; }
.logo-box img { max-height: 100%; max-width: 80%; object-fit: contain; }
.ecossistema-card h4 { color: var(--accent); margin-bottom: 10px; }

/* Clientes */
.clientes-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
    /* Efeito premium: escurece as bordas laterais */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clientes-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scroll 35s linear infinite; /* Animação de 35s girando sem fim */
}

.clientes-track:hover {
    animation-play-state: paused; /* Pausa o loop se passar o mouse */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 30px)); } /* O cálculo exato para o loop infinito */
}

.cliente-item img {
    max-width: 180px;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.4s;
    object-fit: contain;
}

.cliente-item:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

/* Contato */
#contato { background: #c39f5926; }
.contato-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--body-font);
}

.btn-enviar {
    padding: 18px; background: var(--accent); color: white; border: none; font-weight: bold; cursor: pointer; text-transform: uppercase;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mapa-afa {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

footer { padding: 40px; text-align: center; background: #000; color: #555; font-size: 0.8rem; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    section { padding: 60px 5%; }
    nav { flex-wrap: wrap; }
    .menu-toggle { display: block; }
    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding-top: 15px;
    }
    nav ul.active { display: flex; }
    nav ul li a {
        margin-left: 0;
        display: block;
        padding: 10px 0;
    }
    .contato-wrapper { grid-template-columns: 1fr; }
}