/*
Theme Name: Argho Agrosciences
Theme URI: https://argho.com.br
Author: Argho Dev Team
Author URI: https://argho.com.br
Description: Custom theme for Argho Agrosciences, focused on high performance and modern design.
Version: 1.0.0
Text Domain: argho-theme
*/

/* 
   Argho Agrosciences - Royal/Trust Theme
   Reference: Royal Agronegocios Structure
   Identity: Deep Dark (#051005) + Lime Green (#aaff00)
*/

:root {
    /* Core Colors */
    --color-bg-dark: #051005;
    --color-bg-light: #f4f7f4;

    --color-primary: #8cc63f;
    --color-primary-dark: #6da32f;

    --color-text-on-dark: #ffffff;
    --color-text-on-light: #1a2a1a;
    --color-text-muted-dark: #a0b0a0;
    --color-text-muted-light: #5a6a5a;

    --font-main: 'Outfit', sans-serif;
    --anim-speed: 0.3s;

    --container-width: 1200px;
    --nav-height: 90px;
    --border-radius-card: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--anim-speed);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--color-text-on-dark);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: inherit;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    /* 12px referenced */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    /* Pill shape from reference */
    background: #fff;
    color: #041334;
    /* Dark blue text */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-padding {
    padding: 100px 0;
}

/* Header */
header {
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 16, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    /* Font styles removed for image logo */
}

/* Removed previous text-logo styling
.logo { font-size: 2rem; ... } 
.logo span { ... }
*/

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-on-dark);
    opacity: 0.8;
}

.nav-links a:not(.btn):hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Hero - "bde-columns" Replication */
.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 50px;
    /* Space from header */
    min-height: calc(100vh - 120px);
}

.hero-left {
    flex: 1;
    padding-right: 2rem;
}

.hero-left h1 {
    font-size: 3.5rem;
    /* ~60px */
    font-weight: 400;
    /* As per reference */
    line-height: 1.1;
}

.hero-left h1 span {
    color: var(--color-primary);
    /* Royal Blue replacement */
    font-weight: 700;
}

.hero-description {
    font-size: 1rem;
    font-weight: 300;
    color: #e6e6e6;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* BDE Cards */
.bde-card {
    background: #0d1a0d;
    /* Slightly lighter than bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s;
}

.bde-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.bde-card.media-card {
    padding: 0;
}

.bde-card.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.bde-stat h2 {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.bde-stat span {
    font-size: 0.9rem;
    color: var(--color-text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Section (Light Theme) */
.products-section {
    background-color: var(--color-bg-light);
    color: var(--color-text-on-light);
}

.products-section h2 {
    color: var(--color-text-on-light);
}

.products-section .section-label {
    color: var(--color-text-muted-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #ffffff;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img-wrapper {
    height: 250px;
    background: #f8faf8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-img-wrapper img {
    max-height: 100%;
    transition: transform 0.4s;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: var(--color-text-on-light);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-info p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-link {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link::after {
    content: '→';
    transition: transform 0.2s;
}

.btn-link:hover::after {
    transform: translateX(5px);
}

/* Services and Contact */
.services-section {
    background: #0a140a;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    padding: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.service-item:hover {
    border-left-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.02);
}

.why-us-section {
    background: var(--color-primary);
    color: #051005;
    padding: 50px 0;
}

.why-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.why-item {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-section {
    background: #080f08;
}

footer {
    background: #000;
    padding: 3rem 0;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

/* Animations & Optimizations
   Using GPU-accelerated properties for performance */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Optimize image rendering */
img {
    height: auto;
    /* Prevent layout shift if width/height attributes are missing, though WP usually adds them */
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Mobile */
@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
    }

    .hero-left {
        padding-right: 0;
        text-align: center;
    }

    .hero-right {
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .why-grid {
        flex-direction: column;
    }

    #about .container {
        grid-template-columns: 1fr;
    }
}