/*=================================================================
  1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS 2025
=================================================================*/
:root {
    --primary-color: #007BFF;
    --primary-color-dark: #0056b3;
    --gradient-primary: linear-gradient(45deg, #007BFF, #00A8FF);
    --text-color: #EAEAEA;
    --text-secondary-color: #a0a0a0;
    --bg-color: #111111;
    --surface-color: #181818;
    --border-color: #2c2c2c;
    --font-main: 'Poppins', sans-serif;
    --section-padding: clamp(3rem, 8vw, 6rem);
    --interface-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.1rem);
    line-height: 1.6;
}

.interface {
    max-width: var(--interface-width);
    margin: 0 auto;
    padding: 0 4%;
}

.flex {
    display: flex;
}

.titulo {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.titulo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/*=================================================================
  2. ANIMAÇÃO DE SCROLL
=================================================================*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/*=================================================================
  3. CABEÇALHO E MENU MOBILE
=================================================================*/
header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

header > .interface {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    color: var(--text-secondary-color);
    text-decoration: none;
    transition: 0.3s;
}

header a:hover {
    color: var(--text-color);
    transform: scale(1.05);
}

header nav.menu-desktop ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.btn-abrir-menu {
    color: var(--primary-color);
    font-size: 2.5rem;
    cursor: pointer;
    display: none;
}

.menu-mobile {
    background-color: var(--surface-color);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: 0%;
    overflow: hidden;
    transition: 0.5s ease-in-out;
}

.menu-mobile.abrir-menu {
    width: 70%;
}

.menu-mobile .btn-fechar {
    padding: 1.5rem 5%;
    text-align: right;
}

.menu-mobile .btn-fechar i {
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
}

.menu-mobile nav ul {
    text-align: right;
}

.menu-mobile nav ul li a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1.5rem 5%;
    display: block;
}

.menu-mobile nav ul li a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.overlay-menu {
    background-color: #000000a1;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

/*=================================================================
  4. SEÇÕES PRINCIPAIS (MAIN)
=================================================================*/
section {
    padding: var(--section-padding) 0;
}

/* Hero Section */
.topo-do-site .flex {
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.topo-do-site h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 700;
}

.topo-do-site .img-topo-site img {
    width: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color);
    animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

/* Especialidades */
.especialidades .flex {
    gap: 2rem;
    justify-content: center;
}

.especialidades-box {
    padding: 2.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
    cursor: default;
    flex: 1;
}

.especialidades-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
}

.especialidades-box i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.especialidades-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Sobre */
.sobre .flex {
    align-items: center;
    gap: 4rem;
}

.sobre .img-sobre img {
    width: 100%;
    border-radius: 15px;
}

.sobre .txt-sobre h2 {
    text-align: left;
}

/* Botões */
button {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: var(--text-color);
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.5);
}

/*=================================================================
  5. RODAPÉ (FOOTER)
=================================================================*/
footer {
    padding: 3rem 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.line-footer.borda {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

footer p a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.2s;
}
footer p a:hover {
    color: var(--primary-color);
}

/*=================================================================
  6. RESPONSIVIDADE
=================================================================*/
@media (max-width: 1024px) {
    .menu-desktop, header .btn-contato {
        display: none;
    }

    .btn-abrir-menu {
        display: block;
    }

    .flex {
        flex-direction: column;
        gap: 3rem;
    }

    .topo-do-site .flex, .sobre .flex {
        flex-direction: column-reverse;
    }

    .topo-do-site h1, .sobre .txt-sobre h2 {
        text-align: center;
    }

    .topo-do-site .img-topo-site {
        max-width: 350px;
        margin: 0 auto;
    }
}