:root {
    --primary: #008953; /* Deep Agro Green */
    --primary-light: #00A96B;
    --accent: #FFC107; /* Sunflower Yellow typical for agro */
    --accent-hover: #E0A800;
    
    --bg-main: #FFFFFF;
    --bg-alt: #F4F7F6;
    
    --text-dark: #333333;
    --text-muted: #666666;
    
    --wa-color: #25D366;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Custom Premium Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- Top Bar --- */
.top-bar {
    background: linear-gradient(90deg, #006e44 0%, var(--primary) 50%, #006e44 100%);
    background-size: 200% auto;
    animation: shimmerBar 4s linear infinite, slideDown 0.6s ease-out;
    color: #fff;
    padding: 10px 0;
    font-size: 0.85rem;
}

@keyframes shimmerBar {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
}
.top-contatos a, .top-social a {
    color: #fff;
    margin-right: 20px;
    font-weight: 600;
}
.top-contatos i, .top-social i { margin-right: 5px; color: var(--accent); }

/* --- Navbar --- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0; z-index: 1000;
    animation: slideDown 0.7s ease-out 0.2s both;
    /* Only transition non-layout props to prevent jitter */
    transition: box-shadow 0.3s;
    will-change: box-shadow;
}
/* Scrolled: only deepen shadow, no padding/size changes */
.navbar.scrolled {
    box-shadow: 0 6px 25px rgba(0,0,0,0.18);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px;
}
.logo img { height: 50px; transition: transform 0.3s; }
.logo img:hover { transform: scale(1.05); }
.nav-links { display: flex; gap: 25px; }
.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--primary); transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: var(--accent);
    color: #000;
    padding: 10px 25px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}
.btn-nav:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }
.mobile-dropdown { display: none; background: #fff; flex-direction: column; border-top: 1px solid #eee; }
.mobile-dropdown.active { display: flex; }
.mobile-link { padding: 15px 20px; border-bottom: 1px solid #eee; font-weight: 600; text-transform: uppercase; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    display: flex; align-items: center;
}
/* --- Scroll Down Arrow --- */
.scroll-arrow {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    animation: bouncearrow 2s infinite 1.5s;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.1);
    transition: background 0.3s, border-color 0.3s;
}
.scroll-arrow:hover { background: var(--primary); border-color: var(--primary); }
@keyframes bouncearrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.05) 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
    width: 100%;
}
.hero-box { max-width: 650px; }
.hero-box h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-box h2 span { color: var(--accent); }
.hero-box p {
    font-size: 1.2rem;
    color: #f1f1f1;
    margin-bottom: 30px;
}
.hero-buttons { display: flex; gap: 15px; }

.btn-primary, .btn-secondary {
    padding: 15px 30px; border-radius: 4px; font-weight: 700; font-family: var(--font-heading); text-transform: uppercase;
    transition: all 0.3s; display: inline-block;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(0,137,83,0.35); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,137,83,0.5); }
.btn-secondary { background: var(--wa-color); color: #fff; box-shadow: 0 4px 15px rgba(37,211,102,0.35); }
.btn-secondary:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,211,102,0.5); }



/* --- Highlight Bar --- */
.highlight-bar {
    background: var(--bg-alt);
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.h-item {
    display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 8px; transition: 0.3s;
}
.h-item:hover { background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transform: translateY(-3px); }
.h-item i {
    font-size: 2rem; color: var(--primary); transition: 0.3s;
}
.h-item:hover i { transform: scale(1.1); }
.h-item strong { display: block; font-family: var(--font-heading); color: var(--text-dark); }
.h-item span { font-size: 0.85rem; color: var(--text-muted); }

/* --- About Section --- */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-badge {
    color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.about-text h2 {
    font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-dark); margin-bottom: 20px; line-height: 1.2;
}
.about-text h2 span { color: var(--primary); }
.about-text p { margin-bottom: 15px; color: var(--text-muted); }
.about-list { list-style: none; margin-top: 20px; }
.about-list li { margin-bottom: 10px; font-weight: 600; color: var(--text-dark); }
.about-list i { color: var(--primary); margin-right: 10px; }

.about-image img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: 0.3s; }
.about-image img:hover { transform: scale(1.02); }

/* --- Products Section --- */
.products-section { padding: 80px 0; background: var(--bg-alt); }
.section-title { margin-bottom: 50px; }
.section-title.center { text-align: center; }
.section-title h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-dark); margin-bottom: 10px; }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* Accent underline beneath section titles */
.section-title.center h2::after,
.about-text h2::after,
.tech-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin-top: 12px;
}
.section-title.center h2::after { margin: 12px auto 0; }

/* --- Cultivar Carousel --- */
.cultivar-carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 15px;
    margin-bottom: 20px;
}
.carousel-btn {
    background: #fff; border: 2px solid var(--primary); color: var(--primary);
    width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    cursor: pointer; font-size: 1.2rem; transition: 0.3s;
    flex-shrink: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); z-index: 10;
}
.carousel-btn:hover { background: var(--primary); color: #fff; }

.cultivar-carousel {
    display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory; padding: 15px 5px;
    /* Hide scrollbar */
    -ms-overflow-style: none; scrollbar-width: none;
    width: 100%;
}
.cultivar-carousel::-webkit-scrollbar { display: none; }

.c-card {
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 14px);
    background: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center; padding-bottom: 20px; border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}
.c-card:hover { transform: translateY(-5px); border-color: var(--primary-light); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.c-img-box {
    width: 100%; height: 220px; overflow: hidden; border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}
.c-img-box img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.3s;
}
.c-card:hover .c-img-box img { transform: scale(1.05); }
.c-card h3 {
    font-family: var(--font-heading); color: var(--primary); font-size: 1.3rem; margin: 0;
}

/* --- Tech Info Section --- */
.tech-info-section { padding: 80px 0; background: #fff; }
.tech-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.tech-text h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.tech-text h2 span { color: var(--primary); }
.tech-text p { color: var(--text-muted); margin-bottom: 20px; }
.advanced-list { list-style: none; margin: 30px 0; }
.advanced-list li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; color: var(--text-dark); }
.advanced-list i { color: var(--primary); font-size: 1.5rem; margin-top: 3px; }
.advanced-list strong { color: var(--primary); margin-right: 5px; }

.tech-images-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.br-10 { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; height: auto; transition: 0.3s; }
.br-10:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.mt-20 { margin-top: 20px; }

/* --- Smooth Entrance Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Videos Section --- */
.video-section { padding: 80px 0; background: var(--bg-alt); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.video-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; border: 2px solid transparent; }
.video-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); border-color: var(--primary-light); }
.video-wrapper { width: 100%; aspect-ratio: 9/16; background: #000; position: relative; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.video-info { padding: 20px; text-align: center; }
.video-info h3 { font-family: var(--font-heading); color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.video-info p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Mega CTA Agro --- */
.mega-cta-agro { background: var(--primary); padding: 50px 0; color: #fff; }
.cta-flex-box { display: flex; justify-content: space-between; align-items: center; background: url('./artes/marandu.png') center/cover; position: relative; padding: 60px; border-radius: 15px; overflow: hidden; }
.cta-flex-box::before { content: ''; position: absolute; inset: 0; background: rgba(0, 137, 83, 0.9); z-index: 1; }
.cta-flex-box h2 { position: relative; z-index: 2; font-family: var(--font-heading); font-size: 2.2rem; max-width: 600px; line-height: 1.3; }
.btn-whatsapp-solid { position: relative; z-index: 2; background: var(--accent); color: #000; font-weight: 700; padding: 18px 35px; border-radius: 5px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.btn-whatsapp-solid:hover { background: var(--accent-hover); }

/* --- Footer --- */
.classic-footer {
    background: #1a1a1a; color: #ccc; padding: 60px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.brand-widget img { height: 50px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.brand-widget p { color: #aaa; line-height: 1.7; }
.social-icons { margin-top: 20px; }
.social-icons a {
    display: inline-flex; width: 40px; height: 40px; background: #333; color: #fff; border-radius: 50%;
    justify-content: center; align-items: center; margin-right: 10px; transition: 0.3s;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-widget h3 {
    font-family: var(--font-heading); color: #fff; margin-bottom: 20px; font-size: 1.2rem;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary);
}
.footer-widget ul { list-style: none; }
.footer-widget ul li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.footer-widget ul li:hover { color: #fff; padding-left: 5px; }
.footer-widget ul i { color: var(--primary-light); }
.address-widget p { margin-bottom: 10px; }

.footer-bottom {
    background: #111; padding: 20px 0; text-align: center; font-size: 0.85rem; color: #888;
}

/* --- Fixed WA --- */
.float-wa {
    position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px;
    background: var(--wa-color); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 2.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000;
    animation: wppulse 2s infinite;
}
.float-wa:hover { background: #128C7E; animation: none; transform: scale(1.1); }

@keyframes wppulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .highlight-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .tech-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .c-card { flex: 0 0 calc(50% - 10px); }
    .video-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-links, .btn-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { height: 500px; min-height: 0; }
    .hero-box h2 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary, .btn-whatsapp-solid { text-align: center; justify-content: center; }
    
    .c-card { flex: 0 0 calc(100% - 20px); }
    .carousel-btn { display: none; }
    .cultivar-carousel { margin: 0 -15px; padding: 15px; }
    
    .video-grid { grid-template-columns: 1fr; }
    .cta-flex-box { flex-direction: column; text-align: center; gap: 20px; padding: 30px; }
    .cta-flex-box h2 { font-size: 1.8rem; }
    
    /* Remove the floating badge in small screens for better reading space */
    .hero-badge-container { display: none; }
    
    /* Background Swap for Mobile Devices */
    .hero-bg { background-image: url('../artes/bg-celular.png') !important; }
}
