/* ===== ESTILO GERAL ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: black;
    height: 100vh;
}

.interface {
    max-width: 1280px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.logo {
    width: 5%;
}

button:hover, 
form .btn-enviar input {
    box-shadow: 0px 0px 8px #049a09;
    transform: scale(1.05);
}

/* ===== CABEÇALHO ===== */

header {
    padding: 40px 4%;
}

header > .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: #acacac;
    text-decoration: none;
    display: inline-block;
    transition: .2s;
}

header nav.menu-desktop a:hover {
    color: #fff;
    transform: scale(1.05);
}

header nav ul {
    list-style-type: none;
}

header nav.menu-desktop ul li {
    display: inline-block;
    padding: 0 40px;
}

/* ===== MENU MOBILE ===== */

.btn-abrir-menu i {
    color: #049a09;
    font-size: 40px;   
}

.menu-mobile {
    background-color: #000;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: .5s;
}

.menu-mobile.abrir-menu {
    width: 70%;
}

.menu-mobile.abrir-menu ~ .overlay-menu {
    display: block;
}

.menu-mobile .btn-fechar {
    padding: 20px 5%;
    cursor: pointer;
}

.menu-mobile .btn-fechar i {
    color: #049a09;
    font-size: 30px;
}

.menu-mobile nav ul {
    text-align: right;
}

.menu-mobile nav ul li {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 20px 8%;
    display: block;
}

.menu-mobile nav ul li:hover {
    background-color: #049a09;
    color: #000;
}

.overlay-menu {
    background-color: #000000a7;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

.btn-contato button {
    padding: 10px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: #049a09;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: 1.2s;
}

h2.titulo {
    color: #fff;
    font-size: 38px;
    text-align: center;
}

h2.titulo span {
    color: #049a09;
}

/* ===== TOPO DO SITE ===== */

section.topo-do-site {
    padding: 40px 4%;
}

section.topo-do-site .flex {
    align-items: center;
    justify-content: center;
    gap: 90px;
}

.topo-do-site h1 {
    color: #fff;
    font-size: 42px;
    line-height: 40px;
}

.topo-do-site .txt-topo-site h1 span {
    color: #049a09;
}

.topo-do-site .txt-topo-site p {
    color: #fff;
    margin: 40px 0;
}

.topo-do-site .img-topo-site img {
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
    0% { top: 0; }
    100% { top: 30px; }
}

/* ===== ESPECIALIDADES ===== */

section.especialidades {
    padding: 40px 4%;
}

section.especialidades .flex {
    gap: 60px;
}

.especialidades .especialidades-box {
    color: #fff;
    padding: 40px;
    margin-top: 45px;
    border-radius: 20px;
    transition: 1.2s;
}

.especialidades .especialidades-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px #4d4d4d;
}

.especialidades .especialidades-box i {
    font-size: 70px;
    color: #049a09;
}

.especialidades .especialidades-box h3 {
    font-size: 28px;
    margin: 15px 0;
}

/* ===== SOBRE ===== */

section.sobre {
    padding: 40px 4%;
}

section.sobre .flex {
    align-items: center;
    gap: 60px;
}

.sobre .txt-sobre {
    color: #fff;
}

.sobre .txt-sobre h2 {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre h2 span {
    color: #049a09;
    display: block;
}

.sobre .txt-sobre p {
    margin: 20px 0;
    text-align: justify;
}

.btn-social button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #049a09;
    font-size: 22px;
    cursor: pointer;
    margin: 0 5px;
    transition: .2s;
}

/* ===== PORTFÓLIO ===== */

section.portfolio {
    padding: 80px 4%;
    box-shadow: 0 0 40px 10px #ffffff1e;
}

section.portfolio .flex {
    justify-content: space-around;
    margin-top: 60px;
}

.img-port {
    width: 360px;
    height: 460px;
    background-size: cover;
    background-position: 100% 0%;
    transition: 8s;
    cursor: pointer;
    border-radius: 40px;
    position: relative;
}

.img-port:hover {
    background-position: 100% 100%;
}

.overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b8;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: .5s;
}

.overlay:hover {
    opacity: 1;
}

/* ===== FORMULÁRIO ===== */

section.formulario {
    padding: 80px 4%;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
}

form input,
form textarea {
    width: 100%;
    background-color: #242424;
    border: 0;
    outline: 0;
    padding: 20px 15px;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
}

form textarea {
    resize: none;
    max-height: 200px;
}

form .btn-enviar {
    margin-top: 20px;
    text-align: center;
}

form .btn-enviar input {
    width: 120px;
    background-color: #049a09;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

/* ===== RODAPÉ ===== */

footer {
    padding: 60px 4%;
    box-shadow: 0 0 40px 10px #ffffff1e;
}

footer .flex {
    justify-content: space-between;
}

footer .line-footer {
    padding: 20px 0;
}

.borda {
    border-top: 2px solid #049a09;
}

footer .line-footer p i {
    color: #049a09;
    font-size: 22px;
}

footer .line-footer p a {
    color: #fff;
}

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

@media screen and (max-width: 1020px) {

    /* GERAIS */
    .flex {
        flex-direction: column;
    }

    h2.titulo {
        font-size: 34px;
        line-height: 30px;
    }

    /* CABEÇALHO */
    .menu-desktop,
    .btn-contato {
        display: none;
    }

    /* TOPO */
    section.topo-do-site .flex {
        gap: 40px;
    }

    section.topo-do-site {
        padding: 20px 8%;
    }

    .topo-do-site h1 {
        font-size: 30px;
    }

    .topo-do-site .img-topo-site {
        width: 100%;
    }

    /* ESPECIALIDADES */
    section.especialidades {
        padding: 40px 8%;
    }

    /* SOBRE */
    section.sobre {
        padding: 80px 8%;
    }

    .sobre .txt-sobre h2 {
        font-size: 34px;
        line-height: 35px;
        text-align: center;
    }

    .btn-social {
        text-align: center;
    }

    .img-sobre {
        width: 100%;
    }

    /* PORTFÓLIO */
    section.portfolio {
        padding: 80px 8%;
    }

    .img-port {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    section.portfolio .flex {
        gap: 60px;
    }

    /* RODAPÉ */
    footer .flex {
        flex-direction: column;
    }

    footer .line-footer {
        text-align: center;
    }
}

/* ===== Navbar Bootstrap - customização para combinar com o site ===== */

.custom-navbar {
  background-color: #000; /* fundo escuro do site */
  padding: 28px 4%;
}

/* garantir alinhamento vertical dos itens no desktop */
.custom-navbar .navbar-collapse {
  align-items: center;
}

/* links do menu: cor acinzentada por padrão */
.custom-navbar .nav-link {
  color: #acacac !important;
  margin-left: 24px;
  font-weight: 500;
  transition: color .18s ease, transform .12s ease;
}

/* hover / ativo */
.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
  color: #ffffff !important;
  transform: scale(1.03);
}

/* botao Contato (igual ao estilo antigo) */
.custom-btn {
  background-color: #049a09;
  color: #000;
  padding: 10px 40px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.custom-btn:hover,
.custom-btn:focus {
  transform: scale(1.05);
  box-shadow: 0 0 8px #049a09;
  background-color: #03a308;
  color: #000;
}

/* hamburguer com ícone verde (substitui o padrão do bootstrap) */
.custom-navbar .navbar-toggler {
  border-color: transparent;
}
.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23049a09' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ajustar marca (logo) */
.custom-navbar .navbar-brand img {
  display: block;
  height: 50px;
}

/* esconder elementos antigos caso ainda existam */
.menu-desktop, .menu-mobile, .btn-abrir-menu, .overlay-menu {
  display: none !important;
}

/* responsividade: reduzir espaçamento nav em telas pequenas */
@media (max-width: 576px) {
  .custom-navbar {
    padding: 14px 4%;
  }
  .custom-navbar .nav-link {
    margin-left: 0;
    padding: 8px 0;
  }
  .custom-btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* ===== CONTADOR DE VISITAS ===== */

.contador-visitas {
    margin-top: 20px;
    font-size: 14px;
    color: #fff; 
}

.contador-visitas a {
    color: #28a745; 
    text-decoration: none;
}

.contador-visitas a:hover {
    text-decoration: underline;
}





