@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK&display=swap');

/* =============================================
   VARIÁVEIS GLOBAIS
   ============================================= */
:root {
    --cor-primaria: #ff1a1a;
    --cor-fundo: #000000;
    --cor-texto: #ffffff;
    --raio-borda: 35px;
    --transicao-padrao: 0.2s;
    --transicao-suave: 0.3s;
    --sombra-vermelha: 0px 0px 8px var(--cor-primaria);
    --max-largura: 1280px;
}

/* =============================================
   RESET E BASE
   ============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: "Noto Sans HK", sans-serif;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    min-height: 100vh;
}

section {
    width: 100%;
}

.interface {
    max-width: var(--max-largura);
    margin: 0 auto;
}

.flex {
    display: flex;
}

.scroll,
.scrollimg,
.titulo,
.especi,
.especii,
.especiii,
.efectsobreimg,
.efectsobretxt,
.porti,
.portii,
.portiii,
.btnabrir {
    visibility: hidden;
}

.btnsocial a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* =============================================
   BOTÃO DE CONTATO / BOTÕES GERAIS
   ============================================= */
.btn-contato button {
    padding: 10px 40px;
    font-size: 20px;
    font-weight: 800;
    color: var(--cor-texto);
    background-color: var(--cor-primaria);
    border-radius: var(--raio-borda);
    cursor: pointer;
    transition: var(--transicao-padrao);
}

button:hover,
.btn-contato button:hover,
form .btnenv input:hover {
    box-shadow: var(--sombra-vermelha);
    transform: scale(1.09);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--cor-primaria);
    outline-offset: 4px;
}

/* =============================================
   TÍTULOS DE SEÇÃO
   ============================================= */
h2.titulo {
    color: var(--cor-primaria);
    font-size: 45px;
    text-align: center;
}

h2.titulo span {
    color: var(--cor-texto);
    font-size: 45px;
}

/* =============================================
   CABEÇALHO
   ============================================= */
header {
    padding: 35px 4%;
    box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.1);
}

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

header a {
    color: var(--cor-texto);
    text-decoration: none;
    display: inline-block;
    transition: var(--transicao-padrao);
}

header nav ul {
    list-style: none;
}

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

header nav.menu-desktop ul li a:hover {
    color: var(--cor-primaria);
    transform: scale(1.09);
}

/* =============================================
   MENU MOBILE
   ============================================= */
.btnabrir{
    background-color: transparent;
}

.btnabrir i {
    color: var(--cor-primaria);
    font-size: 50px;
    cursor: pointer;
}

.mobile {
    background-color: #000000; /* ou var(--cor-fundo) */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 0;
    overflow: hidden;
    transition: var(--transicao-padrao);
}

.mobile.abrirmenu {
    width: 60%;
    
}

.mobile.abrirmenu ~ .mobileoverl {
    display: block;
}

.mobile nav ul {
    text-align: left;
    list-style: none;
}

.mobile nav ul li a {
    color: var(--cor-texto);
    font-size: 20px;
    font-weight: 300;
    padding: 20px 4%;
    display: block;
    text-decoration: none;
    transition: background-color var(--transicao-padrao);
}

.mobile nav ul li a:hover {
    background-color: var(--cor-primaria);
}

.btnfechar {
    text-align: right;
    padding: 20px 10%;
    background: transparent;
    width: 100%;
    display: block;
}

.btnfechar i {
    color: var(--cor-primaria);
    font-size: 50px;
    cursor: pointer;
}

.mobileoverl {
    background-color: rgba(0, 0, 0, 0.77);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

/* =============================================
   SEÇÃO TOPO
   ============================================= */
section.toposite {
    padding: 40px 4%;
}

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

.toposite h1 {
    color: var(--cor-primaria);
    font-size: 50px;
    line-height: 55px;
}

.toposite .txttopo h1 span {
    color: var(--cor-texto);
}

.toposite .txttopo p {
    color: var(--cor-texto);
    margin: 40px 0;
}

.toposite .imgtopo img {
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
    border-radius: 50px;
}

/* =============================================
   ANIMAÇÃO FLUTUANTE
   ============================================= */
@keyframes flutuar {
    from { top: 0; }
    to   { top: 30px; }
}

/* =============================================
   SEÇÃO ESPECIALIDADES
   ============================================= */
section.especialidades {
    padding: 40px 4%;
}

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

.especialidades .especibox {
    color: var(--cor-texto);
    padding: 40px;
    border: 2px solid var(--cor-primaria);
    margin-top: 50px;
    border-radius: 30px;
    transition: var(--transicao-suave);
}

.especialidades .especibox:hover {
    transform: scale(1.09);
    box-shadow: 0 0 30px rgba(255, 26, 26, 0.45);
}

.especialidades .especibox i {
    font-size: 70px;
    color: var(--cor-primaria);
}

.especialidades .especibox h3 {
    font-size: 30px;
    margin: 15px 0;
}

.especialidades .especibox a {
    color: var(--cor-primaria);
    font-size: 40px;
    display: flex;
    justify-content: center;
    margin-top: 35px;
    transition: var(--transicao-padrao);
}

.especialidades .especibox a:hover {
    transform: scale(1.1);
}

/* =============================================
   SEÇÃO SOBRE
   ============================================= */
section.sobre {
    padding: 100px 4%;
}

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

.sobre .txtsobre {
    color: var(--cor-texto);
}

.sobre .txtsobre h2 {
    font-size: 45px;
    line-height: 55px;
    margin-bottom: 30px;
}

.sobre .txtsobre h2 span {
    color: var(--cor-primaria);
    display: block;
}

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

.sobre .imgsobre img {
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}

/* =============================================
   BOTÕES SOCIAIS
   ============================================= */
.btnsocial button {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-color: var(--cor-primaria);
    font-size: 25px;
    cursor: pointer;
    margin: 0 5px;
    transition: var(--transicao-suave);
}

/* =============================================
   SEÇÃO PORTFÓLIO
   ============================================= */
section.portif {
    padding: 60px 4% 200px;
}

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

.imgport {
    width: 400px;
    height: 480px;
    background-size: cover;
    background-position: 100% 0%;
    transition: background-position 10s;
    cursor: pointer;
    border-radius: 50px;
    position: relative;
}

.imgport:hover {
    background-position: 100% 100%;
}

.overl {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--cor-texto);
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s;
    text-align: center;
    padding: 20px;
    text-decoration: none;
}

.overl:hover {
    opacity: 1;
}

/* =============================================
   SEÇÃO FORMULÁRIO (reservado para uso futuro)
   ============================================= */
section.formu {
    padding: 80px 4%;
}

form {
    max-width: 500px; /* BUG CORRIGIDO: era "max width" sem hífen */
    margin: 40px auto 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

form input,
form textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
    padding: 20px 15px;
    border-radius: 50px;
    color: var(--cor-texto);
    font-size: 20px;
}

form input::placeholder,
form textarea::placeholder {
    color: gray;
}

form textarea {
    resize: none;
    max-height: 300px;
    border-radius: 20px;
}

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

form .btnenv input {
    width: 120px;
    background-color: var(--cor-primaria);
    color: var(--cor-fundo);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transicao-padrao);
}

/* =============================================
   RODAPÉ
   ============================================= */
footer {
    box-shadow: 0 0 40px 10px rgba(255, 255, 255, 0.1);
}

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

footer .linefot {
    padding: 30px 0;
}

footer .linefot p {
    color: var(--cor-texto);
}

footer .linefot p i {
    color: var(--cor-primaria);
    font-size: 25px;
}

footer .linefot p a {
    color: var(--cor-texto);
    text-decoration: none;
}

footer .linefot p a:hover {
    color: var(--cor-primaria);
}

.borda {
    border-top: 5px solid var(--cor-primaria);
}

/* =============================================
   RESPONSIVIDADE — telas até 1224px
   ============================================= */
@media screen and (max-width: 1224px) {

    .btnabrir {
        visibility: visible;
    }

    .flex {
        flex-direction: column-reverse;
    }

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


    .menu-desktop,
    header .btn-contato {
        display: none;
    }

    /* Topo */
    section.toposite {
        padding: 20px 10%;
    }

    section.toposite .flex {
        align-items: center;
        justify-content: center;
        gap: 40px;
    }

    .toposite h1 {
        font-size: 37px;
        line-height: 40px;
    }

    .toposite .imgtopo img {
        width: 50%;
        height: auto;
    }

    /* Especialidades */
    section.especialidades {
        padding: 40px 10%;
    }

    /* Sobre */
    section.sobre {
        padding: 50px;
    }

    .sobre .txtsobre h2 {
        font-size: 37px;
        line-height: 40px;
        margin-bottom: 30px;
        text-align: center;
    }

    .btnsocial {
        text-align: center;
    }

    .imgsobre img {
        padding: 10px 8%;
        width: 100%;
        height: auto;
    }

    /* Portfólio */
    section.portif {
        padding: 80px 10%;
    }

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

    .imgport {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Rodapé */
    footer .flex {
        flex-direction: column;
        gap: 10px;
    }

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