/* ========================================
   PLANAR AGROTECH - DESIGN SYSTEM
   Desenvolvido por África Agency
   UX/UI Premium para Agritech
======================================== */

:root {
    /* Core Colors - Agro Tech Premium */
    --primary-color: #08605f;
    --primary-dark: #054a49;
    --primary-light: #0a7574;
    --cta-color: #729144;
    --cta-hover-color: #5a7335;
    --support-color: #6f4e37;
    --light-bg-color: #FDF8F0;
    --dark-text-color: #2d2d2d;
    --light-text-color: #ffffff;

    /* Extended Palette */
    --accent-green: #4CAF50;
    --accent-blue: #2196F3;
    --grey-light: #f5f5f5;
    --grey-medium: #9e9e9e;
    --grey-dark: #424242;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.24);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-secondary);
    color: var(--dark-text-color);
    line-height: 1.7;
    background-color: #fff;
    /* Textura sutil de madeira/grão */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(8, 96, 95, 0.015) 2px,
            rgba(8, 96, 95, 0.015) 4px
        );
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-primary); font-weight: 700; color: var(--primary-color); line-height: 1.3; }
h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.section-padding { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 4rem; }

/* ========================================
   BUTTONS - Ripple Effect & 3D
======================================== */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--cta-color) 0%, var(--cta-hover-color) 100%);
    color: var(--light-text-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(114, 145, 68, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--cta-hover-color) 0%, #485c2a 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(114, 145, 68, 0.5);
}

.cta-button:active {
    transform: translateY(-2px);
}

/* ========================================
   HEADER & NAVIGATION - Premium UX
======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    padding: 18px 0;
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo img { height: 45px; }
.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { list-style: none; display: flex; gap: 35px; }
.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-primary);
    position: relative;
    padding-bottom: 5px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cta-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
    z-index: 1001;
}
.mobile-menu-button:hover { transform: scale(1.1); }
.mobile-menu-button.active { transform: rotate(90deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(8, 96, 95, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay .nav-links {
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-menu-overlay .nav-links a {
    color: var(--light-text-color);
    font-size: 1.5rem;
    padding: 10px 20px;
}

.mobile-menu-overlay .language-switcher {
    margin-top: 40px;
    border: none;
    padding: 0;
}

.mobile-menu-overlay .language-switcher a {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}

.mobile-menu-overlay .language-switcher a.active {
    color: var(--cta-color);
}

/* Language Switcher */
.language-switcher {
    list-style: none;
    display: flex;
    gap: 15px;
    border-left: 1px solid #ddd;
    padding-left: 25px;
}
.language-switcher a {
    text-decoration: none;
    color: #aaa;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.language-switcher a.active { color: var(--primary-color); }
.language-switcher a:hover { color: var(--primary-color); }

/* ========================================
   HERO SECTION - Particles & Premium Effects
======================================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--light-text-color);
    position: relative;
    background: url('../img/hero-background.jpg') no-repeat center center/cover;
    overflow: hidden;
}

/* Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Dark Overlay para contraste */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(8, 96, 95, 0.85) 0%,
        rgba(8, 96, 95, 0.7) 40%,
        rgba(8, 96, 95, 0.5) 70%,
        rgba(8, 96, 95, 0.3) 100%);
    z-index: 0;
}

/* Animated Gradient Overlay */
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(8, 96, 95, 0.4),
        rgba(10, 117, 116, 0.2),
        rgba(5, 74, 73, 0.4));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(114, 145, 68, 0.1), transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    color: var(--light-text-color);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin: 1.5rem 0 2.5rem 0;
    line-height: 1.6;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

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

.hero-stat-item {
    text-align: left;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text-color);
    font-family: var(--font-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ========================================
   RISCOS SECTION
======================================== */
#riscos {
    position: relative;
    background: url('../img/riscos-background.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

/* Padrão de linhas verticais (estrutura de silo) */
#riscos::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, 0.03) 80px,
            rgba(255, 255, 255, 0.03) 81px
        );
    z-index: 1;
    pointer-events: none;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(114, 145, 68, 0.85);
    z-index: 2;
}

#riscos .container { position: relative; z-index: 3; }
#riscos .section-title { color: var(--light-text-color); }

.riscos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.risco-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    transform-style: preserve-3d;
}

.risco-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(114, 145, 68, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.risco-item:hover {
    transform: translateY(-12px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cta-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.risco-item:hover::before {
    opacity: 1;
}

.risco-item .icon {
    font-size: 3.5rem;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 12px rgba(114,145,68,0.5));
    }
}

.risco-item .number {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--light-text-color);
    margin-bottom: 10px;
    line-height: 1;
}

.risco-item .text {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    line-height: 1.4;
}

/* ========================================
   SOLUÇÃO SECTION
======================================== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.column-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefits-list .icon {
    font-size: 1.5rem;
    color: var(--cta-color);
    margin-right: 15px;
    margin-top: 5px;
}

.benefits-list h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ========================================
   CAPACIDADES SECTION
======================================== */
#capacidades {
    position: relative;
    background: url('../img/capacidades-background.jpg') no-repeat center center/cover;
    background-attachment: fixed;
}

#capacidades .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 96, 95, 0.75);
    z-index: 1;
}

#capacidades .container { position: relative; z-index: 2; }
#capacidades .section-title { color: var(--light-text-color); }

.capacidades-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.capacidade-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.capacidade-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(114,145,68,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.capacidade-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--cta-color);
    box-shadow: 0 25px 50px rgba(114, 145, 68, 0.2);
}

.capacidade-card:hover::before {
    opacity: 1;
}

.capacidade-card .icon {
    font-size: 2.5rem;
    color: var(--light-text-color);
    margin-bottom: 1.5rem;
}

.capacidade-card h3 { color: var(--light-text-color); }
.capacidade-card p { color: rgba(255,255,255,0.9); }

/* ========================================
   PLATAFORMA SECTION
======================================== */
.plataforma-content { text-align: center; }
.plataforma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 4rem;
    text-align: center;
}
.plataforma-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.plataforma-item h4 {
    color: var(--dark-text-color);
    font-family: var(--font-primary);
}

/* ========================================
   SETORES SECTION
======================================== */
.setores-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.setor-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    color: var(--light-text-color);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.setor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

.setor-card:hover::before {
    transform: scale(1.1);
}

.setor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8,96,95,0.95) 0%, rgba(8,96,95,0.5) 50%, transparent 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.setor-card:hover::after {
    background: linear-gradient(to top, rgba(8,96,95,0.85) 0%, rgba(8,96,95,0.3) 50%, transparent 100%);
}

.setor-card-content {
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.setor-card:hover .setor-card-content {
    transform: translateY(-10px);
}

.setor-card h3 {
    color: var(--light-text-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.setor-card p {
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.setor-card:hover p {
    opacity: 1;
}

/* ========================================
   SCROLL PROGRESS INDICATOR
======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--cta-color), var(--primary-color));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(114,145,68,0.5);
}

/* ========================================
   FORM - Enhanced UX
======================================== */
.form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(8,96,95,0.1);
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(8, 96, 95, 0.2);
}

/* ========================================
   FOOTER
======================================== */
.main-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding: 50px 0;
    position: relative;
    /* Textura de madeira sutil */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.05) 3px,
            rgba(0, 0, 0, 0.05) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 3px
        );
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-social a {
    color: var(--light-text-color);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--cta-color);
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .capacidades-container, .setores-container { grid-template-columns: 1fr; }
    .main-nav { gap: 20px; }
    .language-switcher { padding-left: 20px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-stat-number { font-size: 2rem; }
    .two-columns { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { display: none; }
    .language-switcher { display: none; }
    .mobile-menu-button { display: block; }
    .risco-item .icon { font-size: 2.5rem; }
    .risco-item .number { font-size: 3rem; }
    .capacidade-card .icon { font-size: 2rem; }
    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-social { margin-top: 1rem; }
    .footer-social a { margin: 0 10px; }
}
