/* RESET */
body{
    margin:0;
    font-family: Arial, Helvetica, sans-serif;
    color:white;

    background:
        radial-gradient(circle at top, rgba(34, 139, 100, 0.4), transparent 60%),
        linear-gradient(135deg, #0d3b2e, #041915);

    min-height:100vh;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* === ANIMAÇÕES GERAIS (Padrão do Site) === */

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

/* === ANIMAÇÕES DA PÁGINA DE SERVIÇOS === */

/* Título principal com gradiente */
.titulo {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
}

.container p {
    animation: fadeUp 0.85s ease forwards;
    opacity: 0;
}

.container p { animation-delay: 0.4s; }

/* Botões de ações */
.acoes .btn-acoes {
    animation: fadeUp 0.9s ease forwards;
}

.acoes .btn-acoes:nth-child(1) { animation-delay: 0.6s; }
.acoes .btn-acoes:nth-child(2) { animation-delay: 0.6s; }

/* Título de Produtos */
.titulo-produtos {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
}

/* Benefícios */
.beneficios span {
    animation: fadeUp 0.85s ease forwards;
    opacity: 0;

}

.beneficios span:nth-child(1) { animation-delay: 0.4s; }
.beneficios span:nth-child(2) { animation-delay: 0.4s; }
.beneficios span:nth-child(3) { animation-delay: 0.4s; }

/* CATEGORIAS - Versão mais robusta */
.categorias a {
    opacity: 0;         
    animation: fadeUp 0.85s ease forwards;
    animation-fill-mode: forwards;
}

/* Delays escalonados */
.categorias a:nth-child(1) { animation-delay: 0.4s; }
.categorias a:nth-child(2) { animation-delay: 0.6s; }
.categorias a:nth-child(3) { animation-delay: 0.8s; }
.categorias a:nth-child(4) { animation-delay: 1.0s; }
.categorias a:nth-child(5) { animation-delay: 1.2s; }
.categorias a:nth-child(6) { animation-delay: 1.4s; }

/* Busca CEP */
.busca-cep {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.7s;
}

/* === CARDS (parte que estava faltando) === */

.cards .cartao {
    animation: fadeUp 0.95s ease forwards;
    opacity: 0;
}

/* Animação escalonada dos cards */
.cards .cartao:nth-child(1) { animation-delay: 0.4s; }
.cards .cartao:nth-child(2) { animation-delay: 0.6s; }
.cards .cartao:nth-child(3) { animation-delay: 0.8s; }
.cards .cartao:nth-child(4) { animation-delay: 1s; }
.cards .cartao:nth-child(5) { animation-delay: 1.2s; }

/* === ESTADO INICIAL === */
.titulo,
header p,
.acoes .btn-acoes,
.titulo-produtos,
.beneficios span,
.categorias a,
.busca-cep,
.cards .cartao {
    opacity: 0;
}

/* Garante que permaneçam visíveis após a animação */
.titulo,
header p,
.acoes .btn-acoes,
.titulo-produtos,
.beneficios span,
.categorias a,
.busca-cep,
.cards .cartao {
    animation-fill-mode: forwards;
}


/* CONTAINER */
.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
    text-align:center;
}

/* TÍTULO */
.titulo{
    font-size:40px;
    font-weight:bold;
    text-align: center;
    background: linear-gradient(90deg, #ff7a00, #ff9f1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


header p{
    max-width:700px;
    margin:20px auto;
    font-size:18px;
    line-height:1.5;
    color:#e0e0e0;
}

/* BOTÕES */
.acoes{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:20px;
    margin-bottom: 20px;
}

.btn-acoes{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration: none;

    background: rgba(34, 94, 70, 0.6);
    border:1px solid rgba(255,255,255,0.15);

    padding:18px 28px;
    border-radius:14px;

    color:#e5e5e5;
    font-size:18px;
    cursor:pointer;

    backdrop-filter: blur(10px);
    transition:0.3s;
}

.btn-acoes:hover{
    transform:translateY(-3px);
    background:rgba(255,255,255,0.12);
}

.btn-acoes i{
    font-size:28px;
    color:#cfd8dc;
}

/* BENEFÍCIOS */
.beneficios{
    margin-top:15px;
}

.beneficios span{
    background:#1b5e4a;
    padding:8px 18px;
    border-radius:12px;
    margin:5px;
    display:inline-block;
    font-size:14px;
}

/* PRODUTOS */
.titulo-produtos{
    font-size:42px;
    margin-top:40px;
    font-weight:bold;
    text-align: center;

}

.titulo-produtos span{
    color:#ff8c00;
}


/* CATEGORIAS */
.categorias{
    display:flex;
    justify-content:center;
    gap:30px;
    margin-top:15px;
    flex-wrap:wrap;
}

.categorias a{
    text-decoration:none;
    color:#fefffd;
    font-size:16px;
    opacity:0.7;
    transition:0.3s;
}

.categorias a:hover{
    opacity:1;
    color:#ff8c00;
}

/* BUSCA CEP */
.busca-cep{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:25px;

    background:#a79a9a;
    padding:10px;
    border-radius:14px;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}

.input-cep{
    display:flex;
    align-items:center;
    background:#d9d9d9;
    padding:12px;
    border-radius:10px;
    width:100%;
}

.input-cep input{
    border:none;
    outline:none;
    background:transparent;
    width:100%;
    font-size:14px;
    padding-left:10px;
}

.btn-buscar{
    background:#d9d9d9;
    border:none;
    padding:12px 16px;
    border-radius:10px;
    cursor:pointer;
    transition: 0.3s;
}

/* CARDS */
.cards{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:40px;
    color: white;
   
}

.cartao{
    background:#143c3a;
    padding:20px;
    border-radius:12px;
    width:100%;
    max-width:220px;
    color: #ffff;
}

.cartao p {
    color: white;
}



.cartao img{
    width:100%;
    border-radius:10px;
}

.preco{
    display:block;
    margin:10px 0;
    font-weight:bold;
}

.botoes{
    display:flex;
    justify-content:space-between;
}

.detalhes{
    background:#0d2f2d;
    border:none;
    padding:8px 12px;
    color:white;
    border-radius:6px;
}

.comprar{
    background:#2ecc71;
    border:none;
    padding:8px 12px;
    color:white;
    border-radius:6px;
}

/* INFO */
.info-lixo{
    background:#2ecc71;
    color:white;
    width:fit-content;
    margin:30px auto;
    padding:8px 16px;
    border-radius:8px;
    font-size:14px;
}

/* FORM WRAP */
.form-wrap{
    margin-top:20px;
}

.form-wrap h3{
    text-align:center;
    margin-top:40px;
    font-size:20px;
    font-weight:bold;
}

/* FORM */
form{
    background:#95a59f;
    padding:30px 25px;
    border-radius:12px;
    width:100%;
    max-width:400px;
    margin:20px auto;
}

/* CAMPOS COM BORDA LARANJA */
.field{
    display:flex;
    align-items:center;
    background:#e6e6e6;
    border:1px solid #ff8c00;
    border-radius:10px;
    padding:10px;
    margin-bottom:15px;
}

.field i{
    color:#ff8c00;
    margin-right:10px;
}

.field input{
    border:none;
    outline:none;
    background:transparent;
    width:100%;
    font-size:14px;
}

/* BOTÃO */
.submit{
    background:#2ecc71;
    border:none;
    padding:12px;
    width:150px;
    border-radius:8px;
    color:white;
    font-weight:bold;
    cursor:pointer;
    display:block;
    margin:15px auto 0;
    transition:0.3s;
}

.submit:hover{
    background:#27ae60;
}

/* Mensagem de feedback */
#form-message {
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
}

/* IMAGENS */
img{
    max-width:100%;
    height:auto;
}

.carrinho-topo {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff8c00;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
}

#contador-carrinho {
    background: white;
    color: #ff8c00;
    padding: 2px 8px;
    border-radius: 50%;
}

#contador-carrinho {
    transition: transform 0.2s;
}

#contador-carrinho.ativo {
    transform: scale(1.3);
}

#lista-carrinho li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#lista-carrinho button {
    background: red;
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
}

/* ==================== RESPONSIVIDADE ==================== */

@media (max-width: 1024px) {
    .titulo {
        font-size: 34px;
    }
    
    .titulo-produtos {
        font-size: 36px;
    }
    
    .cartao {
        max-width: 45%;
    }
    
    .busca-cep {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 80px 10px;
    }

    .titulo {
        font-size: 28px;
    }
    
    header p {
        font-size: 16px;
    }
    
    .acoes {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 90%;
        max-width: 320px;
        justify-content: center;
        padding: 16px 20px;
    }
    
    .beneficios {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .titulo-produtos {
        font-size: 28px;
        margin-top: 30px;
    }
    
    .categorias {
        gap: 15px;
        font-size: 14px;
    }
    
    .busca-cep {
        flex-direction: column;
        width: 90%;
        padding: 15px;
    }
    
    .btn-buscar {
        width: 100%;
    }
    
    .cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cartao {
        max-width: 320px;
        width: 90%;
    }
    
    .info-lixo {
        width: 90%;
    }
    
    form {
        width: 90%;
        padding: 25px 20px;
    }
    
    .submit {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 24px;
    }
    
    .titulo-produtos {
        font-size: 24px;
    }
    
    .btn {
        font-size: 16px;
    }
    
    .cartao {
        padding: 18px;
    }
    
    .form-wrap h3 {
        font-size: 18px;
    }
}