/* =======================================================
   VITALDOC - ESTILO FINAL
   ======================================================= */

/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --azul-brand: #002B45;
    --dourado-brand: #F5A623;
    --fundo-dark: #001A29;      
    --fundo-card: #002233;      
    --branco: #ffffff;
    --cinza-texto: #e0e0e0;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--fundo-dark); color: var(--branco); font-family: 'Montserrat', sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 700; }
p { line-height: 1.6; color: var(--cinza-texto); }
a { text-decoration: none; transition: 0.3s; }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px; 
    position: relative; z-index: 1;
    background-image: linear-gradient(rgba(0, 43, 69, 0.85), rgba(0, 26, 41, 0.95)), url('../assets/fundo.jpg');
    background-size: cover; background-position: center; background-attachment: fixed; border: none;
}

.secao-texto { 
    position: relative; z-index: 2;
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 60px 20px; background-color: var(--fundo-dark); border: none; overflow: visible; 
}
.secao-texto::before {
    content: ''; position: absolute; top: -150px; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, transparent, var(--fundo-dark)); pointer-events: none;
}

/* Navbar */
nav { position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: 0.4s ease; background: transparent; }
nav.rolagem { background-color: rgba(0, 26, 41, 0.98); padding: 10px 5%; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.logo-brand { display: flex; align-items: center; gap: 10px; }
.logo-img-large { height: 55px; width: auto; transition: 0.3s; }
.logo-text { font-family: 'Cinzel', serif; color: var(--branco); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.logo-brand:hover .logo-text, .logo-brand:hover .logo-img-large { color: var(--dourado-brand); filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5)); }

.menu { list-style: none; display: flex; gap: 30px; align-items: center; }
.menu a { color: var(--branco); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
.menu a:hover { color: var(--dourado-brand); }
.btn-nav { border: 1px solid var(--dourado-brand); padding: 8px 20px; border-radius: 50px; color: var(--dourado-brand) !important; font-size: 0.9rem; }
.btn-nav:hover { background: var(--dourado-brand); color: #000 !important; }

.hero-content { max-width: 800px; margin-top: 60px; }
.tagline { color: var(--dourado-brand); letter-spacing: 4px; font-weight: bold; font-size: 0.9rem; display: block; margin-bottom: 20px; }
.hero h1 { font-size: 3.5rem; text-transform: uppercase; line-height: 1.1; margin-bottom: 20px; }
.descricao { font-size: 1.2rem; margin-bottom: 40px; }
.btn-cta { background-color: var(--dourado-brand); color: #001A29; padding: 15px 40px; font-weight: 700; border-radius: 5px; text-transform: uppercase; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; }
.btn-cta:hover { transform: scale(1.05); background-color: #ffb84d; box-shadow: 0 0 20px rgba(245, 166, 35, 0.4); }

/* --- SOBRE --- */
.container { max-width: 1100px; margin: 0 auto; width: 100%; }
.sobre-flex { display: flex; align-items: center; gap: 50px; text-align: left; }
.sobre-img { flex: 1; display: flex; justify-content: center; }
.sobre-img img { width: 100%; max-width: 480px; height: auto; border-radius: 15px; border: 2px solid var(--dourado-brand); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.sobre-texto { flex: 1; }
.sobre-texto h2 { color: var(--dourado-brand); font-size: 2.5rem; margin-bottom: 25px; margin-top: 0; white-space: nowrap; }
.sobre-texto p { font-size: 1.1rem; margin-bottom: 20px; max-width: none; }

/* --- SERVIÇOS --- */
.secao-servicos {
    position: relative; z-index: 2;
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 60px 5%; text-align: center; border: none; overflow: visible;
    background-image: linear-gradient(rgba(0, 18, 28, 0.95), rgba(0, 18, 28, 0.95)), url('../assets/fundo-servicos.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.secao-servicos::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 150px;
    background: linear-gradient(to bottom, var(--fundo-dark), transparent); pointer-events: none; z-index: 3;
}
.secao-servicos::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; 
    background: linear-gradient(to bottom, transparent, var(--fundo-dark)); pointer-events: none; 
}

.header-section { text-align: center; margin-bottom: 30px; }
.header-section h2 { font-size: 2.8rem; margin-bottom: 10px; color: var(--branco); }
.header-section p { color: #8899a6; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.cards-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.card { 
    flex: 1; min-width: 300px; max-width: 350px; 
    height: 380px; 
    position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #333; transition: 0.4s; 
}

.card-fisica { background: url('../assets/img-fisica.jpg') center/cover; }
.card-ged { background: url('../assets/img-ged.jpg') center/cover; }
.card-lgpd { background: url('../assets/img-lgpd.jpg') center/cover; }
.overlay-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,43,69,0.3)); z-index: 1; }
.card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; z-index: 2; transform: translateY(20px); transition: 0.4s; }
.card i { font-size: 2.5rem; color: var(--dourado-brand); margin-bottom: 15px; display: block; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p { font-size: 0.9rem; opacity: 0.9; }
.card:hover { transform: translateY(-10px); border-color: var(--dourado-brand); }
.card:hover .card-content { transform: translateY(0); }

/* --- DIRETORIA --- */
.secao-diretoria { 
    position: relative; z-index: 2;
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 20px; background: var(--fundo-dark); overflow: visible; 
}
.secao-diretoria::before { content: ''; position: absolute; top: -150px; left: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, transparent, var(--fundo-dark)); pointer-events: none; }

.perfil-flex { display: flex; align-items: center; gap: 50px; background: var(--fundo-card); padding: 50px; border-radius: 15px; border-left: 5px solid var(--dourado-brand); max-width: 1000px; margin: 0 auto; }
.perfil-foto img { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; border: 4px solid var(--dourado-brand); }
.perfil-texto h3 { font-size: 2rem; color: var(--branco); }
.cargo { color: var(--dourado-brand); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 20px; font-size: 0.9rem; }
.social-links { margin-top: 20px; font-size: 1.5rem; }
.social-links a { color: var(--branco); margin-right: 15px; }
.social-links a:hover { color: var(--dourado-brand); }

/* --- FOOTER --- */
footer {
    background-color: #000c14;
    color: #b0b0b0;
    padding: 60px 20px 20px 20px;
    font-size: 0.95rem;
    position: relative; 
    z-index: 2;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--branco);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dourado-brand);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #b0b0b0;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--dourado-brand);
    padding-left: 5px;
}

.social-footer a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--branco);
}
.social-footer a:hover { color: var(--dourado-brand); }

.contato-lista i {
    color: var(--dourado-brand);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credits a { color: #888; text-decoration: underline; }

/* Responsividade */
@media (max-width: 900px) {
    .menu { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .nav { justify-content: center; }
    .logo-brand { flex-direction: column; gap: 5px; }
    .logo-img-large { height: 45px; } 
    .perfil-flex, .sobre-flex { flex-direction: column; text-align: center; padding: 30px; gap: 30px; }
    .sobre-texto { text-align: center; }
    .sobre-texto h2 { white-space: normal; }
    .sobre-img img { max-width: 80%; }
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
[data-anime] { opacity: 0; transition: all 0.8s ease-out; }
[data-anime="up"] { transform: translateY(50px); }
[data-anime="down"] { transform: translateY(-50px); }
[data-anime="left"] { transform: translateX(-50px); }
[data-anime="right"] { transform: translateX(50px); }
[data-anime].animar { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* zap flutuante */
.btn-whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

.btn-whatsapp-flutuante:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}