/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #e9f5ec;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* LAYOUT RESPONSIVO: grid que vira coluna única no mobile */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Em telas largas, 2 colunas para aproveitar espaço */
@media (min-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 2rem;
    }
}

/* Cada passo */
.step {
    background: white;
    border-left: 5px solid #25D366;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step:hover {
    transform: translateY(-3px);
}

.number {
    background-color: #25D366;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.step h2 {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: #1b4d33;
    margin-bottom: 0.25rem;
}

/* Link padrão */
a {
    color: #25D366;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* WRAPPER da imagem para controlar proporção e responsividade */
.img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    /* define uma proporção aproximada (16:9) — ajuste conforme desejar */
    aspect-ratio: 16 / 9;
    background: #f6fbf7;
    display: block;
}

/* Imagens responsivas: ocupam totalmente o wrapper, mantendo o corte com object-fit */
.img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* preserva a composição, corta as bordas se necessário */
    transition: transform 0.3s ease;
}

/* Efeito sutil ao passar o mouse */
.img-wrapper img:hover {
    transform: scale(1.02);
}

/* Em telas muito altas/estreitas, limita a altura para não estourar o layout */
@media (max-width: 420px) {
    .img-wrapper { aspect-ratio: 4 / 3; }
}

/* Texto do passo e rodapé */
.step p {
    color: #444;
    font-size: 0.95rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f3f3f3;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}
