/* ESTILO GERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #bee5bf;
    min-height: 100vh;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.btn-contato button {
    color: white;
    padding: 8px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: #228b22;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-contato button:hover {
    box-shadow: 0 0 8px #228b22;
    transform: scale(1.05);
}

/* -- CABEÇALHO -- */
header {
    padding: 20px 4%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header > .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 180px;
}

/* MENU NAV DESKTOP */
.menu-desktop ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding-left: 0;
    margin: 0;
    align-items: center;
}

.menu-desktop ul li a {
    text-decoration: none;
    color: rgba(20, 69, 20, 0.7);
    font-weight: 600;
    transition: 0.2s;
}

.menu-desktop ul li a:hover {
    color: #228b22;
    transform: scale(1.05);
}

/* MENU MOBILE BOTÃO */
.menu-mobile {
    display: none;
    font-size: 32px;
    color: #228b22;
    cursor: pointer;
    z-index: 1001;
}

/* MENU LATERAL */
.menu-lateral {
    position: fixed;
    top: 0;
    left: -280px; /* escondido inicialmente */
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 60px 20px;
    box-shadow: 4px 0 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: left 0.3s ease;
    z-index: 1002;
}

.menu-lateral.active {
    left: 0;
}

.menu-lateral ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-lateral ul li a {
    text-decoration: none;
    color: #228b22;
    font-weight: 600;
    font-size: 18px;
}

.menu-lateral ul li a:hover {
    color: #006644;
}

/* OVERLAY DO MENU MOBILE */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* -- TOPO DO SITE -- */
section.topo-do-site {
    padding: 60px 4%;
}

section.topo-do-site .flex {
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.txt-topo-site {
    flex: 1;
    min-width: 280px;
}

.txt-topo-site h1 {
    font-size: 35px;
    line-height: 40px;
}

.txt-topo-site h1 span {
    color: #228b22;
}

.txt-topo-site p {
    margin: 20px 0;
    max-width: 600px;
}

.img-topo-site {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center
}

.img-topo-site img {
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* ANIMAÇÃO */
@keyframes flutuar {
    0% { 
        transform: translateY(0);
    }
    100% {
        transform: translateY(30px);
    }
}

/* CONHECIMENTOS E HABILIDADES */
section.conhecimentos-e-habilidades {
    padding: 60px 4%;
    background-color: #e1f3e2;
    text-align: center;
}

section.conhecimentos-e-habilidades h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 800; 
}

section.conhecimentos-e-habilidades h2 span {
    color: #228b22;
}

section.conhecimentos-e-habilidades .flex {
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.conhecimentos-habilidades-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    flex: 1 1 280px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.conhecimentos-habilidades-box:hover {
    transform: scale(1.05);
}

.conhecimentos-habilidades-box i {
    font-size: 40px;
    color: #228b22;
    margin-bottom: 20px;
}

.conhecimentos-habilidades-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.conhecimentos-habilidades-box p {
    font-size: 16px;
    color: #333;
}

/* PROJETOS */
#projetos {
    padding: 60px 4%;
    background: #f5f5f5;
    text-align: center;
}

#projetos h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 800;
}

#projetos h2 span {
    color: #228b22;
}

.projeto-box {
    width: 100%;
    max-width: 500px;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.projeto-box img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.projeto-box p {
    margin-top: 15px;
    font-size: 16px;
    color: #444;
}

.projeto-box:hover {
    transform: translateY(-5px);
}

/* EQUIPE */
.equipe {
    padding: 80px 4%;
}

.equipe h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipe h2 span {
    color: #006644;
}

.equipe .flex {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.equipe-box {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.equipe-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.equipe-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid #00a86b;
    box-shadow: 0 0 0 4px #ffffff;
}

.equipe-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.equipe-box p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Bloco informativo sobre CAESA */
.caesa-info {
    margin-top: 40px;
    text-align: center;
}

.caesa-info p {
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

/* CONTATO */
.contato {
    padding: 60px 4%;
    background-color: #e1f3e2;
    text-align: center;
}

.contato h2 {
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 800;
}

.contato h2 span {
    color: #228b22;
}

.contato form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #228b22;
    box-shadow: 0 0 6px #228b22;
}

.contato .btn-contato {
    display: flex;
    justify-content: center;
}

.contato .btn-contato button {
    color: white;
    padding: 12px 45px;
    font-size: 18px;
    font-weight: 600;
    background-color: #228b22;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.contato .btn-contato button:hover {
    box-shadow: 0 0 8px #228b22;
    transform: scale(1.05);
}

/* RESPONSIVIDADE */

/* Tablet e celular */
@media screen and (max-width: 1024px) {
    .menu-mobile { 
        display: block; 
    }
    .menu-desktop { 
        display: none; 
    }

    header .logo img {
        height: 100px; /* logo mais proporcional */
    }

    /* Ajuste do gap geral */
    .flex {
        gap: 40px;
    }

    /* Topo do site */
    section.topo-do-site .flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .txt-topo-site h1 {
        font-size: 26px;
        line-height: 32px;
    }

    .txt-topo-site p {
        font-size: 15px;
        margin: 10px auto;
    }

    .img-topo-site img {
        max-width: 220px;
    }
}

/* Celulares menores */
@media screen and (max-width: 768px) {
    /* Ajuste gap global */
    .flex {
        gap: 25px;
    }

    /* Projetos */
    #projetos .flex {
        flex-direction: column;
        align-items: center;
    }

    .projeto-box {
        max-width: 95%;
    }

    /* Equipe */
    .equipe .flex {
        flex-direction: column;
    }

    .equipe-box {
        max-width: 95%;
    }

    .btn-contato button {
        width: 100%;
    }

    .menu-lateral {
        width: 240px;
        padding: 40px 15px;
    }
}

/* Smartphones muito pequenos */
@media screen and (max-width: 480px) {
    header .logo img {
        height: 80px; /* logo reduzida */
    }

    .txt-topo-site h1 {
        font-size: 22px;
        line-height: 28px;
    }

    .txt-topo-site p {
        font-size: 14px;
    }

    .conhecimentos-habilidades-box {
        padding: 15px;
    }

    .contato form {
        padding: 0 10px;
    }

    .projeto-box img {
        max-height: 200px; /* evita distorção */
    }
}

