/* =========================================
   AGRO-FOOD - STYLESHEET
   ========================================= */

:root {
    --primary-color: #2e7d32;
    /* Deep Modern Green */
    --primary-light: #4caf50;
    /* Lighter Green */
    --primary-dark: #1b5e20;
    /* Dark Green */
    --accent-color: #fdd835;
    /* Yield Yellow */
    --text-dark: #2c3e50;
    /* Dark Slate */
    --text-muted: #7f8c8d;
    /* Muted Gray */
    --bg-light: #f8fcf8;
    /* Off-white Greenish Tint */
    --bg-white: #ffffff;
    /* Pure White */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(46, 125, 50, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* =========================================
   Typography & Elements
   ========================================= */
.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px 0 25px 0;
    border-radius: 2px;
}

.divider.center {
    margin: 15px auto 30px auto;
}

.divider-light {
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

header.scrolled {
    background-color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

header.scrolled .logo a {
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

header.scrolled .nav-links li a {
    color: var(--text-dark);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

header.scrolled .nav-links li a::after {
    background-color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.85) 0%, rgba(76, 175, 80, 0.75) 100%),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Abstract pattern overlay for corporate feel */
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(255, 216, 53, 0.15) 0%, transparent 40%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.3s;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.7s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   About Section
   ========================================= */
.sobre-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sobre-text,
.sobre-image {
    flex: 1;
}

.agrimec-card {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: 0 10px 10px 0;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
}

.agrimec-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agrimec-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.agrimec-contact {
    margin-top: 20px;
    padding: 20px 25px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agrimec-contact h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.agrimec-contact a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.agrimec-contact a:hover {
    color: var(--primary-color);
}

.agrimec-contact a i {
    color: var(--primary-color);
    width: 18px;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    /* Square aspect ratio */
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    /* Adding a subtle crop pattern overlay */
    background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255, 255, 255, 0.05) 20px, rgba(255, 255, 255, 0.05) 21px);
}

/* =========================================
   Services Section
   ========================================= */
.section-header {
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    transition: var(--transition);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
    color: white;
}

/* =========================================
   Why Choose Us Section
   ========================================= */
.why-us-section {
    background-color: var(--primary-dark);
    position: relative;
}

.why-us-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--primary-color), transparent);
    z-index: 1;
    pointer-events: none;
}

.why-us-section .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 20px auto;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover .feature-icon {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.feature-item h4 {
    color: white;
    font-size: 1.2rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* =========================================
   Footer / Contact Section
   ========================================= */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-info h2 span {
    color: var(--primary-color);
}

.footer-info p {
    color: #aaaaaa;
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-details a {
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-details i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-form h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #aaaaaa;
    display: inline-block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    background-color: #111111;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #666666;
    font-size: 0.9rem;
}

/* =========================================
   Animations & Classes JS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .sobre-container {
        flex-direction: column;
    }

    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    header.scrolled .mobile-menu-btn,
    .mobile-menu-btn.active {
        color: var(--text-dark);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}