/* =========================================
   VARIÁVEIS DE CORES E ESTILO
   ========================================= */
:root {
    --primary: #2D5A27;    /* Verde Campo */
    --primary-light: #E8F5E9;
    --secondary: #007BFF;  /* Azul Tecnologia */
    --dark: #1A1C19;
    --gray: #64748b;
    --white: #ffffff;
    --bg-light: #F8FAF8;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* =========================================
   RESET E BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* =========================================
   CONTAINERS E LAYOUT GERAL
   ========================================= */
.navbar, .hero, .what-container, .about-container, .founders-grid, 
.species-grid-visual, .tecnologia-grid, .footer-container, .section-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 100px 0; }

.section-header {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.top-tag { 
    color: var(--secondary); 
    font-weight: 700; 
    font-size: 0.8rem; 
    display: block; 
    margin-bottom: 10px; 
    letter-spacing: 1px;
}

h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
h2 span { color: var(--primary); }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.logo span { color: var(--secondary); }

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary); }

/* =========================================
   BOTÕES
   ========================================= */
.btn-main {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background: #22451e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
}

.btn-acesso-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-acesso-outline:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 20px;
    gap: 40px;
}

.badge-offer {
    background: var(--primary-light);
    color: var(--primary);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-actions { display: flex; flex-direction: column; gap: 15px; }

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(var(--shadow));
}

/* =========================================
   SOBRE / O QUE É
   ========================================= */
.what-is-section { background: var(--bg-light); }
.what-container, .about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.stat-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
}
.stat-card strong { font-size: 2rem; display: block; color: var(--primary); }
.stat-card.dark { background: var(--primary); color: white; }
.stat-card.dark strong { color: white; }

/* =========================================
   FOUNDERS (FUNDADORES)
   ========================================= */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.founder-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
}

.founder-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.founder-photo img { width: 100%; height: 280px; object-fit: cover; }
.founder-info { padding: 20px; }

/* =========================================
   SPECIES SECTION (O GRANDE AJUSTE)
   ========================================= */
.species-grid-visual {
    display: grid;
    /* Usamos auto-fit com uma largura mínima (250px) para que os 
       cards não fiquem largos demais se houverem poucos itens */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    margin-top: 40px;
    padding: 0 20px;
    justify-content: center; /* Centraliza se houver espaço */
}

/* Card Estilo "Instagram/Galeria" - Mantido */
.s-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden; 
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* ... (mantenha o .s-card:hover e .s-card figure como estão) ... */

/* Imagem Preenchendo Tudo - PROPORÇÃO AJUSTADA */
.s-card img {
    width: 100%;
    /* Substituímos a altura fixa por uma proporção baseada na largura.
       aspect-ratio: 16 / 9; garante que a altura seja sempre 56.25% da largura. */
    aspect-ratio: 16 / 9; 
    object-fit: cover; /* Mantém o animal visível e centralizado */
    display: block;
    transition: var(--transition);
}

/* Zoom suave na imagem ao passar o mouse */
.s-card:hover img {
    transform: scale(1.08);
}

.s-card figure { margin: 0; display: flex; flex-direction: column; height: 10%; }

.s-card img {
    width: 100%;
    height: 20px; /* Preenche o quadrado todo */
    object-fit: cover; /* Garante que não estique */
    display: block;
    transition: var(--transition);
}

.s-card:hover img { transform: scale(1.08); }

/* Legenda do Card - Mantido */
.s-card figcaption {
    padding: 20px;
    background: var(--white);
    color: var(--dark);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-align: center;
}

/* =========================================
   TECNOLOGIA E CTA
   ========================================= */
.tecnologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tech-card {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid #eee;
}

.cta-box {
    background: var(--dark);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    color: white;
}

/* =========================================
   FOOTER
   ========================================= */
footer { background: var(--bg-light); padding: 80px 0 30px; border-top: 1px solid #eee; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-bottom { text-align: center; border-top: 1px solid #ddd; padding-top: 30px; margin-top: 50px; color: var(--gray); font-size: 0.85rem; }

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 968px) {
    .hero, .what-container, .about-container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .about-stats { grid-template-columns: 1fr; }
    .species-grid-visual { grid-template-columns: repeat(2, 1fr); }
}

/* Container da imagem */
.what-image {
    display: flex;
    justify-content: center; /* Centraliza a imagem na coluna dela */
    align-items: center;
}

/* A imagem em si */
.what-image img {
    width: 100%;
    /* Ajuste o valor abaixo para o tamanho que você deseja (ex: 80%, 400px, etc) */
    max-width: 450px; 
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Efeito opcional para dar profundidade */
.what-image img:hover {
    transform: scale(1.02);
}

/* Ajuste para telas menores */
@media (max-width: 968px) {
    .what-image img {
        max-width: 350px; /* Menor ainda no mobile para não ocupar a tela toda */
        margin-top: 30px;
    }
}

/* =========================================
   SPECIES SECTION - AJUSTE FINAL
   ========================================= */
.species-grid-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    list-style: none; /* Garante que os pontos pretos sumam */
    margin-top: 50px;
    padding: 0;
}

.s-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden; /* Corta a imagem nas bordas redondas */
    border: 1px solid #eee;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.s-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.s-card figure {
    margin: 20;
    width: 100%;
}

.s-card img {
    width: 100%;
    height: 140px; /* VALOR IDEAL: Nem 20px (achatado), nem gigante */
    object-fit: cover; /* Faz a foto preencher o espaço sem distorcer */
    display: block;
    transition: var(--transition);
}

.s-card figcaption {
    padding: 15px;
    background: var(--white);
    color: var(--dark);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: center;
}