/* =========================================
   VARIÁVEIS E BASE
   ========================================= */
:root {
    --primary: #1B5E20;    /* Verde Floresta Profundo */
    --secondary: #2E7D32;  /* Verde Agro */
    --accent: #FFB300;     /* Ouro Safra */
    --light-bg: #F4F7F4;   /* Cinza Esverdeado Limpo */
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-premium: 0 20px 50px rgba(0,0,0,0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, .logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* =========================================
   HEADER (GLASSMORPHISM)
   ========================================= */
.header-main {
    position: fixed;
    top: 0; width: 100%; height: 90px;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto; width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 45px; width: auto; transition: 0.3s; }

#cssmenu ul { display: flex; gap: 5px; list-style: none; align-items: center; }

#cssmenu ul li a {
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 50px;
}

#cssmenu ul li.active a, #cssmenu ul li a:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-nav {
    border: 2px solid var(--primary) !important;
}

.btn-nav.adm { background: transparent; }
.btn-nav.func { background: var(--accent); border-color: var(--accent) !important; color: var(--dark) !important; }

/* =========================================
   HERO CARROSEL (ULTRA MODERNO)
   ========================================= */
.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.carousel-container, .slide { height: 100%; width: 100%; }

.slide { display: none; position: relative; }
.slide.active { display: block; }

.slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transform: scale(1.1);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.overlay-modern {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.text-content {
    max-width: 700px;
    color: white;
}

.top-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-radius: 4px;
}

.text-content h2 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.text-content h2 strong { color: var(--accent); }

.text-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

.cta-button {
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.cta-button:hover { background: var(--accent); color: var(--dark); transform: translateY(-3px); }

/* Navegação Carrossel */
.nav-prev, .nav-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 20px; cursor: pointer;
    backdrop-filter: blur(5px); transition: 0.3s;
    font-size: 20px; border-radius: 50%;
}
.nav-prev { left: 30px; }
.nav-next { right: 30px; }
.nav-prev:hover, .nav-next:hover { background: var(--accent); color: var(--dark); }

.dots-container {
    position: absolute; bottom: 40px; width: 100%; text-align: center;
}
.dot {
    height: 4px; width: 40px; background: rgba(255,255,255,0.3);
    display: inline-block; margin: 0 5px; cursor: pointer; transition: 0.3s;
}
.dot.active { background: var(--accent); width: 60px; }

/* =========================================
   SEÇÕES DE CONTEÚDO
   ========================================= */
.section-fluid { padding: 120px 20px; }
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white); }

.container-modern { max-width: 1200px; margin: 0 auto; }

.title-wrapper { text-align: center; margin-bottom: 40px; }
.badge {
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
}

.section-title {
    font-size: 3rem; margin: 15px 0; color: var(--primary);
}

.title-line {
    width: 80px; height: 5px; background: var(--accent);
    margin: 0 auto; border-radius: 10px;
}

.intro-text-modern {
    text-align: center; max-width: 800px; margin: 0 auto;
    font-size: 1.25rem; color: #555; font-weight: 300;
}

/* Flex Layout */
.flex-row {
    display: flex; align-items: center; gap: 80px; margin-top: 60px;
}
.flex-row.reverse { flex-direction: row-reverse; }

.text-block { flex: 1; }
.text-block h3 { font-size: 2.5rem; margin-bottom: 25px; color: var(--dark); }
.text-block p { font-size: 1.1rem; color: #444; margin-bottom: 25px; text-align: justify; }

.feature-list { list-style: none; }
.feature-list li {
    margin-bottom: 15px; display: flex; align-items: center; gap: 10px;
    font-weight: 600; color: var(--primary);
}

.img-block { flex: 1; position: relative; }

.card-premium {
    border-radius: 30px; overflow: hidden;
    box-shadow: var(--shadow-premium);
    height: 450px;
}

/* Mini Carrossel */
.mini-carousel { position: relative; width: 100%; }
.mini-carousel img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: 1.5s ease;
}
.mini-carousel img.active { opacity: 1; }

/* Stats Mini */
.stats-mini { display: flex; gap: 30px; margin-top: 30px; }
.stat-item {
    background: var(--white); padding: 20px; border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: center;
}
.stat-item strong { display: block; font-size: 1.8rem; color: var(--secondary); }
.stat-item span { font-size: 0.8rem; text-transform: uppercase; color: #888; }

/* =========================================
   BANER TECNOLOGIA
   ========================================= */
.tech-banner {
    padding: 150px 20px;
    background: linear-gradient(rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.9)), 
                url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?q=80&w=1920');
    background-size: cover; background-attachment: fixed;
    color: white; text-align: center;
}

.tech-content h2 { font-size: 3.5rem; margin: 20px 0; }
.tech-content p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; opacity: 0.8; }

.tech-icons {
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
}

.t-icon {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}
.t-icon i {
    font-size: 2.5rem; color: var(--accent);
    background: rgba(255,255,255,0.1);
    width: 90px; height: 90px; display: flex;
    align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.3s;
}
.t-icon:hover i { background: var(--accent); color: var(--dark); transform: translateY(-10px); }

.t-icon .icon-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}


/* =========================================
   FOOTER
   ========================================= */
footer {
    background: var(--dark); color: #ccc; padding: 100px 0 40px;
}

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px;
    margin-bottom: 60px;
}

.footer-logo { height: 60px; margin-bottom: 25px; filter: brightness(0) invert(1); }

.footer-info p { max-width: 300px; margin-bottom: 25px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: white; transition: 0.3s;
}
.social-links a:hover { background: var(--accent); color: var(--dark); }

.footer-contact h4, .footer-farms h4 {
    color: white; margin-bottom: 25px; font-size: 1rem; letter-spacing: 2px;
}

.footer-farms ul { list-style: none; }
.footer-farms ul li { margin-bottom: 12px; font-size: 0.9rem; }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px; text-align: center; font-size: 0.8rem;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 1024px) {
    .text-content h2 { font-size: 3rem; }
    .flex-row { gap: 40px; }
}

@media (max-width: 768px) {
    .header-main { height: 70px; }
    
    .menu-icon { display: block; font-size: 24px; color: var(--primary); cursor: pointer; }

    #cssmenu {
        display: none; position: absolute; top: 70px; left: 0; width: 100%;
        background: var(--white); padding: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    #cssmenu.active { display: block; }
    #cssmenu ul { flex-direction: column; gap: 15px; }
    
    .text-content h2 { font-size: 2.5rem; }
    .flex-row, .flex-row.reverse { flex-direction: column; text-align: center; }
    
    .section-title { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-info p { margin: 0 auto 25px; }
    .social-links { justify-content: center; }
}