/* ===================================================================
   ARQUIVO DE ESTILO GERAL UNIFICADO v3 - COCO & CIA
   Contém todos os estilos necessários para o site.
   =================================================================== */

/* --- Configurações Gerais e Layout Base --- */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Títulos e Textos --- */
.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #035d21;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #035d21;
    border-radius: 2px;
}

.text-lead-justify {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* --- Estilos de Cards (Produtos, Receitas, Vagas) --- */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    width: 100%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 10px;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #035d21;
    margin-bottom: 0.8rem;
}

.card-text {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-text.short-description {
    font-size: 0.95rem;
    min-height: 4.2em;
    /* Garante altura mínima para ~3 linhas */
}

/* --- Botões --- */
.btn-modern {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(45deg, #035d21, #068a32);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(3, 93, 33, 0.3);
    margin-top: auto;
}

.btn-modern:hover {
    background: linear-gradient(45deg, #068a32, #035d21);
    box-shadow: 0 6px 20px rgba(3, 93, 33, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.category-filter-buttons .btn {
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    border: 1px solid #035d21;
    color: #035d21;
    background-color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-filter-buttons .btn:hover,
.category-filter-buttons .btn.active {
    background-color: #035d21;
    color: #fff;
    box-shadow: 0 4px 10px rgba(3, 93, 33, 0.2);
    transform: translateY(-2px);
}

.video-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.video-buttons-container .btn {
    flex: 1 1 auto;
    min-width: 120px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.video-buttons-container .btn-primary {
    background-color: #e62117;
    border-color: #e62117;
}

.video-buttons-container .btn-primary:hover {
    background-color: #cc1a12;
    border-color: #cc1a12;
    transform: translateY(-2px);
}

.video-buttons-container .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.video-buttons-container .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
}

/* --- Rodapé (Footer) --- */
.footer {
    background-color: #035d21;
    color: #ffffff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #e9ecef;
}

.footer .social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #f8f9fa;
    animation: pulse 0.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.footer .footer-link {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer .developer-info,
.footer .developer-info a {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* --- Responsividade --- */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    .card-img-top {
        height: 180px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .category-filter-buttons .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .footer {
        text-align: center;
    }

    .footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* --- Rodapé (Footer) --- */
.footer {
    background-color: #035d21;
    /* Cor principal da marca */
    color: #ffffff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #e9ecef;
}

.footer .social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    /* Necessário para a animação funcionar bem */
}

/* ATUALIZAÇÃO: Animação de pulsação adicionada */
.footer .social-icons a:hover {
    color: #f8f9fa;
    /* Um branco mais brilhante no hover */
    animation: pulse 0.6s infinite;
}

/* Animação de pulsação */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.footer .footer-link {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer .developer-info,
.footer .developer-info a {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* --- Animação para os cards aparecerem com o scroll (Método Robusto) --- */

/* Por defeito, o card é visível. A animação é uma melhoria. */
.animated-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* O JavaScript adiciona esta classe para esconder o card ANTES da animação */
.js-fade-in-start {
    opacity: 0;
    transform: translateY(20px);
}

/* O JavaScript adiciona esta classe quando o card entra na tela, tornando-o visível com animação */
.animated-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}