:root {
    --verde-principal: #2ecc71;
    --verde-escuro: #27ae60;
    --verde-claro: #d4edda;
    --fundo: #f8f9fa;
    --texto: #2c3e50;
    --texto-claro: #555;
    --branco: #ffffff;
    --sombra: rgba(0,0,0,0.1);
    --sombra-destaque: rgba(46, 204, 113, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--fundo);
    color: var(--texto);
    line-height: 1.6;
    padding: 20px;
}

/* HEADER COM LOGOS */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-escuro));
    color: var(--branco);
    padding: 15px 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--sombra);
    position: relative;
}

.header-logo {
    flex: 0 0 auto;
    z-index: 2;
}

.header-logo a {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    border-radius: 6px;
    padding: 5px;
    will-change: transform;
}

.header-logo a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.4);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

.header-logo:hover .logo-img {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.header-logo:hover {
    animation: pulse 1.5s infinite;
}

.header-title {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.header-title h1 {
    margin-bottom: 8px;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-title p {
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* CONTAINER DE PLANTAS */
.plantas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARDS DE PLANTAS COM BOTÕES ALINHADOS */
.planta-card {
    display: flex;
    flex-direction: column;
    background: var(--branco);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px var(--sombra);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%; /* Garante altura igual */
}

.planta-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.planta-card:hover {
    transform: translateY(-5px);
    background-color: var(--verde-claro);
    border-color: var(--verde-principal);
    box-shadow: 0 5px 15px var(--sombra-destaque);
}

.planta-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.planta-card:hover img {
    transform: scale(1.05);
}

.planta-card h2 {
    color: var(--verde-escuro);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.planta-card:hover h2 {
    color: var(--verde-principal);
}

.planta-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--texto-claro);
    transition: color 0.3s;
    flex-grow: 1;
}

.planta-card:hover p {
    color: var(--texto);
}

/* BOTÃO ALINHADO */
.btn-container {
    margin-top: auto;
    padding-top: 10px;
}

.btn {
    display: block;
    width: 100%;
    background: var(--verde-principal);
    color: var(--branco);
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.planta-card:hover .btn {
    background: var(--verde-escuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .header-logo {
        order: 1;
    }
    
    .header-title {
        order: 2;
        padding: 0;
    }
    
    .logo-img {
        height: 65px;
    }
    
    .header-logo a:hover {
        transform: scale(1.2);
    }
}

@media (max-width: 600px) {
    .plantas-container {
        grid-template-columns: 1fr;
    }
    
    .header-title h1 {
        font-size: 1.6rem;
    }
    
    .header-title p {
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 60px;
        max-width: 130px;
    }
}