:root {
    --primary: #12263a;
    --accent: #4a7c92;
    --text: #2c2c2c;
    --light: #f9fbfc;
    --white: #ffffff;
    --border: #e8ecef;
    --btn-green: #52a382;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text); line-height: 1.7; scroll-behavior: smooth; background-color: var(--white); -webkit-font-smoothing: antialiased; }

/* NAVEGAÇÃO DESKTOP */
nav { background: rgba(255, 255, 255, 0.95); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.logo { font-family: 'Playfair Display', serif; color: var(--primary); font-size: 1.8rem; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.2px; }
.nav-btn { background: var(--primary); color: white; padding: 12px 24px; text-decoration: none; border-radius: 4px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.mobile-menu-links { display: none; }

/* ESTRUTURAS DE ALINHAMENTO */
.container-largo { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.valor-container { max-width: 800px; margin: 0 auto; text-align: center; padding: 0 20px; }
.title-center { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.subtitle-center { display: block; text-align: center; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.divider-center { width: 60px; height: 3px; background-color: var(--accent); margin: 20px auto 40px; }
.cta-wrapper { display: flex; justify-content: center; width: 100%; margin-top: 40px; }
.desktop-left { justify-content: flex-start; }

/* HERO */
#hero { display: flex; align-items: center; padding: 80px 5%; background: radial-gradient(circle at top right, var(--light), var(--white)); min-height: 80vh; }
.hero-content { flex: 1.2; padding-right: 60px; }
.hero-subtitle-top { font-size: 1.4rem; margin-bottom: 25px; font-weight: 400; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.hero-list { list-style: none; margin: 30px 0; }
.hero-list li { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 1.05rem; color: #444; }
.hero-list i { color: var(--accent); margin-right: 15px; margin-top: 6px; }
.hero-img { flex: 0.8; text-align: center; }
.hero-img img { width: 100%; max-width: 380px; border-radius: 4px; box-shadow: 20px 20px 0px -10px var(--light), 20px 20px 0px -9px var(--border); }

/* SEÇÕES */
#voce-sabia { padding: 80px 5%; background-color: var(--primary); color: white; text-align: center; }
.curiosidades-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 40px; }
.curio-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); padding: 40px 25px; border-radius: 8px; }
.curio-item span { font-size: 3.5rem; font-weight: 700; display: block; margin-bottom: 10px; color: var(--accent); }

#formacao-detalhada { padding: 100px 5%; background-color: var(--white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; text-align: left; }
.formacao-col h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--primary); margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 15px; display: flex; align-items: center; }
.formacao-col li { margin-bottom: 18px; color: #555; font-size: 0.95rem; position: relative; padding-left: 20px; list-style: none; }
.formacao-col li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-weight: bold; }

#agendamento-valor { padding: 100px 5%; background-color: var(--light); }
#agendamento-valor p { font-size: 1.2rem; color: #555; margin-bottom: 25px; }

#especialidades { padding: 80px 5%; background: var(--white); text-align: center; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; }
.spec-card { background: var(--light); padding: 45px 30px; border: 1px solid var(--border); transition: 0.4s; }
.spec-card h3 { font-family: 'Playfair Display', serif; margin-bottom: 10px; color: var(--primary); }

#recent-posts { padding: 80px 5%; background: var(--primary); text-align: center; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.post-card { background: white; border-radius: 8px; overflow: hidden; text-align: left; display: flex; flex-direction: column; transition: 0.3s; }
.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.post-card-content h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 15px; min-height: 3.5em; }
.post-card-content p { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.leia-mais { color: var(--btn-green); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.8rem; margin-top: auto; }

/* FOOTER */
footer { padding: 80px 5% 40px; background: #0a1828; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 60px; }
.footer-grid h3 { color: white; margin-bottom: 25px; font-family: 'Playfair Display', serif; }
.footer-sociedades a { color: white; text-decoration: none; font-weight: 700; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.75rem; }

.btn-clinico { padding: 18px 40px; background-color: var(--btn-green); color: white; text-decoration: none; border-radius: 4px; font-weight: 700; text-transform: uppercase; display: inline-block; transition: 0.3s; }

/* RESPONSIVIDADE MOBILE - AJUSTADA PARA BARRAS FIXAS */
@media (max-width: 900px) {
    /* Logo fixo no topo */
    nav { 
        position: fixed; 
        top: 0; 
        left: 0; 
        right: 0; 
        height: 60px; 
        justify-content: center; 
        z-index: 1001; 
        background: var(--white);
    }
    .nav-links, .nav-btn, .desktop-only { display: none !important; }
    .desktop-left { justify-content: center; }

    /* Links de navegação fixos abaixo do logo */
    .mobile-menu-links { 
        display: flex; 
        justify-content: space-around; 
        align-items: center;
        background: var(--light); 
        padding: 0 5%; 
        border-bottom: 1px solid var(--border); 
        position: fixed; 
        top: 60px; 
        left: 0; 
        right: 0; 
        height: 50px; 
        z-index: 1000; 
    }
    .mobile-menu-links a { text-decoration: none; color: var(--primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

    /* Espaçamento no topo para o conteúdo não sumir atrás das barras */
    body { padding-top: 110px; padding-bottom: 80px; }

    /* Faz os links de âncora pararem abaixo das barras fixas */
    section { scroll-margin-top: 120px; }

    #hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-content { padding-right: 0; order: 2; }
    .hero-img { order: 1; margin-bottom: 30px; }
    .hero-img img { max-width: 280px; }
    .hero-list li { text-align: left; }

    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .title-center { font-size: 2rem; }
    
    .mobile-cta-footer { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 10px 20px; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); z-index: 10000; }
    .btn-mobile-fixo { background: var(--btn-green); color: white; text-decoration: none; width: 100%; padding: 15px; text-align: center; border-radius: 6px; font-weight: 700; text-transform: uppercase; display: flex; justify-content: center; align-items: center; gap: 10px; }
}