:root {
    /* Color Palette */
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-text: #0f172a; /* Slate 900 for high contrast */
    --clr-text-light: #475569; /* Slate 600 for high contrast secondary */
    
    /* Branding */
    --clr-green-main: #16a34a; /* Campo Soberano Green */
    --clr-green-dark: #15803d;
    --clr-gold: #eab308;
    --clr-brown: #92400e;
    --clr-dark: #1e293b;

    /* Metrics */
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 4px 14px rgba(22, 163, 74, 0.4);
    
    /* Animation */
    --transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--clr-surface);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
    position: relative;
    border-bottom: 3px solid var(--clr-green-main);
}

.header img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* App Container (Pages) */
.app-container {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 600px; /* Mobile optimal width */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    padding-bottom: 120px; /* space for fixed footer */
    display: flex;
    flex-direction: column;
}

/* Pages Strategy */
.page {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    padding: 0 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: translateX(40px);
    transition: var(--transition);
}

.page.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 5;
    transform: translateX(0);
    position: relative;
    top: 0;
}

.page.exit-left {
    transform: translateX(-40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    position: absolute;
}

/* Typography */
.title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    text-align: center;
    color: var(--clr-dark);
}

.subtitle {
    text-align: center;
    color: var(--clr-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.highlight {
    color: var(--clr-green-main);
}

/* Loading Screen (Splash Screen) */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-img {
    width: auto;
    max-width: 85vw;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-green-dark);
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-anim {
    animation: pulseLogo 1.5s infinite ease-in-out;
}

/* Grids & Cards */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid.cols-1 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.card:hover, .card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.icon-huge {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* List Cards (Row) */
.list-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.row-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping if tech-details expands */
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.row-card:hover, .row-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.text-box {
    flex: 1;
}

.text-box h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-dark);
    line-height: 1.2;
}

.text-box p {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    font-weight: 600;
}

/* Technical Details for Agronomists */
.tech-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    font-size: 0.85rem;
    color: var(--clr-text-light);
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.card-tech .tech-details {
    border-top: 1px dashed rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
}

/* Persuasive PDF Card */
.pdf-card {
    background: linear-gradient(135deg, var(--clr-green-main), var(--clr-green-dark));
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--clr-surface);
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px rgba(22, 163, 74, 0.3);
}

.pdf-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.pdf-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.btn-pdf-pulse {
    display: inline-block;
    background: var(--clr-gold);
    color: var(--clr-dark);
    font-weight: 800;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
    animation: glow-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.btn-pdf-pulse:hover, .btn-pdf-pulse:active {
    transform: scale(1.05);
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(234, 179, 8, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* Accordions for specific big data */
.card-accordion {
    padding: 1rem;
    background: #f1f5f9;
    color: var(--clr-dark);
    border: 1px solid #e2e8f0;
}

details summary {
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 800;
    color: var(--clr-green-main);
    list-style: none; /* remove default arrow */
    display: flex;
    align-items: center;
}

details summary::-webkit-details-marker {
    display: none;
}

.accordion-content {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
}

.accordion-content h4 {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--clr-dark);
}

.accordion-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Color Modifiers */
.card-green { background: var(--clr-green-main); color: white; }
.card-gold { background: var(--clr-gold); color: white; }
.card-brown { background: var(--clr-brown); color: white; }
.card-dark { background: var(--clr-dark); color: white; }
.card-green-dark { background: var(--clr-green-dark); color: white; }

.bg-green { background: var(--clr-green-main); }
.bg-gold { background: var(--clr-gold); }
.bg-brown { background: var(--clr-brown); }
.bg-dark { background: var(--clr-dark); }

/* Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--clr-surface);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
    border-top: 1px solid #e2e8f0;
}

.btn {
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--clr-green-main);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--clr-text-light);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #cbd5e1;
    box-shadow: none;
}

.dots-indicator {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
}

.dot.active {
    background: var(--clr-green-main);
    width: 20px;
    border-radius: 10px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 5.5rem; /* Above the footer */
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover, .whatsapp-float:active {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.6);
}

/* Responsive Mobile Screens */
@media (max-width: 600px) {
    .app-container {
        padding: 1.5rem 1rem;
        padding-bottom: 120px;
    }

    .grid {
        grid-template-columns: 1fr; /* Força 1 coluna no celular para não espremer os cards */
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .icon-huge {
        font-size: 2.5rem;
    }
    
    .row-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }

    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .pdf-card h2 {
        font-size: 1.4rem;
    }

    /* Ajuste da tabela para não gerar scroll invisível */
    .table-responsive {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .title {
        font-size: 1.5rem;
    }
    .text-box h3 {
        font-size: 1.2rem;
    }
}
