/* Grupo Agrisustentável - Design Moderno Sustentável */

:root {
    --forest-green: #10b981;
    --emerald: #059669;
    --lime: #84cc16;
    --earth-brown: #92400e;
    --golden: #f59e0b;
    --sky-blue: #0ea5e9;
    --white: #ffffff;
    --cream: #fffbeb;
    --dark-green: #064e3b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --gradient-nature: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-earth: linear-gradient(135deg, #84cc16 0%, #10b981 100%);
    --gradient-sky: linear-gradient(135deg, #0ea5e9 0%, #84cc16 100%);
    --shadow-soft: 0 10px 40px rgba(16, 185, 129, 0.15);
    --shadow-hover: 0 20px 60px rgba(16, 185, 129, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-green);
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(16, 185, 129, 0.1);
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-nature) 1;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
    background: var(--gradient-nature);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo:hover h1 {
    transform: scale(1.05);
}

.logo p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    background: var(--gradient-nature);
    border-radius: 10px;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--forest-green);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--forest-green);
    border-radius: 10px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.9) 100%),
                url('../images/hero-agriculture.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(132, 204, 22, 0.2) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="leafs" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23leafs)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--white);
    line-height: 1.1;
}

.hero p {
    font-size: 24px;
    margin-bottom: 50px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--white);
    color: var(--forest-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 3px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--forest-green);
    transform: translateY(-5px);
}

/* Sections */
.section {
    padding: 120px 0;
}

.section h2 {
    text-align: center;
    font-size: 52px;
    margin-bottom: 25px;
    position: relative;
}

.section > .container > p {
    text-align: center;
    font-size: 20px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Services */
.services {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 70px;
}

.service-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-nature);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--forest-green);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: var(--gradient-earth);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

.service-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    margin-bottom: 20px;
    color: var(--dark-green);
    font-size: 26px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* Projects */
.projects {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

.project-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 280px;
    background: var(--gradient-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.project-content {
    padding: 35px;
}

.project-content h3 {
    margin-bottom: 18px;
    color: var(--dark-green);
    font-size: 28px;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* About */
.about {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-light);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat h3 {
    font-size: 56px;
    background: var(--gradient-nature);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.about-image {
    height: 500px;
    background: var(--gradient-earth);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-hover);
}

/* Content Section */
.content-section {
    background: var(--white);
    padding: 100px 0;
}

.content-section h2 {
    font-size: 48px;
    margin-bottom: 40px;
}

.content-section h3 {
    color: var(--forest-green);
    margin: 50px 0 25px 0;
    font-size: 36px;
}

.content-section p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-light);
}

.content-section ul, .content-section ol {
    margin: 30px 0 40px 40px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 17px;
    color: var(--text-light);
}

/* Contact */
.contact {
    background: var(--gradient-nature);
    color: var(--white);
}

.contact h2, .contact p {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 22px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--emerald) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 22px;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom a {
    color: var(--lime);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

    .nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }
}
