/* Estilo geral */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

body {
    background-color: #fff;
    height: 100vh;
}

.interface {
    max-width: 1440px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

h2.titulo {
    font-size: 38px;
    text-align: center;

}

html {
    scroll-behavior: smooth;
}

/* Estilo cabeçalho */

header {
    width: 100%;
    padding: 55px 4%;
    position: fixed;
    display: block;
    z-index: 99999;
    transition: .5s;
}

header.rolagem {
    background-color: #fff;
    padding: 20px 4%;
}


header>.interface {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 45px;
}

header a {
    color: #000;
    text-decoration: none;
}

header nav ul {
    list-style-type: none;
}

header nav.menu-desktop ul li {
    display: inline-block;
    padding: 0 40px;
}

header .btn-contato button {
    background-color: #fcd11eff;
    border-width: .125em;
    --curve-size: .4em;
    color: #166138ff;
    position: relative;
    display: flex;
    gap: 8px;
    place-content: center;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    clip-path: polygon(
            /* Top-left */
            0% var(--curve-size),

            var(--curve-size) 0,
            /* top-right */
            100% 0,
            100% calc(100% - var(--curve-size)),

            /* bottom-right 1 */
            calc(100% - var(--curve-size)) 100%,
            /* bottom-right 2 */
            0 100%);
}

.btn-abrir-menu {
    display: none;
}

.menu-mobile {
    display: none;
}

.overlay-menu {
    display: none;
}

/* Fim do cabeçalho */

/* Estilo do topo do site */

section.topo-do-site {
    height: 100vh;
    padding: 310px 4%;
    background-image: url(images/banner.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section.topo-do-site .flex {
    align-items: center;
}

.topo-do-site h1 {
    font-size: 35px;
    line-height: 40px;
    margin-bottom: 30px;
    color: #166138ff;
}

.topo-do-site h1 span {
    display: block;
}

.topo-do-site .btn-contato-topo button {
    background-color: #166138ff;
    border-width: .125em;
    --curve-size: .4em;
    color: #fcd11eff;
    position: relative;
    display: inline-grid;
    place-content: center;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    clip-path: polygon(
            /* Top-left */
            0% var(--curve-size),

            var(--curve-size) 0,
            /* top-right */
            100% 0,
            100% calc(100% - var(--curve-size)),

            /* bottom-right 1 */
            calc(100% - var(--curve-size)) 100%,
            /* bottom-right 2 */
            0 100%);
}

/* Fim topo do site */


/* Estilo das especialidades */
section.especialidades {
    padding: 100px 4%;
}

.especialidades .especialidades-box {
    padding: 40px;
    margin-top: 0px;
}

.especialidades .especialidades-box i {
    font-size: 65px;
    color: #166138ff;
}

.especialidades .especialidades-box h3 {
    font-size: 26px;
    margin: 10px 0;
}

/* FimEstilo das especialidades */

/* Sobre */
section.sobre {
    padding: 150px 4%;
}

section.sobre .flex {
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.sobre .txt-sobre h3 {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre h3 span {
    display: block;
}

.sobre .txt-sobre p {
    margin: 20px 0;
}

/* Fim sobre */

/* Portifolio */

section.portifolio {
    padding: 100px 4%;
}

section.portifolio .flex {
    padding-top: 80px;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.card-hover {
    width: 250px;
    height: 360px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.card-hover__content {
    width: 100%;
    text-align: center;
    background-color: #DEE8C2;
    padding: 0 40px 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    will-change: bottom, background-color, transform, padding;
    z-index: 1;
}

.card-hover__content::before {
    content: "";
    width: 100%;
    height: 120px;
    background-color: inherit;
    position: absolute;
    left: 0;
    z-index: -1;
}

.card-hover__content::before {
    top: -80px;
    -webkit-clip-path: ellipse(90% 80px at bottom center);
    clip-path: ellipse(90% 80px at bottom center);
}

.card-hover__title {
    font-size: 1.5rem;
    margin-bottom: 1em;
}

.card-hover__title span {
    color: #2d7f0b;
}

.card-hover__text {
    font-size: 12px;
}

.card-hover__link {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translate(-50%, 10%);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2d7f0b;
    opacity: 1;
    padding: 10px;
    transition: all 0.35s;
}

.card-hover__link i {
    font-size: 20px;
    margin-left: 5px;
}

.card-hover img {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    z-index: -1;
    transform: scale(1.2);
    transition: 0.35s 0.35s transform cubic-bezier(0.1, 0.72, 0.4, 0.97);
}

/* Fim portifolio */

/* Estilo do forlulario */

section.formulario {
    padding: 50px 4%;
}

form {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

form input {
    width: 100%;
    outline: 0;
    padding: 20px 15px;
}

form input,
form textarea {
    width: 100%;
    outline: 0;
    padding: 20px 15px;
}

form textarea {
    resize: none;
    max-height: 200px;
}

form .btn-enviar {
    margin-top: 20px;
    text-align: center;
}

form .btn-enviar input {
    background-color: #fcd11eff;
    border-width: .125em;
    --curve-size: .4em;
    color: #166138ff;
    position: relative;
    display: flex;
    gap: 8px;
    place-content: center;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    clip-path: polygon(
            /* Top-left */
            0% var(--curve-size),

            var(--curve-size) 0,
            /* top-right */
            100% 0,
            100% calc(100% - var(--curve-size)),

            /* bottom-right 1 */
            calc(100% - var(--curve-size)) 100%,
            /* bottom-right 2 */
            0 100%);
}

/* Fim do formulario */

/* Estilo produtos */

section.produto {
    padding: 130px 5%;
}

section.produto .flex {
    flex-wrap: wrap;
    gap: 30px;
}

section h2 {
    padding: 50px;
}

section .card {
    justify-content: center;
}

.navMenu {
    background-color: #fcd11eff;
    width: 50%;
    height: 40px;
    display: flex;
    border-width: .125em;
    --curve-size: .6em;
    align-items: center;
    justify-content: space-around;
    position: relative;
    top: 180%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: 0;
    clip-path: polygon(
            /* Top-left */
            0% var(--curve-size),

            var(--curve-size) 0,
            /* top-right */
            100% 0,
            100% calc(100% - var(--curve-size)),

            /* bottom-right 1 */
            calc(100% - var(--curve-size)) 100%,
            /* bottom-right 2 */
            0 100%);
}

.navMenu a {
    color: #000;
    text-decoration: none;
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-block;
    width: 80px;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.navMenu a:hover {
    color: #2d7f0b;
}

.card {
    --main-color: #323232;
    --sub-color: #5b5b5b;
    --bg-color: #c7c7c7;
    --accent-color: #242C88;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 215px;
    padding: 15px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0px 0px 2.5px -1.5px #000;   
    text-align: center; 
  }
  
    
  .card__wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .card__img {
    width: 100%;
  }
  
  .card__title {
    color: var(--main-color);
    font-weight: 700;
    font-size: 14px;
  }
  
  .card__subtitle {
    color: var(--sub-color);
    font-weight: 500;
    font-size: 14px;
  }
  
  .card__icon {
    width: 40px;
    height: 40px;
    transform: rotate(-45deg);
    transition: all 0.3s;
  }
    
  .card__icon g {
    fill: var(--main-color);
  }
  
  .card__icon circle, polyline, line {
    stroke: var(--main-color);
  }
  
  .card:hover .card__icon {
    transform: rotate(0);
  }
  
  .card:hover .card__icon circle, .card:hover .card__icon polyline, .card:hover .card__icon line {
    stroke: var(--accent-color);
  }
  
  .card:hover .card__icon g {
    fill: var(--accent-color);
  }
  
  .card:hover {
    box-shadow: 0px 0px 20px -5px #000;
  }
  
  .card:hover::before {
    transform: rotate(10deg);
    box-shadow: 0px 0px 20px -5px #000;
  }
  

/* Fim produtos */

/* Estilo rodape */
footer {
    background-color: #f2efeaff;
    padding: 40px 4%;
}

footer .flex {
    justify-content: space-between;
}

footer ul li {
    list-style: none;
    text-decoration: none;
}

footer a {
    text-decoration: none;
}



footer h4 {
    padding: 10px 0;
}

footer .social-links {
    font-size: 25px;
}

/* Fim rodape */

/* Botao whatsapp */

.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* FIm botao whatsapp */


/* configuração mobile */

@media screen and (max-width: 1020px) {
    
    /* Classes gerais */

    .flex {
        flex-direction: column;
    }

    /* Cabeçalho */

    .menu-desktop,
    .btn-contato {
        display: none;
    }


    /* Estilo menu-mobile */

    .btn-abrir-menu {
        display: block;
    }

    .btn-abrir-menu i {
        color: #000;
        font-size: 40px;
    }

    .menu-mobile {
        background: #fff;
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99999;
        width: 0%;
        overflow: hidden;
        transition: .2s;
        display: block;
    }

    .menu-mobile.abrir-menu {
        width: 70%;
    }

    .menu-mobile.abrir-menu~.overlay-menu {
        display: block;
    }

    .menu-mobile .btn-fechar {
        padding: 20px 5%;
    }

    .menu-mobile .btn-fechar i {
        font-size: 30px;
    }

    .menu-mobile nav ul {
        text-align: right;
    }

    .menu-mobile nav ul li a {
        color: #000;
        font-size: 20px;
        font-weight: 300;
        padding: 20px 8%;
        display: block;
    }

    .overlay-menu {
        background-color: #ffffffa6;
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 88888;
        display: none;
    }

    .menu-mobile nav ul li a:hover {
        background-color: #2d7f0b;
        color: #fff;
    }

    /* Especialidades */

    .especialidades .especialidades-box {
        padding: 0 40px;
    }

    /* Sobre */

    section.sobre {
        padding: 50px 8%;
    }

    section.sobre .flex {
        align-items: center;
        gap: 15px;
    }

    /* Form */

    section.formulario {
        padding: 50px 7.5%;
    }

    /* Produtos */

    section h2 {
        padding: 90px;
    }
    
    section .card {
        padding: 0px;
    }

    .navMenu {
        flex-direction: column;
        height: 150px;
    }

    .card {
        left: calc(50% - 20px);
        transform: translateX(-50%);
    }

    /* Forulario */

    section.formulario {
        padding: 50px 5%;
    }
    
}