/* ============================================================
   RESET & BASE
============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: #f6f7f9;
    color: #000;
    line-height: 1.5;
}

/* ============================================================
   TIPOGRAFIA
============================================================ */

h1, h2, h3 {
    font-family: 'Julius Sans One', sans-serif;
    color: #0B1822;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.subtitulo,
section h4,
label {
    font-family: 'Manrope', sans-serif;
    color: #78A06D;
    font-weight: 600;
}

p, li, input, textarea, button {
    font-family: 'Manrope', sans-serif;
    color: #000;
}

/* ============================================================
   CONTAINER
============================================================ */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================================================
   HEADER
============================================================ */

.header {
    background: #BCBDC0;
    padding: 14px 0;
    border-bottom: 1px solid #d3d3d3;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: 0.3s ease;
}

.header-shadow {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 60px;
}

.titulo-clinica {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Manrope', sans-serif;
}

.menu a {
    margin-left: 28px;
    text-decoration: none;
    color: #0B1822;
    font-weight: 500;
    transition: .2s;
}

.menu a:hover {
    color: #78A06D;
}

/* ============================================================
   BUTTON PRIMARY — novo estilo com neon
============================================================ */

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #0B1C46;
    border: 2px solid #0B1C46;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
}

.button-primary:hover {
    color: #78A06D;
    border-color: #78A06D;
    box-shadow: 0 0 15px rgba(120,160,109,0.6),
                0 0 25px rgba(120,160,109,0.4);
    animation: neonPulse 1.5s infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(120,160,109,0.6),
                    0 0 25px rgba(120,160,109,0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(120,160,109,0.8),
                    0 0 35px rgba(120,160,109,0.6);
    }
}

/* ============================================================
   FUNDOS — fundo1 e fundo2 com posicionamento otimizado
============================================================ */

.fundo1 {
    background: url("../imagens/fundo1.png") center center / cover no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
}

.fundo2 {
    background: url("../imagens/fundo2.png") center center / cover no-repeat;
    background-attachment: fixed;
    padding: 80px 0;
    position: relative;
}

.fundo-branco {
    background: white;
    padding: 80px 0;
}

/* ============================================================
   HERO
============================================================ */

.hero {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: white;
    padding: 55px 45px;
    border-radius: 20px;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 0 18px rgba(0,0,0,0.08);
}

.hero-card h1 {
    font-size: 2.6rem;
}

.hero-card p {
    font-size: 1.1rem;
    margin: 25px 0;
}

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

.sobre {
    text-align: center;
    width: 90%;
    max-width: 850px;
    margin: auto;
}

.sobre p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.foto-perfil {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border-radius: 50%;
    margin: 25px 0;
    box-shadow: 0 0 12px rgba(0,0,0,0.12);
}

/* ============================================================
   SERVIÇOS — hover com borda azul e neon
============================================================ */

.servicos {
    text-align: center;
}

.servicos-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 40px;
}

.servico-card {
    background: white;
    width: 280px;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.35s ease;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.servico-card:hover {
    transform: translateY(-6px);
    border-color: #0B1C46;
    box-shadow: 0 0 15px rgba(120,160,109,0.6),
                0 0 25px rgba(120,160,109,0.4);
}

.icon-green {
    color: #78A06D;
    margin-bottom: 15px;
}

/* ============================================================
   BLOG — 2 colunas desktop, empilhado mobile
============================================================ */

.blog {
    text-align: center;
}

#lista-artigos {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.artigo-card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    border: 2px solid transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: left;
}

.artigo-card:hover {
    transform: translateY(-5px);
    border-color: #0B1C46;
    box-shadow: 0 0 15px rgba(120,160,109,0.6),
                0 0 25px rgba(120,160,109,0.4);
}

.artigo-card h3 {
    color: #0B1822;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.artigo-card p {
    color: #444;
    margin-bottom: 15px;
    line-height: 1.6;
}

.leia-mais {
    font-weight: 600;
    color: #78A06D;
    text-decoration: none;
    transition: 0.2s ease;
}

.leia-mais:hover {
    color: #4f7245;
    text-decoration: underline;
}

/* Fix para artigos aparecerem */
#lista-artigos .artigo-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   CONTATO — centralizado
============================================================ */

.contato {
    text-align: center;
}

.contato-container {
    width: 90%;
    max-width: 800px;
    margin: auto;
}

.contato h2 {
    margin-bottom: 25px;
}

.contato-texto {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ============================================================
   FORMULÁRIO — campos com hover verde, ícones azuis
============================================================ */

.form-contato {
    width: 100%;
    max-width: 600px;
    margin: 35px auto 0;
    padding: 35px;
    border-radius: 22px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    background-image: url("../imagens/imgform.png");
    background-size: cover;
    background-position: center;
    transition: .3s ease;
}

.campo {
    margin-bottom: 20px;
    text-align: left;
}

.campo label {
    display: block;
    margin-bottom: 8px;
    color: #0B1C46;
    font-weight: 600;
}

.campo label i {
    color: #0B1C46;
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: rgba(255,255,255,0.90);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: #78A06D;
    box-shadow: 0 0 12px rgba(120,160,109,0.5);
}

.campo textarea {
    height: 130px;
    resize: none;
}

.form-contato button {
    margin-top: 10px;
}

/* ============================================================
   LOCALIZAÇÃO
============================================================ */

.localizacao {
    margin-top: 50px;
    text-align: center;
}

.localizacao h3 {
    margin-bottom: 15px;
    color: #0B1822;
}

.localizacao p {
    font-size: 1.05rem;
    color: #333;
}

/* ============================================================
   ANIMAÇÕES DE ENTRADA
============================================================ */

.animar {
    opacity: 0;
    transform: translateY(30px);
    transition: .7s ease;
}

.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   FOOTER — texto verde
============================================================ */

.footer {
    background: #0B1822;
    text-align: center;
    padding: 25px;
    margin-top: 70px;
}

.footer p {
    color: #78A06D !important;
    margin: 0;
}

/* ============================= */
/* BOTÕES FLUTUANTES FIXOS */
/* ============================= */

.floating-buttons {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

/* WhatsApp */
.floating-whatsapp {
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.3);
    text-decoration: none;
}

/* Voltar ao topo */
.floating-top {
    width: 44px;
    height: 44px;
    background: #0f3d2e;
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* aparece só ao rolar */
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.3);
}

/* ============================================================
   FOOTER — redes sociais
============================================================ */

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-social a {
    color: #78A06D;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVO
============================================================ */

@media (max-width: 768px) {
    /* Header mobile - 2 linhas */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }

    .logo-area {
        justify-content: center;
    }

    .logo {
        height: 50px;
    }

    .titulo-clinica {
        font-size: 1.1rem;
    }

    .menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .menu a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .menu .button-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 5px;
    }

    .menu .button-primary i {
        font-size: 0.9rem;
    }

    /* Hero mobile */
    .hero-card {
        padding: 40px 25px;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    .hero-card .button-primary {
        font-size: 0.95rem;
        padding: 12px 22px;
    }

    /* Sobre mobile */
    .foto-perfil {
        width: 180px;
        height: 180px;
    }

    /* Serviços mobile */
    .servico-card {
        width: 90%;
        max-width: 320px;
    }

    /* Artigos empilhados no mobile */
    #lista-artigos {
        grid-template-columns: 1fr;
    }

    /* Contato mobile */
    .contato-texto {
        font-size: 1rem;
    }

    .floating-buttons {
        right: 16px;
        bottom: 16px;
    }

    .floating-whatsapp {
        width: 52px;
        height: 52px;
        font-size: 26px;
        text-decoration: none;
    }

    .floating-top {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    /* Footer mobile */
    .footer-social {
        gap: 20px;
    }

    .footer-social a i {
        font-size: 1.5rem;
    }
}
